@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@800&family=Teko:wght@800&display=swap');:root{
    --primary-color: #22254b;
    --secondary-color:#373b69;
}
body{
    background-color: var(--primary-color);
    margin: 0;
    font-family: 'Nunito', sans-serif;
}
header{
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    background-color: var(--secondary-color);
}

.search{
    background-color: transparent;
    border: 2px solid white;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    color: white;
    margin-top: 50px;
    margin-right: 80px;
}
.search::placeholder{
    color: #7378c5;
    font-family: inherit;
}
.search:focus{
    outline: none;
    background-color: var(--primary-color);
}

main{
    display: flex;
    flex-wrap: wrap;

}
.movie{
    margin: 1rem;
    background-color: var(--secondary-color);
    width: 300px;
    box-shadow: 0 4px 5px rgba(0,0,0,0.2);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    margin-left: 150px;

}
.movie  img{
    width: 100%;
}

#movie-info{
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 1rem;
    letter-spacing:  0.5px;
}
#movie-info h3{
    margin-top: 0;
}
#movie-info span{
background-color: var(--primary-color);
padding: .25rem .5rem;
border-radius: 3px;
font-weight: bold;
}

#movie-info span.green{
    color: lime;
}

#movie-info span.orange{
    color: orange;
}
#movie-info span.red{
    color: red;
}

.overview{
    background-color: rgb(255, 242, 235);
    padding: 2rem;
    position: absolute;
    left: 0;
    right:0;
    bottom: 0;
    max-height: 100%;
    transform: translateY(101%);
    transition: transform 0.3s ease-in-out;
}

.movie:hover .overview{
    transform: translateY(0);
}

#title{
    padding-right: 45%;
    letter-spacing: 5px;
    color: #66FCF1;
    font-size: 50px;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 0px;
    text-decoration: underline;
    cursor: pointer;
}

#next{
    background-color: transparent;
    color: white;
    margin-left: 50%;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 30px;
    
}
#next:hover{
    cursor: pointer;
    background-color: var(--secondary-color);
}

#sort-by{
    margin-top: 55px;
    color: whitesmoke;
    
}