/* RESET */
html {
  box-sizing: border-box;
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  font-weight: normal;
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

img {
  height: auto;
  max-width: 100%;
}

/* TYPOGRAPHY */
body {
  font-family: "Open Sans", sans-serif;
}

h1 {
  color: var(--text-color);
  font-size: 2.65rem;
  font-weight: 600;
}

span {
  color: var(--accent-color);
}

.material-icons-outlined {
  color: inherit;
}

/* LAYOUT */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  display: grid;
  min-height: 100vh;
  overflow: hidden auto;
  position: relative;
}

main {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

section {
  margin-top: var(--header-height);
  min-height: 75vh;
  padding: 0 var(--margin-size);
  margin-bottom: 1rem;
}

footer {
  align-items: center;
  background-color: var(--header-color);
  box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.2), 0 -4px 5px 0 rgba(0, 0, 0, 0.14),
    0 -1px 10px 0 rgba(0, 0, 0, 0.12);
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  padding: 1rem var(--margin-size);
  z-index: 4;
}

header {
  height: 0;
  position: relative;
  width: 0;
}

video {
  height: auto;
  max-width: 31.25rem;
  width: 100%;
}

details {
  overflow: hidden;
  transition: 0.5s ease;
}

a.disabled {
  pointer-events: none;
}

.fullscreen:-webkit-full-screen {
  height: auto !important;
  margin: auto !important;
  width: auto !important;
}

.fullscreen:-moz-full-screen {
  height: auto !important;
  margin: auto !important;
  width: auto !important;
}

.fullscreen:-ms-fullscreen {
  width: auto !important;
  height: auto !important;
  margin: auto !important;
}

#sidenav-open {
  --duration: 0.6s;
  --easeOutExpo: cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: [nav] 2fr [escape] 1fr;
  height: 100vh;
  max-height: 100vh;
  max-width: 100vw;
  overflow: hidden auto;
  overscroll-behavior: contain;
  position: fixed;
  top: 0;
  transform: translateX(-110vw);
  transition: transform var(--duration) var(--easeOutExpo),
    visibility 0s linear var(--duration);
  visibility: hidden;
  width: 100%;
  will-change: transform;
  z-index: 16;
}

#sidenav-open:target {
  transform: translateX(0);
  transition: transform var(--duration) var(--easeOutExpo);
  visibility: visible;
}

#warning,
#privacy-policy,
#about-us,
#anti-trafficking-policy,
#complaints-appeals {
  background-color: RGBA(0, 0, 0, 0.32);
  display: none;
  height: 100%;
  min-height: 100vh;
  padding-bottom: 16px;
  position: absolute;
  width: 100vw;
  z-index: 24;
}

#warning {
  background-color: RGBA(0, 0, 0, 0.9);
}

#warning:target,
#privacy-policy:target,
#about-us:target,
#anti-trafficking-policy:target,
#complaints-appeals:target {
  display: grid;
  overflow-y: scroll;
}

