* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #fff5f7;
  color: #333;
  text-align: center;
}

/* Hero */
.hero {
  padding: 100px 20px 60px;
}

.hero h1 {
  font-size: 32px;
}

/* Button */
.love-btn {
  background: #ff8fab;
  color: white;
  border: none;
  padding: 15px 28px;
  border-radius: 30px;
  font-size: 16px;
  margin-top: 30px;
}

.love-btn:active {
  transform: scale(0.95);
}

/* Sections */
.section {
  padding: 20px 20px;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}

/* Footer */
.footer {
  padding: 40px;
  font-size: 18px;
}

/* Fade animation */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  width: 85%;
  max-width: 350px;
  padding: 25px;
  border-radius: 15px;
  text-align: left;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

/* Time */
#timeElapsed {
  font-size: 18px;
  margin-top: 10px;
}

.digital-time {
  font-family: "Courier New", monospace;
  font-size: 22px;
  background: #ffe5ec;
  padding: 15px 20px;
  border-radius: 12px;
  display: inline-block;
  letter-spacing: 1px;
  margin-top: 10px;
}

.clock {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.time-box {
  background: #ffe5ec;
  padding: 15px 12px;
  border-radius: 15px;
  width: 90px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.time-box span {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 28px;
  font-weight: bold;
}

.time-box small {
  font-size: 12px;
  color: #666;
}

/* Mobile tweak */
@media (max-width: 360px) {
  .time-box {
    width: 75px;
    padding: 12px 8px;
  }

  .time-box span {
    font-size: 24px;
  }
}


/* Desktop gallery size */
@media (min-width: 768px) {
  .gallery img {
    width: 180px;
    height: 240px;
  }
}

@media (min-width: 1024px) {
  .gallery img {
    width: 220px;
    height: 300px;
  }
}

.img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.img-viewer img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 12px;
}