/* =========================
   MODERN LOVE PREMIUM THEME
========================= */

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(135deg, #ffdde1, #ee9ca7, #ffb6c1);
  overflow-x: hidden;
  color: white;
  text-align: center;
}

/* soft glowing dreamy overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.25), transparent 60%);
  pointer-events: none;
}

/* =========================
   PAGE 1 INTRO ANIMATION
========================= */

#type {
  font-size: 32px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-40px);
  animation: dropIn 1.2s ease forwards;
}

@keyframes dropIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* paragraph fade in after title */
.center p {
  opacity: 0;
  animation: fadeIn 2s ease 1.2s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* =========================
   CENTER LAYOUT
========================= */

.center {
  margin-top: 12vh;
  padding: 20px;
}

/* =========================
   HEADINGS GLOW
========================= */

h1, h2, h3 {
  text-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* =========================
   INPUT (MODERN CURVED GLASS)
========================= */

input {
  padding: 12px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
  width: 240px;
  margin: 8px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(15px);
  color: #fff;
  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

input::placeholder {
  color: rgba(255,255,255,0.85);
}

input:focus {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255,105,135,0.6);
}

/* =========================
   BUTTON (LOVE PREMIUM STYLE)
========================= */

button {
  padding: 12px 28px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  margin: 10px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #ff4d6d, #ff758f);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: 0.4s ease;
}

button:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* =========================
   BOX STYLE (SOFT FLOATING)
========================= */

.box {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(15px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  border-radius: 25px;
  color: white;
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  transition: 0.4s ease;
}

.box:hover {
  transform: translateY(-10px) scale(1.1);
}

/* =========================
   MEMORY CARDS
========================= */

.card {
  width: 150px;
  height: 150px;
  margin: 10px;
  perspective: 1000px;
  cursor: pointer;
}

.card .front,
.card .back {
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  transition: 0.6s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card .front {
  background: rgba(255,255,255,0.9);
  color: #ff4d6d;
}

.card .back {
  background: linear-gradient(135deg, #ff4d6d, #ff758f);
  color: white;
  transform: rotateY(180deg);
}

.card.flipped .front {
  transform: rotateY(180deg);
}

.card.flipped .back {
  transform: rotateY(0deg);
}

/* =========================
   🌸 RAIN EFFECT (HEARTS + FLOWERS)
========================= */

.floating {
  position: fixed;
  top: -10%;
  font-size: 20px;
  opacity: 0.9;
  animation: fall 4s linear forwards;
  pointer-events: none;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 600px) {

  #type {
    font-size: 24px;
  }

  input {
    width: 180px;
  }

  .box {
    width: 90px;
    height: 90px;
  }

  .card {
    width: 120px;
    height: 120px;
  }

  button {
    font-size: 14px;
    padding: 10px 18px;
  }
}