@import url("https://fonts.googleapis.com/css2?family=Niconne&family=Playpen+Sans:wght@400;500;600&family=Quicksand:wght@300;400;500;600;700&family=Roboto+Slab:wght@300;400;500;600;700&display=swap");
:root {
  --color-primary-dark: #ffe5db;
  --color-primary-dark-second: #ffc7b0;
  --color-primary-light: #fff0ea;

  --font-happy: "Roboto Slab", serif;
  --font-birthday: "Niconne", cursive;
  --font-nama: "Roboto Slab", serif;
  --font-klikaku: "Roboto Slab", serif;
  --font-pesan: "Roboto Slab", serif;
  --font-kirimpesan: "Playpen Sans", cursive;
  --font-btntutor: "Playpen Sans", cursive;
  --font-txtdeka: "Playpen Sans", cursive;

  --txt-shadow1: 2.5px 2.5px 2px rgba(0, 0, 0, 0.208);
  --txt-shadow2: 2.5px 2.5px 2px rgba(0, 0, 0, 0.208);
  --box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.2);
  --box-shadow2: 6px 6px 6px rgba(255, 0, 0, 0.2);
  --box-shadow2: 4px 4px 4px rgba(0, 0, 0, 0.2);

  --url-pita: url("https://dekatutorial.github.io/brd/pita.svg");
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Roboto Slab", serif;
  scroll-behavior: smooth;
}
.preload,
.open {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9;
}

.preload {
  background: var(--color-primary-dark);
  z-index: 99;
}

.preload p {
  font-weight: bold;
  letter-spacing: 2px;
  color: #333;
  animation: anm-fade 1s ease-in-out infinite;
  -webkit-animation: anm-fade 1s ease-in-out infinite;
}

@keyframes anm-fade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.open .card {
  padding: 20px 25px;
  margin: 20px;
  background: white;
  text-align: center;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}
.open .card h2 {
  color: #333;
  font-size: 1.3rem;
}
.open .card img {
  height: 90px;
  margin-top: 15px;
  margin-bottom: 5px;
  animation: anm-jj 1s ease-in-out infinite;
  -webkit-animation: anm-jj 1s ease-in-out infinite;
}

@keyframes anm-jj {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
}

.container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: var(--color-primary-dark);
}
.container .content1,
.container .content2 {
  width: 100%;
  height: 100%;
  padding: 20px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  overflow: hidden;
}
.container .content1::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 37vh;
  background: var(--color-primary-light);
  z-index: -1;
}
.container .content1 .star img {
  position: absolute;
  width: 20px;
  animation: anm-btg var(--s) ease-in-out infinite;
  -webkit-animation: anm-btg var(--s) ease-in-out infinite;
}
@keyframes anm-btg {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.4);
  }
}
.container .content1 .star img:nth-child(1) {
  width: 12px;
  left: 12%;
  top: 30%;
}
.container .content1 .star img:nth-child(2) {
  width: 19px;
  left: 8%;
  top: 11.2%;
}
.container .content1 .star img:nth-child(3) {
  width: 12px;
  left: 16%;
  top: 4.2%;
}
.container .content1 .star img:nth-child(4) {
  width: 12px;
  right: 41%;
  top: 2.1%;
}
.container .content1 .star img:nth-child(5) {
  width: 22px;
  right: 11%;
  top: 10%;
}
.container .content1 .star img:nth-child(6) {
  width: 23px;
  right: 7%;
  top: 28%;
}
.container .content1 .star img:nth-child(7) {
  width: 25px;
  left: 7%;
  top: 45%;
}
.container .content1 .star img:nth-child(8) {
  width: 13px;
  left: 6.5%;
  top: 56%;
}
.container .content1 .star img:nth-child(9) {
  width: 13px;
  right: 8%;
  top: 43%;
}
.container .content1 .star img:nth-child(10) {
  width: 23px;
  right: 2%;
  top: 52.5%;
}
.container .content1 {
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 10px; */
}
.container .content1 h2 {
  font-family: var(--font-happy);
  font-size: 2em;
  line-height: 1em;

  text-shadow: var(--txt-shadow1);
  color: #3c221f;
  opacity: 0;
}
.container .content1 h1 {
  font-family: var(--font-birthday);
  line-height: 1em;
  font-size: 4em;
  color: #3c221f;
  opacity: 0;
}