.dialog__container {
  background-color: var(--background-color);
  border: 0.25rem solid var(--text-color);
  border-radius: 16px;
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  max-height: var(--dialog-height);
  max-width: var(--dialog-width);
  overflow-y: auto;
  padding: 16px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dialog__title {
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.dialog__text {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  text-align: justify;
}

.dialog__text--accent {
  color: var(--accent-color);
}

.dialog__button {
  background-color: var(--text-color);
  border: none;
  border-radius: 0.5rem;
  bottom: 1rem;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12),
    0px 1px 3px rgba(0, 0, 0, 0.2);
  color: var(--background-color);
  display: flex;
  display: -webkit-flex;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  -webkit-justify-content: center;
  margin: 0 auto;
  min-width: 8em;
  outline: none;
  padding: 0 16px;
  place-items: center;
  text-decoration: none;
  text-transform: uppercase;
}

.dialog__button--accent {
  background-color: var(--accent-color);
  color: var(--background-color);
}

.dialog__button:hover {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    var(--text-color);
  cursor: pointer;
}

.dialog__button--accent:hover {
  background: linear-gradient(
      0deg,
      rgba(250, 250, 250, 0.05),
      rgba(250, 250, 250, 0.05)
    ),
    var(--accent-color);
  cursor: pointer;
}

.dialog__subtitle {
  font-size: 0.75rem;
  margin-top: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.dialog__subtitle--accent {
  color: var(--accent-color);
}

.dialog__subtitle2 {
  font-size: 0.75rem;
  margin-top: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.dialog__divider {
  border: 0.1rem solid var(--text-color);
  width: 100%;
}

.dialog__scrollarea {
  max-height: 254px;
  overflow-y: scroll;
  padding: 8px;
}

.dialog__scrollarea > p {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.dialog__buttonarea {
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  -webkit-justify-content: center;
  margin-top: 0.5rem;
}

.sidenav__container {
  height: 0;
  position: relative;
  width: 0;
}

.sidenav__logo {
  height: 3rem;
  width: 3rem;
}

.sidenav__nav :nth-child(2) {
  margin-top: 1rem;
}

.sidenav__nav :nth-child(2) {
  margin-top: 1rem;
}

.sidenav__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-left: var(--margin-size);
}

#sidenav-button,
#sidenav-close {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  user-select: none;
}

/* COMPONENTS */
.appbar {
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  display: flex;
  display: -webkit-flex;
  height: var(--header-height);
  justify-content: space-between;
  -webkit-justify-content: space-between;
  left: 0;
  padding: 0 var(--margin-size);
  place-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 4;
}

.appbar--background {
  background: var(--header-color);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

.appbar__panel {
  display: flex;
  display: -webkit-flex;
  place-items: center;
  width: 100%;
}

.appbar__button {
  display: grid;
  filter: drop-shadow(0px 2px 4px -1px rgba(0, 0, 0, 0.2)),
    drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)),
    drop-shadow(0px 1px 10px rgba(143, 49, 49, 0.12));
  height: 3rem;
  place-items: center;
  width: 3rem;
}

.appbar__logo {
  display: grid;
  display: none;
  height: 3rem;
  place-items: center;
  visibility: hidden;
  width: 3rem;
}

.appbar__title {
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0px 2px 4px -1px rgba(0, 0, 0, 0.2)),
    drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)),
    drop-shadow(0px 1px 10px rgba(143, 49, 49, 0.12));
  font-size: var(--title-size);
  font-weight: 700;
  margin-left: var(--margin-size);
  user-select: none;
}

.appbar__subtitle {
  font-size: var(--subtitle-size);
  margin-left: var(--margin-size);
}

.appbar__nav {
  display: none;
}

.sidenav__link {
  align-items: center;
  color: var(--text-color);
  display: flex;
  display: -webkit-flex;
  font-size: 1.5em;
  font-weight: 600;
  justify-content: center;
  -webkit-justify-content: center;
  padding: 0.5rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.appbar__link {
  color: var(--text-color);
  filter: drop-shadow(0px 2px 4px -1px rgba(0, 0, 0, 0.2)),
    drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)),
    drop-shadow(0px 1px 10px rgba(143, 49, 49, 0.12));
  font-size: 1.5rem;
  font-weight: 600;
  margin-left: 0.5rem;
  text-decoration: none;
  text-transform: uppercase;
}

.appbar__link--selected,
.appbar__link:hover {
  color: var(--accent-color);
}

.text__accent {
  color: var(--accent-color);
}

.title__overlapping {
  align-items: center;
  display: grid;
  justify-items: center;
  padding: 1em 2em;
}

.title__divider {
  background-color: var(--text-color);
  border: none;
  grid-column-start: 1;
  grid-row-start: 1;
  height: 0.5px;
  width: 100%;
}

