
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  /* background-color: #0e0e0e; */
  color: white;
  overflow-x: hidden;
}

h1, h2, h3 {
  text-align: center;
}


/* .hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('./legobg.png');
    background-size: cover;
    /* background-attachment: fixed; */
    /* background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
  } */
  
  /* .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity here */
    /* z-index: 1;
  }  */ 

  .hero {
    position: relative;
    height: 100vh;
    /* background-image: url('./brian-mcgowan-xOhzHKCAhVs-unsplash.jpg');  */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    transition: background-position 0.1s ease-out;
    z-index: 0;
  }
  
  /* Overlay to create opacity effect */
  /* .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
  } */
  
  /* Ensure content sits above overlay */
  .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px #000;
  }
  
  /* Mobile fix: remove parallax and adjust image scaling */
  @media screen and (max-width: 768px) {
    .hero {
      background-attachment: scroll;
      background-size: cover; /* Or try contain if zoom persists */
      background-position: center top;
    }
  }
  
/*   
  .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 10px black;
  } */
  
  .hero-content h1{
    color: #fff;
    /* text-shadow:
      0 0 2px #fff,
      0 0 5px #39ff14,
      0 0 10px #39ff14;
    -webkit-text-stroke: 0.5px #39ff14;
    text-stroke: 0.5px #39ff14; */
  }
  
  .hero-content h2{
    color: #fff;
    text-shadow:
      0 0 2px #fff,
      0 0 5px #ff14ef,
      0 0 10px #ff14ef;
    -webkit-text-stroke: 0.3px #39ff14;
    text-stroke: 0.3px #39ff14;
  }
  


.hero h1 {
  font-size: 4rem;
  color: #fff;
}

.hero h2 {
  font-size: 2rem;
  color: #FFD700;
}

@media screen and (max-width: 768px) {
    .hero::before {
      background-position: top center;
    }
  
    .hero-content h1 {
      font-size: 2rem;
    }
  
    .hero-content h2 {
      font-size: 1.2rem;
    }
  }

  
section {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.party-info, .about-johnny, .contest-info {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 0 15px #ff00ff;
}

.party-center{
    width:55%;
    margin:auto;
    margin-top:30px;
}

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

.gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 4px solid #00ffff;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.1);
}

.rsvp-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 20px 40px;
  font-size: 1rem;
  background-color: #00ff90;
  color: #000;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 15px #00ff90;
  transition: background 0.3s ease;
}

.rsvp-button:hover {
  background-color: #00d478;
}

.floating-img {
  position: absolute;
  width: 100px;
  animation: float 4s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.neon-slider {
    margin-top:35px;
    overflow: hidden;
    padding: 40px 0;
    background: #0e0e0e;
  }
  
  .slider-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
    width: fit-content;
  }
  
  .slider-track img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 20px #00ffff, 0 0 40px #ff00ff;
    transition: transform 0.3s ease;
  }
  
  .slider-track img:hover {
    transform: scale(1.1);
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }


  
  @keyframes bounceY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
  }
  
  
  .bouncing-blue {
    position: fixed;
    width: 80px;
    height: auto;
    /* z-index: 9999; */
    pointer-events: none;
    /* filter: drop-shadow(0 0 10px #00ff00); */
    animation: bounceY 2s ease-in-out infinite;
  } 
  .bouncing-pink {
    position: fixed;
    width: 80px;
    height: auto;
    /* z-index: 9999; */
    pointer-events: none;
    /* filter: drop-shadow(0 0 10px hsl(0, 100%, 50%)); */
    animation: bounceY 2s ease-in-out infinite;
  }


  .bouncing-multi {
    position: fixed;
    width: 80px;
    height: auto;
    /* z-index: 9999; */
    pointer-events: none;
    /* filter: drop-shadow(0 0 10px hsl(183, 100%, 50%)); */
    animation: bounceY 2s ease-in-out infinite;
  }

    .bouncing-yellow {
    position: fixed;
    width: 80px;
    height: auto;
    /* z-index: 9999; */
    pointer-events: none;
    /* filter: drop-shadow(0 0 10px hsl(183, 100%, 50%)); */
    animation: bounceY 2s ease-in-out infinite;
  }

  #party-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .popup-box {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 20px #e674ad;
    color: white;
  }
  
  /* #party-btn {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2rem;
    background: #e674ad;
    color: black;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px #e674ad;
    transition: transform 0.2s ease;
  } */
  
  #party-btn:hover {
    transform: scale(1.05);
  }

  #stop-music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #e674ad;
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 10px #e674ad38;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
  }
  
  #stop-music-btn:hover {
    background-color: #e754a5;
    transform: scale(1.05);
  }
  
