/* ============================================
   IMPORTS & RESET
   ============================================ */

@font-face {
  font-family: 'Comic Sans MS';
  src: url('COMIC.TTF') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'Comic Sans MS';
  src: url('comicbd.ttf') format('truetype');
  font-weight: bold;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================
   STARFIELD CANVAS — sits behind everything
   ============================================ */

#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   BODY
   ============================================ */

body {
  background-color: #000000;
  background-image: url('background2.gif');
  background-repeat: repeat;
  color: #ffffff;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Patrick Hand', cursive;
  text-align: center;
  padding: 40px 20px 60px;
  min-height: 100vh;
  font-size: 30px;
}

/* ============================================
   WRAPPER
   ============================================ */

#wrapper {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   HEADER & LOGO
   ============================================ */

#header {
  margin-bottom: 30px;
}

#logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

#logo {
  font-size: 3em;
  letter-spacing: 8px;
  color: #cc99ff;
  text-shadow:
    0 0 10px #cc99ff,
    0 0 30px #9933ff,
    0 0 60px #6600cc,
    3px 3px 0px #330066,
    6px 6px 0px #1a0033;
  animation: logopulse 2s ease-in-out infinite;
}

@keyframes logopulse {
  0%, 100% { text-shadow: 0 0 10px #cc99ff, 0 0 30px #9933ff, 0 0 60px #6600cc, 3px 3px 0px #330066, 6px 6px 0px #1a0033; }
  50%       { text-shadow: 0 0 20px #dd99ff, 0 0 50px #aa44ff, 0 0 90px #7700ee, 3px 3px 0px #330066, 6px 6px 0px #1a0033; }
}

#star-left,
#star-right {
  display: flex;
  align-items: center;
}

#star-left img,
#star-right img {
  width: 60px;
  image-rendering: pixelated;
}

#lightning-right {
  animation-delay: 0.3s;
}



#tagline {
  font-size: 0.55em;
  color: #9966cc;
  letter-spacing: 6px;
  margin-bottom: 20px;
}



/* ============================================
   DIVIDER
   ============================================ */

.divider {
  border: 0;
  border-top: 1px solid #440066;
  margin: 24px auto;
  position: relative;
  max-width: 600px;
}

.divider span {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #00000f;
  padding: 0 10px;
  color: #cc99ff;
  font-size: 0.8em;
}

/* ============================================
   SECTION TITLE
   ============================================ */

.section-title {
  font-size: 0.8em;
  color: #00ff15;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

#track-title {
  font-size: 2em;
  color: #cc99ff;
  margin-bottom: 24px;
  letter-spacing: 4px;
  text-shadow: 0 0 15px #9933ff;
}

/* ============================================
   INTRO TEXT
   ============================================ */

.intro {
  font-size: 0.7em;
  line-height: 2.4;
  margin-bottom: 30px;
  color: #ffffff;
  font-family: 'Times New Roman', monospace;
  font-weight: bold
}

/* ============================================
   BLINK
   ============================================ */

blink, .blink {
  animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
  to { visibility: hidden; }
}

/* ============================================
   CODE INPUT BOX
   ============================================ */

#code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  border: 1px solid #440066;
  padding: 28px 20px;
  background: rgba(20, 0, 40, 0.7);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

#code-box label {
  font-size: 0.5em;
  color: #cc99ff;
  letter-spacing: 3px;
}

#code-input {
  background: #ffffff;
  border: 2px inset #999999;
  color: #000000;
  font-family: 'Courier New', monospace;
  font-size: 0.6em;
  padding: 8px 12px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  outline: none;
  text-transform: uppercase;
}

#code-input::placeholder {
  color: #aaaaaa;
  letter-spacing: 4px;
}

button {
  background: #c0c0c0;
  color: #000000;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #444444;
  border-bottom: 2px solid #444444;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Patrick Hand', cursive;
  font-size: 0.5em;
  padding: 8px 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
}

button:hover {
  background: #d0d0d0;
}

button:active {
  border-top: 2px solid #444444;
  border-left: 2px solid #444444;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translate(1px, 1px);
}

