/* Basic Reset and Setup */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
}

#container {
  width: 100%;
  height: 100vh;
  background-color: black;
  position: relative;
}

/* UI Overlay Styles */
.ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.header-container {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

#main-title {
  font-size: 3.75rem;
  font-weight: bold;
  background: linear-gradient(to right, #ec4899, #9333ea, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  animation: pulse 1.5s infinite alternate;
}

#subtitle {
  font-size: 1.25rem;
  color: #67e8f9;
  margin-top: 300px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.upload-container {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 10;
  /* This container is now essentially empty in HTML, so its styling isn't critical for functionality. */
  /* Keeping it for structural integrity in case of future additions */
  pointer-events: none; /* No clickable elements inside it now */
}

/* Removed styles for #upload-button and #surprise-upload-button as they are no longer in HTML */

.hidden-input {
  display: none;
}

/* Message & Surprise Box Styles */
.message-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
  animation: fadeIn 1s forwards;
}

.message-box,
.surprise-box {
  position: relative;
  background-image: linear-gradient(to bottom right, #581c87, #831843);
  opacity: 0.95;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 512px;
  margin: 0 16px;
  border: 4px solid #facc15;
  transform: scale(1);
  animation: bounce 2s infinite;
  pointer-events: all;
}

.surprise-box {
  max-width: 600px;
  padding: 30px;
}

.surprise-image {
  max-width: 100%;
  height: 40vh;
  border-radius: 15px;
  border: 3px solid #db2777;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.7);
}

.surprise-text {
  font-size: 1.2rem;
  color: #fcd34d;
  font-style: italic;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2.5rem;
  color: #fcd34d;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease-in-out;
}

.close-button:hover {
  transform: scale(1.2) rotate(5deg);
  color: #fff;
}

.wish-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: #fcd34d;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.wish-text {
  font-size: 1.5rem;
  color: white;
  line-height: 1.6;
  font-weight: 600;
}

.wish-icons {
  margin-top: 32px;
  font-size: 3rem;
  animation: pulse 1.5s infinite alternate;
}

/* Music Notice */
.music-notice {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.music-notice p {
  color: #67e8f9;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

/* Helper Class */
.hidden {
  display: none !important;
}

/* Keyframe Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
