* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


body {

    min-height: 100vh;

    background: #0b0d12;

    color: white;

    font-family: Arial, sans-serif;

    display: flex;

    flex-direction: column;

    align-items: center;

}



header {

    width: 100%;

    padding: 25px;

    text-align: center;

}



header a {

    color: #aaa;

    text-decoration: none;

    position: absolute;

    left: 25px;

    top: 30px;

}



h1 {

    font-size: 42px;

}



main {

    width: 90%;

    max-width: 600px;

}



.info {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 25px 0;

    font-size: 20px;

}



button {

    padding: 10px 18px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

}



.game-board {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

}



.card {

    aspect-ratio: 1;

    background: #202633;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 40px;

    cursor: pointer;

    transition: 0.3s;

}



.card:hover {

    transform: scale(1.05);

}



.card.flipped {

    background: white;

}



.card.matched {

    background: #35a853;

    cursor: default;

}



#message {

    text-align: center;

    margin-top: 30px;

    font-size: 25px;

    font-weight: bold;

}



@media(max-width:500px){

    .game-board {

        gap: 8px;

    }


    .card {

        font-size: 30px;

    }


    h1 {

        font-size: 32px;

    }

}