@font-face {
  font-family: 'Pacifico';
  src: url('fonts/Pacifico-Regular.woff2') format('woff2'),
       url('fonts/Pacifico-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pacifico', cursive;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url('images/img01.webp') center/cover no-repeat fixed;
  overflow: hidden;
}

.gift-box {
  font-size: 180px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gift-box:hover {
  transform: scale(1.1) rotate(-5deg);
}

.gift-message {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 24px;
  text-align: center;
  margin-top: 20px;
  padding: 15px 25px;
  border-radius: 15px;
  text-shadow: 0 0 5px #000;
  line-height: 1.5;
}

.card {
  background: rgba(255, 255, 255, 0.5);
  padding: 30px;
  border-radius: 25px;
  text-align: center;
  width: 300px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  position: relative;
  display: none;
}

.card h1 {
  color: black;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.25;
  margin: 12px 0;
  text-shadow:
    0 0 5px #ff4d6d,
    0 0 10px #ff4d6d,
    0 0 15px #ff4d6d;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 15px;
}

button {
  padding: 6px 12px;
  font-size: 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
button:hover {
  transform: scale(1.05);
}

#yes, #no {
  background: rgba(0,0,139,0.6);
  color: #fff;
}
#yes:hover, #no:hover {
  background: rgba(0,0,139,0.8);
}

.yes-page {
  width: 100%;
  height: 100vh;
  background: url('images/img02.webp') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

.message-box {
  background: #fff;
  padding: 30px;
  border-radius: 25px;
  width: 450px;
  min-height: 150px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  position: relative;
  z-index: 20;
}

.message-box h1 {
  margin: 0;
  font-size: 32px;
  font-weight: normal;
  color: black;
  text-shadow:
    0 0 5px #ff4d6d,
    0 0 10px #ff4d6d,
    0 0 15px #ff4d6d;
}

.message-box p {
  font-size: 20px;
  color: black;
  margin-top: 15px;
  line-height: 1.5;
}

.emoji {
  position: fixed;
  font-size: 32px;
  pointer-events: none;
  z-index: 10;
  animation: float 100s linear forwards;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}
