*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    height: 100%;
}
body{
    font-family: sans-serif;
    font-size: 1.2rem;
    
}

/*************** Sección página principal ***************/
/* Header */
figure.imagenBaner{
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffcd05;
    padding: 10px;
}

h1{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 800;
    color: #2973B9;
}
h2{
    margin-bottom: 100px;
}

.header{
    grid-area: header;
}
.section{
    grid-area: section;
}


.footer{
    grid-area: footer;
    
}
.contenedor{
    min-height: 100vh;
    background-image: url(./images/wp2png.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template:
        "header"50px
        "section"auto
        "footer"80px;
    text-align: center;
    
}

.bg-pokemon{
    width: 110px;
}

.bienvenida{
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0 auto;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.63);
    -webkit-box-shadow: -5px 11px 15px -6px rgba(0,0,0,0.75);
    -moz-box-shadow: -5px 11px 15px -6px rgba(0,0,0,0.75);
    box-shadow: -5px 11px 15px -6px rgba(0,0,0,0.75);
    width: 320px;
    height: 300px;
    padding: 20px;
    border-radius: 20px;
    font-family:  Arial, Helvetica, sans-serif;
    font-size: 2rem;
}
.info{
    font-size: 1rem;
    text-align: justify;
}

.btn-jugar, .btn-volver{
    background: #2AAF16;
    border: none;
    padding: 10px;
    width: 50%;
    border-radius: 20px;
    font-size: 1rem;
    color: white;
}



footer{
    font-size: 1rem;
}


/*************** Segunda Pantalla ***************/

.tablero{
    width: 80%;
    height: 85vh;
    padding: 10px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
    perspective: 1000px;
}


.area-tarjeta, .tarjeta, .cara{

    cursor: pointer;
    min-width: 90%;
    min-height:12vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    
}
.tarjeta{
    position: relative;
    transform-style: preserve-3d;
    transition: all 1s ease;
    animation: iniciar 3s;
    margin: 10px;
}

.delantera,
.trasera{
    width: 100%;
    height: 100%;
    position: absolute;
}

.cara{
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
}
.trasera{
    background-color: #2973B9;
    transform: rotateY(180deg);
}
.trasera img{
    width: 80px;
}

.delantera{
    font-size: 30px;
    background: #2973B9;
}



.tarjeta:active{
    transform: scale(.97);
    transition: transform .2;
}
.area-tarjeta .voltear{
    transform: rotateY(180deg);
}



.fa-question-circle{
    background-color: #85B6FF;
    border-radius: 50px;
}


@keyframes iniciar{
    20%,90%{
        transform: rotateY(180deg);
    }
    0%,100%{
        transform: rotateY(0deg);
    }

} 

/*************** Pantalla Final ***************/

h2{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 800;
}
img{
    width: 200px;
}

.section.pantallaFinal{
    width: 320px;
    height: 300px;
}
.pantallaFinal{
    top: 50%;
    left: 50%;
    position: relative;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 20px;
}


.contenedor-pokemon{
    margin: 0 auto;
    background-color: #2973B9;
    height: 200px;
    width: 300px;
    border-radius: 20px;
}

.felicitacion {
    background-color: #FFCB05;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 180px;
    left: 70px;
    width: 200px;
    height: 120px;
    border-radius: 20px;
    text-align: center; 
}
.btn-volver{
    margin-top: 6rem;
    width: 60%;
    margin-left: 25px;
    padding: 10px;
    font-size: 1rem;
}

/* Media queries */
@media screen and  (min-width:600px) {
    h1{
        font-size: 1.8rem;
    }
    .contenedor{
        width: 100%;
        display: grid;
        grid-template:
            "header header header" 
            "section section section" 
            "footer footer footer" 50px ;
        text-align: center;
    }

    figure.imagenBaner{
        height: 60px;
    }
    .bg-pokemon{
        width: 150px;
    }

    .bienvenida{
        width: 600px;
        height: 400px;
    }

    .info{
        font-size: 1.2rem;
        padding: 2rem;
    }
    .btn-jugar, .btn-volver{
        padding: 15px;
        font-size: 1rem;
        width: 40%;
    }

    footer{
        font-size: 1.5rem;
        
    }
    
    /* segunda Pantalla */
    .tablero{
        height: 100%;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        grid-gap: 10px;
        left: 50px;

    }
    .area-tarjeta, .tarjeta, .cara{
        cursor: pointer;
        min-width: 200px;
        min-height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 20px;
        
    }
    .cara{
        font-size: 70px;
    }
    .trasera img{
        width: 120px;
        padding: 5px;
    }
    
    h2{
        font-size: 2rem;
    }
    img{
        width: 350px;
    }

    /* Tercera Pantalla */
    .section.pantallaFinal{
        width: 800px;
        height: 600px;
    }
    .contenedor-pokemon{
        height: 400px;
        width: 600px;
    }
    
    .felicitacion {
        top: 300px;
        left: 200px;
        width: 400px;
        height: 200px;
    }
    .btn-volver{
        margin-top: 6rem;
        padding: 20px;
        font-size: 2rem;
    }

}



