@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Serif", serif;
  letter-spacing: 1px;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.preload {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #2a61cd;
  z-index: 99;
  gap: 10px;
}

.preload.hide {
  transition: 1s ease all;
  opacity: 0;
}

.preload p {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  animation: anm-preload2 2s ease-in-out infinite;
}

.preload div {
  height: 16px;
  width: 16px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-5px);
  animation: anm-preload 1s ease-in-out infinite;
}

.preload div:nth-child(2) {
  animation-delay: 0.2s;
}

.preload div:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes anm-preload {
  0%,
  100% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(5px);
  }
}
@keyframes anm-preload2 {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.main {
  background: #161d31;
  /* background-image: url("../../asset/207/bg.webp"); */
  background-size: cover;
  background-position: bottom;
  position: fixed;
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
}

.container {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  /* background-size: cover;
  background-position: bottom;
  background-image: url("https://raw.githubusercontent.com/deka-files/v/main/209/bg.webp"); */
}

.bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: bottom;
  background-image: url("https://raw.githubusercontent.com/deka-files/v/main/lckmn1/bg.webp");
}

.fireworks {
  position: absolute;
  width: 100%;
  height: 100%;
  /* position: relative; */
  top: 0;
  left: 0;
}

.fireworks > * {
  position: absolute;
  top: 0;
  width: 100%;
}

/* .moon {
  position: absolute;
  height: 50px;
  width: 50px;
  right: 30px;
  top: 20px;
  background: #faf5d8;
  background-image: radial-gradient(#faf5d8, #fff2b7);
  border-radius: 50%;
  box-shadow: 0 0 20px #f6df789b, 0 0 50px #f6de78;
} */

.content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.open {
  justify-content: start;
  padding: 20px;
  padding-top: 20%;
}

.open-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.open h1 {
  font-family: "Great Vibes", cursive;
  font-size: 3.5rem;
  color: #f3f4f6;
  text-shadow: 0 0 10px #f3f4f6;
  text-align: center;
  font-weight: 500;
  opacity: 0;
  animation: anm-show 1.5s ease forwards;
}

.open .year {
  display: flex;
  gap: 2px;
}

.open h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #f3f4f6;
  text-shadow: 0 0 10px #f3f4f6;
  opacity: 0;
  animation: anm-show 1.5s ease forwards;

  animation-delay: 0.3s;
}

.open p {
  font-weight: 600;
  text-align: center;
  color: #f3f4f6;
  text-shadow: 0 0 10px #f3f4f6;
  opacity: 0;
  animation: anm-show 1.5s ease forwards;
  animation-delay: 0.6s;
}

.content:not(.show) {
  display: none;
}

