@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&family=Poppins:wght@300;400&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  font-family: "Poppins", sans-serif;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #474747;
  border-radius: 10px;
}

body {
  background: #111;
}
main {
  width: 100%;
  z-index: 1;
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main::before {
  content: "";
  position: fixed;
  background: url("https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/best-movies-1614634680.jpg");
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  z-index: -1;
  opacity: 0.14;
}

main > nav {
  display: flex;
  width: 90%;
  padding: 16px;
  justify-content: space-between;
  align-items: center;
}

main > nav > div {
  display: flex;
}

main > nav > a {
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  text-decoration: none;
}
main > nav > a > span {
  color: #0b4cce;
}
main > nav > div > a {
  text-decoration: none;
  color: #fff;
  margin: 0px 20px;
}

main > div > h1 {
  font-size: 50px;
  font-weight: 600;
}

main > div > .movie_list {
  height: 0;
  width: 70%;
  margin: 2px auto;
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  overflow-y: auto;
  color: #111;
  transition: height 0.5s ease;
}

main > div > .movie_list::-webkit-scrollbar {
  width: 8px;
}

main > div > .movie_list::-webkit-scrollbar-track {
  background: transparent;
}

main > div > .movie_list::-webkit-scrollbar-thumb {
  background: #0b4cce;
  border-radius: 10px;
}

main > div > .movie_list > div > img {
  width: 40px;
}

main > div > .movie_list > div {
  border-bottom: 1px solid #bbb;
  display: flex;
  padding: 4px;
  align-items: flex-end;
  cursor: pointer;
  height: 68px;
  transition: color 0.2s ease, background-color 0.4s ease, padding 0.6s ease;
}

main > div > .movie_list > div > p {
  padding-left: 6px;
  font-size: 16px;
}

main > div > .movie_list > div:hover {
  background-color: #0b4cce;
  color: #fff;
  padding-left: 14px;
}
main > div > p {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 20px;
}

main > div > h1 > span {
  color: #0b4cce;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}

main > div {
  width: 60%;
  text-align: center;
  margin: 60px;
}

main > div > input[type="text"] {
  width: 70%;
  height: 36px;
  background: transparent;
  border: none;
  border-bottom: 2px solid #fff;
  outline: none;
  color: #fff;
  font-size: 16px;
}

main > .container {
  backdrop-filter: blur(10px);
  width: 60%;
  display: grid;
  place-items: center;
  margin: 20px auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  transform: scale(0);
  border: 2px solid rgb(63, 63, 63);
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: background-color 0.5s ease, transform 0.5s ease;
}

.container:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

main > .container:hover > div > div > h3 {
  color: #0b4cce;
}

main > .container > div {
  width: 70%;
  text-align: left;
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: transform 0.5s ease;
}

main > .container > div > img {
  width: 400px;
  height: 500px;
  margin-right: 20px;
}

main > .container > div > div > h3 {
  font-size: 30px;
  transition: color 1s 0.4s ease;
}

main > .container > div > div > h5 {
  padding: 2px 0px;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 400;
}
main > .container > div > div > h5 > span {
  font-weight: 600;
  font-size: 16px;
  padding-right: 4px;
}
main > .container > div > div > h5 + h3 {
  position: absolute;
  padding: 4px 8px;
  right: 10px;
  text-transform: uppercase;
  top: 10px;
  font-size: 14px;
  border: 2px solid #fff;
  color: #fff;
  background-color: #bb0e36;
  letter-spacing: 1px;
}
main > .container > div > div > .rating::after {
  content: "★";
  color: yellow;
  padding-left: 4px;
  font-size: 16px;
}

@media all and (min-width: 50px) and (max-width: 750px) {
  main {
    justify-content: space-between;
  }
  main > div > h1 {
    font-size: 40px;
    font-weight: 400;
  }

  main > div > p {
    margin-top: 10px;
    font-size: 14px;
  }
  main > div {
    width: 90%;
  }

  main > .container {
    width: 90%;
  }

  main > .container > div {
    width: 100%;
    flex-direction: column;
  }
  main > .container > div > img {
    width: 100%;
    margin: 0;
  }

  main > div > input[type="text"] {
    width: 100%;
    font-size: 20px;
  }
  main > div > .movie_list {
    width: 100%;
  }
}