main {
  max-width: 62.5rem;
  margin: 0 auto;
}

#details-container {
  display: flex;
  flex-direction: row-reverse;
  gap: 4.6875rem;
  margin: 5rem auto 0 auto;
  justify-content: center;
}

#img-container {
  max-width: 472px;
}

#img-container img {
  width: 100%;
  height: 540px;
  object-fit: scale-down;
  border-radius: 6px;
}

.img {
  display: none;
}

.prev,
.next {
  cursor: pointer;
  position: relative;
  top: -50%;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
}

.next {
  left: calc(100% - 86px);
  border-radius: 3px 0 0 3px;
}

#main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  max-width: 20rem;
}

#main-container h1 {
  font-size: 2.25rem;
  color: #25313c;
}

.btn {
  border-radius: 4px;
  width: 100%;
}

#description-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  color: #25313c;
}

#description-container p {
  font-size: 1.5rem;
}

#description-title {
  font-size: 1.75rem;
}

#description {
  font-size: 1rem;
  color: #626262;
  white-space: pre-line;
}

@media (max-width: 1000px) {
  #details-container {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  #main-container h1 {
    text-align: center;
  }

  .prev,
  .next {
    top: -300px;
  }

  #description-container {
    text-align: center;
    margin: 2rem 1rem;
  }
}

@media (max-width: 630px) {
  #img-container img {
    height: 400px;
  }

  .prev,
  .next {
    top: -225px;
  }
}

@media (max-width: 550px) {
  #img-container img {
    height: 300px;
    width: 360px;
  }

  .prev,
  .next {
    top: -175px;
  }

  .next {
    left: 275px;
  }
}
