@import url("https://fonts.googleapis.com/css2?family=Passion+One:wght@400;700;900&family=Yusei+Magic&display=swap");

:root {
  --color-font1: #b58058;
  --color-font2: #574748;
  --bg-card: #fffbe1;
  --bg-shadowcard: #b58058;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;

  font-family: "Passion One", sans-serif;
  font-family: "Yusei Magic", sans-serif;
  letter-spacing: 1px;
}

.preload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-card);
}

.preload {
  z-index: 999;
  gap: 10px;
}

.preload > div {
  height: 15px;
  width: 15px;
  border-radius: 10px;
  background: var(--bg-shadowcard);
  animation: anm-preload 1s linear infinite;
}

.preload > div:nth-child(2) {
  animation-delay: 0.15s;
}
.preload > div:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes anm-preload {
  0%,
  25%,
  75%,
  100% {
    height: 15px;
  }
  50% {
    height: 40px;
  }
}

.main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("ast/bg.webp");
  background-size: cover;
  background-position: bottom;
}

.content {
  position: fixed;
  height: 100%;
  width: 100%;
}

.content:not(.show) {
  display: none;
}

.elements > div {
  position: absolute;
  z-index: -1;
  transition: 1s ease all;
}

.content1 .pohon {
  top: 0;
  right: -3vh;
}

.content1 .pohon img {
  height: 55vh;
}

.content1 .karakter {
  bottom: -10vh;
  left: 10vw;
}

.content1 .karakter img {
  height: 40vh;
}

.content1 .pagar1 {
  bottom: -2vh;
  left: 50%;
}
.content1 .pagar2 {
  bottom: -2vh;
  left: 0;
}

.content1 .pagar1 img,
.content1 .pagar2 img {
  width: 50vw;
}

.content1 .rumput1 {
  bottom: -15vw;
  left: -35vw;
}

.content1 .rumput1 img {
  width: 70vw;
}

.content1 .rumput2 {
  bottom: -20vw;
  right: -20vw;
}

.content1 .rumput2 img {
  width: 70vw;
}

.content1 .burung {
  top: 25vh;
  left: 10vw;
}

.content .burung img {
  height: 25vh;
}

/* CONTENT 2 */
.content2 .pohon {
  left: 0;
  top: 0;
}

.content2 .pohon img {
  height: 55vh;
  transform: scaleX(-1);
}

.content2 .rumah {
  left: -40vw;
  bottom: -8vh;
}

.content2 .rumah img {
  width: 80vw;
}

.content2 .pagar {
  left: -7vh;
  bottom: -2vh;
}

.content2 .pagar img {
  height: 14vh;
}

.content2 .rumput {
  bottom: -10vh;
  left: -25vw;
}

.content2 .rumput img {
  width: 60vw;
}

.content2 .burung {
  top: 10vh;
  right: 10vw;
}
.content2 .burung img {
  height: 27vh;
}

.content2 .karakter1 {
  bottom: -8vh;
  left: 10vw;
  transition-delay: 0.2s;
}

.content2 .karakter2 {
  bottom: -8vh;
  right: 10vw;
  transition-delay: 0.2s;
}

.content2 .karakter1 img,
.content2 .karakter2 img {
  height: 45vh;
}

/* CONTENT 3 */
.content3 .daun-pohon {
  right: 0;
  top: 0;
}

.content3 .daun-pohon img {
  height: 55vh;
}

.content3 .karakter {
  right: 7vw;
  bottom: -7vh;
}

.content3 .karakter img {
  height: 45vh;
  transform: scaleY(1.05);
}

.content3 .pagar {
  right: 0;
  bottom: -2vh;
}

.content3 .pagar img {
  height: 16vh;
}

.content3 .rumput {
  bottom: -5vh;
  right: -25vw;
}

.content3 .rumput img {
  width: 65vw;
}

.content3 .layang-layang {
  top: 5vh;
  left: 7vw;
}

.content3 .layang-layang img {
  height: 25vh;
  transform: scaleX(-1);
}

/* CONTENT 4 */
.content4 .pohon {
  left: 0;
  top: 0;
}

.content4 .pohon img {
  height: 55vh;
  transform: scaleX(-1);
}

.content4 .orang-sawah {
  left: 4vw;
  bottom: 7vh;
}

.content4 .orang-sawah img {
  height: 28vh;
  transform: scaleX(-1);
}

.content4 .pagar {
  left: -15vw;
  bottom: -2vh;
}

.content4 .pagar img {
  height: 16vh;
}

.content4 .rumput {
  left: -23vw;
  bottom: -7vh;
}

.content4 .rumput img {
  height: 18vh;
}

.content4 .burung {
  right: 10vh;
  top: 20vh;
}

.content4 .burung img {
  height: 20vh;
}
.content4 .karakter {
  right: 5vw;
  bottom: -7vh;
}

.content4 .karakter img {
  height: 45vh;
}

/* CONTENT 5 */
.content5 .daun-pohon {
  right: 0;
  top: 0;
}

