body,
html {
  height: 100%;
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  text-align: center;
  overflow-x: hidden;
}

body {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.bg {
  background-image: url(./img/background.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #FEC0CD;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  padding-top: 1px;
}

/* ===============================
   Opening Screen
   =============================== */

.open-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #ffd6e5, #fff1f7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.open-card {
  width: 100%;
  max-width: 320px;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(240, 98, 146, 0.28);
}

.open-heart {
  font-size: 46px;
  margin-bottom: 8px;
}

.open-card h4 {
  margin: 0 0 8px;
  color: #b83b6a;
  font-weight: 700;
}

.open-card p {
  margin: 0 0 18px;
  color: #7a3b4b;
  font-size: 14px;
}

#openButton {
  border: 0;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #ff8fb1, #f06292);
  box-shadow: 0 10px 24px rgba(240, 98, 146, 0.35);
}

/* ===============================
   Random photo marquee
   =============================== */

.photo-marquee {
  position: fixed;
  bottom: 95px;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 12;
  pointer-events: none;
}

.love-credit {
  position: fixed;
  bottom: 14px;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #7a3b4b;
  text-align: center;
  z-index: 13;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.photo-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: seamlessPhotoScroll 35s linear infinite;
}

.photo-set {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-right: 14px;
}

.photo-track img {
  width: 140px;
  height: 190px;
  object-fit: cover;
  padding: 8px;
  background: linear-gradient(180deg, #fff6fb 0%, #ffe3ef 100%);
  border: 4px solid #ffffff;
  border-radius: 22px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(255, 192, 203, 0.45),
    0 0 18px rgba(255, 143, 177, 0.35);
  box-sizing: border-box;
}

.photo-track img:nth-child(odd) {
  transform: rotate(-3deg);
}

.photo-track img:nth-child(even) {
  transform: rotate(3deg);
}

.photo-track img:nth-child(3n) {
  transform: rotate(-1deg);
}

.photo-track img:nth-child(4n) {
  transform: rotate(2deg);
}

.photo-track img:hover {
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(255, 192, 203, 0.55),
    0 0 24px rgba(255, 105, 180, 0.4);
}

@keyframes seamlessPhotoScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ===============================
   Main image / slide image
   =============================== */

.img {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  top: 50px;
  margin-bottom: 30px;
  width: 440px;
  max-width: 92%;
}

#tap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 245px;

  width: fit-content;
  min-width: 190px;
  max-width: 90%;

  margin: 0 auto;
  padding: 10px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  z-index: 20;

  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
  text-align: center;

  background: linear-gradient(135deg, #ff8fb1, #f06292);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(240, 98, 146, 0.35);

  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  line-height: 1;
  text-shadow: none;
}

#tap::before {
  content: "💖";
  margin-right: 6px;
}

#tap::after {
  content: "💖";
  margin-left: 6px;
}

#tap:hover {
  box-shadow: 0 10px 24px rgba(240, 98, 146, 0.45);
}

#tap.animate__pulse {
  --animate-duration: 1.2s;
}

.foto {
  width: 80%;
  max-width: 400px;
  min-width: 300px;
  margin-top: 100px;
  display: inline-block;
}

/* ===============================
   Paper
   =============================== */

@import url(https://fonts.googleapis.com/css?family=Roboto);
@import url(https://fonts.googleapis.com/css?family=Handlee);

.paper {
  font-family: 'Roboto', sans-serif;
  position: relative;
  width: 90%;
  max-width: 800px;
  min-width: 300px;
  height: 520px;
  margin: 80px auto 260px;
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  overflow: hidden;
  z-index: 8;
}

.paper:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 45px;
  background: radial-gradient(#616161 6px, transparent 7px) repeat-y;
  background-size: 30px 30px;
  border-right: 3px solid #D44147;
  box-sizing: border-box;
}

.paper-content {
  position: absolute;
  top: 30px;
  right: 0;
  bottom: 30px;
  left: 50px;
  background: linear-gradient(transparent, transparent 28px, #91D1D3 28px);
  background-size: 30px 30px;
}

.paper-content .teks {
  text-align: left;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  line-height: 30px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3f3f44;
  font-family: 'Handlee', cursive;
  font-size: 18px;
  box-sizing: border-box;
  z-index: 1;
}

/* ===============================
   Question box
   =============================== */

.kotak {
  position: relative;
  width: 90%;
  max-width: 550px;
  min-width: 200px;
  max-height: 350px;
  min-height: 100px;
  top: 240px;
  padding: 20px 10px;
  display: inline-block;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  overflow: hidden;
  z-index: 8;
}

.btn {
  border-radius: 40px;
  white-space: normal;
  font-size: 14px;
}

/* ===============================
   Last slides
   =============================== */

#slideLima {
  position: relative;
  top: 260px;
  z-index: 8;
}

#trims {
  position: relative;
  top: 260px;
  display: inline-block;
  z-index: 8;
}

.final-card {
  position: relative;
  width: 88%;
  max-width: 380px;
  margin: 150px auto 260px;
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow:
    0 16px 38px rgba(240, 98, 146, 0.28),
    0 0 0 4px rgba(255, 192, 203, 0.22);
  color: #7a3b4b;
  z-index: 8;
  backdrop-filter: blur(6px);
}

.final-card h3 {
  font-weight: 700;
  color: #d94f82;
  margin-bottom: 14px;
  font-size: 24px;
}

.final-card p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 10px;
}

