*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
:root{
    -md-dark-color:#1d1d1d;
    --dark-color: #171717;
    
}
a{
    text-decoration: none;
}
img{
    width: 100%;
    display: block;


}
.wrapper{
    min-height: 100vh;
    background-color: rgb(36, 35, 35)
}
.wrapper .container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;

}
.search-container{
    background-color: rgb(50, 49, 49);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo{
    padding: 1rem 0;
    border-bottom: 1px solid rgb(73, 71, 71);
}
.logo p{
    font-size: 2rem;
    color: white;
    font-weight: bold;
}
.logo p span{
    color: rgb(243, 243, 9);
}
.search-element{
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    position: relative;

}
.search-element h3{
    align-self: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.search-element .form-control{
    padding: 1rem 2rem;
    font-size: 1.3rem;
    border: none;
   border-top-left-radius: 3px;
   border-bottom-left-radius: 3px;
   outline: none;
   color: rgb(135, 22, 22);
   width: 350px;

}
.search-list{
    position: absolute;
    right: 0;
    top: 100%;
    max-height: 500px;
    overflow-y: scroll;
    z-index: 10;
}
.search-list .search-list-item{
    background-color: rgb(71, 69, 69);
    padding: 0.5rem;
    border-bottom: 1px solid rgb(18, 18, 18);
    width: calc(350px - 8px);
    color: white;
    cursor: pointer;
    transition: background-color 200ms ease;

    
}
.search-list .search-list-item:hover{
    background-color: rgb(49, 47, 47);;
}
.search-list-item{
    display: flex;
    align-items: center;
}
.search-item-thumbnail img{
    width: 40px;
    margin-right: 1rem;
    object-fit: cover;

}
.search-item-info h3{
    font-weight: 600;
    font-size: 1rem;
}
.search-item-info p{
    font-size: 0.7rem;
    margin-top: 0.5rem;
    font-weight: 600;
    opacity: 0.6;
}
.search-list::-webkit-scrollbar{
    width: 8px;

}
.search-list::-webkit-scrollbar-track{
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
.search-list::-webkit-scrollbar-thumb{
background-color: yellow;
outline: none;
border-radius: 10px;
}
.hide-search-list{
    display: none;
}
.result-container{
    padding:3rem 0;

}
.movie-poster img{

    max-width:300px; 
    margin: 0 auto;
    border: 4px solid white;
}
.movie-info{
    text-align: center;
    color: white;
    padding-top: 3rem;

}
.movie-title{
    font-size: 2rem;
    color: yellow;
    
}
.movie-misc-info{
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;


}
.movie-info .year{
    font-weight: 500;

}
.movie-info .rated{
    background-color: yellow;
    color: black;
    padding: 0.4rem;
    margin: 0 0.4rem;
    border-radius: 10px;
    font-weight: bold;

}
.movie-info .released{
    font-size: 0.9rem;
    opacity: 0.9;


}
.movie-info .writer{
    padding: 0.5rem;
    margin: 1rem 0;

}
.movie-info .genre{
    background-color: rgb(50, 49, 49);
    display: inline-block;
    padding: 0.5rem;
    border-radius: 10px;
}
.movie-info .plot{
    max-width:400px;
    margin: 1rem auto;

}
.movie-info .language{
    color: yellow;
    /* padding: 0.5rem;
    margin: 0.5rem auto; */
    font-style: italic;
}
.movie-info .awards{
    font-weight: bold;
    font-size: 0.9rem;

}
.movie-info .awards i{
    color: yellow;
    margin:1rem 0.4rem 0 0;
}
@media(max-width:450px) {
    .logo p{
        font-size: 1.4rem;

    }
    .search-element .form-contro{
        width: 90%;
        margin: 0 auto;
        padding: 0.5rem 1em;


    }
    .search-element h3{
        font-size: 1.4rem;

    }
    .search-list{
      width: 90%;

      right: 50%;
      transform: translateX(50%);
    }
    .search-list .search-list-item{
        width: 100%;

    }

.movie-misc-info{
    flex-direction: column;
}
.movie-misc-info li:nth-child(2){
    margin: 0.8rem 0;
}
}
@media(min-width:800px){
   .search-element{
       flex-direction: row;
   }
   .search-element h3{
       margin-bottom: 0;
   } 
   .result-grid{
       display: grid;
       grid-template-columns: repeat(2,1fr);
       
   }
   .movie-info{
       text-align: left;
       padding-top: 0;
   }
   .movie-info .movie-misc-info{
       justify-content: flex-start;
       padding-left: 0;
   }
   .movie-info .plot{
       margin-left: 0;
   }
   .movie-info .writer{
       padding-left: 0;
       margin-left: 0;
       
   }


}