* {
  box-sizing: border-box;
}
body {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--black-color);
}
body.light-mode {
  background-color: var(--white-color);
}
:root {
  --black-color: black;
  --black-color-dark:black;
  --white-color: #fff;
  --white-color-dark: #fff;
  --grey-light: #8c8c8c;
  --yellow-color: #ffc107;
  --yellow-dark: #ff9800;
  --white-dark: #888;
}
/* Start Aside */
.aside {
  position: fixed;
  z-index: 10000;
}
.aside .aside-links {
  width: 155px;
  left: -155px;
  background-color: var(--black-color-dark);
  z-index: 9999999;
  transition: all 1s;
}
nav a {
  padding: 15px 0;
  font-size: 18px;
  transition: 1s;
  color:var(--white-color-dark);
}
nav a.active,
nav a:hover {
  color: var(--yellow-color) !important;
}
.aside .social i {
  transition: all 0.5s;
}
.aside .social i:hover {
  color: var(--yellow-color) !important;
}
.second-aside {
  background-color:var(--white-color-dark);
  width: 55px;
  z-index: 999999999;
  left: 0px;
  top: 0px;
  transition: all 1s;
}
.second-aside .logo {
  cursor: pointer;
  width: 30px;
  padding: 20px 0;
}
.second-aside .logo img {
  height: 50px;
}
.second-aside .open-close span {
  font-size: 35px;
  cursor: pointer;
  color:var(--black-color-dark);
}
.second-aside .social li {
  padding: 5px 0;
}
.second-aside .social i {
  cursor: pointer;
  font-size: 18px;
  transition: all 0.5s;
  color:var(--black-color-dark);
}
.second-aside .social i:hover {
  color: var(--yellow-color);
}
@media(max-width:575px){
  .aside{
    display: none;
  }
}
/* End Aside */

/* Start Home */
h1{
  color:var(--yellow-color) !important;
}
@media (max-width:405px){
  h1{
    font-size: 24px !important;
  }
}
.login{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 20px 20px 0 20px;
  position: relative;
}
.mode i {
  font-size: 20px;
  color:var(--yellow-color);
  cursor: pointer;
  transition: all 0.5s;
}
.bars{
  border:1px solid var(--white-color-dark);
  padding: 5px;
  border-radius: 5px;
  display: none;
}
.login .bars i{
  color:var(--white-color-dark);
  font-size: 20px;
  cursor: pointer;
}
.nav-links {
  position: absolute;
  top: 100%;
  right:-20px;
  background:#333;
  width:calc(100% + 40px);
  padding: 15px;
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
  display: none;
  margin-top: 10px;
  z-index: 1000;
}
.nav-links li {
  list-style: none;
  margin: 10px 0;
}
.nav-links a {
  color: white;
  text-decoration: none;
}
.nav-links.show {
  max-height:500px;
  display:none;
}
@media(max-width:575px){
  .login .bars{
    display: flex;
  }
  .nav-links.show {
    display:block;
  }
}
@media (max-width:500px){
  .home .container{
    padding: 12px !important;
  }
}
.home .search input {
  width: 46%;
  color: var(--grey-light);
}
@media(max-width:490px){
  .home .search{
    flex-direction: column;
  }
  .home .search input{
    width: 100%;
    margin: 10px 0;
  }
}
::placeholder {
  text-align: center;
  color: var(--grey-light) !important;
}
.movie-info {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.6);
  text-align: center;
  color: var(--black-color);
  font-weight: 800;
  transition: all 1s;
}
.movie-items:hover{
  cursor: pointer;
  box-shadow: 0 4px 8px 0 rgba(255, 255, 255, 0.2), 0 6px 20px 0 rgba(255, 255, 255, 0.19);
  border: 3px solid var(--yellow-color);
}
.movie-items:hover .movie-info {
  top: 0;
}
.img-add{
  transition: 1s;
}
.movie-items:hover .img-add {
  transform: scale(1.1);
}
.rate{
    position: absolute;
    top: 15px;
    right:15px;
    padding: 5px 10px;
    border-radius:10px ;
    background-color: var(--grey-light);
    z-index: 100;
    color:var(--black-color);
}
@media(max-width:350px){
  .home .container{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
/* End Home */

/* Start Contact US */

 .contact-us input,
 .contact-us textarea{
  color: var(--white-color-dark) !important;
  background-color: transparent !important;
 }
.contact-us label{
  color: var(--white-color-dark) !important;
}
.contact-us label::after{
  display: none !important;
}
.contact-us .contact-head h2{
  color: var(--yellow-color);
}
@media (max-width:575px) {
  .contact-us .container{
    width: 100% !important;
  }
}
/* End Contact US */

.cast-image{
  transition: all 0.3s;
}
.cast-image:hover{
  padding:3px;
  border:2px solid var(--yellow-color);
}
.top{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color:var(--yellow-color);
  color: var(--white-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}
.top:hover{
  background-color: var(--yellow-dark);
}
.top:hover i{
  animation: icon-animation 0.5s infinite ease-in-out;
}
@keyframes icon-animation {
  0% {
    transform: translateY(0);
}
  50% {
    transform: translateY(-8px);
}
  100% {
    transform: translateY(0);
}
}
/* Movie Details Page */

#movieDetails img {
  border-radius: 15px;
  box-shadow: 0px 8px 20px rgba(255,255,255,0.2);
}
#movieDetails p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--white-dark);
}
#movieDetails .overview {
  font-size: 18px;
  line-height: 2;
  color: var(--white-color);
}
.watch-trailer{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color:#ffffff1a;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: var(--yellow-color);
  font-size: 25px;
  margin-left: 15px;
  transition: all 0.3s;
  cursor: pointer;
}

.watch-trailer:hover {
  color: var(--yellow-dark);
  transform: scale(1.2);
}
.add-to-watchlist{
  transition: all 0.3s;
}
.add-to-watchlist:hover{
  background-color:var(--yellow-dark);
  transform: scale(1.1);
}

@media(max-width:450px){
  .watch-list{
    flex-direction: column;
  }
  .add-to-watchlist{
    margin-bottom: 17px;
    width: 90%;
  }
}
@media(max-width:230px){
  .watch-trailer{
    margin-left: 0;
    margin-right:5px;
  }
}
h3 {
  font-size: 26px;
  font-weight: bold;
  color: var(--yellow-color);
  border-left: 5px solid var(--yellow-color);
  padding-left: 10px;
  margin-top: 40px;
}

#castContainer img{
  transition: padding 0.3s;
}
#castContainer img:hover{
  padding:3px;
  border:2px solid var(--yellow-color);
}

#trailerContainer{
  position: fixed;
  top:0;
  left:0;
  right: 0;
  bottom: 0;
  background-color:rgba(0,0,0,0.8);
  z-index: 1000;
}
.trailer-overlay{
  position: absolute;
  width: 80%;
  height: 80%;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  background-color:var(--yellow-dark);
  border-radius: 10px;
}
#trailerContainer i{
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: var(--white-color);
  cursor: pointer;
}
#trailerContainer .ratio  {
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  width: 86%;
  height:86%;
  border-radius: 15px;
  border: 2px solid rgba(255, 193, 7, 0.5);
}
#trailerContainer .ratio iframe {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}
@media(max-width:767px){
  .trailer-overlay{
    width: 90%;
    height:90%;
  }
}
.no-recommendations{
  color: var(--white-dark);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-top: 20px;
}

/* Add To WatchList  */
h2{
  color:var(--yellow-color)
}
h2 i{
  cursor: pointer;
}
