/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Griffy&display=swap');

/* Base Layout */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #0b0c10;
  font-family: 'Griffy', cursive;
  color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
  letter-spacing: 0.08em;
}

/* Hero + Music unified background */
#heroMusicWrapper {
  background-image: url("assets/Background05.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Hero Section */
#hero {
  padding: 100px 20px;
  text-align: center;
  background-color: transparent;
  background-blend-mode: normal;
}

#hero h1 {
  font-family: 'Creepster', cursive;
  font-size: 64px;
  color: #9acd32;
  text-shadow: 0 0 10px #000;
  letter-spacing: 0.1em;
}

#hero p {
  font-size: 18px;
  margin-top: 10px;
  color: #ccc;
  letter-spacing: 0.08em;
  font-family: 'Griffy', cursive;
}

.zombie-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 18px;
  background-color: #222;
  color: #9acd32;
  border: 2px solid #9acd32;
  font-family: 'Griffy', cursive !important;
  cursor: pointer;
  transition: transform 0.2s ease;
  letter-spacing: 0.08em;
}

.zombie-button:hover {
  transform: scale(1.05);
}

/* Zombie Image - framed with emoji border */
.zombie-frame {
  border: 4px solid #000;
  padding: 10px;
  margin: 30px auto 0 auto;
  max-width: 600px;
  background-color: #111;
  text-align: center;
  box-shadow: 0 0 15px #000;
}

.emoji-border-top,
.emoji-border-bottom {
  font-size: 24px;
  color: #9acd32;
  margin: 5px 0;
}

#zombieImage {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* Music Section */
#music {
  padding: 80px 20px;
  background-color: transparent;
  background-blend-mode: normal;
  text-align: center;
}

#music h2 {
  font-family: 'Creepster', cursive;
  color: #9acd32;
  text-shadow: 0 0 8px #000;
  letter-spacing: 0.1em;
}

/* Audio Box */
#audioBox {
  margin-top: 30px;
}

.audio-visualizer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.wave-canvas {
  width: 120px;
  height: 60px;
  border: 2px solid #000;
  background-color: #111;
  display: none;
}

/* Audio Controls */
.audio-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.audio-controls button {
  background-color: #222;
  color: #9acd32;
  border: 1px solid #9acd32;
  padding: 10px 16px;
  font-family: 'Griffy', cursive;
  cursor: pointer;
  transition: transform 0.2s ease;
  letter-spacing: 0.08em;
}

.audio-controls button:hover {
  transform: scale(1.1);
}

/* Asset Gallery */
#assets {
  padding: 80px 20px;
}

#assets h2 {
  font-family: 'Creepster', cursive;
  color: #9acd32;
  text-shadow: 0 0 8px #000;
  letter-spacing: 0.1em;
}

#assets img {
  border: 2px solid #333;
  box-shadow: 0 0 10px #000;
  transition: transform 0.3s ease;
}

#assets img:hover {
  transform: scale(1.05);
}

/* Bat and Spider Swarms */
.swarm-zone {
  position: relative;
  height: 50px;
  overflow: hidden;
  font-size: 28px;
  white-space: nowrap;
  text-align: center;
  color: #9acd32;
}

#batSwarm span, #spiderSwarm span {
  position: absolute;
  top: 0;
  animation-duration: 12s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

#batSwarm span {
  animation-name: flyRight;
  left: -100%;
}

#spiderSwarm span {
  animation-name: crawlLeft;
  right: -100%;
}

@keyframes flyRight {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes crawlLeft {
  0% { right: -100%; }
  100% { right: 100%; }
}

/* Zombie Chase - reversed direction */
#zombieChase {
  position: relative;
  height: 100px;
  overflow: hidden;
  background-color: #0b0c10;
}

#chaseContainer {
  position: absolute;
  top: 20px;
  right: -100%;
  white-space: nowrap;
  font-size: 32px;
  animation: chaseReverse 10s linear infinite;
}

@keyframes chaseReverse {
  0% { right: -100%; }
  100% { right: 100%; }
}

/* Footer */
#footer {
  background-color: #111;
  color: #ccc;
  padding: 20px;
  text-align: center;
  font-family: 'Griffy', cursive;
  letter-spacing: 0.08em;
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

#footer li {
  display: inline-block;
  margin: 0 10px;
  font-size: 16px;
  letter-spacing: 0.08em;
}

/* Footer Links */
.footer-link {
  color: #9acd32;
  font-family: 'Griffy', cursive;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #ff6347;
  transform: scale(1.1);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 48px;
  }

  #music h2,
  #assets h2 {
    font-size: 28px;
  }

  .zombie-button,
  .audio-controls button {
    font-size: 16px;
    padding: 8px 14px;
  }

  .footer-link {
    font-size: 16px;
  }

  .swarm-zone {
    font-size: 22px;
    height: 40px;
  }

  #chaseContainer {
    font-size: 24px;
  }

  .emoji-border-top,
  .emoji-border-bottom {
    font-size: 20px;
  }

  .zombie-frame {
    padding: 8px;
    max-width: 100%;
  }

  .wave-canvas {
    width: 80px;
    height: 50px;
  }

  .audio-visualizer-wrapper {
    flex-direction: column;
    gap: 10px;
  }
}
