body {
  margin: 0;
  min-height: 100vh;
  background-image: url("/flowerfield.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 35px 0;
  box-sizing: border-box;

  font-family: "Quicksand", sans-serif;
  color: #4d4638;
  cursor: url("/cursor.png"), auto;
}

a,
button,
.flower-link,
.simple-gallery img,
.coupon,
.surprise-flower {
  cursor: url("/cursor.png"), pointer;
}

.main-box {
  width: 80%;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.88);
  border: 8px solid #f2cfd8;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.home-box {
  margin-top: auto;
  margin-bottom: auto;
}

h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Playfair Display", serif;
  font-size: 52px;
  color: #8f6b72;
}

.intro {
  font-size: 20px;
  color: #6a664d;
  margin-bottom: 30px;
}

.flower-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.flower-link {
  text-decoration: none;
  color: #6d6248;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.flower-img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.flower-link span {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 999px;
}

.flower-link:hover .flower-img {
  transform: translateY(-8px) rotate(5deg) scale(1.08);
  filter: brightness(1.06);
}

.flower-link:hover span {
  background: #fff7cc;
}

/* Letter page */

.letter-box {
  max-width: 820px;
}

.letter-paper {
  background: rgba(255, 255, 255, 0.78);
  border: 4px solid #cfe8b5;
  border-radius: 22px;
  padding: 30px;
  margin-top: 25px;
  text-align: left;
  box-shadow: inset 0 0 18px rgba(246, 214, 220, 0.45);
}

.letter-paper p {
  font-size: 19px;
  line-height: 1.8;
  color: #4d4638;
  margin-bottom: 18px;
}

.back-button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 24px;
  background: #fff7c7;
  border: 3px solid #f2cfd8;
  border-radius: 999px;
  color: #6d6248;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}

.back-button:hover {
  transform: translateY(-4px) scale(1.04);
  background: #ffe4ec;
}

/* Gallery page */

.gallery-box {
  max-width: 720px;
  width: 82%;
}

.simple-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 25px;
}

.simple-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;

  background: white;
  border: 7px solid white;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.simple-gallery img:nth-child(1) {
  transform: rotate(-2deg);
}

.simple-gallery img:nth-child(2) {
  transform: rotate(1.5deg);
}

.simple-gallery img:nth-child(3) {
  transform: rotate(-1deg);
}

.simple-gallery img:nth-child(4) {
  transform: rotate(2deg);
}

.simple-gallery img:nth-child(5) {
  transform: rotate(-1.5deg);
}

.simple-gallery img:nth-child(6) {
  transform: rotate(1deg);
}

.simple-gallery img:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.memory-gallery,
.memory-card {
  all: unset;
}

/* Reasons page */

.reasons-box {
  max-width: 760px;
}

.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.reason-card {
  position: relative;
  background: linear-gradient(135deg, #fffdf1, #ffeef3);
  border: 4px solid #cfe8b5;
  border-radius: 24px;
  padding: 22px 24px 22px 72px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reason-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.reason-card:nth-child(even) {
  transform: rotate(1deg);
}

.reason-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.reason-number {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #f2cfd8;
  border: 3px solid white;
  border-radius: 50%;
  color: #8f6b72;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: bold;

  display: flex;
  justify-content: center;
  align-items: center;
}

.reason-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #4d4638;
}

/* Coupons page */

.coupons-box {
  max-width: 920px;
  width: 84%;
}

.coupon-board {
  position: relative;
  min-height: 620px;
  margin-top: 30px;
}

.center-flower {
  position: absolute;
  width: 340px;
  height: 340px;
  object-fit: contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
}

.coupon {
  position: absolute;
  width: 240px;
  min-height: 145px;
  background: linear-gradient(135deg, #fffdf1, #ffeef3);
  border: 4px dashed #8f6b72;
  border-radius: 20px;
  padding: 18px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
}

.coupon h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  color: #8f6b72;
  letter-spacing: 2px;
}

.coupon-small {
  margin: 6px 0 12px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #6a664d;
}

.coupon-main {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #4d4638;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  padding: 10px;
}

.coupon-expire {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8f6b72;
  font-weight: 600;
}

.coupon-one {
  top: 0;
  left: 20px;
  transform: rotate(-5deg);
}

.coupon-two {
  top: 35px;
  right: 45px;
  transform: rotate(4deg);
}

.coupon-three {
  top: 220px;
  left: 110px;
  transform: rotate(3deg);
}

.coupon-four {
  top: 210px;
  right: 115px;
  transform: rotate(-4deg);
}

.coupon-five {
  top: 420px;
  left: 35px;
  transform: rotate(4.5deg);
}

.coupon-six {
  top: 430px;
  right: 30px;
  transform: rotate(-3deg);
}

.coupon:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  z-index: 5;
}

/* Surprise page */

.surprise-box {
  max-width: 760px;
}

.surprise-area {
  margin-top: 25px;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.surprise-flower {
  width: 230px;
  height: 230px;
  object-fit: contain;
  cursor: url("/cursor.png"), pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.surprise-flower:hover {
  transform: translateY(-8px) rotate(6deg) scale(1.08);
  filter: brightness(1.08);
}

.surprise-message {
  display: none;
  background: linear-gradient(135deg, #fffdf1, #ffeef3);
  border: 4px solid #cfe8b5;
  border-radius: 26px;
  padding: 35px 28px;
  max-width: 540px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  animation: popIn 0.5s ease;
}

.surprise-message p {
  font-size: 24px;
  line-height: 1.5;
  color: #4d4638;
  margin: 12px 0;
}

.surprise-message p:last-child {
  font-family: "Playfair Display", serif;
  font-size: 34px;
  color: #8f6b72;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile layout */

@media screen and (max-width: 700px) {
  body {
    padding: 25px 0;
  }

  .gallery-box {
    width: 84%;
    max-width: 420px;
  }

  .simple-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .simple-gallery img {
    height: 130px;
  }

  .coupon-board {
    position: static;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .center-flower {
    display: none;
  }

  .coupon {
    position: static;
    width: 100%;
  }

  .coupon-one,
  .coupon-two,
  .coupon-three,
  .coupon-four,
  .coupon-five,
  .coupon-six {
    transform: rotate(0deg);
  }
}

@media screen and (max-width: 600px) {
  .main-box {
    width: 84%;
    padding: 30px 18px;
  }

  h1 {
    font-size: 38px;
  }

  .intro {
    font-size: 17px;
  }

  .flower-img {
    width: 78px;
    height: 78px;
  }

  .flower-link span {
    font-size: 14px;
  }

  .letter-paper {
    padding: 22px;
  }

  .letter-paper p {
    font-size: 17px;
  }

  .reason-card {
    padding: 20px 18px 20px 62px;
  }

  .reason-card p {
    font-size: 16px;
  }

  .reason-number {
    left: 16px;
    width: 32px;
    height: 32px;
    font-size: 19px;
  }

  .coupon h2 {
    font-size: 26px;
  }

  .coupon-main {
    font-size: 16px;
  }

  .surprise-flower {
    width: 190px;
    height: 190px;
  }

  .surprise-message p {
    font-size: 20px;
  }

  .surprise-message p:last-child {
    font-size: 28px;
  }
}