.content5 .daun-pohon img {
  height: 55vh;
}

.content5 .pagar {
  bottom: -2vh;
  right: -10vw;
}

.content5 .pagar img {
  height: 16vh;
}

.content5 .rumput {
  bottom: -5vh;
  right: -25vw;
}

.content5 .rumput img {
  width: 60vw;
}

.content5 .layang-layang {
  top: 5vh;
  left: 7vw;
}

.content5 .layang-layang img {
  height: 25vh;
  transform: scaleX(-1);
}

.content5 .rumah {
  right: -40vw;
  bottom: -2vh;
}

.content5 .rumah img {
  width: 80vw;
}

.content5 .karakter1 {
  bottom: -6vh;
  left: 2vw;
  transition-delay: 0.2s;
}

.content5 .karakter2 {
  bottom: -6vh;
  right: 2vw;
  transition-delay: 0.2s;
}

.content5 .karakter1 img {
  height: 45vh;
}

.content5 .karakter2 img {
  height: 42vh;
}
/* CONTENT C */

.content .c {
  height: 100%;
}

.content1 .c {
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.content1 .c h1 {
  font-family: "Passion One", sans-serif;
  font-size: 4rem;
  text-align: center;
  color: var(--color-font1);
  text-shadow: 2px 3px 0 #fff;
  transition: 1s ease all;
}
.content1 .foto {
  padding: 15px;
  padding-bottom: 35px;
  background: var(--bg-card);
  box-shadow: 4px 4px 0 var(--bg-shadowcard);
  border-radius: 15px;
  transition: 1s ease all;
}
.content1 .foto img {
  max-height: 30vh;
  border-radius: 5px;
}

.content1 .c .btn {
  font-size: 1.3rem;
  padding: 7px 15px;
  font-family: "Yusei Magic", sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  background: var(--color-font1);
  color: var(--bg-card);
  border: none;
  border-radius: 10px;
  box-shadow: 2px 3px 0 #fff;
  transition: 1s ease all;
}

.content2 .c {
  padding: 22vh 5vw;
  padding-left: 30vw;
}

.content .c .card {
  /* background: var(--bg-card); */
  /* padding: 20px; */
  /* border-radius: 16px; */
  /* box-shadow: 5px 5px 0 var(--bg-shadowcard); */

  transition: 1s ease all;
}

.content3 .c {
  padding: 22vh 8vw;
  padding-right: 27vw;
}
.content4 .c {
  padding: 22vh 5vw;
  padding-left: 30vw;
}
.content5 .c {
  padding: 22vh 5vw;
  padding-right: 27vw;
}

.content:not(.content1) .c .card .text {
  font-size: 1.2rem;
  max-height: 240px;
  overflow-y: auto;
  color: var(--color-font2);
  font-weight: bold;
  line-height: 30px;
}

.content:not(.content1) .c .btn-c {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
}

.content:not(.content1) .c .btn {
  /* margin: auto; */
  font-size: 1.3rem;
  padding: 7px 15px;
  font-family: "Yusei Magic", sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  background: var(--color-font1);
  color: var(--bg-card);
  border: none;
  border-radius: 10px;
  box-shadow: 2px 3px 0 #fff;
}

.content .btn {
  transition: 1s ease all;
}

/* ANIMATION */

.content .elements > div {
  opacity: 1;
}

.content:not(.anm) .elements > div {
  opacity: 0;
}

.content1:not(.anm) .pohon {
  top: 0;
  right: -36vh;
}

.content1:not(.anm) .karakter {
  bottom: -10vh;
  left: -20vw;
}

.content1:not(.anm) .pagar1 {
  bottom: -32vh;
  left: 50%;
}
.content1:not(.anm) .pagar2 {
  bottom: -32vh;
  left: 0;
}

.content1:not(.anm) .rumput1 {
  bottom: -145vw;
  left: -165vw;
}

.content1:not(.anm) .rumput2 {
  bottom: -150vw;
  right: -150vw;
}

.content1:not(.anm) .burung {
  top: -15vh;
  left: -20vw;
}

/* CONTENT 2 */
.content2:not(.anm) .pohon {
  left: -30vw;
  top: -30vh;
}

.content2:not(.anm) .rumah {
  left: -70vw;
  bottom: -8vh;
}

.content2:not(.anm) .pagar {
  left: -7vh;
  bottom: -32vh;
}

.content2:not(.anm) .rumput {
  bottom: -40vh;
  left: -55vw;
}

.content2:not(.anm) .burung {
  top: -20vh;
  right: -20vw;
}

.content2:not(.anm) .karakter1 {
  bottom: -8vh;
  left: -20vw;
}

.content2:not(.anm) .karakter2 {
  bottom: -8vh;
  right: -20vw;
}

/* CONTENT 3 */
.content3:not(.anm) .daun-pohon {
  right: -30vw;
  top: -30vh;
}

.content3:not(.anm) .karakter {
  right: -23vw;
  bottom: -7vh;
}

.content3:not(.anm) .pagar {
  bottom: -33vh;
  right: -30vw;
}

.content3:not(.anm) .rumput {
  bottom: -35vh;
  right: -55vw;
}

.content3:not(.anm) .layang-layang {
  top: -5vh;
  left: -23vw;
}

/* CONTENT 4 */
.content4:not(.anm) .pohon {
  left: -30vw;
  top: -30vh;
}

.content4:not(.anm) .orang-sawah {
  left: -26vw;
  bottom: 7vh;
}

.content4:not(.anm) .pagar {
  left: -30vw;
  bottom: -32vh;
}

.content4:not(.anm) .rumput {
  left: -55vw;
  bottom: -37vh;
}
.content4:not(.anm) .burung {
  right: -20vh;
  top: 20vh;
}
.content5:not(.anm) .karakter1 {
  bottom: -8vh;
  left: -28vw;
}

/* CONTENT 5 */
.content5:not(.anm) .daun-pohon {
  right: -30vw;
  top: -30vh;
}

.content5:not(.anm) .pagar {
  bottom: -32vh;
  right: -10vw;
}

.content5:not(.anm) .rumput {
  bottom: -35vh;
  right: -55vw;
}

.content5:not(.anm) .layang-layang {
  top: -5vh;
  left: -23vw;
}

.content5:not(.anm) .rumah {
  right: -70vw;
  bottom: -2vh;
}
.content5:not(.anm) .karakter2 {
  bottom: -8vh;
  right: -28vw;
}
.content4:not(.anm) .karakter {
  right: -25vw;
  bottom: -7vh;
}

.content1:not(.anm) .c h1 {
  transform: translateX(-30vw);
  opacity: 0;
}
.content1:not(.anm) .foto {
  transform: translateX(30vw);
  opacity: 0;
}

.content3:not(.anm) .c .card,
.content5:not(.anm) .c .card {
  transform: translateX(-30vw);
  opacity: 0;
}

.content2:not(.anm) .c .card,
.content4:not(.anm) .c .card {
  transform: translateX(30vw);
  opacity: 0;
}

.content:not(.anm) .btn {
  transform: translateY(30vh);
  opacity: 0;
}

/* ===== */
.swal2-container {
  background: transparent;
  background: rgba(0, 0, 0, 0.2) !important;
  /* backdrop-filter: blur(3px) !important; */
}
.swal2-popup {
  background: var(--bg-card);
  box-shadow: 5px 5px 0 var(--bg-shadowcard);
  width: 96%;
  max-width: 400px;
  border-radius: 20px;
}

.swal2-title {
  font-size: 1.4rem;
  color: var(--color-font2);
}

.swal2-actions button {
  color: var(--color-font2) !important;
  font-size: 1.2rem !important;
  padding: 7px 15px !important;
  font-family: "Yusei Magic", sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  background: var(--color-font1) !important;
  color: var(--bg-card) !important;
  border: none;
  border-radius: 10px !important;
  box-shadow: 2px 3px 0 #fff !important;
  transition: 1s ease all;
}

textarea {
  background: white !important;
  box-shadow: inset 3px 3px 5px var(--bg-shadowcard), 3px 3px 5px #fff !important;
  border-radius: 15px !important;
  resize: none;
}

.input-date-card {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2) !important;
  /* backdrop-filter: blur(3px) !important; */
  z-index: 9;
}

