/* General Styling */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #ffe4e1; /* Light pink background */
  color: #ff4d6d;
  overflow: hidden;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Central Box */
.box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  position: relative;
  z-index: 2;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  margin-top: -50px; /* Move the box up slightly */
}

/* Page Visibility */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Password Page Styling */
#passwordPage h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

#passwordInput {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 2px solid #ff4757;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

#passwordInput::placeholder {
  color: #ffb6c1;
}

/* Buttons */
button {
  background: #ff4757;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 16px;
  width: 100%;
}

button:hover {
  background: #ff6b6b;
}

/* Music Button */
#musicButton {
  position: fixed; /* Fixed position */
  top: 10px;
  right: 10px; /* Align to the top-right corner */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000; /* Ensure it's above everything */
}

/* Image */
#coupleImage {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  margin-top: 10px;
}

/* Floating Emojis */
#floatingEmojis {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

#floatingEmojis span {
  position: absolute;
  font-size: 30px;
  animation: floatDown 10s infinite ease-in-out;
  opacity: 0.7;
}

/* Hide Elements */
.hidden {
  display: none;
}

/* Slider Styling */
input[type="range"] {
  width: 100%;
  margin: 10px 0;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #ffb6c1;
  border-radius: 5px;
  outline: none;
}

/* Slider Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #ff4757;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #ff4757;
  border-radius: 50%;
  cursor: pointer;
}

/* Falling Emoji Animation */
@keyframes floatDown {
  0% { transform: translateY(-10vh); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Make Letter Page Scrollable */
#letterPage {
  max-height: 80vh;
  overflow-y: auto;
  padding: 10px;
}