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

body{
    width: 100vw;
    background-image: url(./imagens/background-jogo-memoria.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    box-shadow: 0 0 5px rgba(0,0,0,.2);
}


/* fileReader */
.adicionar-imagens-personalizadas{
    display: none;
}
#imagens{
    display: none;
}


.container-jogo{
    display: block;
}



.container-cards{
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.card{
    width: 150px;
    height: 200px;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    border-radius: 5px;
    margin: 5px;

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    box-shadow: 0 0 5px rgba(0,0,0,.2);
    background-color: black;
    background-image: url("./imagens/frente-card.png");
}

.card-frente{
    animation: cardFrente 1s forwards;
}

.card-verso{
    animation: cardVerso 1s forwards;
}

@keyframes cardFrente{
    from{
        opacity: 0;
        transform: rotate3d(0,1,0, 180deg);
    }
    to{
        opacity: 1;
        transform: rotate3d(0,1,0, 0deg);
        background-image: url("./imagens/frente-card.png");
    }
}

@keyframes cardVerso{
    from{
        opacity: 0;
        transform: rotate3d(0,1,0, 0deg);
    }
    to{
        opacity: 1;
        transform: rotate3d(0,1,0, 180deg);
    }
}


@media ( max-width:  475px){
    .card{
        width: 70px;
        height: 120px;
    }
}

@media (min-width: 476px) and (max-width: 800px){
    .card{
        width: 100px;
        height: 150px;
    }
}
