@import url('https://fonts.googleapis.com/css?family=Nunito:300,400,700+Josefin+Sans:700');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #0097e6;
    --primary-text: #2f3640;
    --white-text: #f5f6fa;
    --secondary: #c23616;
    --preload: #dcdde1;
    --light-text: #aaa;
    --slider-duration: 30s;
    --content-min-height: 100vh;
}
::-webkit-scrollbar {
    background: var(--preload);
    width: 7px;
}
::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: var(--primary-text);
}
a {
    text-decoration: none;
    color: var(--primary-text);    
}
body {
    color: var(--primary-text);
    font-family: 'Nunito', sans-serif;
}
header {
    position: absolute;
    overflow: hidden;
    box-shadow: 0px 3px 15px #000000d1;
    width: 100%;
    display: flex;
    padding: 0 30px;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    top: 0;
    z-index: 20;
}
.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--white-text);
    font-size: 20px;
}
.logo img {
    margin-right: 15px;
    align-self: center;
    width: 60px;
}
footer ul > li > a {
    color: var(--white-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: .4s;
}
footer ul > li > a:hover {
    color: var(--primary);
}
footer .menu {
    width: 100%;
    display: flex;
    background: var(--primary-text);
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
}
footer ul > li {
    display: inline-block;
    padding: 0 20px;
    border-left: 1px solid var(--white-text);
}
footer ul > li:nth-child(1){
    padding-left: 0;
    border-left: 0;
}
ul li {
    list-style: none;
}
nav ul{
    display: flex;
}
nav>ul>li {
    list-style: none;
    margin: 0 30px;
}
nav>ul>li>a {
    color: var(--white-text);
    transition: .4s;
    height: 80px;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-direction: column;
}
nav>ul>li>a:hover {
    color: var(--secondary);
}
nav>ul>li>a.active {
    color: var(--secondary);
    font-weight: 600;
    /* border-bottom-left-radius: 50px; */
    /* border-bottom-right-radius: 50px; */
}
nav>ul>li>a>.icon {
    font-size: 35px;
    margin-bottom: 10px;
}
footer {
    background: #34495e;
    color: var(--white-text);
    width: 100%;
    z-index: 40;
}
footer .info-dev {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
footer .contact {
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}
footer .social {
    display: flex;
    padding-bottom: 20px;
}
footer .contact a {
    color: #999;
    margin: 10px;
    display: flex;
    height: 30px;
    justify-content: center;
    width: 30px;
    align-items: center;
    flex-direction: row;
    font-size: 20px;
    transition: .5s;
}
footer .contact a:hover {
    color: #fff;
    transform: scale(1.2);
}
.home {
    width: 100%;
    height: var(--content-min-height);
    position: relative;
    display: flex;
    align-items: center;
}
.slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}
.slider .content {
    animation-name: slider;
    animation-duration: var(--slider-duration);
    animation-iteration-count: infinite;
    position: relative;
    width: 100%;
    height: 100%;
}
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
}
.slide-item.s1 .info {
    animation-name: text1;
    animation-duration: var(--slider-duration);
    animation-iteration-count: infinite;
}
.slide-item.s2 .info {
    animation-name: text2;
    animation-duration: var(--slider-duration);
    animation-iteration-count: infinite;
}
.slide-item.s3 .info {
    animation-name: text3;
    animation-duration: var(--slider-duration);
    animation-iteration-count: infinite;
}
.slide-item.s2 {
    left: 100%;
}
.slide-item.s3 {
    left: 200%;
}
.home img {
    left: 0;
    width: 100%;
    z-index: -10;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
}
.slide-item>.info {
    opacity: 0;
    width: 450px;
    color: var(--white-text);
}
.slide-item>.info h2 {
    color: var(--secondary);
    text-shadow: 2px 2px 1px #000000d3; 
    font-size: 30px;
}
.slide-item>.info>p {
    margin-top: 10px;
    margin-bottom: 25px;
}
.btn {
    box-shadow: 2px 2px 4px #000000b0;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: .3s;
    cursor: pointer;
    letter-spacing: 1px;
    font-weight: 700;
    background: var(--secondary);
    color: var(--white-text);
    border-radius: 2px;
}
.btn:hover {
    box-shadow: 2px 2px 9px #000000d2;
}
section.main-movies {
    display: grid;
    width: 1200px;
    margin: 60px auto;
    max-width: 100%;
    grid-gap: 10px;
    align-items: center;
    grid-template-columns: 1fr 1fr;
}
section.main-movies > a > div {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 350px;
}
section.main-movies h1 {
    padding-bottom: 20px;
    grid-column-start: 1;
    grid-column-end: 3;
}
section.main-movies > a .info {
    position: absolute;
    color: #fff;
    width: 100%;
    background: #000000ad;
    bottom: 0;
    transition: .5s;
    padding: 20px;
}
section.main-movies > a:hover img {
    transform: scale(1.1);
}
section.main-movies img {
    width: 100%;
    transition: .4s;
    object-fit: cover;
    height: 100%;
}
/*::::::::::::::::::. SECTION STYLES :::::::::::::::::::::*/
section.overlay {
    position: relative;
    width: 100%;
    height: 100vh;
}
section.overlay img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
section.overlay h1 {
    font-family: 'Josefin Sans', sans-serif;
    position: absolute;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.76);
    color: #fff;
    font-size: 60px;
    text-transform: uppercase;
}
/* :::: MOVIE SECTION :::: */
.movie-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px;
    background: var(--white-text);
    text-align: center;
}
.trailer {
    background: var(--preload);
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px; height: 0; overflow: hidden;
}

