/* MEMORY GAME STYLES */
.memory-game-section {
    text-align: center;
    padding: 40px 0;
}

.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
    perspective: 1000px; /* For the flip effect */
}

.memory-card {
    width: 100px;
    height: 140px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
    border: 2px solid #64ffda;
    border-radius: 10px;
}

.memory-card.flip {
    transform: rotateY(180deg);
}

.front-face,
.back-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.front-face {
    background-color: #1e2a3a;
    font-size: 3rem;
    color: #64ffda;
}

.back-face {
    background: linear-gradient(135deg, #0a192f, #1e2a3a);
    transform: rotateY(180deg);
    font-size: 2rem;
    color: #64ffda;
    content: '?';
}

.game-info {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #c5c5c5;
}

#timer, #flips {
    margin: 0 15px;
    color: #64ffda;
}

#reset-game-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #64ffda;
    color: #0a192f;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#reset-game-btn:hover {
    background-color: #0a192f;
    color: #64ffda;
    box-shadow: 0 0 15px #64ffda;
}

