/* ===== Love Sky Page ===== */

/* Header stays on top */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; /* stays above sky and counters */
}

/* Sky background gradient */
.sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #1b0b2c, #2b1b4d);
  z-index: 0; /* behind content */
}

/* Stars container */
.stars-container {
  position: fixed; /* fixed so stars stay while scrolling */
  top: 80px; /* start below header */
  left: 0;
  width: 100%;
  height: calc(100% - 80px); /* adjust height accordingly */
  pointer-events: none;
  z-index: 1; /* above sky but below content */
}

/* Star style */
.star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 50% 50%, #fffacd, #ffffff);
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.5; transform: scale(1); }
}

/* Counters - visible below header */
.star-counters {
  position: absolute;
  top: 100px; /* below header, adjust to your header height */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffe6f0;
  font-size: 1.2rem;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
  z-index: 2; /* above stars */
}

.star-counters p {
  margin: 5px 0;
}

/* Ground and artwork */
.ground {
  position: fixed; /* stays at bottom */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, #3b1b4d, transparent 70%);
  display: flex;
  justify-content: flex-start; /* align items to left */
  align-items: flex-end;
  padding-left: 20px; /* optional: space from the edge */
  z-index: 2; /* above stars */
}

/* Shared styles for all ground art */
.ground-art {
  max-width: auto; /* this is a good shared property */
}
.ground-art.loaded {
  opacity: 1; /* Fade to fully visible */
}

/* Style for the FIRST image */
.ground-art-1 {
  height: 300px; /* Or whatever height you want for the first image */
}

/* Style for the SECOND image */
.ground-art-2 {
  height: 250px; /* A different height for the second one! */
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .star-counters {
    top: 90px;
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .star-counters {
    top: 80px;
    font-size: 0.9rem;
  }
}

/* Note Popup Background */
.note-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 20, 40, 0.85); /* dims background */
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999; /* above everything */
}

/* Show popup */
.note-popup.active {
  opacity: 1;
  pointer-events: all;
}

/* Popup content box */
.note-content {
  background: linear-gradient(145deg, #5c2147, #78285f);
  padding: 30px 25px;
  border-radius: 20px;
  text-align: center;
  color: #ffe6f0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(255, 150, 200, 0.4);
  position: relative;
  animation: popIn 0.4s ease;
}

/* Popup Animation */
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Close button */
.close-note {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  color: #ffb3d9;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

.close-note:hover {
  transform: scale(1.2);
}

/* Artwork Hover Effect */
.ground-art {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  opacity: 0; /* Start fully transparent */
  transition: opacity 1s ease-out, transform 0.3s ease, filter 0.3s ease;
}

.ground-art:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(255, 200, 230, 0.6));
}

.close-note:hover, .ground-art:hover {
  cursor: url('../images/cursor/hover.png') 16 16, pointer;
}