.trailer iframe,
.trailer object,
.trailer embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.thumbs{
    width: 100%;
    display: grid;
    height: 100%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2,1fr);
    grid-gap: 0;
}
.thumbs .content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--preload);
}
.thumbs img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: 1s;
    object-fit: cover;
}
.thumbs img:nth-child(2) {
    opacity: 0;
}
.thumbs .content:hover img:nth-child(2) {
    opacity: 1;
}
.thumbs .description {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.76);
    color: var(--white-text);
    width: 100%;
    padding: 15px 10px;
    opacity: 0;
    transform: translateY(70px);
    transition-delay: .8s;
    transition-duration: .4s;
}
.thumbs .content:hover .description {
    transform: translateY(0);
    opacity: 1;
}
.thumbs img.biger {
    transition: .4s;
}
.thumbs img.biger:hover {
    transform: scale(1.2);
}
.thumbs .description h2 {
    letter-spacing: 0px;
    font-weight: 300;
    font-size: 19px;
    padding: 0;
    padding-bottom: 10px;
    text-align: left;
}
section.actors {
    background: var(--white-text);
    width: 100%;
    display: grid;
    align-items: center;
    min-height: 600px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}
section.actors .thumbs {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
}
section.actors h2 {
    text-transform: uppercase;
    font-size: 50px;
    letter-spacing: 5px;
    font-family: 'Josefin Sans', sans-serif;
    text-align: center;
    padding: 18px 0;
}
section.movie-description a {
    color: var(--secondary);
    font-weight: 600;
}
section.movie-description .directors {
    display: flex;
    align-items: center;
    margin-left: 10px;
}
section.movie-description .directors img {
    width: 71px;
    margin-right: 15px;
    height: 71px;
    object-fit: cover;
    border-radius: 50%;
}
section.movie-description .date {
    font-size: 14px;
    color: var(--light-text);
    display: block;
    margin-top: 20px;
}
section.movie-description .info {
    display: flex;
    justify-content: center;
    width: 450px;
    padding: 20px 0;
    max-width: 90%;
}
section.movie-description .text {
    font-style: italic;
    width: 850px;
    max-width: 90%;
}
section.trailer-thumbs {
    padding: 80px 40px;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr;
}
/* :::: SEARCH STYLES ::::: */