.title__text {
  background-color: var(--background-color);
  color: var(--text-color);
  font-weight: 600;
  grid-column-start: 1;
  grid-row-start: 1;
  padding: 0 0.5em;
  text-transform: uppercase;
}

.movies__container {
  display: flex;
  display: -webkit-flex;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: center;
  -webkit-justify-content: center;
  padding: 1em 2em;
}

.movies__container > img {
  height: auto;
  width: 100%;
}

.movies__container > a {
  margin: 0.5em;
}

.clips__video {
  background-color: #000;
  margin: 0.5em 0.5em;
  align-items: flex-start;
}

.clips__container {
  display: flex;
  display: -webkit-flex;
  flex-grow: 1;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  -webkit-justify-content: center;
  padding: 1rem 2rem;
}

.clips__layout {
  max-width: var(--clip-layout);
  display: flex;
  display: -webkit-flex;
  position: relative;
}

.clips__layout_title {
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  position: absolute;
  align-self: start;
  background-color: rgba(0, 0, 0, 0.5);
  text-transform: capitalize;
}

.clips__layout_video {
  border-radius: 0.5rem;
}

.clips__layout_models {
  width: 100%;
  padding: 0.5rem;
  position: absolute;
  align-self: flex-end;
  background-color: rgba(0, 0, 0, 0.5);
  text-transform: capitalize;
}

.member__container {
  align-items: center;
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  flex-grow: 1;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  -webkit-justify-content: center;
  padding: 1em 2em;
}

/* PAGES */
.background__container {
  display: grid;
  gap: 1em;
  grid: [bg] 1fr / [bg] 1fr;
  grid-gap: 1em;
  height: 100vh;
  justify-items: center;
  position: relative;
  width: 100%;
}

.background__image {
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  background-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0)
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
    var(--background-image);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0;
  grid-area: bg;
  height: 100vh;
  justify-self: normal;
  margin: 0;
  touch-action: manipulation;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 1, 1);
  user-select: none;
}

#btnJoin {
  background-color: var(--accent-color);
  border: none;
  border-radius: 1rem;
  bottom: 1rem;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12),
    0px 1px 3px rgba(0, 0, 0, 0.2);
  color: var(--background-color);
  font-family: "Open Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  min-height: 36px;
  min-width: 8em;
  outline: none;
  padding: 0.5rem 1rem;
  position: absolute;
  text-transform: uppercase;
  left: 50;
  right: 50;
}

#btnJoin:hover {
  background: linear-gradient(
      0deg,
      rgba(250, 250, 250, 0.05),
      rgba(250, 250, 250, 0.05)
    ),
    var(--accent-color);
  cursor: pointer;
}

.footer__links {
  align-items: center;
  display: flex;
  display: -webkit-flex;
  justify-content: space-around;
  -webkit-justify-content: space-around;
  max-width: 48rem;
  text-transform: uppercase;
  width: 100%;
}

.footer__disclaimer {
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  font-size: 0.75rem;
  margin-top: 1rem;
  text-align: center;
  user-select: none;
}

.footer__link:hover {
  color: var(--accent-color);
}

.sidenav__nav {
  background-color: var(--header-color);
  box-shadow: 0 16px 24px 0 rgba(0, 0, 0, 0.14),
    0 6px 30px 0 rgba(0, 0, 0, 0.12), 0 8px 10px 0 rgba(0, 0, 0, 0.2);
  display: inline-flex;
  display: -webkit-flex;
  flex-direction: column;
  padding: 0.5rem 1rem;
}

.footer__link {
  color: var(--text-color);
  font-size: 0.75em;
  text-decoration: none;
}

.sidenav__header {
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-justify-content: space-between;
  place-items: center;
}

.week__container {
  display: flex;
  display: -webkit-flex;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: center;
  -webkit-justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
}

.week__link {
  margin: 0.5em;
}

