@import url("https://fonts.googleapis.com/css2?family=Chewy&family=Handlee&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Chewy", serif;
  font-family: "Sour Gummy", serif;
  font-weight: 500;
}
body.theme1 {
  --bg-cover: url("https://dekatutorial.github.io/v/cvr/nb1.webp");
  --mt-textopening: 30px;
}
body.theme2 {
  --bg-cover: url("https://dekatutorial.github.io/v/cvr/nb2.webp");
  --mt-textopening: 45px;
}
body.theme3 {
  --bg-cover: url("https://dekatutorial.github.io/v/cvr/nb3.webp");
  --mt-textopening: 45px;
}
body.theme4 {
  --bg-cover: url("https://dekatutorial.github.io/v/cvr/nb4.webp");
  --mt-textopening: 30px;
}
.container,
.preload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f6f6e2;
}
.preload {
  z-index: 999;
  gap: 10px;
}
.preload > div {
  height: 15px;
  width: 15px;
  border-radius: 10px;
  background: #3c3c3c;
  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;
  }
}
.container {
  flex-direction: column;
}
.elements {
  z-index: -1;
}
.elements img {
  position: fixed;
}
.cloud {
  width: 46vh;
}
.cloud1 {
  top: -24vh;
  right: -13vh;
}
.cloud2 {
  bottom: -18vh;
  left: -23vh;
}
.star1 {
  width: 12vh;
  left: calc(12vw - 6vh);
  top: 4vh;
}
.star2 {
  width: 12vh;
  bottom: 1vh;
  left: calc(60vw - 6vh);
}
.uwel {
  width: 6.8vh;
  transform: rotate(-40deg);
  left: -1vw;
  top: 50vh;
}
.flower {
  width: 5vh;
  right: 2vw;
  top: 30vh;
}
.love {
  width: 13vh;
  transform: rotate(-30deg);
  bottom: 0;
  right: 0;
}
.paper-container {
  position: relative;
  width: 500px;
  max-width: 300px;
  aspect-ratio: 76/105 !important;
  margin-top: 6vh;
  opacity: 0;
}
.paper-container.show {
  animation: popup-show 0.4s ease forwards;
}
.paper-container > .top {
  position: absolute;
  height: 50px;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 12px;
}
.paper-container > .top > div {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 2px;
  padding-bottom: 5px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.paper-container > .top > div > div {
  position: relative;
  height: 45px;
  width: 5px;
  border-radius: 3px;
  background-color: #262626;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}
.paper-container > .top > div > div > div {
  position: absolute;
  width: 8px;
  height: 18px;
  top: -2px;
  background-color: #262626;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
}
.paper-container > .top > div:nth-child(1) > div > div {
  left: 0;
}
.paper-container > .top > div:nth-child(8) > div > div {
  right: 0;
}
.paper-container > .top > div:nth-child(2) > div > div {
  left: 0;
  width: 7px;
}
.paper-container > .top > div:nth-child(7) > div > div {
  right: 0;
  width: 7px;
}
.paper-container > .top > div:nth-child(3) > div > div {
  left: 0;
  width: 6.5px;
}
.paper-container > .top > div:nth-child(6) > div > div {
  right: 0;
  width: 6.5px;
}
.paper-container > .top > div:nth-child(4) > div > div {
  width: 6px;
  left: -0.5px;
}
.paper-container > .top > div:nth-child(5) > div > div {
  width: 6px;
  right: -0.5px;
}
.paper-container > .top > div > div > div::before {
  position: absolute;
  content: "";
  height: 10px;
  width: 1.5px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.5;
  top: 5px;
}
.paper-container > .top > div:nth-child(1) > div > div::before {
  left: 1px;
}
.paper-container > .top > div:nth-child(8) > div > div::before {
  right: 1px;
}
.paper-container > .top > div:nth-child(2) > div > div::before {
  left: 1.5px;
}
.paper-container > .top > div:nth-child(7) > div > div::before {
  right: 1.5px;
}
.paper-container > .top > div:nth-child(3) > div > div::before {
  left: 1.5px;
}
.paper-container > .top > div:nth-child(6) > div > div::before {
  right: 1.5px;
}
.paper-container > .top > div:nth-child(4) > div > div::before {
  left: 2px;
}
.paper-container > .top > div:nth-child(5) > div > div::before {
  right: 2px;
}
.paper,
.cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  background: #fff;
  transform-origin: 0 -60% !important;
}
@keyframes anm-paper-out {
  0% {
    transform: rotate(0) translateX(0) translateY(0);
    opacity: 1;
  }
  100% {
    transform: rotate(20deg) translateX(100px);
    opacity: 0;
  }
}
.paper:nth-child(2) {
  box-shadow: 2px 2px 0 #ededed, 10px 7px 10px rgba(0, 0, 0, 0.3), 15px 5px 10px rgba(0, 0, 0, 0), 0 0 10px rgba(0, 0, 0, 0.2);
}
.paper:nth-child(2)::before {
  z-index: -1;
  content: "";
  position: absolute;
  width: calc(100% - 35px);
  height: 50px;
  background: rgba(0, 0, 0, 0.2);
  bottom: -10px;
  left: 30px;
  border-radius: 20px;
  filter: blur(5px);
}
.paper:nth-child(2)::after {
  z-index: -1;
  content: "";
  position: absolute;
  height: calc(100% - 30px);
  width: 100px;
  background: rgba(0, 0, 0, 0.2);
  right: -20px;
  top: 20px;
  border-radius: 25px;
  filter: blur(5px);
}
.paper .top,
.cover .top {
  height: 50px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 12px;
}
.paper .top > div,
.cover .top > div {
  width: 18px;
  height: 18px;
  background: #000;
  box-shadow: inset 0 7px 0 #b0b0b0;
}
.cover {
  background-image: var(--bg-cover);
  background-size: cover;
  background-position: center;
  position: relative;
  height: 100%;
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-image: linear-gradient(-25deg, rgba(0, 0, 0, 0.132), transparent);
}
.paper-content {
  background: linear-gradient(transparent, transparent 28px, #000 28px);
  background-size: 30px 30px;
  height: calc(100% - 70px);
  margin: 5px 20px 20px 20px;
  border-top: 2px solid black;
}
.paper-content img {
  height: 130px;
  margin: auto;
  text-align: center;
  display: block;
  filter: drop-shadow(0 0 1px black);
  transition: 1s ease all;
  opacity: 0;
}
.paper.show .paper-content img {
  animation: anm-img-in 0.8s ease 0.8s forwards;
}
@keyframes anm-img-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.paper-content .text {
  font-size: 1.1rem;
  padding: 0 10px;
  margin-top: -5px;
  line-height: 30px;
  height: 180px;
  overflow-y: auto;
  margin-top: 20px;
}
.paper.oimg .paper-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100% - 82px);
}
.paper.oimg .paper-content img {
  transform: translateY(-10px);
}
.paper.otxt .paper-content .text {
  height: calc(100% - 14px);
  margin-top: 0;
}
.cover .text-opening {
  text-align: center;
  margin-top: var(--mt-textopening);
  font-size: 1.4rem;
  font-weight: 600;
  color: #262626;
}
.btn-c {
  margin-top: 20px;
  transition: 0.7s ease all;
}
.btn-c button {
  border-radius: 10px;
  border: 3px solid #3c3c3c;
  box-shadow: 2px 2px 0 #3c3c3c;
  background: pink;
  color: #3c3c3c;
  padding: 8px 15px;
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-weight: 600;
}
.btn-c button:active {
  transform: scale(0.95) translateY(2px);
  box-shadow: 0 0 0 #3c3c3c;
}
.btn-c button:not(.show) {
  display: none;
}
.btn-c:not(.show) {
  transform: translateY(50px);
  opacity: 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);
  }
}
@media only screen and (min-height: 1000px) {
  @keyframes popup-show {
    0% {
      opacity: 1;
      transform: scale(calc(0.7 * 1.5));
    }
    45% {
      opacity: 1;
      transform: scale(calc(1.05 * 1.5));
    }
    80% {
      opacity: 1;
      transform: scale(calc(0.95 * 1.5));
    }
    100% {
      opacity: 1;
      transform: scale(calc(1 * 1.5));
    }
  }
  .paper-container {
    transform: scale(1.5);
  }
  .btn-c {
    transform: scale(1.5);
    margin-top: 150px;
  }
}
@media only screen and (max-height: 600px) and (max-width: 320px) {
  @keyframes popup-show {
    0% {
      opacity: 1;
      transform: scale(calc(0.7 * 0.8));
    }
    45% {
      opacity: 1;
      transform: scale(calc(1.05 * 0.8));
    }
    80% {
      opacity: 1;
      transform: scale(calc(0.95 * 0.8));
    }
    100% {
      opacity: 1;
      transform: scale(calc(1 * 0.8));
    }
  }
  .paper-container {
    transform: scale(0.8);
  }
  .btn-c {
    margin-top: -20px;
  }
}
@media only screen and (min-width: 500px) {
  .cloud {
    width: 70vh;
  }
  .cloud1 {
    top: -37vh;
    right: -20vh;
  }
  .cloud2 {
    bottom: -28vh;
    left: -34vh;
  }
  .star1 {
    width: 20vh;
    left: calc(10vw - 10vh);
    top: 10vh;
  }
  .star2 {
    width: 18vh;
    bottom: 1vh;
    left: calc(70vw - 9vh);
  }
  .uwel {
    width: 10vh;
    transform: rotate(-40deg);
    left: calc(20vw - 5vh);
    top: 43vh;
  }
  .flower {
    width: 10vh;
    right: calc(20vw - 5vh);
    top: 30vh;
  }
  .love {
    width: 18vh;
    transform: rotate(-30deg);
    bottom: 0;
    right: 0;
  }
}
.paper.hide,
.cover.hide {
  transition: 0.7s ease-out all;
  transform: rotate(20deg) translateX(100px);
  opacity: 0;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.422) !important;
  transform: rotate(20deg) translateX(100px);
}
.theme-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #f6f6e2;
}
.theme-container h2 {
  font-weight: bold;
  color: #3c3c3c;
  letter-spacing: 1px;
}
.theme-handler {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.btn-theme {
  width: 40vw;
  max-width: 170px;
}
.btn-theme img {
  width: 100%;
  border-radius: 20px;
}
.theme-container p {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #3c3c3c;
}
.theme-container p span {
  font-family: sans-serif;
}
.swal2-popup {
  background: #f6f6e2;
  border-radius: 20px;
  padding-top: 10px;
  padding-bottom: 25px;
}
.swal2-title {
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #3c3c3c;
}
.swal2-popup textarea {
  resize: none;
  background: white;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.263), 1px 1px 2px white !important;
  border-radius: 10px;
}
.swal2-actions button {
  border-radius: 10px !important;
  border: 3px solid #3c3c3c !important;
  box-shadow: 2px 2px 0 #3c3c3c !important;
  background: pink !important;
  color: #3c3c3c !important;
  padding: 8px 15px;
  font-size: 1.2rem !important;
  letter-spacing: 1px;
  font-weight: 600;
}
.swal2-actions button:active {
  transform: scale(0.95) translateY(2px);
  box-shadow: 0 0 0 #3c3c3c !important;
}
