body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto,
    Helvetica, Cantarell, Oxygen-Sans, Ubuntu, Arial, sans-serif;
  font-weight: 400;
}

:root {
  --nav-color-dark: hsl(0, 0%, 15%);
  --nav-color-light: hsl(0, 0%, 90%);
  --text-color-dark: hsl(0, 0%, 15%);
  --text-color-light: hsl(0, 0%, 80%);
  --text-color-caption: hsl(0, 0%, 45%);
  --img-margin: 30px 0px;
}

* {
  margin: 0px;
  padding: 0px;
}

.poster {
  min-height: 100vh;
  width: 100vw;
  background-image: url("images/kyo_banner.jpg");
  background-position: center;
  background-size: cover;
  position: relative;
}

p {
  padding-bottom: 15px;
  color: var(--text-color-dark);
  text-align: left;
}

a {
  color: var(--text-color-dark);
}

h2 {
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 10px 0;
}

/* NAV MENU */

nav {
  display: flex;
  padding: 3% 4%;
  justify-content: space-between;
  align-items: center;
}

nav .rok_andic_dark {
  font-size: 2.2rem;
  text-decoration: none;
  color: var(--nav-color-dark);
  letter-spacing: 10px;
}
nav .rok_andic_light {
  font-size: 2.2rem;
  text-decoration: none;
  color: var(--nav-color-light);
  letter-spacing: 10px;
}

.nav-links {
  flex: 1;
  text-align: right;
  display: block;
}

.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}

.nav-links ul li .a_dark {
  color: var(--nav-color-dark);
  text-decoration: none;
  font-size: 1rem;
}
.nav-links ul li .a_light {
  color: var(--nav-color-light);
  text-decoration: none;
  font-size: 1rem;
}

.nav-links ul .li_dark::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--nav-color-dark);
  display: block;
  margin: auto;
  transition: 0.3s;
}
.nav-links ul .li_light::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--nav-color-light);
  display: block;
  margin: auto;
  transition: 0.3s;
}

.nav-links ul li:hover::after {
  width: 100%;
}

nav .mobile_menu_x_dark {
  display: none;
  background-image: url("images/x_dark.svg");
}
nav .mobile_menu_x_light {
  display: none;
  background-image: url("images/x_light.svg");
}

nav .mobile_menu_bars_dark {
  display: none;
  background-image: url("images/bars_dark.svg");
}
nav .mobile_menu_bars_light {
  display: none;
  background-image: url("images/bars_light.svg");
}

/* FOOTER */
.footer {
  width: 100%;
  bottom: 0px;
  padding-top: 4rem;
}

.footer_text p {
  font-size: 0.75rem;
  opacity: 0.75;
  text-align: center;
}

/* PAGES, BANNERS */
.banner {
  min-height: 40vh;
  width: 100%;
  background-position: center;
  background-size: cover;
}

.banner_title {
  color: #fff;
  letter-spacing: 2rem;
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  position: absolute;
  top: 20vh;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

#short_film_title.banner_title {
  letter-spacing: 1.5rem;
}

.content {
  width: 80%;
  max-width: 1500px;
  margin: auto;
  text-align: center;
  padding-top: 90px;
}

.content_text {
  width: 100%;
  position: relative;
  margin: 16px;
}

.imgs_flexbox {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: var(--img-margin);
  width: 100%;
}

.img_with_caption {
  display: inline-block;
  text-align: center;
  width: 100%;
  margin: var(--img-margin);
}

.caption_img {
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-color-caption);
}

/* VIDEO */

.video {
  margin: 30px 0px 50px 0px;
  padding: 56.25% 0 0 0;
  position: relative;
}

.video_with_poster {
  position: relative;
}

.caption_video {
  margin-bottom: 10rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--text-color-caption);
}

.img_video_poster {
  width: 100%;
  margin-top: 5px;
}

.img_video_play_button {
  content: url("images/play.svg");
  width: 10%;
  cursor: pointer;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  margin: auto;
  z-index: 5;
  shape-rendering: geometricPrecision;
}

.img_video_play_button:hover {
  content: url("images/play_hover.svg");
}

/* SHORT FILMS */
#short_films.banner {
  background-position-y: 55%;
  background-image: url("images/ben_1.jpg");
}

.short_films_imgs {
  display: grid;
  padding-top: 32px;
  padding-left: 1.5rem;
  padding-right: 12rem;
  grid-template-columns: 25% 25% 25% 25%;
  column-gap: 4rem;
  row-gap: 30px;
}

.short_films_imgs img {
  width: 100%;
}

/* TUTORIALS */
#tutorials.banner {
  background-position-y: 20%;
  background-image: url("images/tutorials_1.jpg");
}

.tutorials_imgs {
  display: grid;
  height: auto;
  padding-top: 32px;
  padding-left: 1.5rem;
  padding-right: 2rem;
  grid-template-columns: 33% 33% 33%;
  column-gap: 2rem;
  row-gap: 30px;
}

.tutorials_imgs img {
  width: 100%;
}

/* ABOUT  */
#about.banner {
  background-position-y: 55%;
  background-image: url("images/albert_1.jpg");
}

.about {
  width: 85%;
  margin: auto;
  text-align: center;
  padding-top: 96px;
  display: flex;
}

.about_text {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  padding: 0px 0px 16px 16px;
}

.about_text .about_social {
  padding-top: 25px;
}