/* Victorian Button Entrance */
   /* Overlay */
  #gate-overlay {
    position: fixed; inset: 0;
    display: grid; place-items: center;
    background:
      radial-gradient(1200px 800px at 50% 30%, rgba(255,255,255,0.3), transparent 60%),
      rgba(20, 18, 16, 0.72);
    backdrop-filter: blur(4px);
    z-index: 9999;
  }

  /* Card */
  .gate-card {
    --card-bg: #f9f5ef;
    --ink: #5b4b3a;
    color: var(--ink);
    width: min(92vw, 560px);
    padding: 2.2rem 2rem 2.6rem;
    background:
      radial-gradient(120% 200% at 50% -30%, #ffffff, #f7f0e6 55%, #efe6d9),
      repeating-linear-gradient(90deg, transparent 0 10px, rgba(0,0,0,0.015) 10px 11px);
    border: 10px double #cdbfae;
    border-radius: 16px;
    box-shadow:
      0 30px 60px rgba(0,0,0,0.35),
      inset 0 1px 0 rgba(255,255,255,0.7);
    text-align: center;
    position: relative;
    animation: cardIn 450ms ease-out;
  }

  .gate-card::before, .gate-card::after {
    content: "";
    position: absolute; inset: -18px;
    border-radius: 20px;
    background:
      conic-gradient(from 0deg, rgba(205,191,174,0.25), transparent 30%, transparent 70%, rgba(205,191,174,0.25)),
      radial-gradient(600px 140px at 50% 0%, rgba(255,255,255,0.5), transparent 60%);
    z-index: -1;
    pointer-events: none;
  }

  @keyframes cardIn {
    from { transform: translateY(12px) scale(.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
  }

  .gate-card h2 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
    letter-spacing: .02em;
    margin: 0 0 .4rem;
  }

  .gate-sub {
    margin: 0 auto 1rem;
    max-width: 36ch;
    font-size: 0.98rem;
    opacity: .85;
  }

  /* .gate-divider {
    color: #b7a692;
    margin: .5rem auto 1rem;
    width: 80%;
  } */
.gate-divider img {
  display: block;
  margin: 0.8rem auto 1.2rem;
  max-width: 140px; /* adjust to taste */
  height: auto;
  opacity: 0.75;
}

  .gate-copy {
    margin: 0 0 1.6rem;
    font-style: italic;
  }

  .gate-hint {
    font-size: .85rem;
    color: #7a6956;
    min-height: 1.2em;
    margin-top: 1rem;
  }

  /* Wax Seal Button */
  .wax-seal {
    --seal: #8e1f2a;       /* deep red */
    --seal-dark: #6f1821;  /* shadow */
    --seal-light: #b43644; /* highlight */
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 92px; height: 92px;
    margin: .2rem auto 0;
    border: none; outline: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fbeeee;
    text-transform: uppercase;
    letter-spacing: .08em;
    background:
      radial-gradient(120% 120% at 30% 26%, var(--seal-light), var(--seal) 55%, var(--seal-dark) 100%);
    box-shadow:
      0 10px 20px rgba(0,0,0,.35),
      inset 0 1px 2px rgba(255,255,255,.25),
      inset 0 -8px 16px rgba(0,0,0,.35);
    transition: transform .12s ease, box-shadow .12s ease;
  }

  .wax-seal::before {
    content: "";
    position: absolute; inset: -8px;
    border-radius: 50%;
    background:
      radial-gradient(120% 120% at 30% 26%, rgba(142,31,42,.5), transparent 60%);
    filter: blur(6px);
    z-index: -1;
  }

  .wax-seal .seal-text {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    font-size: .9rem;
    text-shadow: 0 1px 0 rgba(0,0,0,.25), 0 0 12px rgba(255,255,255,.18);
    transform: translateY(1px);
  }

  .wax-seal:hover {
    transform: translateY(-2px);
    box-shadow:
      0 14px 28px rgba(0,0,0,.38),
      inset 0 1px 2px rgba(255,255,255,.25),
      inset 0 -8px 16px rgba(0,0,0,.32);
  }

  .wax-seal:active {
    transform: translateY(1px) scale(.98);
    box-shadow:
      0 6px 12px rgba(0,0,0,.4),
      inset 0 2px 6px rgba(0,0,0,.45);
  }

  /* Motion sensitivity */
  @media (prefers-reduced-motion: reduce) {
    .gate-card { animation: none; }
    .wax-seal { transition: none; }
  }

    .teapot-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
  }

  .teapot-btn img {
    max-width: 150px;
    height: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  .teapot-btn:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
  }

  .teapot-caption {
    font-family: "Great Vibes", cursive;
    font-size: 1.4rem;
    color: #5b4b3a;
    margin-top: 0.4rem;
    opacity: 0.85;
  }