/* --------------------------------------------------------------
   General layout & colour scheme (space‑night vibe)
   -------------------------------------------------------------- */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #fff;
    background: radial-gradient(ellipse at bottom,
                #1b2735 0%, #090a0f 100%);
    overflow-x: hidden;
    position: relative;
    font-size:larger;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 0;
    background: rgba(0,0,0,0.45);
}

/* Content sections */
section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.35);
    border-radius: 8px;
}
h1, h2 { margin: .5rem 0; }

/* --------------------------------------------------------------
   Starfield – tiny white dots generated with CSS
   -------------------------------------------------------------- */
@keyframes starfield {
    from {background-position: 0 0;}
    to   {background-position: -2000px 2000px;}
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,.08) 0,
        rgba(255,255,255,.08) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: .25;
    animation: starfield 150s linear infinite;
    pointer-events: none;
}

/* --------------------------------------------------------------
   Rocket emoji styling
   -------------------------------------------------------------- */
.rocket {
    position: absolute;
    font-size: 3rem;          /* size of the emoji */
    top: 85%;                 /* start near the bottom */
    left: 50%;                /* centre horizontally – each animation offsets */
    transform-origin: bottom center;
    cursor: pointer;          /* hint that it can be clicked */
}

/* Ensure the emoji stays centered inside the div */
.rocket .emoji {
    display: block;
    line-height: 1;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------
   Three distinct launch animations
   -------------------------------------------------------------- */
@keyframes launch1 {
    0%   {transform: translate(-150%,0) rotate(0deg);}
    100% {transform: translate(250%, -90vh) rotate(30deg);}
}
@keyframes launch2 {
    0%   {transform: translate(0,0) rotate(0deg);}
    100% {transform: translate(-250%, -80vh) rotate(-30deg);}
}
@keyframes launch3 {
    0%   {transform: translate(-50%,0) rotate(0deg);}
    100% {transform: translate(0, -95vh) scale(1.4);}
}

/* Assign each rocket its own animation */
.rocket1 { animation: launch1 12s linear infinite; }
.rocket2 { animation: launch2 15s linear infinite 2s; }
.rocket3 { animation: launch3 10s linear infinite 4s; }
/* --------------------------------------------------------------
   ★★ STARFIELD – ONLY 10 STARS (you can copy‑paste to add more) ★★
   -------------------------------------------------------------- */
.starfield {
    position: fixed;
    inset: 0;
    z-index: -1;               /* behind all content */
    pointer-events: none;
    background: #000;          /* deep‑space black */
}
/* --------------------------------------------------------------
   ★★ INDIVIDUAL STAR – tiny white dot that twinkles ★★
   -------------------------------------------------------------- */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;          /* the star itself */
    animation: twinkle 2s ease-in-out infinite;
}
/* One tiny white dot that we replicate 10 times via box‑shadow */
.starfield::before {
    content: "";
    position: absolute;
    top: 0;               /* start from the top‑left corner */
    left: 0;
    width: 2px;
    height: 2px;
    background: #fff;
    /* Ten arbitrary positions – feel free to edit or add more */
    animation: twinkle 2s ease-in-out infinite;
}

/* Optional twinkling – only the stars flicker */
.starfield::after {
    content: "";
    position: absolute;
    inset: 0;
    animation: twinkle 2s ease-in-out infinite;
}
@keyframes twinkle {
    0%,100% { opacity: 0.3; }
    50%      { opacity: 0.8; }
}


  /* -------------------------- Weird Footer ----------------------*/
   :root {
      --lightness: 50%;
      --code-background: #ddd;
  }
   footer {
          position: absolute;
          left:0;
          bottom:0;
          background: #FFF;
          text-align: center;
          clear: both;
          display: block;
          padding:10px;
          border: 2px dashed red;
          z-index: 20;
      }
  footer a:hover {
      display: inline-block;
      animation: 0.2s infinite alternate linear wiggle;

      background: linear-gradient(in hsl longer hue 45deg, hsl(0deg, 75%, var(--lightness)) 10%, hsl(0deg, 75%, var(--lightness)) 90%);
      background-clip: text;
      color: transparent;
  }
      @keyframes wiggle {
          from {
              transform: skewX(-8deg);
          }
          to {
              transform: skewX(8deg);
          }
      }