.container .content1 .foto {
  position: relative;
  /* width: 60vw; */
  /* max-width: 350px; */
  height: 50vh;
  aspect-ratio: 10/16;
  background-size: cover;
  border-radius: 70px 70px 0 0;
  border: 7px solid var(--color-primary-dark-second);
  border-bottom: 18px solid var(--color-primary-dark-second);
  box-shadow: var(--box-shadow);
  -webkit-border-radius: 70px 70px 0 0;
  -moz-border-radius: 70px 70px 0 0;
  -ms-border-radius: 70px 70px 0 0;
  -o-border-radius: 70px 70px 0 0;
  opacity: 0;
}
.container .content1 .foto img {
  height: 45%;
  position: absolute;
  bottom: -25px;
  right: -50px;
  --sk: -2deg;
  --sr: 3deg;
  transform-origin: bottom center;
  animation: anm-bunga 2.5s ease-in-out infinite;
  -webkit-animation: anm-bunga 2.5s ease-in-out infinite;
}
@keyframes anm-bunga {
  0%,
  100% {
    transform: skewX(0);
    -webkit-transform: skewX(0);
    -moz-transform: skewX(0);
    -ms-transform: skewX(0);
    -o-transform: skewX(0);
  }
  50% {
    transform: skewX(var(--sk)) rotateZ(var(--sr));
    -webkit-transform: skewX(var(--sk)) rotateZ(var(--sr));
    -moz-transform: skewX(var(--sk)) rotateZ(var(--sr));
    -ms-transform: skewX(var(--sk)) rotateZ(var(--sr));
    -o-transform: skewX(var(--sk)) rotateZ(var(--sr));
  }
}

.container .content1 .foto img:first-child {
  rotate: -13deg;
  left: -30px;
  --sk: 2deg;
  --sr: -3deg;

  animation: anm-bunga 2s ease-in-out infinite;
  -webkit-animation: anm-bunga 2s ease-in-out infinite;
}

.container .content1 .name {
  min-width: 220px;
  text-align: center;
  background: var(--color-primary-dark-second);
  padding: 7px 10px;
  position: relative;
  filter: drop-shadow(var(--box-shadow2));
  -webkit-filter: drop-shadow(var(--box-shadow2));
  opacity: 0;
}
.container .content1 h3 {
  font-family: var(--font-nama);
  font-size: 1.3em;
  letter-spacing: 1.5px;
}
.container .content1 .name::after,
.container .content1 .name::before {
  content: "";
  position: absolute;
  height: 100%;
  top: 0;
  width: 30px;
  right: -30px;
  background-image: var(--url-pita);
  background-size: contain;
  background-repeat: no-repeat;
}
.container .content1 .name::before {
  right: auto;
  left: -30px;
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  -o-transform: scaleX(-1);
}
.container .content1 button {
  border: none;
  font-family: var(--font-klikaku);
  font-size: 1rem;
  letter-spacing: 2px;
  border-radius: 7px;
  padding: 9px 12px;
  background: #3c221f;
  color: white;
  box-shadow: var(--box-shadow2);
  opacity: 0;
}

.container .content1.show h2 {
  animation: fade-right 1s ease forwards;
}
.container .content1.show h1 {
  text-shadow: var(--txt-shadow2);
  animation: fade-left 1s ease forwards;
  animation-delay: 0.2s;
}
.container .content1.show .foto {
  animation: fade-up 0.7s ease forwards;
  -webkit-animation: fade-up 0.7s ease forwards;
  animation-delay: 0.5s;
}

