/* Reset + sanity */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  background-color: pink;
  /* Ensure the body takes up at least the full screen height */
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
}

header {
  padding: 1rem;
  background: #111;
  color: white;
  text-align: center;
}

main {
  /* This tells 'main' to take up all remaining vertical space */
  flex-grow: 1; 
  display: flex;
  justify-content: center; /* Horizontal centering */
  align-items: center;     /* Vertical centering */
  padding: 1rem;
}

.the-proposal {
  /* Box Dimensions & Centering */
  width: 90%;          /* Responsive width for mobile */
  max-width: 500px;    /* Prevents it from getting too wide on PC */
  min-height: 400px;
  padding: 2.5rem;
  
  /* Visual Style */
  background-color: #fffef2;
  border-radius: 30px; /* This creates the "curved" look */
  
  /* Shadow for depth */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* Layout inside the box */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

/* 1. Define the 'jiggle' animation */
@keyframes jiggle {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2px, 1px) rotate(2deg); }
  50% { transform: translate(-1px, -2px) rotate(-2deg); }
  75% { transform: translate(1px, 2px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* 2. Apply it to the image inside your box */
.the-proposal img {
  transition: transform 0.2s ease-in-out;
  cursor: pointer; /* Tells the user they can interact with it */
  display: block;  /* Removes bottom whitespace gap */
}

/* 3. Trigger on Hover (PC) and Active (Mobile Click) */
.the-proposal img:hover, 
.the-proposal img:active {
  animation: jiggle 0.2s infinite; 
  /* 'infinite' keeps it jiggling as long as the mouse is over it */
}

/* Update text color to be readable on white background */
.romantic-text {
  font-family: "Georgia", serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #333; /* Dark grey instead of white */
}

.romantic-text strong {
  display: block;
  margin-top: 12px;
  font-size: 1.6rem;
  color: #d63384; /* Deep pink for the question */
}

/* The "Legendary" loot effect */
.legendary {
  color: #ffb800; /* Gold */
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 20px rgba(255, 184, 0, 1); }
  100% { opacity: 0.8; }
}

/* Ensure the gif doesn't get too big */
.hamster-gif {
  width: 50%;
  height: auto;
  border-radius: 15px;
}

.button-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

.btn {
  /* Classy Pill Shape */
  padding: 12px 35px;
  border-radius: 50px;
  border: none;
  font-family: 'system-ui', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* The Romantic "Yes" Button */
.btn-yes {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  color: white;
}

.btn-yes:hover {
  transform: scale(1.1); /* Cute "pop" effect */
  box-shadow: 0 6px 20px rgba(255, 117, 140, 0.4);
}

/* The Classy "No" Button */
.btn-no {
  background-color: #f8f9fa;
  color: #888;
  border: 1px solid #eee;
}

.btn-no:hover {
  background-color: #eeeeee;
  color: #555;
}

/* Mobile Tweak: Make buttons slightly larger for easy tapping */
@media (max-width: 480px) {
  .button-container {
    flex-direction: row; /* Keep them side by side */
    gap: 15px;
  }
  .btn {
    padding: 15px 40px;
  }
}
