/* === Font Face === */
@font-face {
  font-family: 'Simpsonfont';
  src: url('../fonts/Simpsonfont.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* === Layout === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  text-align: center;
  background: #fff6ed;
}

.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 1s ease-in-out;
}

/* === Headline === */
#main-headline,
#form-headline,
#signup-form button {
  font-family: 'Simpsonfont', cursive;
}

#main-headline {
  font-size: 2rem;
  color: #b30000;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.2s;
}

#instruction-text {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s;
}

/* === Phone Container === */
#phone-container {
  position: relative;
  display: inline-block;
  width: 400px;
  max-width: 100%;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 1s;
}

#phone-image {
  width: 100%;
  height: auto;
  transition: filter 0.3s ease;
}

#phone-image.ringing-glow {
  filter: drop-shadow(0 0 20px rgba(214, 40, 40, 0.7));
}

/* === HOTSPOTS (Invisible, Final Alignment) === */
.sticker-hotspot,
#dial-hotspot {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
}

#dial-hotspot {
  top: 34%;
  left: 44%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
}

/* Love */
#hotspot-love {
  top: 23.5%;
  left: 17.5%;
  width: 12%;
  height: 8%;
}

/* Intention */
#hotspot-intention {
  top: 24.4%;
  left: 75.5%;
  width: 12%;
  height: 8%;
}

/* Action */
#hotspot-action {
  top: 62%;
  left: 21.5%;
  width: 14%;
  height: 8%;
}

/* Discipline */
#hotspot-discipline {
  top: 62%;
  left: 46%;
  width: 14%;
  height: 8%;
}

/* Every Day */
#hotspot-everyday {
  top: 61.5%;
  left: 71%;
  width: 14%;
  height: 8%;
}

/* Hover feedback for stickers */
.sticker-hotspot:hover {
  outline: 2px solid rgba(214, 40, 40, 0.5);
  border-radius: 8px;
  animation: pulse 1s infinite;
}

/* === Signup Form === */
#form-container {
  margin-top: 2rem;
}

#form-headline {
  font-size: 1.5rem;
  color: #b30000;
}

#signup-form input {
  padding: 12px 14px;
  font-size: 1rem;
  width: 250px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Open Sans', sans-serif;
}

#signup-form input:focus {
  border-color: #27ae60;
  box-shadow: 0 0 8px rgba(39,174,96,0.5);
  outline: none;
}

#signup-form button {
  padding: 12px 22px;
  font-size: 1rem;
  background: #008000;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#signup-form button:hover {
  background: #006600;
  transform: scale(1.05);
}

/* Success & Error Messages */
#form-message.success {
  color: #27ae60;
  margin-top: 10px;
}
#form-message.error {
  color: #c0392b;
  margin-top: 10px;
}

/* === Popup === */
#popup-wrapper.hidden {
  display: none;
}

#popup-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-bubble {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  text-align: center;
  position: relative;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  animation: scaleIn 0.3s ease;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

@keyframes phone-shake {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-5deg); }
  40% { transform: rotate(5deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

.ringing {
  animation: phone-shake 0.4s infinite;
}
