@keyframes fadeIn {
  from {
    scale: 0.991;
    opacity: 0.2;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}

@keyframes image-zoomIn {
  from {
    scale: 0.5;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}

@keyframes text-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes changeBackground {
  from {
    background-color: transparent;
  }
  to {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #ebbfbf;
}

.berkshire-swash-regular {
  font-family: "Berkshire Swash", serif;
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: white;
  text-align: start;
  background-image: linear-gradient(#230405 50%, black);
}

/* Header Navigation */
.nav-header {
  box-sizing: border-box;
  display: flex;
  padding: 10px 50px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100vw;
  top: 0;
  position: fixed;
  z-index: 1;

  background-color: transparent;
  background-image: url("Songket.png");
  background-position: center;
  background-repeat: repeat;
}

/* Logo */
.logo {
  margin-right: 700px;
}

.logo h1 {
  color: white;
  text-shadow: 2px 2px 4px #230405;
}

.logo span {
  color: red;
}

/* Search */
.searchField {
  display: flex;
  align-items: center;
  background-color: lightgrey;
  padding: 10px 16px;
  border-radius: 40px;
  width: 150px;
  height: 15px;
  box-shadow: 2px 2px 4px #230405;
}

.searchIcon img {
  width: 18px;
  margin-top: 4px;
  margin-right: 5px;
}

.searchInput input {
  border: none;
  outline: none;
  background-color: transparent;
  margin-bottom: 5px;
  font-weight: bold;
  width: 125px;
}

/* Profile Icon */
.profileIcon img {
  width: 40px;
}

/*Dropdown */
.dropdown {
  box-sizing: border-box;
}

/* Outer Display */
.select {
  background-color: transparent;
  color: #ebbfbf;
  text-shadow: 5px 5px 4px #230405;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  justify-content: space-around; 
  align-items: center;
  cursor: pointer;
  width: 100px;
  height: 20px;
}

.select:hover {
  font-size: 18px;
  color: white;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: color 1s;
}

/* Make the arrow */
.arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid white;
  transition: 0.3s;
  box-shadow: 5px 5px 8px #230405;
}

/* Rotate the arrow */
.arrow-rotate {
  transform: rotate(180deg);
}

/* Inside Menu */
.dropdown-menu {
  list-style: none;
  background-color: #5e0a0d;
  border-radius: 8px;
  padding: 0px;
  box-shadow: 5px 5px 3px rgba(0, 0, 0, 1);
  position: absolute;
  /* Default display */
  display: none;
}

/* Each category menu */
.dropdown-menu li {
  width: 150px;
  padding: 10px 10px;
  cursor: pointer;
  transition: background-color 0.4s;
}

.dropdown-menu li:hover {
  background-color: #470b0e;
}

.dropdown-menu a:hover {
  font-weight: bold;
  color: white;
  transition: color 1s;
}

/* Rounded border for first and last menu, so the border will be the same with the wrapper (dropdown-menu) */
.dropdown-menu li:nth-child(1) {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dropdown-menu li:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* selected menu */
.selected {
  background-color: #330709;
  color: white;
  font-weight: bold;
}

/* When the dropdown is open, change the display */
.dropdown-menu-open {
  display: block;
}

@media only screen and (max-width: 1300px) {
  .nav-header {
    justify-content: flex-start;
  }

  .logo {
    margin-right: 0px;
    flex-grow: 1;
  }
}
/* End of Navigation */

/* Carousel */
.carousel {
  box-sizing: border-box;
  width: 100%;
  height: 800px;
  position: relative; 
  overflow: hidden; /*hides the rest of the image*/
}

/* Carousel images */
.carousel-image {
  position: relative;
  top: 0;
  left: 0;
  display: flex;
  /* full screen */
  width: 100%;
  height: 100%;
}

.carousel-image a {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.carousel-image img {
  width: 100%; /*full screen*/
  height: auto; /*keeps the ratio of the images*/
  object-fit: cover; /*full screen*/
  object-position: top; /*pick the top part to be shown*/
  display: none; /*default: hides the images*/
  flex-shrink: 0;

  animation-name: fadeIn;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
}

.carousel-image img.active-image {
  /* Show the image that is active*/
  display: inline-block;
  pointer-events: all;
}
/* Carousel Navigation Dot*/
.carousel-nav {
  position: absolute;
  bottom: 100px;
  color: white;
  left: 50%;
  transform: translateX(-50%); /*center the position*/
  width: fit-content;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

/* Default slider dot */
.carousel-nav button {
  width: 10px;
  height: 10px;
  background-color: rgba(128, 128, 128, 0.53);
  margin: 20px;
  border: none;
  border-radius: 50%;
}

/* For active slider dot*/
.carousel-nav button.active-slider {
  width: 15px;
  height: 8px;
  border-radius: 25%;
  background-color: white;
  box-shadow: 4px 4px 4px black;
}

/* Carousel Previous Next Button */
.carousel-button {
  position: absolute;
  top: 40%;
  display: flex;
  justify-content: space-between;
}

.carousel-button.previous {
  left: 5%;
}

.carousel-button.next {
  right: 5%;
}

.carousel-button button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(147, 147, 147, 0.387);
  color: white;
  border: none;
  font-family: monospace;
  font-weight: bold;
  font-size: 20px;
}

.carousel-button button:hover {
  text-shadow: 2px 2px 4px black;
}

/* Bottom Gradient */
.carousel-gradient {
  position: absolute;
  width: 100%;
  height: 250px;
  bottom: 0; /*placed at the bottom of the carousel*/
  background-image: linear-gradient(to bottom, transparent, #230405);
}
/* End of Carousel */

/* Top Picks For You */
.home-catalogue {
  padding: 0px 50px;
  position: relative;
  margin-bottom: 50px;
}

.home-catalogue-title {
  width: fit-content;
}

.home-catalogue-title h2 {
  margin-bottom: 10px;
  color: #ebbfbf;
  text-shadow: 1px -1px 0px white;

  animation-name: text-fadeIn;
  animation-timing-function: ease;
  animation-timeline: view();
  animation-range-start: 1px;
  animation-range-end: 300px;
}

.home-catalogue-title h2:hover {
  text-shadow: 1px -1px 50px white;
}

.home-catalogue-movie {
  display: flex;
  justify-content: space-evenly;
}

.home-catalogue-movie-list {
  margin-bottom: 50px;
}

.home-catalogue-movie-list img {
  position: absolute;
  width: 190px;
  height: 250px;
  margin: 10px;
  flex-shrink: 0;
  transition: all 0.7s ease;

  animation-name: image-zoomIn;
  animation-timing-function: ease;
  animation-timeline: view();
  animation-range-start: 1px;
  animation-range-end: 300px;
}

.home-catalogue-movie-list img:hover {
  width: 230px;
  height: 310px;
  margin: 5px;
  transform: translate(-15px, -10px);
  box-shadow: 0px 0px 30px #ebbfbf;
}

.desc {
  width: 190px;
  height: 30px;
  margin: 265px 10px 0px 10px;
  color: #ebbfbf;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/* End of Top Picks For You */

/* Advertisement Banner */
.banner {
  position: relative;
  width: 1200px;
  height: 300px;
  margin-top: 0;
  margin-bottom: 100px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.banner ul {
  position: absolute;
  left: 0;
  top: 0;
}

.banner li {
  float: left;
  list-style: none;
}

.banner li img {
  width: 600px;
  height: 300px;
}
/* End of Advertisement Banner */

/* Navigation Footer */
footer {
  margin-top: 120px;
}

.nav-footer {
  position: fixed;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  background-color: transparent;
  padding: 5px;

  animation-name: changeBackground;
  animation-timeline: view();
  animation-range-start: 500px;
  animation-range-end: 800px;
  animation-fill-mode: forwards;
}

.nav-icon img {
  width: 25px;
  height: 25px;
  margin: 10px;
  flex-shrink: 0;
  scale: 0;
  opacity: 0;
  transition: all 0.7s ease;

  animation-name: image-zoomIn;
  animation-timeline: view();
  animation-range-start: 400px;
  animation-range-end: 800px;
  animation-fill-mode: forwards;
}

.nav-icon img[target="reservationIcon"] {
  width: 35px;
  height: 35px;
}

.nav-icon img:hover {
  width: 35px;
  height: 35px;
  margin: 5px;
}

.nav-icon img[target="reservationIcon"]:hover {
  width: 45px;
  height: 45px;
}
/* End of Navigation Footer */

/* Back To Top - Go To Bottom */
.page-button {
  position: fixed;
  bottom: 100px;
  right: 80px;
}

.back-to-top button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgba(92, 91, 91, 0.3);
  color: white;
  font-size: 20px;
  font-family: monospace;
  transform: rotate(-90deg);
  margin-bottom: 10px;
}

.back-to-top[target="back-to-bottom"] {
  transform: rotate(180deg);
}

.back-to-top button:hover {
  text-shadow: 1px -1px 5px #ebbfbf;
}
