/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body takes the full viewport */
body {
  width: 100vw;
  height: 100vh;
  background: #FFF8F0;
  font-family: "Poppins", serif;
  overflow: hidden; /* no scrollbars during animations */
  position: relative;
}

/* Generic card styling */
.card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Envelope Card */
.envelope-card {
  width: 60%;
  height: 60%;
  background-color: #EB4D4B; /* Red */
  z-index: 2; /* on top of question card */
  cursor: pointer;
}
.envelope-text {
  color: white;
  font-size: 4.5rem;
  font-style: italic;
}
.stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: url('placeholder-stamp.png') center/cover no-repeat;
}

/* Question Card (pink) */
.question-card {
  width: 30%;
  height: 80%;
  background-color: #FFC0CB;
  color: #C33734;
  font-weight: bold;
  z-index: 1; /* behind envelope initially */
  position: relative; 
}
.question-card h2 {
  margin-bottom: 20px;
  font-size: 3.2rem;
  text-align: left;
  line-height: 1.2;
  font-weight: 900;
}

div#question-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btn {
  padding: 15px 30px;
  margin: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  line-height: 1.75rem;
}
.yes-btn {
  background-color: #EB4D4B;
  color: #fff;
  /* padding: 15px 40px; */
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 2rem;
  
}
.no-btn {
  background-color: #fff;
  color: #EB4D4B;
  padding-left: 1.87rem;
  padding-right: 1.87rem;
  width: 50%;
  padding-top: .25rem;
  padding-bottom: .25rem;
}

/* Yay Card */
.yay-card {
  width: 30%;
  height: 80%;
  background-color: #FFC0CB;
  color: #EB4D4B;
  padding: 20px;
  justify-content: flex-start;
}
.polaroid {
  width: 250px;
  height: 250px;
  background-color: #fff;
  padding: 10px;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transform: rotate(-5deg);
}
.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yay-card h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.yay-card p {
  margin-bottom: 20px;
  text-align: justify;
}
.click-here-btn {
  background-color: #FEECDC;
  color: #C33734;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 6px;
  display: inline-block;
  font-weight: bold;
  border: 2px solid #C33734;
  transition: background-color 0.2s ease;
}
.click-here-btn:hover {
  background-color: #ECC8C0;
}

/* Hide element from layout (no space taken) */
.hidden {
  display: none;
}

/* Container for hearts/confetti */
#heartsContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* so clicks pass through */
  overflow: hidden;     /* so hearts won't create scrollbars */
}

/* For each heart element we'll create dynamically */
.heart {
  position: absolute;
  font-size: 2rem;
  will-change: transform, opacity;
}

/* Media-Responsive */
@media only screen and (max-device-width: 768px){

  .envelope-card {
    width: 70%;
    height: 40%;
  }
  .question-card {
    width: 70%;
    height: 60%;
  }
  .question-card h2 {
    font-size: 6.2rem;

}
.yes-btn {
  padding-left: 4rem;
  padding-right: 4rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.no-btn {
  padding-left: 2.87rem;
  padding-right: 2.87rem;
  width: 60%;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 2rem;
}
.yay-card {
  width: 70%;
  height: 60%;
  justify-content: center;

}
.polaroid{
width:400px;
height:400px;

}
.yay-card h1 {
  font-size: 4.5rem;
}
.yay-card p {
   font-size: 2rem;
}
}