/* ============================================
   MESSAGE
   ============================================ */

#message {
  font-size: 0.5em;
  min-height: 24px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

/* ============================================
   DOWNLOAD AREA
   ============================================ */

#download-area {
  border: 2px dashed #15ff00;
  padding: 28px;
  margin: 20px auto;
  max-width: 480px;
  background: rgba(20, 20, 0, 0.6);
  animation: flicker 4s infinite;
}

.dl-ready {
  font-size: 0.5em;
  color: #15ff00;
  margin-bottom: 18px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #ffff00;
}

#download-link {
  display: inline-block;
  color: #000000;
  background: #5eff00;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Patrick Hand', cursive;
  font-size: 0.5em;
  padding: 12px 20px;
  text-decoration: none;
  letter-spacing: 2px;
  margin-bottom: 16px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #888800;
  border-bottom: 2px solid #888800;
}

#download-link:hover {
  background: #d3ff33;
}

#download-link:active {
  border-top: 2px solid #888800;
  border-left: 2px solid #888800;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.warning {
  color: #ff4444 !important;
  font-size: 0.4em !important;
  line-height: 2;
}

@keyframes flicker {
  0%, 91%, 94%, 100% { opacity: 1; }
  92%, 93%            { opacity: 0.3; }
}

/* ============================================
   BRACKET LINK
   ============================================ */

.bracket-link {
  font-size: 0.5em;
  margin-top: 20px;
  color: #9966cc;
}

.bracket-link a {
  color: #cc99ff;
  text-decoration: underline;
}

.bracket-link a:hover {
  color: #ffffff;
}

/* ============================================
   LINKS SECTION
   ============================================ */

#links-section {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 10px 0 20px;
}

.link-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.link-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  image-rendering: pixelated;
}

.link-col h4 {
  font-size: 0.55em;
  color: #ffff00;
  letter-spacing: 3px;
  text-shadow: 0 0 8px #ffff00;
}

.link-col p {
  font-size: 0.45em;
  line-height: 2.2;
  color: #9966cc;
}

.link-col a {
  color: #cc99ff;
  text-decoration: underline;
}

.link-col a:visited {
  color: #9966cc;
}

.link-col a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px #cc99ff;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

#about {
  padding: 10px 0 20px;
}

/* ============================================
   FOOTER
   ============================================ */

#footer {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#construction-gif {
  image-rendering: pixelated;
  height: 40px;
}

.footer-text {
  font-size: 0.45em;
  color: #cc99ff;
  letter-spacing: 2px;
  line-height: 2;
}

.small-text {
  font-size: 0.42em !important;
  color: #666699 !important;
  line-height: 2.2 !important;
  font-family: 'Courier New', monospace;
}

#counter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#counter {
  background: #000000;
  border: 2px inset #333333;
  padding: 6px 16px;
  display: inline-block;
}

#count-display {
  font-family: 'Courier New', monospace;
  font-size: 1.2em;
  color: #00ff00;
  letter-spacing: 4px;
  text-shadow: 0 0 8px #00ff00;
}

/* ============================================
   SIDE GIFS
   ============================================ */

#gifs-left,
#gifs-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

#gifs-left {
  left: 900px;
}

#gifs-right {
  right: 900px;
}

#gifs-left img,
#gifs-right img {
  max-width: 80px;
  image-rendering: pixelated;
}

@media (max-width: 1800px) {
  #gifs-left {
    left: 30px;
  }
  #gifs-right {
    right: 30px;
  }
  #gifs-left img,
  #gifs-right img {
    max-width: 70px;
  }
}

@media (max-width: 1200px) {
  #gifs-left img,
  #gifs-right img {
    max-width: 30px;
  }
  #gifs-left {
    left: 4px;
  }
  #gifs-right {
    right: 4px;
  }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  body {
    font-size: 20px;
    padding: 20px 10px 40px;
  }

  #logo {
    font-size: 2.5em;
    letter-spacing: 4px;
  }

  #logo-wrap {
    gap: 8px;
  }

  #links-section {
    gap: 24px;
  }

  #code-box {
    padding: 16px 12px;
  }
}