@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600&family=Jost&family=Kantumruy+Pro:wght@700&family=La+Belle+Aurore&family=Lusitana&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Inter:wght@600&family=Jost&family=Kantumruy+Pro:wght@700&family=La+Belle+Aurore&family=Lusitana&display=swap'); 

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    cursor: url(img/bolita.png), auto;
}

body{
    display: flex;
}

/* AQUI COMIENZA EL HEADER */

.banner {
    width: 100%;
    height: 9rem;
    display: flex;
    background-color: #134573;
    position: fixed;
    z-index: 2;
    top: 0;
}

.imgBanner {
    width: 100%;
    height: 100%;
    display: block;
    margin: auto;
    max-width: 700px;
    min-width: 400px;
}

/* AQUI TERMINA EL HEADER */


/* MAIN CONTENEDOR DE TODO*/
.conteiner {
    width: 100%;
    height: 100%;
    margin-top: 13rem;
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fcfbfb;
    flex-direction: column;
    padding: 0 1.5rem;
    scroll-behavior: smooth;    
}

.barraTextPorcentaje {
    width: 100%;
    height: 2.5rem;
    background-color: rgb(141, 116, 137);
    position: fixed;
    top: 9rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.1rem 2rem;
    max-width: 100%;
    min-width: 300px;
}

#calculo {
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Didact Gothic', sans-serif; 
    letter-spacing: 0.5px;
    word-spacing: 3px;
    text-align: center;
}

/* AQUI COMIENZA LA BARRA DE MENUS DESPLEGABLES */

.menuBar{
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d9d9d9;
    width: 100%;
    height: 3rem;
    position: fixed;
    top: 11.5rem;
    z-index: 2;
    max-width: 100%;
    min-width: 300px;
    font-size: 1.15rem;
    font-family: 'Inter', sans-serif;
}

.desplegables {
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-width: 300px;
    display: block;
    margin: auto;
    justify-content: space-around;
    
}



ul {
    list-style: none;
    width: 50%;
    text-align: center;
    justify-content: space-between;   
}

/* todos los a que esten en un li dentro de la barra de menu*/
.nav li {
    background-color: #d9d9d9;
    color: #69696c;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    height: 50%;
    max-width: 100%;
    min-width: 50%;
}

.nav li:hover{
    background-color:#134573;
    opacity: 90%;
    color: #fff;
    z-index: 2;
}

/* todas las li dentro de nav*/
.nav > li{
    float: left;
    /* width: 40%; */
}

/* todas las ul dentro de li que esten dentro de nav*/
.nav li ul {
    display: none;
    position: absolute;
    /* width: 35%; */
}

.nav li:hover > ul{
    display: block;
  
}

.nav li ul li {
    position: relative;
    /* width: 70%; */
}

.nav li ul li ul {
    right: -50%;
    top: 0%;
}

.menu1{
    font-size: 1rem;
    width: 25%;
    height: 3rem;
    margin: 0.2rem 0;
}
.menu2{
    font-size: 0.9rem;
    width: 40%;
    margin: 0.2rem 0;
}
.menu3{
    width: 100%;
    font-size: 0.7rem;
    margin: 0.1rem 0;
}

/* AQUI TERMINA LA BARRA DE MENUS DESPLEGABLES */

/*AQUI PARTEN LAS TARJETAS DE PELIS*/

/* CONTENEDOR DE TODAS LAS TARJETAS*/
.cajaFilms{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; 
    background-color: #fcfbfb;
    position: absolute;
    top: 14rem;
}

/* CARTAS DE LA PELI*/
.carta {
    padding: 1.5rem;
    margin: 1rem 0;
    width: 100%;
    background-color: #fcfbfb;
    color: grey;
    box-shadow: 0 1.4rem 8rem rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    border-radius: 2rem;
    flex-direction: row-reverse;
    justify-content: space-around;


}

.carta:hover {
    box-shadow: 0 1.4rem 8rem rgba(47, 121, 170, 0.2);
    cursor: pointer;
}

/* CAJA QUE CONTIENE TODOS LOS TEXTOS DE LA TARJETA*/
.infoFilms{
    width: 50%;
    height: 100%; 
    min-width: 244px;
}

/*POSTER*/
img {
    padding: 0px;   
    border-radius: 2rem;
}

/* TEXTO DE DESCRIPCION DE LA PELI */
.cajatext {
    font-family: 'Lusitana', serif;
    max-width: 20rem;
    max-height: 20rem;
    padding: 3px;
    font-size: 0.6rem;
    color: #929298;
    transition: .3s;
    text-align: justify;
}

.cajatext:hover {
    background-color: #134573;
    opacity: 70%;
    font-family: 'Lusitana', serif;
    max-width: 50rem;
    max-height: 50rem;
    padding: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    color: #fff;
    transform: scale(1.4);
    border-radius: 3px;
    cursor: url(img/buscar.png), auto;
    text-align: justify;
}


 /* PARRAFO TEXTO "AÑO" */

.text {
    font-family: 'Didact Gothic', sans-serif; 
    max-width: 50rem;
    max-height: 30rem;
    font-size: 1.1rem;
    margin: 1rem 0 1rem;
    padding: 3px;
    text-transform: uppercase;
    color: #134573;
}


/* PARRAFO TEXTO TITULO DE LA PELICULA */
.nameMovie {
    max-width: 40rem;
    max-height: 20rem;
    padding: 5px;
    padding-top: 7px;
    margin-bottom: 2px;
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #69696c;

}

/* P - TEXTO NOMBRE DEL DIRECTOR */
.text1 {
    padding: 3px;
    font-family: 'Inter', sans-serif;
    display: block;
    color: #134573;
    font-size: 0.9rem;
    font-weight: 600;
    margin: .5rem 0 1rem;
    opacity: 60%;
}

/* FOOTER */
.footer {
    width: 100%;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #134573;
    position: fixed;
    z-index: index 2;
    bottom: 0;
    padding: 0.3rem;
    color: #fff;
    font-size: 0.9rem;
}

.footer p{
    opacity: 50%;
}



/* AQUI TERMINA EL FOOTER */

/* AQUI COMIENZA EL RESPONSIVE*/

@media screen and (max-width: 1068px) {
    .carta {
        max-width: 80rem;

    }

    .img {
        min-width: 30rem;
        max-width: 30rem;
    }
}

@media screen and (max-width: 868px) {
    .carta {
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .carta {
        padding: 2.5rem;
        flex-direction: column;
    }

    .img {
        min-width: 100%;
        max-width: 100%;
        /* transform: translate(0, -8rem); */
    }
}

@media screen and (max-width: 653px) {
    .carta {
        padding: 2.5rem;
        flex-direction: column;
    }

    .img {
        min-width: 100%;
        max-width: 100%;
        /* transform: translate(0, -8rem); */
    }
    ul {
        max-width: 70%;
        min-width: 40%;
    }
    .menu3 {
        max-width: 100%;
        min-width: 80%;
        width: 100%;
    }
}

@media screen and (max-width: 300px){
    .carta{
        max-width: 90%;
        padding: 2rem;
        flex-direction: column;
    }
    .img{
        min-width: 100%;
        max-width: 100%;
        transform: translate(0, -8rem);
    }

    .barraTextPorcentaje {
        max-width: 100%;
        min-width: 100%;
    }

    .menu3 {
        max-width: 80%;
        min-width: 50%;
        width: 50%;
    }

    ul {
        width: 80%;
        max-width: 45%;
        min-width: 30%;
    }
} 