.gallery__container {
  display: flex;
  display: -webkit-flex;
  -webkit-flex-grow: 1;
  -webkit-flex-wrap: wrap;
  -webkit-gap: 1rem;
  flex-grow: 1;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  -webkit-justify-content: center;
  padding: 1em 2em;
}

.movie__card {
  display: grid;
  grid-template-areas:
    "cover cover cover"
    "hash hash hash"
    "title title title"
    "duration duration duration"
    "price price price "
    "trailers trailers trailers"
    "previewimg previewimg previewimg"
    "link link link";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: min-content;
  max-width: 31.25rem;
  padding: 1em 1em;
}

.movie__container {
  display: flex;
  display: -webkit-flex;
  flex-flow: row wrap;
  gap: 1rem;
  justify-content: center;
  -webkit-justify-content: center;
  margin: 1rem 0;
}

.movie__cover {
  background-size: cover;
  height: 13.1875rem;
  width: 9.375rem;
}

.movie__title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.movie__button {
  margin-top: 1rem;
}

.movie__price,
.movie__duration {
  padding: 0.5rem;
}

.scenes__img {
  height: auto;
  max-width: 31.25em;
  width: 100%;
}

.movie__trailers,
.movie__scenes {
  cursor: pointer;
  display: flex;
  display: -webkit-flex;
  justify-content: center;
  -webkit-justify-content: center;
  place-items: center;
  transition: all 400ms ease-out;
  user-select: none;
  will-change: transform;
}

.movie__trailers:hover,
.movie__scenes:hover {
  color: var(--accent-color);
}

.movie__trailers > summary:hover,
.movie__scenes > summary:hover {
  border: 0.1rem solid var(--accent-color);
}

.movie__trailers > summary,
.movie__scenes > summary {
  border: 0.1rem solid var(--text-color);
  border-radius: 1rem;
  display: flex;
  display: -webkit-flex;
  gap: 1rem;
  justify-content: flex-start;
  -webkit-justify-content: flex-start;
  list-style: none;
  padding: 0.5rem;
}

.movie__trailers > summary > span,
.movie__scenes > summary > span {
  align-self: flex-start;
}

.movie__trailers > summary::-webkit-details-marker,
.movie__scenes > summary::webkit-details-marker {
  display: none;
}

#cover {
  grid-area: cover;
  place-self: start center;
}

#title {
  grid-area: title;
}

#duration {
  grid-area: duration;
}

#price {
  grid-area: price;
}

#trailers {
  grid-area: trailers;
}

#previewimg {
  grid-area: previewimg;
}

#link {
  grid-area: link;
}

#hash {
  grid-area: hash;
}

.gallery__img {
  max-width: 20rem;
  width: 100%;
  height: auto;
}

.gal {
  position: relative;
  max-width: 20rem;
  width: 100%;
  height: auto;
}

.gal__cover {
  width: 20rem;
  height: 27.25rem;
  background-position: center center;
  background-size: cover;
  object-fit: cover;
}

.gal__title {
  position: absolute;
  bottom: 0.5rem;
  padding: 0.5rem;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-color);
}

.gal__imgs {
  display: none;
  flex-flow: row wrap;
  gap: 1rem;
  justify-content: center;
  -webkit-justify-content: center;
}

.gal__imgs:target,
.gal__imgs .show {
  display: flex;
  display: -webkit-flex;
  flex-flow: row wrap;
  gap: 1rem;
  justify-content: center;
  -webkit-justify-content: center;
}

.pointer {
  cursor: pointer;
}

.back__gallery {
  display: flex;
  display: -webkit-flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  gap: 1rem;
}

.pagination > ul {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 95vw;
}

.pagination > ul li {
  display: flex;
  line-height: 1rem;
  justify-content: center;
  align-items: center;
  user-select: none;
  transition: all 0.3 ease;
}