.about_text .about_social a {
  position: relative;
  padding: 1.5em;
}

.about_img {
  width: 40%;
  background-size: auto;
  position: relative;
  padding: 4px;
}

.about_img .rok_img {
  content: url("images/rok_1.jpg");
  height: 450px;
}

/* FILMS SUB PAGES */
#kyo_sphere.banner {
  background-position-y: 50%;
  background-image: url("images/kyo_1.jpg");
}

#ben.banner {
  background-position-y: 20%;
  background-image: url("images/ben_poster_crop.jpg");
}

#albert.banner {
  background-position-y: 30%;
  background-image: url("images/albert_2.jpg");
}

#rhapsody.banner {
  background-position-y: 100%;
  background-image: url("images/rhapsody_03.jpg");
}

#short_film_title.banner_title {
  opacity: 0.75;
}

/* SLIDESHOW */
.slideshow {
  position: relative;
  margin: var(--img-margin);
}

.slideshow_prev_icon {
  content: url("images/arrow_prev.svg");
  width: 2vw;
}
.slideshow_next_icon {
  content: url("images/arrow_next.svg");
  width: 2vw;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
}

.slideshow_thumbnail_row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.slideshow_thumbnail_column {
  width: 14%;
  padding: 0.1rem;
}

.slideshow_thumbnail {
  width: 100%;
  opacity: 0.5;
  cursor: pointer;
}

.slideshow_thumbnail:hover {
  opacity: 1;
}

.active,
.demo:hover {
  opacity: 1;
}

.slide_prev,
.slide_next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  text-align: center;
  width: auto;
  user-select: none;
}

.slideshow_thumbnail_row:after {
  content: "";
  display: table;
  clear: both;
}

/* Position the "prev button" to the right */
.slide_prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

/* Position the "next button" to the right */
.slide_next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* MOBILE */

@media screen and (max-width: 1000px) {
  .poster {
    background-position-x: 28%; /* offset background image, so it's centered */
  }

  .tutorials_imgs {
    column-gap: 2rem;
    padding-right: 1rem;
    row-gap: 20px;
    grid-template-columns: 50% 50%;
  }

  .short_films_imgs {
    padding-right: 3rem;
    grid-template-columns: 50% 50%;
    column-gap: 3rem;
    row-gap: 3rem;
  }

  /* VIDEO */
  .img_video_play_button {
    width: 12%;
  }

  .slideshow_prev_icon {
    width: 3vw;
  }
  .slideshow_next_icon {
    width: 3vw;
  }

  .about_img .rok_img {
    height: 350px;
  }
}

@media screen and (max-width: 800px) {
  :root {
    --img-margin: 10px 0px;
  }

  /* NAV */

  html,
  body {
    overflow-x: hidden; /* prevent nav links shown on the right when hidden */
  }

  .poster {
    background-position-x: 25%; /* offset background image, so it's centered */
  }

  .nav-links ul li {
    display: block;
    padding: 6px 12px;
  }

  /* Always white mobile side menu (dark nav mode menu) */
  .nav-links ul .li_light::after {
    background: var(--nav-color-dark);
  }
  nav .mobile_menu_x_light {
    background-image: url("images/x_dark.svg");
  }

  .nav-links {
    position: fixed;
    background: #fff;
    height: 100%;
    right: -50%;
    top: 0;
    text-align: left;
    z-index: 2;
    transition: 1s;
  }

  .nav-links ul li .a_light {
    color: var(--nav-color-dark);
  }

  nav .rok_andic {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  nav .mobile_menu_x_dark,
  nav .mobile_menu_bars_dark,
  nav .mobile_menu_x_light,
  nav .mobile_menu_bars_light {
    display: block;
    color: #fff;
    width: 1.5rem;
    height: 1.5rem;
    margin: 10%;
    cursor: pointer;
  }

  nav .mobile_menu_bars_dark,
  nav .mobile_menu_bars_light {
    display: block;
    color: #fff;
    width: 1.5rem;
    height: 1.5rem;
    margin: 10px;
    cursor: pointer;
  }

  .nav-links ul {
    padding: 1rem;
  }

  .footer {
    padding-top: 2rem;
  }

  .imgs_flexbox {
    flex-direction: column;
    gap: var(--img-margin);
  }

  .video {
    margin: var(--img-margin);
  }

  /* BANNERS */
  .banner_title {
    letter-spacing: 1rem;
    font-size: 2rem;
  }

  /* VIDEO */
  .img_video_play_button {
    width: 15%;
  }

  /* SLIDESHOWS */
  .slideshow_prev_icon {
    width: 4vw;
  }
  .slideshow_next_icon {
    width: 4vw;
  }

  /* SHORT FILMS  */
  .short_films_imgs {
    padding: 0% 20%;
    grid-template-columns: 100%;
    row-gap: 2rem;
  }

  /* TUTORIALS */
  .tutorials_imgs {
    row-gap: 20px;
    padding-right: 0rem;
    grid-template-columns: 100%;
  }

  /* ABOUT */
  .about {
    width: 96%;
    padding-top: 48px;
    flex-direction: column;
  }

  .about_text {
    position: relative;
    width: 90%;
    order: 2;
  }

  .about_text .about_social a {
    position: relative;
    padding: 1em;
  }

  .about_img {
    width: 90%;
  }

  .about_img .rok_img {
    order: 1;
    height: 200px;
    content: url("images/rok_1_mobile.jpg");
  }
}