.final-small {
  font-weight: 700;
  color: #c03d72;
  margin-top: 12px;
}

/* ===============================
   Falling heart effect
   =============================== */

.heart-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 7;
}

.falling-heart {
  position: absolute;
  top: -30px;
  color: #ff6fa3;
  animation-name: fallingHeart;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  text-shadow: 0 4px 12px rgba(240, 98, 146, 0.28);
  opacity: 0.9;
}

@keyframes fallingHeart {
  0% {
    transform: translateY(-40px) rotate(0deg) scale(0.8);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(110vh) rotate(360deg) scale(1.15);
    opacity: 0;
  }
}

h1 {
  font-weight: normal;
}

/* ===============================
   Old timer styles
   Aman kalau timer sudah dihapus
   =============================== */

.container {
  color: #333;
  position: relative;
  top: 230px;
  padding: 0 12px;
  text-align: center;
  z-index: 8;
}

li {
  display: inline-block;
  font-size: 16px;
  list-style-type: none;
  position: relative;
  left: -20px;
  margin-top: 10px;
  padding: 10px;
  text-transform: uppercase;
}

li span {
  display: block;
  font-size: 24px;
}

/* ===============================
   Mobile friendly
   =============================== */

@media (max-width: 480px) {
  .bg {
    background-attachment: scroll;
    min-height: 100svh;
    padding-bottom: 240px;
  }

  .photo-marquee {
    top: auto;
    bottom: 100px;
    z-index: 12;
  }

  .love-credit {
    bottom: 22px;
    font-size: 12px;
    z-index: 13;
  }

  .photo-track {
    animation-duration: 35s;
  }

  .photo-set {
    gap: 10px;
    padding-right: 10px;
  }

  .photo-track img {
    width: 105px;
    height: 145px;
    padding: 6px;
    border-radius: 18px;
    border: 3px solid #ffffff;
    background: linear-gradient(180deg, #fff6fb 0%, #ffe3ef 100%);
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.16),
      0 0 0 2px rgba(255, 192, 203, 0.4),
      0 0 14px rgba(255, 143, 177, 0.28);
  }

  .container {
    top: 180px;
  }

  .container h5 {
    font-size: 16px;
    padding: 0 18px;
  }

  ul {
    padding-left: 0;
  }

  li {
    left: 0;
    font-size: 11px;
    padding: 6px;
    margin-top: 8px;
  }

  li span {
    font-size: 20px;
  }

  .img {
    width: 340px;
    max-width: 90%;
    top: 115px;
  }

  .paper {
    width: 92%;
    min-width: unset;
    height: 410px;
    margin: 38px auto 300px;
  }

  .paper:before {
    width: 36px;
    background-size: 24px 24px;
  }

  .paper-content {
    left: 42px;
    top: 20px;
    bottom: 20px;
    background-size: 27px 27px;
    background-image: linear-gradient(transparent, transparent 25px, #91D1D3 25px);
  }

  .paper-content .teks {
    font-size: 14.5px;
    line-height: 27px;
    padding: 0 8px;
  }

  .kotak {
    width: 90%;
    top: 220px;
    padding: 18px 10px;
  }

  .kotak h5 {
    font-size: 17px;
  }

  .kotak .row.mt-2 {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
  }

  .kotak .col-4,
  .kotak .offset-2 {
    max-width: 45%;
    flex: 0 0 45%;
    margin-left: 0;
    padding-left: 4px;
    padding-right: 4px;
  }

  .btn {
    font-size: 12px;
    padding: 8px 10px;
  }

  #slideLima {
    top: 250px;
  }

  #trims {
    top: 250px;
    font-size: 14px;
    padding: 0 20px;
  }

  .final-card {
    width: 88%;
    margin: 145px auto 260px;
    padding: 24px 18px;
  }

  .final-card h3 {
    font-size: 21px;
  }

  .final-card p {
    font-size: 14px;
  }

  #tap {
    bottom: 265px;
    width: fit-content;
    min-width: 185px;
    max-width: 90%;
    margin: 0 auto;
    padding: 10px 18px;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1;
  }

  .foto {
    min-width: unset;
    width: 85%;
  }
}

/* HP sangat pendek / browser address bar besar */
@media (max-width: 480px) and (max-height: 760px) {
  .paper {
    height: 380px;
    margin: 28px auto 310px;
  }

  .paper-content {
    top: 18px;
    bottom: 18px;
    background-size: 26px 26px;
    background-image: linear-gradient(transparent, transparent 24px, #91D1D3 24px);
  }

  .paper-content .teks {
    font-size: 14px;
    line-height: 26px;
  }

  .photo-marquee {
    bottom: 100px;
  }

  #tap {
    bottom: 255px;
  }

  .img {
    top: 105px;
  }
}

@media (max-width: 360px) {
  .photo-track img {
    width: 92px;
    height: 128px;
    padding: 5px;
  }

  .paper {
    height: 370px;
    margin: 26px auto 290px;
  }

  .paper-content .teks {
    font-size: 13.5px;
    line-height: 25px;
  }

  .btn {
    font-size: 11px;
    padding: 7px 8px;
  }

  #tap {
    bottom: 240px;
    min-width: 170px;
    font-size: 11px;
  }

  .love-credit {
    font-size: 11px;
  }
}