.container .content1.show .name {
  animation: fade-up 0.5s ease forwards;
  -webkit-animation: fade-up 0.5s ease forwards;
  animation-delay: 1s;
}

.container .content1.show button {
  animation: fade-up 0.7s ease forwards;
  animation-delay: 1.5s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-left {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-right {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes popup-show {
  0% {
    opacity: 1;
    transform: scale(0.7);
  }
  45% {
    opacity: 1;
    transform: scale(1.05);
  }
  80% {
    opacity: 1;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* COntent 2 */

.container .content2 {
  background: var(--color-primary-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 0;
}
.container .content2 > div {
  width: 100%;
  z-index: 2;
}
.container .content2 img.uwel {
  position: absolute;
  top: -20px;
  left: -30px;
  right: -30px;
}
.container .content2 img.uwel:nth-child(1) {
  transform: rotate(180deg);
  top: auto;
  bottom: -10px;
  left: -30px;
  right: -30px;
}
.container .content2 .trompet1 {
  position: absolute;
  width: 60px;
  top: 15px;
  right: 15px;
}
.container .content2 .trompet2 {
  position: absolute;
  width: 60px;
  top: 15px;
  left: 15px;
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  -o-transform: scaleX(-1);
}

.container .content2 img.str1 {
  position: absolute;
  width: 38px;
  bottom: 15px;
  left: 15px;
}
.container .content2 img.str2 {
  position: absolute;
  width: 38px;
  bottom: 15px;
  right: 15px;
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  -o-transform: scaleX(-1);
}
.container .content2 .paper-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 1;
}
.paper {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 450px;
  margin: 0 auto;
  background: #fafafa;
  border: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  opacity: 0;
}

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 10px;
  width: 40px;
  background-size: 30px 30px;
  border-right: 3px solid #91d1d3;
  box-sizing: border-box;
}
.paper::after {
  top: 19px;
  bottom: 19px;
  background: radial-gradient(#da9f52 6px, transparent 7px) repeat-y;
  background-size: 30px 30px;
}

.paper-content {
  position: absolute;
  top: 30px;
  right: 20px;
  bottom: 30px;
  left: 50px;
  background-image: linear-gradient(transparent, transparent 28px, #91d1d3 28px);
  background-size: 30px 30px;
}

.paper textarea {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  line-height: 30px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3c221f;
  font-family: var(--font-pesan);
  font-size: 1.1em;
  box-sizing: border-box;
  z-index: 1;
  resize: none;
}
.container .content2 button {
  width: fit-content;
  border: none;
  font-family: var(--font-klikaku);
  font-size: 1em;
  letter-spacing: 2px;
  border-radius: 7px;
  margin-top: 20px;
  padding: 9px 12px;
  background: #3c221f;
  color: white;
  box-shadow: var(--box-shadow2);
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  -ms-border-radius: 7px;
  -o-border-radius: 7px;
  opacity: 0;
}

.content2.show .paper {
  animation: popup-show 0.5s ease forwards;
  -webkit-animation: popup-show 0.5s ease forwards;
}

.content2.show button {
  animation: fade-up 0.7s ease forwards;
  animation-delay: 0.3s;
}

.container button:active {
  transform: scale(0.95) !important;
}

.swal2-popup {
  border-radius: 20px;
  background: var(--color-primary-light);
}

.swal2-popup .swal2-title {
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #333;
  margin-top: 10px;
}

.swal2-popup textarea {
  background: var(--color-primary-dark);
  resize: none;
}
.swal2-popup .swal2-actions {
  margin-top: 5px;
}
.swal2-popup button {
  font-size: 1em;
  letter-spacing: 2px;
  border-radius: 7px !important;
  margin-top: 20px;
  padding: 9px 12px;
  background: #3c221f !important;
  color: white;
  border: none;
  /* box-shadow: none !important; */
  box-shadow: var(--box-shadow2) !important;
}