.input-date-card:not(.show) {
  display: none;
}

.input-date-card .box {
  background: var(--bg-card);
  box-shadow: 5px 5px 0 var(--bg-shadowcard);
  width: 96%;
  max-width: 400px;
  border-radius: 20px;
  text-align: center;
  padding: 25px;
  animation: anm-pop-show 0.3s ease;
  -webkit-animation: anm-pop-show 0.3s ease;
}

.input-date-card .box p {
  font-size: 1.4rem;
  color: var(--color-font2);
  font-weight: 600;
}

.input-date-card .box input {
  padding: 10px;
  font-size: 1.1rem;
  margin: 25px auto;
  min-width: 50%;
  border: none;
  box-shadow: inset 3px 3px 5px var(--bg-shadowcard), 3px 3px 5px #fff !important;
  border-radius: 10px !important;
}

.input-date-card button {
  display: block;
  margin: auto;
  color: var(--color-font2) !important;
  font-size: 1.2rem !important;
  padding: 7px 15px !important;
  font-family: "Yusei Magic", sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  background: var(--color-font1) !important;
  color: var(--bg-card) !important;
  border: none;
  border-radius: 10px !important;
  box-shadow: 2px 3px 0 #fff !important;
  transition: 1s ease all;
}

@keyframes anm-pop-show {
  0% {
    transform: scale(0.7);
  }
  45% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.wm {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 5px;
  background: var(--bg-card);
  color: var(--color-font2);
  font-weight: bold;
}

.wm span {
  display: inline-block;
  color: red;
  animation: anm-jj 1s ease infinite;
}

@keyframes anm-jj {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
