/* Setup Color */
:root {
  --brown-dark: rgb(59, 21, 11);
  --brown: #fcf7ea;
  --font-main: 'Andine', serif;
}

html {
  /* scroll-behavior: smooth; */
  font-size: 16px;
  /* Atur ukuran font dasar */
}

/* html, body {
  height: 100%;
  overflow: hidden;
  margin: 0;
} */

#smooth-scroll {
  will-change: transform;
}

/* Setup Font */
@font-face {
  font-family: 'Andine';
  src: url('src/fonts/Andine.woff2') format('woff2'),
    url('src/fonts/Andine.woff') format('woff'),
    url('src/fonts/Andine.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Body */

body {
  font-family: var(--font-main);
  position: relative;
  overflow-x: hidden;
}

* {
  transition: background-color 0.5s ease, color 0.5s ease;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  color: var(--brown-dark);
}

/* Loader */
/* HTML: <div class="loader"></div> */

.page-loader {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--brown);
  z-index: 10000;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: fit-content;
  font-size: 40px;
  line-height: 1.5;
  font-family: system-ui, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  color: #0000;
  -webkit-text-stroke: 1px var(--brown-dark);
  background:
    radial-gradient(1.13em at 50% 1.6em, var(--brown-dark) 99%, #0000 101%) calc(50% - 1.6em) 0/3.2em 100% text,
    radial-gradient(1.13em at 50% -0.8em, #0000 99%, var(--brown-dark) 101%) 50% .8em/3.2em 100% repeat-x text;
  animation: l9 2s linear infinite;
}

.loader:before {
  content: "Drama Arena";
}

@keyframes l9 {
  to {
    background-position: calc(50% + 1.6em) 0, calc(50% + 3.2em) .8em
  }
}

/* Navbar */
.navmenu {

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 10vh;
  width: 100%;
  background-color: var(--brown);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
}

.navmenu .logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 20em;
}

.navmenu .logo-container img {
  height: 2rem;
  width: auto;
  /* filter: invert(1); */
}

.navmenu .logo-container h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-left: 0.5rem;
  color: var(--brown-dark);
}

.navmenu .logo-container span {
  font-weight: 700;
  font-family: lato, sans-serif;
  font-size: 1.8rem;
  color: #b5a27f;
}

.navmenu .menu {
  font-family: lato, sans-serif;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 2rem;
  margin-right: 20em;
}

@media (max-width: 1024px) {
  .navmenu .menu {
    display: none;
  }

  .navmenu {
    height: 8vh;
  }

  .navmenu .logo-container {
    margin-left: 1rem;
  }
}


/* Hero */

.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-color: black;
  z-index: 1001;
}

.hero img {
  max-height: 250px;
  /* Atur sesuai kebutuhan */
  height: auto;
  width: auto;
  filter: invert(1);
}

@media (max-width: 425px) {
  .hero img {
    max-height: 150px;
    /* Atur untuk layar kecil */
  }
}

.hero a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 1rem 2rem;
  background-color: transparent;
  border: 0.1rem solid white;
  border-radius: 4rem;
  transition: all 0.3s ease;
}

.hero a:hover {
  background-color: white;
  color: black;
  font-size: 1.2rem;
  padding: 1.5rem 2.5rem;
}

/* Gallery */

.gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* height: 100vh; */
  width: 100%;
  /* background-color: #f0f0f0; */
  gap: 1rem;
  background-color: var(--brown);
  padding-bottom: 10vh;
  scroll-behavior: smooth;
}

@media screen and (min-width: 425px) {
  .gallery {
    gap: 0.5rem;
  }
}

.gallery .img {
  background-image: url('https://da5100.github.io/assets/img/portfolio/books-1.webp');
  background-repeat: no-repeat;
  background-position: center;
  /* Center the image */
  background-size: cover;
  /* Resize the background image to cover the entire container */
  filter: brightness(0.8);
  /* -webkit-box-shadow: inset 6px -28px 40px 0px rgba(0,0,0,0.77);  */
  box-shadow: inset 6px -41px 40px 0px rgba(0, 0, 0, 0.79), 0px 5px 15px 2px rgba(0, 0, 0, 0.5);

  width: 60em;
  height: 40em;
  aspect-ratio: 3 / 2;
  /* Maintain 2:1 ratio = ~600x300 */

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0.5em;
  /* overflow: hidden; */

  will-change: transform, opacity;
  transition: transform 0.3s ease, filter 0.3s ease;

  /* transition: all 0.1s ease; */
}

.gallery .img:nth-child(1) {
  background-image: url('src/img/act1.webp');
}

.gallery .img:nth-child(2) {
  background-image: url('src/img/act2.webp');
}

.gallery .img:nth-child(3) {
  background-image: url('src/img/act3.webp');
}

.gallery .img:nth-child(4) {
  background-image: url('src/img/act4.webp');
}

.gallery .img:nth-child(5) {
  background-image: url('src/img/img1.webp');
}

.gallery .img:nth-child(6) {
  background-image: url('src/img/img2.webp');
}

.gallery .img:nth-child(7) {
  background-image: url('src/img/img3.webp');
}

.gallery .img:nth-child(8) {
  background-image: url('src/img/img4.webp');
}

@media screen and (max-width: 1024px) {
  .gallery .img {
    width: 30em;
    height: 20em;
  }
}

.gallery .img:hover {
  /* transform: scale(1.05); */
  filter: brightness(1);
}

.gallery .img * {
  color: white;
  margin-left: 0.5em;
}

.gallery .img h2 {
  font-size: 1.2rem;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
  line-height: 2;
}

.gallery .img p {
  font-size: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
  margin-bottom: 2em;
  width: 80%;
}

@media screen and (min-width: 1024px) {
  .gallery .img h2 {
    font-size: 1.7rem;
  }

  .gallery .img p {
    font-size: 1.2rem;
    width: 90%;
  }

}

/* Text Animation */

.text-animation {
  background-color: var(--brown);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-animation span {
  font-size: 5em;
  height: 2em;
  white-space: nowrap;
}

/* Swiper */
.swiper {
  height: 100vh;
  min-height: 100vh;
  z-index: 1001;
}

/* @media (max-width: 650px) {
  .swiper {
    height: 50vh;
    min-height: 50vh;
  }
} */

.swiper-embed {
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
}

/* .has-scroll-scrolling iframe {
  pointer-events: none;
} */
.has-scroll-scrolling .iframe-parent {
  cursor: wait;
}

/* Navbar */

.navbar {
  display: none;
}

@media (max-width: 1000px) {
  .navbar {
    font-family: lato, sans-serif;

    height: 7vh;
    width: 100%;
    z-index: 100;
    background-color: var(--brown);
    display: flex;
    bottom: 0px;
    justify-content: space-around;
    align-items: center;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .navbar ul {
    list-style-type: none;
    display: hide
  }

  .navbar li {
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--brown-dark);
    opacity: 75%;
  }

  .navbar li:hover {
    transform: translateY(-10px);
  }
}

@media (min-width: 1024px) {
  .extender {
    display: none;
  }
}

/* Go Up Button */
.go-up {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1003;
  background-color: var(--brown);
  border-radius: 20%;
  padding: 1rem;
  cursor: pointer;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .go-up {
    bottom: 5rem;
    right: 1rem;
  }
}