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

/* Body */
body {
  font-family: 'Courier New', sans-serif;
  background: #07090f;
  color: #333;
  padding: 20px;
  line-height: 1.6;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 3rem;
  color: #c71585;
}

header p {
  font-size: 1.2rem;
  color: #ff69b4;
  margin-top: 10px;
}

/* Sections */
section {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 15px;
  background-color: #ffe4e1;
  /* very soft pink */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section headings */
section h2 {
  color: #8b008b;
  margin-bottom: 15px;
  text-align: center;
}

/* Gallery */
.gallery-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-grid img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Timeline */
.timeline {
  list-style: decimal inside;
  max-width: 600px;
  margin: 0 auto;
  font-weight: bold;
}

/* Letter */
#letter p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 50px;
  color: #555;
  font-style: italic;
}

#password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0A0A0A;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
}

#password-box {
  /* Make it an invisible container that organizes content vertically */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* Adds space between the items */

  /* Remove styles that make it a visible box */
  background: none;
  border: none;
  box-shadow: none;

  /* Size it relative to the banner, not the screen */
  width: 80%;
  height: auto;
  /* Height adjusts to content */
  padding: 10px;
  text-align: center;
  z-index: 3;
  /* Keeps it on top of the dots */
}

#password-box input {
  /* Make input take up available width */
  width: 90%;
  max-width: 250px;
  /* Optional: prevent it from getting too wide */
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: 3px solid #66BB6A;

  /* The invalid "display: flex inline;" is removed */
  /* The "margin-right: 10px;" is removed; gap is used instead */
}

#password-box button {
  padding: 10px 25px;
  /* A little more padding */
  background-color: #B23A48;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#password-box button:hover {
  background-color: #C94F4F;
}

#oval-banner {
  display: flex;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: auto;
  aspect-ratio: .80 / 1;
  max-width: 450px;

  justify-content: center;
  align-items: center;
  overflow: visible;
}

.banner-clipper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 60% 60% 42% 42% / 80% 80% 25% 25%;
  border: 15px solid #8f1030;
  box-shadow: 0 10px 50px rgba(255, 255, 255, 0.74);
  overflow: hidden;
  z-index: 1;
}

/* Dots */
#oval-banner .dots {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  background-position: center center;
  background-image: radial-gradient(#000000 6px,
      transparent 7px);
  background-size: 80px 80px;
}

/* Shared styles for both feet */
.foot {
  position: absolute;
  z-index: 100;
  /* Stays below the password box, but visible */

  /* NEW: Smaller, more rounded dimensions */
  width: 20%;
  /* Use vmin for responsive sizing */
  height: 20%;
  background-color: #A0522D;
  /* NEW: A standard SaddleBrown for a slightly different brown */
  border-radius: 45% 45% 45% 45% / 40% 40%;
  /* NEW: Makes them perfectly round */
}

/* Positioning for the LEFT foot */
.left-foot {
  bottom: -3rem;
  /* NEW: Adjust bottom position relative to vmin */
  left: 30%;
  transform: translateX(-50%) rotate(-15deg);
  /* NEW: Less rotation, subtle angle */
}

/* Positioning for the RIGHT foot */
.right-foot {
  bottom: -3rem;
  /* NEW: Adjust bottom position relative to vmin */
  right: 30%;
  transform: translateX(50%) rotate(15deg);
  /* NEW: Less rotation, subtle angle */
}

#password-input:hover {
  cursor: text;
}

.no-scroll {
  overflow: hidden;
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: #fff;
  border-radius: 50%;
}

@keyframes shoot {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.5);
    opacity: 0;
  }
}

summary {
  font-size: 18px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
  /* removes the default arrow */
}

summary:hover {
  color: rgb(229, 229, 173);
}

details {
  border: 2px solid #444;
  border-radius: 10px;
  padding: 10px;
  width: 250px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

/* When user clicks and it expands */
details[open] {
  background: #ffe4e1;
  /* pink background */
  border-radius: 20px;
  /* rounder corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

details summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: pink;
  padding: 5px;
}

/* The content box */
details>*:not(summary) {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0;
}

/* Expand smoothly */
details[open]>*:not(summary) {
  max-height: 200px;
  /* adjust to fit your content */
  padding: 10px 0;
}

audio {
  width: 10rem;
  height: 6rem;
}

@media (max-width: 768px) {
  /* Styles for tablets and phones */

  header h1 {
    font-size: 2.5rem;
    /* Make the main title a bit smaller */
  }

  .gallery-grid {
    flex-direction: column;
    /* Stack the pictures vertically */
    align-items: center;
    /* Center them */
  }

  .gallery-grid img {
    width: 90%;
    /* Make images take up most of the screen width */
    height: auto;
    /* Adjust height automatically */
  }

  #letter p,
  .timeline {
    max-width: 90%;
    /* Allow the text to use more of the screen */
  }
}