body {
    font-family: Oswald, sans-serif;
    background-color: #0d0d0d;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 1000px;
    width: 100%;
}

#game-title {
    background-color: #313131;
    color: #ffffff;
text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 74%);
}

.score-timer {
    background-color: #313131;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 74%);
}

.images-container {
        position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    align-items: center;

}


.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}



.image-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

canvas {
    pointer-events: none; 
    transition: all 0.3s ease;
}
@media (max-width: 768px) {
    .images-container {
        flex-direction: column;
    }

        .image-wrapper {
        max-width: 100%;
    }
    
    .score-timer {
        flex-direction: column;
        gap: 10px;
    }
}


.timer-container {
  width: 70%;
  background: #f0f0f0;
  border-radius: 10px;
  margin: 20px 0;
  position: relative;
  height: 20px;
}

.timer-bar {
  height: 100%;
  background: #4CAF50;
  border-radius: 10px;
  width: 100%;
  transition: width 1s linear;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #333;
  text-shadow: 0 0 2px white;
}

.flip-container {
    position: relative;
    width: 100%;
    height: auto;
    display: inline-block;
    transform-style: preserve-3d;
}

.flip-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    backface-visibility: hidden;
    transition: transform 0.8s ease-in-out;
}

.image-wrapper {
    position: relative;
    flex: 1;
    max-width: 50%;
    perspective: 1000px;
}
.start-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-button {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s;
}

.game-button:hover {
    background: #45a049;
    transform: scale(1.05);
}

.restart-button {
    background: #2196F3;
}

.restart-button:hover {
    background: #0b7dda;
}

.start-message {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.game-message {
    text-align: center;
    margin-top: 20px;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #000000;
    display: inline;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 72%);

}
