* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #f0f0f0;
}

.container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    padding: 1rem;
}

.title {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.scoreboard {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    width: 350px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem;
    border-radius: 1rem;
    font-size: 1rem;
    background: #e0e0fd;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    grid-gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
}

.card {
    width: 100px;
    height: 150px;
    background-color: #ffd7c4;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 1.5rem;
    transition: transform 0.5s ease-in-out;
}

.card.flipped {
    background-color: #90e1ff;
    transform: rotateY(180deg);
}

.card.matched {
    background-color: #0bfaff;
}

#restart {
    margin-top: 20px;
    padding: 1rem;
    padding-inline: 2rem;
    border-radius: 1rem;
    border: none;
    background: #faff14;
    color: #000000;
    font-size: 1rem;
    cursor: pointer;
}

#feedback {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: green;
}

.disable-timer-btn{
    padding-inline: 1rem;
    padding-block: .5rem;
    border: none;
    border-radius: .9rem;
    font-size: .8rem;
    cursor: pointer;
    background: #fbfdb6;
}

/* Mobile view */
@media screen and (max-width: 768px) {
    #game-board {
        grid-template-columns: repeat(3, 100px); /* 3 columns on mobile */
    }
    .container {
        height: unset;
    }
    .card {
        width: 89px;
        height: 116px;
    }
}
