/* Reset / Base */
* {
  box-sizing: border-box;
}

h1, p, button {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(16px, 4vw, 28px);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #E0DFD5;
  position: relative;
  overflow-x: hidden;
}

/* 🌸 Flower background overlay (fades in) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("./assets/flowers.png");
  background-repeat: repeat;
  background-size: 220px;
  opacity: 0;
  transition: opacity 800ms ease;
  z-index: 0;
  pointer-events: none;
}

body.flowers-bg::before {
  opacity: 1;
}

/* Layout */
.cardHolder {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1; /* above flower overlay */
}

.card {
  background-color: #313638;
  border-radius: 16px;
  width: min(520px, 92vw);
  padding: clamp(16px, 4vw, 22px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06),
              0 10px 30px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(0, 0, 0, 0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;

  position: relative;
  z-index: 1;
}

/* Image */
.card img {
  width: min(220px, 70vw);
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 250ms ease;
}

.card img.fade-out {
  opacity: 0;
}

/* Heading */
h1 {
  color: white;
  margin: 0;
  text-align: center;
  line-height: 1.15;
  font-size: clamp(20px, 5.5vw, 28px);
}

/* Buttons */
.btnHolder {
  width: 100%;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 6px;
}

.btn {
  background: #ff6b81;
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 150ms ease,
              box-shadow 150ms ease,
              background 150ms ease;
  box-shadow: 0 4px 12px rgba(255, 107, 129, 0.4);
  touch-action: manipulation;
  min-width: 120px;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(255, 107, 129, 0.4);
}

/* Slightly smaller buttons on tiny phones */
@media (max-width: 360px) {
  .btn {
    min-width: 110px;
    font-size: 15px;
  }
}

/* Flower emoji overlay (from JS) */
.flower-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.flower {
  position: absolute;
  font-size: 22px;
  opacity: 0.9;
  animation: floaty 3.6s ease-in-out infinite;
}

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