@charset "UTF-8";
/* Step -2: 11.1111px → 10.24px */
/* Step -1: 13.3333px → 12.8px */
/* Step 0: 16px → 16px */
/* Step 1: 19.2px → 20px */
/* Step 2: 23.04px → 25px */
/* Step 3: 27.648px → 31.25px */
/* Step 4: 33.1776px → 39.0625px */
/* Step 5: 39.8131px → 48.8281px */
*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

img {
  display: block;
  width: 100%;
}

li {
  list-style: none;
}

body {
  max-width: 100%;
  padding-top: 1rem;
  padding-bottom: calc(7vh + 1rem);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: rgb(34, 40, 49);
  font-size: clamp(1rem, 1rem + 0vw, 1rem);
  font-family: "Poppins", sans-serif;
  color: #222;
}
@media (min-width: 50rem) {
  body {
    padding-bottom: 1rem;
  }
}

main {
  width: 100%;
  max-width: 800px;
  margin-top: 1rem;
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-direction: column;
  flex-wrap: nowrap;
}

.genres {
  width: 100%;
  padding: 1rem;
}

.genres__list {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-direction: row;
  flex-wrap: wrap;
}
.genres__list li {
  min-width: 100px;
  height: 40px;
  padding: 0.5rem;
  border-radius: 8px;
  background-color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.genres__list li:hover {
  cursor: pointer;
  transform: scale(1.1);
}
.genres__list li:hover::before {
  background-color: rgba(255, 211, 105, 0.75);
}
.genres__list li::before {
  content: " ";
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  display: inline-block;
  border-radius: 10px;
  background-color: rgb(57, 62, 70);
}

.genre__container,
.search__container,
.movie__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.movie__container,
.movie__info {
  width: 100%;
}

.genre__title,
.search__title {
  margin: 1rem;
  font-size: clamp(1.2rem, 1.1857rem + 0.0714vw, 1.25rem);
  color: rgba(255, 211, 105, 0.75);
}

.genre__movie-list,
.search__movie-list {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-direction: row;
  flex-wrap: wrap;
}
.genre__movie-list li,
.search__movie-list li {
  width: 150px;
  height: 225px;
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: 150px;
  cursor: pointer;
}

.movie__poster-container {
  width: 100%;
  position: relative;
  z-index: -1;
}
.movie__poster-container .movie__efect {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.movie__poster-container .movie__poster {
  width: 35%;
  max-width: 300px;
  position: absolute;
  bottom: -4rem;
  left: 1rem;
}

.movie__details {
  padding: 1rem;
  margin-top: 4rem;
  color: #fff;
  flex-direction: column;
  flex-wrap: nowrap;
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas: "title title" "date time" "vote vote" "overview overview";
}
.movie__details .movie__title {
  grid-area: title;
  font-size: clamp(2.0736rem, 1.9685rem + 0.5254vw, 2.4414rem);
  justify-self: center;
}
.movie__details .movie__release-date {
  grid-area: date;
  justify-self: end;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.movie__details .movie__runtime {
  grid-area: time;
  justify-self: start;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.movie__details .movie__vote-average {
  grid-area: vote;
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 3rem;
  height: 3rem;
  border: 4px solid rgb(255, 211, 105);
  border-radius: 50%;
  font-size: clamp(0.64rem, 0.71rem - 0.0778vw, 0.6944rem);
}
.movie__details .movie__overview {
  grid-area: overview;
  justify-self: center;
  text-align: justify;
}
@media (min-width: 50rem) {
  .movie__details .movie__overview {
    width: 70%;
  }
}

.movie__more-titles {
  font-size: clamp(1.2rem, 1.1857rem + 0.0714vw, 1.25rem);
  color: rgb(255, 211, 105);
  align-self: center;
}

header {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-direction: row;
  flex-wrap: nowrap;
}
@media (min-width: 50rem) {
  header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.5rem;
  }
}
header .header__title {
  width: 200px;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
}

h1 {
  font-size: clamp(1.2rem, 1.1857rem + 0.0714vw, 1.25rem);
  text-align: center;
  color: rgb(255, 211, 105);
}

.header__logo {
  font-size: 1.5rem;
  color: rgb(255, 211, 105);
  transform: rotate(45deg);
}

nav {
  width: 100%;
  height: 7vh;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 5;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}
@media (min-width: 50rem) {
  nav {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1rem;
    width: auto;
    position: static;
    color: #fff;
    background-color: transparent;
  }
  nav li:hover {
    color: rgb(255, 211, 105);
    cursor: pointer;
    transform: scale(1.1);
  }
}
nav ul {
  width: 100%;
  font-size: 2.2rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 50rem) {
  nav ul:nth-child(1) {
    display: none;
  }
}
nav ul:nth-child(2) {
  display: none;
}
@media (min-width: 50rem) {
  nav ul:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: clamp(1rem, 1rem + 0vw, 1rem);
  }
}

footer {
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  margin-top: 4rem;
  color: #fff;
}
footer a {
  color: rgba(255, 211, 105, 0.75);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

.carousel_container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  position: relative;
}
.carousel_container button {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: rgba(255, 211, 105, 0.75);
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.carousel_container .btn-prev {
  left: 1rem;
}
.carousel_container .btn-next {
  right: 1rem;
}

.carousel__movie-list {
  width: 2000%;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0;
  transition: transform 0.5s ease-in-out;
  touch-action: none;
}
.carousel__movie-list li {
  width: 300px;
  height: 450px;
  margin: 0 auto;
  cursor: pointer;
}

.carousel__indicators {
  min-width: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.carousel__indicators button {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.carousel__indicators button:hover {
  transform: scale(1.2);
}

.carousel__indicators button.active {
  width: 16px;
  border-radius: 10px;
  background-color: rgba(255, 211, 105, 0.75);
  transition: all 0.3s ease;
}

.carousel__indicators button.hidden {
  display: none;
}

.modal {
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateY(-100vh);
  animation: transform 1s ease-in-out;
}
.modal .btn-goOut {
  width: 50px;
  height: auto;
  font-size: 2rem;
  color: #fff;
  background-color: transparent;
  border: none;
  position: fixed;
  top: 1rem;
  left: 0.5rem;
}
.modal .btn-goOut:hover {
  cursor: pointer;
  color: rgb(255, 211, 105);
}

.searching {
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  top: 5rem;
}
.searching input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}
.searching button {
  padding: 0 1rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 0 10px 10px 0;
  color: #fff;
  background-color: rgb(57, 62, 70);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  cursor: pointer;
}
.searching button:hover {
  color: rgb(255, 211, 105);
}

.btn-goBack,
.btn-arrowUp {
  width: 50px;
  height: auto;
  font-size: 2rem;
  color: rgba(255, 211, 105, 0.75);
  background-color: transparent;
  border: none;
  position: fixed;
  cursor: pointer;
}

.btn-goBack {
  top: 1rem;
  left: 0.5rem;
}

.btn-arrowUp {
  right: 0.5rem;
  bottom: 8rem;
}

.btn-arrowUp--hide {
  opacity: 0;
  visibility: hidden;
}

.skeleton, .skeleton-overview, .skeleton-vote-average, .skeleton-runtime, .skeleton-release-date, .skeleton-title, .skeleton-movie {
  background: linear-gradient(90deg, #a8a8a8 25%, #d8d8d8 50%, #a8a8a8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-movie {
  width: 100%;
  max-width: 800px;
  min-height: 180px;
  max-height: 450px;
  aspect-ratio: 16/9;
}

.skeleton-title {
  width: 50%;
  max-width: 800px;
  height: 3rem;
}

.skeleton-release-date {
  width: 50%;
  max-width: 800px;
  height: 2rem;
}

.skeleton-runtime {
  width: 50%;
  max-width: 800px;
  height: 2rem;
}

.skeleton-vote-average {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.skeleton-overview {
  width: 100%;
  max-width: 800px;
  height: 10rem;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/*# sourceMappingURL=style.css.map */
