@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;700&display=swap');

body {
    font-family: 'Comfortaa', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f5e3e6 0%, #d9e4f5 100%);
}

.game-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 90vw;
}

h1, h2, h3 {
    color: #5d4037;
    margin-bottom: 1.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }

.game-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

select, .btn {
    font-family: 'Comfortaa', cursive;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background-color: #a1887f;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

select:hover, .btn:hover {
    background-color: #8d6e63;
}

.btn {
    background-color: #80cbc4;
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
    margin: 0.5rem;
}

.btn:hover {
    background-color: #4db6ac;
}

.game-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.game-board {
    display: grid;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.card {
    width: 80px;
    height: 80px;
    background-color: #d7ccc8;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.card.flipped {
    background-color: #fff;
}

.game-info {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #5d4037;
    gap: 1rem;
}

.game-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hidden {
    display: none;
}

.screen {
    transition: opacity 0.5s ease;
}

.rules-card {
    background-color: #fff3e0;
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: left;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.rules-card h3 {
    margin-top: 0;
    font-size: 1rem;
}

.rules-card ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

.rules-card li {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: #5d4037;
}

.credit {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #5d4037;
}

@media (max-width: 900px) {
    .game-layout {
        flex-direction: column;
        align-items: center;
    }

    .rules-card {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .game-container {
        padding: 1rem;
    }
    
    .card {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}
