:root{
    --color-fondo: #0f0e0e;
    --color-resaltante : #fd5; 
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body{
    background: var(--color-fondo);
}
header{
    height: 80px;
    display: flex;
    justify-content: center;
}
header nav {
    height: 100%;
    width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.formulario{
    position: relative;
    width: 80%;
    height: 50px;
    display: flex;
}
.formulario .inputNameMovie{
    flex-grow: 1;
}



.formulario span{
    max-height: 420px;
    overflow: auto;
    display: none;
    position: absolute;
    color: #fff;
    width: 100%;
    background: #555;
    top: 50px;
}
.formulario span::-webkit-scrollbar{
    width: 5px;
}
.formulario span::-webkit-scrollbar-thumb{
    background: var(--color-resaltante);
    border-radius: 10px;
}
.formulario span .container-search-movie{
    display: flex;
    height: 70px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-fondo);
    transition: background .5s;
}
.formulario span .container-search-movie:hover{
    background: var(--color-fondo);
}

.container-search-movie .container-poster-search-movie{
    width: 50px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container-poster-search-movie .poster-search{
    width: 40px;
    height: 60px;
}

.container-search-movie .info-search-movie{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.info-search-movie .title-search-movie{
    align-self: center;
    margin-top: 5px;
    font-size: 1em;
}
.info-search-movie .year-search-movie{
    margin: 0 0 5px 10px;
}


.formulario .inputNameMovie{
    outline: none;
    border: none;
    font-size: 1.3em;
}



.main{
    height: calc(100vh - 80px);
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main .section{
    display: none;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    height: 500px;
    width: 100%;
    gap: 50px;
}
.main .section .container-poster{
    object-fit: cover;
    width: 300px;
    height: 80%;  
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #fff;
}
.main .section .container-poster .poster-movie{
    width: 100%;
    height: 100%;
}



.main .section .container-data{  
    height: 80%;  
    max-width: 40%;
    min-width: 300px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: .9em;
}
.tinte-letras{
    color: var(--color-resaltante);
}
.main .section .container-data h1{
    align-self: center;
    color: var(--color-resaltante);
}


@media screen and (max-width: 720px) {
    .main .section .container-poster{
        width: 250px;
    }
    .main .section .container-poster .poster-movie{
        width: 100%;
        height: 100%;
    }
    .main .section .container-data{  
        font-size: .8em;
    }
}
@media screen and (max-width: 640px) {
    .main{
        align-items: flex-start;
    }
    .main .section{
        height: auto;
    }
    .main .section .container-poster{
        width: 50%;
    }
    .main .section .container-data{  
        min-width: 80%;
        height: 300px;
        margin-bottom: 50px;
    }
}