* {
  box-sizing: border-box;
}

/* 1. DAFTARKAN FONT */
@font-face {
  font-family: "Chalk";
  src: url("Chalkboard-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Matcha";
  src: url("Matcha\ Mint.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Winkle";
  src: url("Winkle-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- BACKGROUND UTAMA ---------- */
body {
  margin: 0;
  min-height: 100vh;
 background: #fff0f3;
  color: #f50857;
  font-family: "Chalk", sans-serif;
   display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* ---------- SETTING DEFAULT PARAGRAPH & HEADINGS ---------- */
p {
  font-family: "Chalk", sans-serif;
  font-size: 22px;
  line-height: 1.5;
}

h1 {
  font-family: "Winkle", sans-serif;
  font-size: 56px;
  margin: 5px 0 12px;
  color: #e6005c;
}

h2 {
  font-family: "Winkle", sans-serif;
  font-size: 36px; /* Dibesarkan dari 20px */
  margin-top: 0;
  color: #e6005c;
}

/* ---------- TOMBOL UTAMA ---------- */
.primary {
  background: #f50857;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.35);
}

.secondary {
  background: #ffe6ed;
  color: #d81b60;
  border: 1.5px solid #ff8da1;
}

button {
  border: none;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: .25s ease;
  font-family: "Chalk", sans-serif;
}

button:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

/* ---------- CONTAINER UTAMA ---------- */
.container {
  width: min(90%, 750px);
  text-align: center;
  padding: 20px 15px;
}

/* ---------- INTRO (TANPA BOX & RESPONSIVE) ---------- */
#intro {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.intro-sticker {
  width: min(80vw, 280px);
  height: auto;
  max-height: 280px;
  object-fit: contain;
  margin-bottom: 10px;
  animation: float 2s ease-in-out infinite;
}

.subtitle {
  color: #ff4d6d;
  font-size: 22px;
  margin-bottom: 30px;
  font-weight: 600;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- CARD (BUJUK SECTION) ---------- */
.card {
  display: none;
  background: #ffffff;
  border: 2px solid #ff6b91;
  border-radius: 28px;
  padding: 30px 24px;
  box-shadow: 0 15px 40px rgba(255, 105, 180, 0.15);
  animation: appear .5s ease;
}

.card.active {
  display: block;
}

/* ---------- UPLOAD BOX (FONT DIBESARKAN) ---------- */
.upload-box {
  margin: 25px auto 18px;
  width: 200px;
  height: 200px;
  border: 2px dashed #ff1493;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #fff7f9;
}

.upload-box span {
  color: #ff4d6d;
  font-size: 20px; /* Dibesarkan dari 13px */
  padding: 15px;
  font-weight: bold;
  font-family: "Chalk", sans-serif;
}

.upload-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

#stickerInput {
  display: none;
}

.hint {
  font-size: 16px;
  color: #ff8da1;
}

/* ---------- SLIDER ---------- */
.slider-area {
  margin: 25px 0;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: #d81b60;
  font-weight: bold;
  margin-bottom: 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: #ff1493;
}

.message {
  font-size: 22px;
  color: #d81b60;
  line-height: 1.15;
  font-weight: 600;
}

/* ---------- FINAL SECTION ---------- */
.final {
  position: relative;
  display: none;
  animation: loveAppear .8s ease;
  padding: 15px 5px;
}

.final.active {
  display: block;
}

.tiny-text {
  font-size: 18px;
  color: #ff69b4;
  margin-bottom: 8px;
  font-weight: bold;
}

.love-title {
  font-size: 46px;
  margin: 5px 0 18px;
  color: #ff1493;
}

.love-message {
  font-size: 22px;
  line-height: 1.6;
  color: #d81b60;
  margin: 14px 0;
}

.sticker-wrap {
  width: 210px;
  height: 210px;
  margin: 22px auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(255, 20, 147, 0.2);
}

.sticker-heart {
  position: absolute;
  inset: -10px;
  border: 2px dashed #ff1493;
  border-radius: 50%;
  font-size: 25px;
  color: #ff1493;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2px;
}

.final-sticker {
  width: 160px;
  height: 160px;
  object-fit: contain;
  animation: stickerFloat 2.5s ease-in-out infinite;
}

.come-text {
  margin: 18px 0;
  font-size: 30px;
  color: #e6005c;
}

.love-button {
  margin-top: 5px;
  padding: 15px 27px;
  font-size: 20px;
}

/* ---------- MODAL POP-UP (LIAR DETECTED DIBESARKAN) ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 2px solid #ff69b4;
  padding: 25px 20px;
  border-radius: 24px;
  width: min(88%, 380px);
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.25);
  animation: popUp 0.3s ease;
}

.modal-sticker {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
}

.modal-box h2 {
  font-size: 28px; /* Dibesarkan dari 20px */
  color: #e6005c;
  margin: 5px 0 10px;
}

.modal-box p {
  font-size: 20px; /* Dibesarkan dari 14px */
  color: #d81b60;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* ---------- PAGE HUG / PELUK (RESPONSIVE FOR MOBILE) ---------- */
.hug-page {
  display: none;
  animation: appear 0.6s ease;
}

.hug-page.active {
  display: block;
}

.hug-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hug-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.huge-hug-sticker {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  animation: float 2.5s ease-in-out infinite;
}

.hug-right {
  flex: 1.2;
  text-align: left;
}

.love-text-title {
  font-family: "Matcha", sans-serif;
  font-size: 56px;
  color: #ff143b;
  margin: 0 0 8px;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.love-text-sub {
  font-size: 24px;
  color:#fa1e43;
  font-weight: bold;
  margin: 0 0 12px;
}

.love-text-body {
  font-size: 24px;
  color: #fa1e43;;
  line-height: 1.5;
  margin: 0;
  font-weight: 600;
}

/* ---------- MEDIA QUERIES (RESPONSIVE KHUSUS MOBILE / HP) ---------- */
/* ---------- MEDIA QUERIES (KHUSUS HP / MOBILE - CENTERED 80%) ---------- */
@media (max-width: 600px) {

  /* 1. Paksa body untuk memusatkan seluruh kontainer di tengah HP */
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
  }

  /* 2. Set kontainer rapi di tengah dengan skala 80% */
  .container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 10px 15px;
    zoom: 0.8; /* Mengecilkan 80% secara rapi tanpa merusak posisi center */
  }

  /* 3. Stiker Intro & Peluk */
  .intro-sticker {
    width: 240px;
    height: auto;
    margin: 0 auto 10px;
  }

  .huge-hug-sticker {
    max-width: 340px;
    height: auto;
    margin: 0 auto;
  }

  /* 4. Layout Tombol & Hug Section Rata Tengah */
  .buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .buttons button {
    width: 90%; /* Tombol pas di tengah */
  }

  .hug-layout {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .hug-right {
    text-align: center;
    width: 100%;
  }

    .love-text-title{
  font-size: 40px;
  margin-bottom: 10px;
}
.love-text-sub, .love-text-body{
  font-family: "Winkle";
  font-size: 18px;
}


}



/* ---------- FLOATING HEARTS ANIMATION ---------- */
.heart-shape {
  position: fixed;
  width: 16px;
  height: 16px;
  background-color: #ff1493;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 9999;
  animation: heartFloat 2.5s ease-out forwards;
}

.heart-shape::before,
.heart-shape::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: inherit;
  border-radius: 50%;
}

.heart-shape::before {
  top: -8px;
  left: 0;
}

.heart-shape::after {
  left: 8px;
  top: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loveAppear {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stickerFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes heartFloat {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(-45deg) scale(0.8);
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-160px) rotate(-45deg) scale(1.4);
  }
}