body,
html {
  height: 100%;  
  font-family: 'Quicksand', sans-serif;
  text-align: 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;
  height: 100%;
}

.img {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  top: 20px;
  margin-bottom: 30px;
  width: 350px;
}

#tap {
  display: inline-block;
}

.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: 540px;
  margin: 50px auto;
  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;
}

.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;
}

.kotak {
  position: relative;
  width: 90%;
  max-width: 550px;
  min-width: 200px;
  max-height: 350px;
  min-height: 100px;
  top: 300px;
  padding: 20px 0;
  display: inline-block;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  overflow: hidden;
}

.btn {
  border-radius: 40px;
}

#slideLima {
  position: relative;
  top: 300px;
}

#trims {
  position: relative;
  top: 300px;
  display: inline-block;
}

h1 {
  font-weight: normal;
}

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;
}

body {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.container {
  color: #333;
  position: relative;
  top: 250px;
  padding: 0;
  text-align: center;
}


/* ================================================================
   SLIDE FOTO
   ================================================================ */
.slide-foto-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 1rem;
  animation: fadeInUpFoto 1s ease forwards;
}
@keyframes fadeInUpFoto {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.foto-bunga {
  font-size: 36px;
  animation: spinBunga 5s linear infinite;
  display: inline-block;
}
@keyframes spinBunga {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.polaroid-wrap {
  animation: popInPolaroid 0.9s cubic-bezier(.17,.67,.35,1.3) 0.3s both;
  display: inline-block;
}
@keyframes popInPolaroid {
  from { opacity: 0; transform: scale(0.4) rotate(-10deg); }
  to   { opacity: 1; transform: scale(1) rotate(-2.5deg); }
}

.polaroid-card {
  background: #fff;
  padding: 14px 14px 44px 14px;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transform: rotate(-2.5deg);
  transition: transform 0.3s;
  max-width: 280px;
}
.polaroid-card:hover {
  transform: rotate(0deg) scale(1.04);
}

.foto-polaroid {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.polaroid-nama {
  font-family: 'Handlee', cursive;
  font-size: 22px;
  color: #555;
  margin: 10px 0 0 0;
  text-align: center;
  letter-spacing: 1px;
}

.foto-hearts {
  font-size: 18px;
  animation: heartPulse 1.4s ease-in-out infinite;
  display: inline-block;
  color: #c06090;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

.foto-tanggal {
  font-size: 12px;
  color: #c06090;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0;
}


/* ================================================================
   SLIDE PENUTUP
   ================================================================ */
.slide-penutup {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.penutup-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(192, 96, 144, 0.18), 0 2px 8px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90%;
  position: relative;
  border: 1.5px solid rgba(255,182,210,0.5);
}

/* bunga dekorasi atas */
.penutup-bunga-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.2rem;
}
.pb {
  font-size: 26px;
  display: inline-block;
}
.pb1 { animation: floatBunga 3s ease-in-out infinite; }
.pb2 { animation: floatBunga 3s ease-in-out 0.5s infinite; }
.pb3 { animation: floatBunga 3s ease-in-out 1s infinite; }
@keyframes floatBunga {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(10deg); }
}

.penutup-judul {
  font-family: 'Handlee', cursive;
  font-size: 28px;
  color: #b05080;
  margin: 0 0 1rem 0;
  font-weight: normal;
  letter-spacing: 1px;
}

.penutup-teks {
  font-family: 'Handlee', cursive;
  font-size: 17px;
  color: #555;
  line-height: 1.9;
  margin: 0 0 1.2rem 0;
}

.penutup-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, #f4a0c0, transparent);
  margin: 0 auto 1.2rem auto;
  border-radius: 2px;
}

.penutup-dari {
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  color: #aaa;
  margin: 0 0 1.5rem 0;
  line-height: 1.8;
}
.penutup-nama-pengirim {
  font-family: 'Handlee', cursive;
  font-size: 17px;
  color: #c06090;
}

/* hati dekorasi bawah */
.penutup-hearts-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.ph {
  font-size: 22px;
  display: inline-block;
}
.ph1 { animation: heartBeat2 1.6s ease-in-out infinite; }
.ph2 { animation: heartBeat2 1.6s ease-in-out 0.3s infinite; }
.ph3 { animation: heartBeat2 1.6s ease-in-out 0.6s infinite; }
@keyframes heartBeat2 {
  0%, 100% { transform: scale(1); }
  40%       { transform: scale(1.3); }
  60%       { transform: scale(1.1); }
}