.pagination > ul li span {
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination > ul li.numb {
  text-align: center;
  width: var(--item-size);
  height: var(--item-size);
  padding: 0 var(--margin-size);
  margin: 0 0.5rem;
  cursor: pointer;
  border-radius: 50%;
}

.pagination > ul li.button {
  text-align: center;
  height: var(--item-size);
  margin: 0 var(--margin-size);
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  padding: var(--margin-size);
}

.pagination > ul li.prev {
  border-radius: 1.5rem 0.5rem 0.5rem 1.5rem;
}

.pagination > ul li.next {
  border-radius: 0.5rem 1.5rem 1.5rem 0.5rem;
}

.pagination > ul .dots {
  cursor: default;
  font-size: 1rem;
}

.pagination > ul li.active,
.pagination > ul li.numb:hover,
.pagination > ul li.button:hover {
  background-color: var(--accent-color);
}

.social_img {
  width: 6rem;
  height: 3.375rem;
  border-radius: 1rem;
  object-fit: scale-down;
}

/* UTILS */
html {
  --accent-color: #e34850;
  --background-color: #1b1b1b;
  --background-image: url(.././res/background/mobile_background_display.jpg);
  --dialog-height: 23.75rem;
  --dialog-width: 17.5rem;
  --header-color: #353535;
  --header-height: 3.5rem;
  --margin-size: 0.5rem;
  --sidenav-color: #424242;
  --subtitle-size: 1.25rem;
  --text-color: #e1e1e1;
  --title-size: 1.75rem;
  --item-size: 3rem;
}

.show {
  display: flex;
  display: -webkit-flex;
  justify-content: center;
  -webkit-justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  margin: 0.5rem;
  width: 100%;
}

.hide {
  display: none;
}

/* EXTRA SMALL PHONE */
@media (max-width: 350px) {
  html {
    --margin-size: 0.75rem;
    --subtitle-size: 1.125rem;
    --title-size: 1.5rem;
    --item-size: 1.5rem;
  }

  .movie__card {
    grid-template-areas:
      "cover cover cover"
      "hash hash hash"
      "title title title"
      "duration duration duration"
      "price price price "
      "trailers trailers trailers"
      "previewimg previewimg previewimg"
      "link link link";
    gap: 0.5rem;
  }

  #cover {
    align-self: center;
    place-self: center;
  }

  .week__container {
    padding: 1rem 0.5rem;
  }
}

/* TABLET BREAKPOINT */
@media (min-width: 600px) {
  html {
    --margin-size: 1rem;
    --title-size: 1.75rem;
    --subtitle-size: 1.5rem;
    --background-image: url(.././res/background/background_display.jpg);
    --dialog-width: 35rem;
    --item-size: 2rem;
  }

  #sidenav-open {
    grid-template-columns: [nav] 16rem [escape] 1fr;
  }

  .appbar__subtitle {
    font-weight: 600;
  }

  .movie__card {
    grid-template-areas:
      "cover title title"
      "cover duration duration"
      "cover hash hash"
      "cover price price"
      "cover trailers trailers"
      "cover previewimg previewimg"
      "link link link";
  }

  .week__container {
    padding: 1rem 0.5rem;
  }
}

/* DESKTOP BREAKPOINT */
@media (min-width: 1024px) {
  html {
    --margin-size: 1.5rem;
    --header-height: 4rem;
    --title-size: 2.5rem;
    --background-image: url(.././res/background/background_display.jpg);
    --dialog-width: 35rem;
    --item-size: 3rem;
  }

  .appbar__logo {
    display: flex;
    display: -webkit-flex;
    visibility: visible;
  }

  .appbar__nav {
    display: flex;
    display: -webkit-flex;
  }

  .appbar__subtitle {
    display: none;
    visibility: hidden;
  }

  #sidenav-open {
    display: none;
  }

  .open__sidenav {
    display: none;
    visibility: hidden;
  }

  .movie__card {
    grid-template-areas:
      "cover title title"
      "cover duration duration"
      "cover hash hash"
      "cover price price"
      "cover trailers trailers"
      "cover previewimg previewimg"
      "link link link";
  }
}
