* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #ffe9e9, #f2e9ff);
  color: #333;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.wrapper {
  width: 100%;
  max-width: 1200px;
}

.intro {
  text-align: center;
  margin-top: 1rem;
}

.main-title {
  font-family: "Pacifico", cursive;
  font-size: 5rem;
  color: #ff6b81;
  font-weight: 400;
  line-height: 1;
}

.love-message {
  margin-top: 1rem;
  color: #666;
  font-size: 1.3rem;
}

.timers {
  display: grid;
  gap: 2rem;
  width: 100%;
  margin: 1rem 0;
}

@media (min-width: 800px) {
  .timers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 799px) {
  .timers {
    grid-template-columns: 1fr;
  }
}

.main-image {
  width: 400px;
  max-width: 80%;
  height: auto;
  margin-top: -1rem;
  border: 4px dashed #ffb6c1;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #a1445b;
  font-weight: 600;
  margin: 2rem 0 -1rem;
  text-shadow: 1px 1px #fce4ec;
}

.main-image:hover {
  transform: scale(1.03);
}

.timer {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ff6b81;
  text-align: center;
  margin-bottom: 1.5rem;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.section {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1 0 100px;
  transition: transform 0.2s;
  cursor: default;
}

.section:hover {
  transform: translateY(-4px);
}

.value {
  font-size: 1.75rem;
  font-weight: 600;
  color: #4b4b4b;
}

.label {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #777;
}

.totals {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.totals span {
  font-weight: 600;
  color: #333;
}

@media (max-width: 600px) {
  .main-title {
    font-size: 2.6rem;
  }

  .love-message {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .timer-header {
    font-size: 1.2rem;
  }

  .value {
    font-size: 1.5rem;
  }

  .label {
    font-size: 0.75rem;
  }

  .totals {
    font-size: 0.9rem;
  }
}

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

.popup-content {
  background: #fff0f5;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
  max-width: 90%;
  width: 500px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #a1445b;
  animation: popupFadeIn 0.5s ease;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.5rem;
  color: #a1445b;
  cursor: pointer;
}

.popup-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ff6b81;
  margin-bottom: 1rem;
  font-family: "Pacifico", cursive;
}

.popup-message {
  font-size: 1.1rem;
  line-height: 1.5;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
