*{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

a{
    text-decoration: none;
    width: fit-content;
}

body{
    background-image:linear-gradient(45deg, rgb(10, 73, 10), rgb(8, 56, 8), rgb(5, 37, 5) );
    background-attachment: fixed;
}


.grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 900px;
    margin: 10px auto;
}

.options{
    display: flex;
    width: 100%;
    max-width: 900px;
    margin: auto;
    gap: 15px;
}

.botao-voltar,.botao-reiniciar{
    width: fit-content;
    margin: auto;
    cursor: pointer;
    padding: 8px;
    font-size: clamp(18px,2vw,22px);
    color: rgb(0, 199, 0);
    transition: color 0.5s , transform 0.4s;
}

.botao-voltar:hover,.botao-reiniciar:hover{
    transform: scale(1.05);
    color: rgb(172, 211, 0);
}

@media screen and (max-width: 900px){
    .grid{
        gap: 10px;
    }
}

@media screen and (max-width: 600px){
    .grid{
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        margin: 20px auto;
    }
}

.card{
    aspect-ratio: 3/4;
    width: 100%;
    border: 2px solid #333;
    border-radius: 5px;
    position: relative;
    transition: all 400ms ease;
    transform-style: preserve-3d;
    box-sizing: border-box;
}
.card:hover{
    cursor: pointer;
}

.face{
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    transition: all 400ms ease;
}

.front{
    transform: rotateY(180deg);
}

.back{
    background-image: url('imagens/backCarta.png');
    backface-visibility: hidden;
}

.reveal-card{
    transform: rotateY(180deg);
}

.disabled-card{
    opacity: 0.5;
}


#text-parabens{
    margin: 25px auto 20px auto;
    text-align: center;
    font-size: clamp(36px,5vw,50px);
    color: white;
    font-family: Verdana, Arial, sans-serif; 
}