.btn-container {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 2;
  /* text-align: center; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-container .btn-blur {
  transition: 1s ease all;
  background: #4472be;
}

.btn-container:not(.show) .btn-blur {
  transform: translateY(50px);
  opacity: 0;
}

.btn-container .btn-blur {
  width: fit-content;
  backdrop-filter: blur(5px);
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.btn-container button {
  padding: 6px 12px;
  background: none;
  color: #fff;
  border: none;

  border: 2px solid #fff;

  /* backdrop-filter: blur(5px); */

  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    inset 0 0 5px rgba(255, 255, 255, 0.5);

  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.btn-container button:active {
  transform: scale(0.95);
}

.btn-container button:not(.show) {
  display: none;
}

.btn {
  padding: 6px 12px;
  background: none;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;

  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.main-content {
  padding: 20px;
  padding-top: 20px;
  max-height: 72vh;
  /* background: blanchedalmond; */
}

/* .main-content .foto { */
/* background: bisque; */
/* width: fit-content;
  max-height: 45%;
  max-width: 75%; */
/* background: #ffffff2d;
  padding: 10px 10px 30px 10px;
  backdrop-filter: blur(2px); */
/* } */

.main-content img {
  max-height: 28vh;
  max-width: 70%;
  border: 2px solid #f3f4f6;
  border-radius: 10px;
  box-shadow: 0 0 20px #f3f4f6;
}

.main-content .text {
  color: #f3f4f6;
  max-height: 50%;
  padding: 10px;
  overflow-y: auto;
  text-align: center;
  font-weight: 600;
  text-shadow:
    0 0 15px #000,
    0 0 5px #000,
    0 0 5px #f3f4f6;
}

.main-content.text-only .text {
  max-height: 100%;
}

.main-content {
  animation: anm-show 1.5s ease forwards;
  max-height: 80%;
}

.content.hide > * {
  transition: 1.5s;
  filter: blur(10px);
  opacity: 0;
}

@keyframes anm-show {
  from {
    filter: blur(10px);
    opacity: 0;
  }
  to {
    filter: blur(0);
    opacity: 1;
  }
}

.swal2-popup {
  background: #fff;
  border-radius: 20px;
  padding-top: 10px;
  padding-bottom: 25px;
}
.swal2-title {
  font-size: 1.4rem;
  color: #3b3b3b;
}
.swal2-popup textarea {
  resize: none;
  /* background: #eff3ff; */
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.2),
    1px 1px 2px white !important;
  border-radius: 10px;
}
.swal2-actions button {
  /* box-shadow: 2px 2px 0 #3c3c3c !important; */

  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem !important;
  font-weight: 600;
  color: #fff;
  background: #4472be !important;
  border-radius: 10px !important;
  padding: 6px 16px;
  border: none;
  box-shadow: 0 0 10px #fff;
}
.swal2-actions button:active {
  transform: scale(0.95) translateY(2px);
  /* box-shadow: 0 0 0 #161d31 !important; */
}

/* Tempat semua bintang */
.stars-container {
  position: absolute;
  width: 100%;
  height: 70%;
  left: 0;
  top: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  display: block;
  object-fit: contain;
  pointer-events: none;

  /* opacity: 0.25; */

  animation-name: twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;

  /* filter: drop-shadow(0 0 3px rgba(255, 243, 151, 0.7)); */

  will-change: opacity, transform;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.65) rotate(0deg);
  }

  35% {
    opacity: 0.55;
    transform: scale(0.9) rotate(8deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.25) rotate(15deg);
  }

  70% {
    opacity: 0.4;
    transform: scale(0.8) rotate(5deg);
  }
}
/* ============================= */
/* BINTANG JATUH */
/* ============================= */

.shooting-star {
  position: absolute;
  top: 0;
  left: 0;

  width: var(--star-size);
  height: var(--star-size);

  border-radius: 50%;

  background: #fffbd5;

  box-shadow:
    0 0 4px #fff,
    0 0 8px #fff3a0,
    0 0 14px rgba(255, 220, 80, 0.9);

  opacity: 0;

  transform: translate3d(var(--start-x), var(--start-y), 0) rotate(var(--angle));

  animation: shooting-star var(--duration) linear forwards;

  will-change: transform, opacity;
}

/* Ekor cahaya */
.shooting-star::before {
  content: "";

  position: absolute;

  width: var(--tail-length);
  height: var(--tail-width);

  top: 50%;
  right: 50%;

  border-radius: 100%;

  background: linear-gradient(
    to left,
    rgba(255, 250, 200, 1) 0%,
    rgba(255, 224, 100, 0.75) 25%,
    rgba(255, 205, 70, 0.3) 65%,
    transparent 100%
  );

  transform: translateY(-50%);

  filter: blur(0.5px);

  box-shadow: 0 0 6px rgba(255, 225, 100, 0.5);
}

@keyframes shooting-star {
  0% {
    opacity: 0;

    transform: translate3d(var(--start-x), var(--start-y), 0)
      rotate(var(--angle)) scale(0.6);
  }

  8% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;

    transform: translate3d(
        calc(var(--start-x) + var(--move-x)),
        calc(var(--start-y) + var(--move-y)),
        0
      )
      rotate(var(--angle)) scale(1);
  }
}
