/* Fonts */
.tangerine-regular {
  font-family: "Tangerine", serif;
  font-weight: 400;
  font-style: normal;
}

.tangerine-bold {
  font-family: "Tangerine", serif;
  font-weight: 700;
  font-style: normal;
}

.tinos-regular {
  font-family: "Tinos", serif;
  font-weight: 400;
  font-style: normal;
}

.tinos-bold {
  font-family: "Tinos", serif;
  font-weight: 700;
  font-style: normal;
}

.tinos-regular-italic {
  font-family: "Tinos", serif;
  font-weight: 400;
  font-style: italic;
}

.tinos-bold-italic {
  font-family: "Tinos", serif;
  font-weight: 700;
  font-style: italic;
}


/* Reset default spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Apply the Tangerine font with fallbacks */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #ffe6e6;
  font-family: 'Tangerine', cursive, sans-serif;
}

/* Container: 70% width & height with centered content */
.container {
  position: relative;
  width: 70%;
  height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2em;
  border: 2px solid #ff4d4d;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Heading styling */
h1 {
  margin-bottom: 20px;
  color: #ff4d4d;
  font-size: 3em;
}

/* Button container and button styling */
.buttons {
  display: inline-block;
}

.buttons button {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s;
}

/* Yes button styling */
#yes-btn {
  background: #4CAF50;
  color: white;
}

/* No button styling */
#no-btn {
  position: absolute;
  transition: left 0.7s ease, top 0.7s ease, transform 0.7s ease;
}

/* Hover effect for buttons */
.buttons button:hover {
  opacity: 0.9;
}

/* Hidden image styling */
#hidden-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  display: none;  /* Hidden by default */
  z-index: 1000;
}

/* New styling for hidden text positioned above the image */
#hidden-text {
  position: fixed;
  top: 0; /* Positions the box at the very top on larger screens */
  left: 50%;
  transform: translateX(-50%);
  display: none;
  z-index: 1100; /* Ensures it sits above other elements */
  font-size: 3em;
  font-family: 'tinos-bold';
  font-weight: bold;
  color: #05005e;
  text-align: center;
  padding: 0.5em 1em;
  border-radius: 5px;
  width: max-content; /* Adjusts width to fit the text */
  white-space: nowrap; /* Prevents wrapping on larger screens */
  background: rgba(255, 255, 255, 0.95); /* White background with slight transparency */
  border: 2px solid #ff4d4d; /* Optional: red border for contrast */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}

/* Responsive adjustments for mobile devices */
@media screen and (max-width: 768px) {
  #hidden-text {
    top: 10%;              /* Moves it down a bit for better visibility */
    left: 0;
    right: 0;
    margin: 0 auto;        /* Centers the box horizontally */
    font-size: 2em;        /* Reduces font size on smaller screens */
    max-width: 90vw;       /* Ensures the box doesn’t overflow the viewport */
    white-space: normal;   /* Allows text to wrap onto multiple lines */
    padding: 0.5em;        /* Adjust padding if needed */
    transform: none;       /* Removes the translateX for mobile */
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ff4d4d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
}


/* Container for hearts – covers the entire viewport */
.rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;  /* So hearts don't block clicks */
  z-index: 0;  /* Place behind your main content */
}

/* Heart styling */
.drop {
  position: absolute;
  font-size: 2rem;  /* Adjust as needed */
  color: red;
  opacity: 0.9;
  /* The animation duration and delay will be set inline */
  animation: float linear infinite;
}

/* Keyframes for random float effect using custom offsets */
@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(var(--offset-x), var(--offset-y)) rotate(180deg);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
    opacity: 0;
  }
}



/* Modal Background (Initially Hidden) */
.modal {
  display: none; /* Keep it hidden initially */
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
  justify-content: center;
  align-items: center;
}


/* Modal Content */
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Close "X" Button */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 40px;
  cursor: pointer;
}

/* Input Fields */
input, textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

/* Button Styling */
.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

#sendEmailBtn {
  background: #ff4d4d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'tangerine-bold';
}

#sendEmailBtn:hover {
  background: #e63e3e;
}

/* Cancel Button */
#cancelBtn {
  background: gray;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'tangerine-bold';
}

#cancelBtn:hover {
  background: darkgray;
}



