* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

/* Body container */
body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Fullscreen MP4 video background */
video.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* Confetti canvas */
#confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* Main card */
.card {
  position: relative;
  background: rgba(255,255,255,0.95);
  width: 90%;
  max-width: 700px;
  height: auto;
  max-height: 90vh;
  border-radius: 30px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  z-index: 1;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Profile image - perfectly round, responsive */
.profile-pic {
  width: 200px;           /* default size */
  height: 200px;          /* keep height same as width */
  max-width: 35%;         /* scales down on mobile */
  border-radius: 50%;     /* ensures circle */
  object-fit: cover;      /* fills circle nicely */
  border: 6px solid red;  /* red border */
  box-shadow: 0 0 20px rgba(255,0,0,0.6);
  margin-bottom: 20px;
}

/* Main text */
h1 {
  font-size: 2rem;
  color: #ff4d6d;
  margin-bottom: 20px;
  text-align: center;
  transition: opacity 0.5s ease;
}

/* Buttons wrapper */
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Buttons */
button {
  padding: 14px 30px;
  font-size: 1.2rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  min-width: 100px;
}

#yesBtn {
  background: rgb(97, 218, 73);
  color: white;
}

#noBtn {
  background: #ddd;
  color: #555;
}

/* Bottom text */
.tiny-text {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #999;
  text-align: center;
}

/* Fireworks GIF inside card */
.card img.gif-fireworks {
  width: 100%;
  max-width: 650px;
  height: auto;
  margin-top: 20px;
  border-radius: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* Mobile-only adjustments */
@media (max-width: 768px) {
  .card {
    width: 95%;          /* almost full width on small screens */
    max-width: 95%;      /* prevents overflow */
    height: auto;        /* height adjusts to content */
    max-height: none;    /* remove any previous max-height constraints */
    padding: 15px;       /* slightly smaller padding for mobile */
  }

  .profile-pic {
    width: 150px;        /* smaller profile image on mobile */
    height: 150px;
    max-width: 40%;
  }

  h1 {
    font-size: 1.5rem;   /* slightly smaller headline */
    margin-bottom: 15px;
  }

  .buttons {
    gap: 15px;           /* reduce space between buttons */
    flex-wrap: wrap;
  }

  .buttons button {
    font-size: 1rem;
    padding: 12px 25px;
  }

  .tiny-text {
    font-size: 0.8rem;
    margin-top: 10px;
  }

  .card img.gif-fireworks {
    max-width: 80%;      /* smaller GIF for mobile */
    margin-top: -40px;   /* move GIF up inside card */
    border-radius: 20px;
  }
}