main.search {
    background-image: url('../assets/img/covers/search.jpg');
    background-size: cover;
    background-attachment: fixed;
    min-height: var(--content-min-height);
}
main.search > .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--content-min-height);
    background: rgba(20, 4, 4, 0.61)
}
main.search > .container .text-field {
    position: relative;
    width: 90%;
    height: 50px;
    max-width: 450px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(201, 181, 181, 0.774);
    display: flex;
    align-items: center;
}
main.search > .container input {
    background: transparent;
    position: absolute;
    height: 100%;
    padding: 10px;
    width: 90%;
    color: var(--primary-text);
    font-size: 1.2em;
    border: 0;
    outline: none;
}
main.search > .container .placeholder {
    width: 90%;
    display: none;
    font-weight: 700;
    text-align: center;
}
main.search > .container .placeholder.active {
    display: block;
}
main.search > .container .search-icon {
    width: 10%;
    height: 100%;
    position: absolute;
    right: 0;
    background: var(--primary);
    color: var(--white-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}
main.search .movies {
    padding: 20px 10%;
    background: var(--white-text);
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    width: 100%;
    grid-gap: 15px;
}
main.search .movies .results {
    padding: 20px 0;
    grid-column-end: 4;
    grid-column-start: 1;
}
main.search .movies .movie{
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin: 1%;
    border-radius: 3px;
}
main.search .movies .movie img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
main.search .movies .movie:hover .mask{
    background: rgba(0,0,0,.6);
    transform: translateY(0);
}
main.search .movies .movie:hover .mask p {
    opacity: 1;
}
main.search .movies .movie img {
    background: var(--preload);
}
main.search .movies .movie .mask {
    background: transparent;
    position: absolute;
    width: 100%;
    display: flex;
    background: rgba(0,0,0,0);
    align-items: center;
    height: 130%;
    bottom: 0;
    transform: translateY(100px);
    transition-property: background, transform;
    transition-delay: 0s, .2s;
    transition-duration: .4s, .5s;
}
main.search .movies .movie .mask p {
    padding: 0 25px;
    margin-top: 60px;
    color: #fff;
    opacity: 0;
    transition: 1s .2s;
    text-align: justify;
    height: 136px;
    overflow: hidden;
}
main.search .movies .movie .mask .actions {
    background: white;
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    padding: 10px 12px;
}
main.search .movies .movie .mask .actions a {
    padding: 3px 10px;
    background: var(--primary);
    letter-spacing: 0;
}

/* :::: UTILS ::: */

.go-up {
    position: fixed;
    width: 55px;
    align-items: center;
    justify-content: center;
    display: flex;
    height: 55px;
    font-size: 20px;
    cursor: pointer;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    transition: .3s;
    border-radius: 50%;
    transform: scale(0);
}
.go-up:hover {
    background: rgb(6, 197, 255);
}
@keyframes text2 {
    0% { transform: translateY(60px); opacity: 0; }
    24% { transform: translateY(60px); opacity: 0; }
    27% { transform: translateY(0); opacity: 1; }
    43% { transform: translateY(0); opacity: 1; }
    46% { transform: translateY(60px); opacity: 0; }
    74% { transform: translateY(60px); opacity: 0; }
    77% { transform: translateY(0); opacity: 1; }
    93% { transform: translateY(0); opacity: 1; }
    96% { transform: translateY(60px); opacity: 0; }
    100% { transform: translateY(60px); opacity: 0; }
}
@keyframes text1 {
    0% { transform: translateY(60px); opacity: 0; }
    3% { transform: translateY(0); opacity: 1; }
    18% { transform: translateY(0); opacity: 1; }
    21% { transform: translateY(60px); opacity: 0; }
    100% { transform: translateY(60px); opacity: 0; }
}
@keyframes text3 {
    0% { transform: translateY(60px); opacity: 0; }
    49% { transform: translateY(60px); opacity: 0; }
    52% { transform: translateY(0); opacity: 1; }
    68% { transform: translateY(0); opacity: 1; }
    71% { transform: translateY(60px); opacity: 0; }
    100% { transform: translateY(60px); opacity: 0; }
}
@keyframes slider {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    45% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    70% { transform: translateX(-200%); }
    75% { transform: translateX(-100%); }
    95% { transform: translateX(-100%);         }
    100% { transform: translateX(0); }
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.774);
    z-index: 30;
    display: none;
    opacity: 0;
    transition: .4s;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.modal > .close {
    color: #fff;
    font-size: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
}
.modal > .close:hover {
    border: 3px solid var(--secondary);
    color: var(--secondary);
}
.modal > .content {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    justify-content: center;
}
.modal > .content img.principal {
    top: 0;
    left: 0;
    align-self: center;
    transform: scale(.3);
    opacity: 0;
    transition: 1s;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}
.modal > .others {
    display: flex;
    margin-top: 10px;
    justify-content: center;
}
.modal > .others > div {
    width: 70px;
    height: 70px;
    cursor: pointer;
    margin: 5px;
    opacity: 0;
    transform: translateY(-40px);
    transition: .5s;
    border: 2px solid var(--preload);
}
.modal > .others > div:hover {
    border: 2px solid var(--primary);
}
.modal > .others > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-modal {
    cursor: pointer;
}
.modal.actors {
    overflow-y: scroll;
    background: rgba(0, 4, 12, 1);
    /* display: flex; */
    cursor: pointer;
    transition: .4s;
    justify-content: flex-end;
}
.modal.actors:hover {
    background: rgba(0, 4, 12, 0.9);    
}
.modal.actors > .content {
    border-radius: 1px;
    position: relative;
    display: block;
    background: var(--white-text);
    min-height: 480px;
}
.modal.actors > .content img {
    width: 230px;
    height: 340px;
    object-fit: cover;
    left: 50px;
    border-radius: 2px;
    top: -130px;
    position: absolute;
}
.modal.actors > .content > .description {
    position: relative;
    width: 65%;
    margin-left: 35%;
    padding: 30px;
}
.modal.actors > .content h2 {
    display: flex;
    align-items: center;
}
.modal.actors > .content .nacionality {
    position: static;
    margin-left: 10px;
    width: 40px;
    height: auto;
}
.modal.actors .biography {
    padding: 30px 50px;
}
.modal.actors .biography p {
    margin-top: 20px;
    text-align: justify
}
.social-media {
    transition: .6s;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: -50px;
    top: calc(50% - 90px);
}
.social-media a {
    align-self: flex-start;
    color:  #fff;
    cursor: pointer;
    min-width: 44px;
    padding: 10px 13px;
    background: #000;
    transition: .5s;
}
.social-media a:nth-child(1) {
    background: #2c3e50;
}
.social-media a:nth-child(2) {
    background: #0e3663;
}
.social-media a:nth-child(3) {
    background: #3498db;
}
.social-media a:nth-child(4) {
    background: #E14D4C;
}
.social-media a:hover {
    padding-left: 40px;
}
.modal.search-movie:hover {
    background-color: rgba(0, 4, 12, 0.85);
}
.modal.search-movie {
    cursor: pointer;
    transition: .5s;
    background-color: rgba(0, 4, 12, 1);
    justify-content: flex-end;
    opacity: 1;
}
.modal.search-movie .content {
    max-height: 100vh;
    background: #fff;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    overflow: hidden;
}
.modal.search-movie .content .cover {
    position: relative;
    width: 100%;
    height: 45vh;
}
.modal.search-movie .content .cover  img {
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.modal.search-movie .content .cover h1 {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 40px;
    text-transform: uppercase;
    right: 0;
    background: rgba(0, 4, 12, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.search-movie .content .description {
    padding: 25px;
}
.loader-parent {
    position: fixed;
    background: rgba(0, 4, 10, 0.9);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
}