/* Memory Game Styles */
.memory-game-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 20px auto;
}

.memory-card {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transform: scale(1);
    transition: transform 0.5s;
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    padding: 20px;
    position: absolute;
    border-radius: 5px;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    border: 2px solid #6C9354;
}

.card-front {
    background: #6C9354;
    color: white;
    transform: rotateY(180deg);
}

.card-back {
    background: white;
    color: #6C9354;
}

/* Snake Game Styles */
.snake-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
}

.snake-canvas {
    border: 2px solid #6C9354;
    border-radius: 5px;
    background: #fff;
}

/* Quiz Game Styles */
.quiz-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quiz-question {
    text-align: center;
}

.quiz-question h3 {
    margin-bottom: 20px;
    color: #333;
}

.quiz-options {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.quiz-options button {
    padding: 10px 20px;
    background: #6C9354;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quiz-options button:hover {
    background: #557b42;
}

.quiz-results {
    text-align: center;
}

.quiz-results button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #6C9354;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Game Container Styles */
.game-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.game-container h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.game-controls {
    text-align: center;
    margin: 20px 0;
}

.game-controls button {
    padding: 10px 20px;
    background: #6C9354;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
}

.game-controls button:hover {
    background: #557b42;
} 