* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  scroll-behavior: smooth;
}

.navbar {
  background: #212529;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 69;
  border-bottom: 1px solid #4caf50;
}

.navbar-container {
  display: flex;
  height: 100px;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  width: 100%;
  padding: 0 50px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 60px;
  width: auto;
  border-radius: 9px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  list-style: none;
}

.text-input {
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.text-input-wrapper {
  display: flex;
}
.text-input {
  margin-right: 9px;
  padding: 9px;
  border: none;
  border-radius: 9px;
}
.search-button {
  border: none;
  background: #4caf50;
  border-radius: 9px;
  padding: 9px;
  color: #fff;
}
@media screen and (max-width: 768px) {
  .navbar-container {
    display: flex;
    justify-content: space-between;
    z-index: 1;
    width: 100%;
    padding: 0;
  }

  .navbar-menu {
    display: grid;
    grid-template-columns: auto;
    margin: 0;
    width: 100%;
    position: absolute;
    top: -1000px;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: -1;
  }

  .navbar-menu.active {
    background: #161616;
    top: 100%;
    opacity: 1;
    transition: all 0.5 ease;
    z-index: 99;
    height: 10vh;
    font-size: 1.6rem;
  }
  .text-input-wrapper {
    display: flex;
    justify-content: center;
  }
  .text-input {
    margin-right: 9px;
    padding: 9px;
    color: black;
  }

  .logo {
    padding-left: 25px;
  }
  .navbar-toggle .bar {
    width: 30px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: #fff;
  }

  #mobile-menu {
    position: absolute;
    top: 20%;
    right: 5%;
    transform: translate(5%, 20%);
  }
  .navbar-toggle .bar {
    display: block;
    cursor: pointer;
  }
  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* SECTION  */
.main-section {
  background: #212529;
  min-height: 100vh;
}
.loading {
  width: 2rem;
  height: 2rem;
  border: 5px solid #4caf50;
  border-top: 6px solid #337735;
  border-radius: 100%;
  margin: auto;
  visibility: hidden;
  animation: spin 1s infinite linear;
  position: absolute;
  top: 50%;
  right: 50%;
}
.loading.display {
  visibility: visible;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.movie-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .movie-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .movie-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 425px) {
  .movie-card-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin: 50px auto;
  border-radius: 9px;
  background-color: #161616;
  color: #fff;
  width: 250px;
}

.description {
  width: 250px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 9px 9px 0 0;
  position: absolute;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease-in-out;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
  padding: 3px;
}

.card:hover .description {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  box-shadow: 0 1px 20px 2px rgb(76, 175, 80, 0.5);
  transition: all 0.3s ease-in-out;
}

.card img {
  width: 250px;
  height: 375px;
  border-radius: 9px 9px 0 0;
  border-bottom: 1px solid #4caf50;
}

.movie-info {
  width: 100%;
  text-align: left;
  padding: 9px;
}

.movie-info h3 {
  width: 250px;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.movie-info p {
  font-size: 16px;
}

.rating {
  font-weight: bold;
  border-radius: 10px;
  padding: 9px 18px 9px 18px;
}
.rating-button-wrapper {
  align-items: center;
  padding-top: 9px;
  display: flex;
  justify-content: space-between;
}
.get-more-info-button {
  color: #fff;
  border: none;
  background: #4caf50;
  padding: 9px;
  border-radius: 9px;
}
.get-more-info-button:hover {
  background: #337735;
}

.footer {
  padding: 19px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #212529;
}
.footer a {
  text-decoration: none;
  color: #fff;
}
/* 404 PAGE  */
html,
body {
  height: 100%;
  margin: 0;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  color: #4caf50;
}

a {
  text-decoration: none;
}

.wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #212529;
}

.error {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
}

.number {
  font-weight: 900;
  font-size: 15rem;
  line-height: 1;
}

.illustration {
  position: relative;
  width: 12.2rem;
  margin: 0 2.1rem;
}

:where(.circle, .clip, .paper, .eyes, .eye, .cheeks, .mouth) {
  position: absolute;
}

.circle {
  bottom: 0;
  left: 0;
  width: 12.2rem;
  height: 11.4rem;
  border-radius: 50%;
  background-color: #4caf50;
}

.clip {
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  width: 12.5rem;
  height: 13rem;
  border-radius: 0 0 50% 50%;
}

.paper {
  bottom: -0.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 9.2rem;
  height: 12.4rem;
  border: 0.3rem solid #293b49;
  background-color: white;
  border-radius: 0.8rem;
}

.paper::before {
  content: '';
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  width: 1.4rem;
  height: 1rem;
  background-color: white;
  border-bottom: 0.3rem solid #293b49;
  transform: rotate(45deg);
}

.face {
  position: relative;
  margin-top: 2.3rem;
}

.eyes {
  top: 0;
  left: 2.4rem;
  width: 4.6rem;
  height: 0.8rem;
}

.eye {
  bottom: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: #4caf50;
  animation-name: eye;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.eye__left {
  left: 0;
}

.eye__right {
  right: 0;
}

@keyframes eye {
  0% {
    height: 0.8rem;
  }

  50% {
    height: 0.8rem;
  }

  52% {
    height: 0.1rem;
  }

  54% {
    height: 0.8rem;
  }

  100% {
    height: 0.8rem;
  }
}

.cheeks {
  top: 1.6rem;
  width: 1rem;
  height: 0.2rem;
  border-radius: 50%;
  background-color: #fdabaf;
}

.cheeks__left {
  left: 1.4rem;
}

.cheeks__right {
  right: 1.4rem;
}

.mouth {
  top: 3.1rem;
  left: 50%;
  width: 1.6rem;
  height: 0.2rem;
  border-radius: 0.1rem;
  transform: translateX(-50%);
  background-color: #4caf50;
}

.text {
  margin-top: 5rem;
  font-weight: 300;
  color: #fff;
}

.back-button {
  margin-top: 4rem;
  padding: 1.2rem 3rem;
  color: white;
  background-color: #337735;
  border-radius: 9px;
}

.button:hover {
  background-color: #337735;
}

/* MOVIE SECTION  */
.button-weapper {
  display: flex;
  justify-content: center;
  padding: 5rem 0 2rem 0;
}

.movie-section {
  display: flex;
  justify-content: center;
}
@media (max-width: 768px) {
  .movie-section {
    flex-direction: column;
    align-items: center;
  }
}
.movie-image {
  width: 300px;
  height: auto;
}
.movie-image img {
  border-radius: 9px;
  width: 300px;
  height: auto;
}
.movie-text,
.movie-info h1 {
  margin-bottom: 19px;
}
.movie-text,
.movie-info ul {
  color: #fff;
  height: 405px;
  padding-left: 16px;
}
.movie-text,
.movie-info ul,
li {
  line-height: 3rem;
  margin-bottom: 9px;
  list-style: none;
  width: 300px;
}
