html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: black;
}

body {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 00, 0.3)),
    url(https://cdn.abcotvs.com/dip/images/6011023_031320-cc-ss-empty-theater-img.jpg) center/cover no-repeat;
  background-attachment: fixed;
}

#title {
  text-align: center;
  color: white;
  font-size: 40px;
  margin-left: 25px;
}

.now-playing {
  color: white;
  text-shadow: -3px 0 black, -3px 0 black, -3px 0 black, -3px 0 black;
  font-size: 36px;
  width: 100%;
  text-align: center;
  padding: 16px;
  position: relative;
  top: 30px;
}

#heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
}

.fa-search {
  font-size: 24px;
  color: white;
  margin-right: 25px;
}

.fa-search:hover,
.fa-search:active {
  color: #690f0f;
  cursor: pointer;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  z-index: 2;
}

/*-----------------
movie poster grid
-----------------*/
#movie-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  justify-content: center;
  gap: 40px;
}

.card {
  background: linear-gradient(to left bottom, rgba(198, 204, 206, 0.6), rgba(105, 108, 109, 0.3));
  width: 300px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 3ms ease-in-out;
}

.card:hover {
  transform: scale(1.1);
}

.poster {
  width: 90%;
  height: 100%px;
  margin: 10px;
  border: 3px solid white;
  border-radius: 10px;
  justify-self: center;
  align-self: center;
}

.info {
  width: 90%;
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  margin: 10px;
  margin-top: 0;
  background-color: transparent;
  color: white;
}

.movie-name {
  width: 75%;
}

.fa-star {
  color: goldenrod;
  font-size: 18px;
  margin: auto;
  margin-right: 8px;
}

@media screen and (max-width: 950px) {
  #ytplayer {
    height: 350px;
    width: 80%;
  }
  .desc-area {
    top: 100px;
  }
}

@media screen and (max-width: 870px) {
  .overview-desc {
    display: none;
  }
  #ytplayer {
    height: 500px;
    width: 85%;
  }
}

.button-wrapper {
  width: 100%;
  text-align: center;
}

#load-btn {
  text-align: center;
  background-color: #690f0f;
  color: white;
  border-radius: 10px;
  width: 150px;
  height: 35px;
  margin: 16px;
  font-size: 20px;
  font-weight: bold;
}

.hidden {
  display: none !important;
}

form {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: 25px;
}

#search-container {
  width: 300px;
  display: flex;
  justify-content: space-between;
}

#search-bar {
  width: 75%;
  height: 30px;
  border-radius: 8px;
}

#search-btn {
  width: 20%;
  height: 100%;
  text-align: center;
  background-color: #690f0f;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
}

/*--------------
modal
--------------*/

.modal {
  position: fixed;
  z-index: 1;
  left: 10%;
  top: 10%;
  bottom: 10%;
  right: 10%;
  width: 80%;
  height: 60%;
  overflow: hidden;
  background: linear-gradient(to left bottom, rgba(110, 117, 119, 1), rgba(105, 108, 109, 0.5));
  backdrop-filter: blur(5px);
  border-radius: 20px;
}
.close {
  color: #c5c2c2;
  float: right;
  position: relative;
  top: 20px;
  margin-right: 25px;
  font-size: 40px;
  font-weight: bold;
}

.close:hover {
  color: #690f0f;
  text-decoration: none;
  cursor: pointer;
}

#top-page,
#top-page:active,
#top-page:visited,
#top-page:focus,
#top-page:hover {
  text-decoration: none !important;
}

.movie-info {
  position: relative;
  top: 80px;
  text-align: center;
}

.desc-area {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: -25px;
}

.overview-desc {
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 20px;
  text-align: center;
  padding: 25px;
}
