body, h1, h2, ul, form {
  margin: 0;
  padding: 0;
}

body {
  background: white;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 90%;
  background: darkblue;
  z-index: 1000;
  display: flex;
  padding: 10px 20px;
  justify-content: space-between;
  align-items: center;
}



header h1 {
  font-family:Ethnocentric;
  font-size: 2.5em;
  color: white;
}

.menu-icon {
  display: block;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  background: white;
  height: 7px;
  width: 35px;
  margin: 5px;
}

.sidenav {
  position: absolute;
  height: 100%;
  width: 0;
  transition: 0.5s;
  padding-top: 60px;
  left: 0;
  z-index: 1;
  background: #333;
  overflow-x: hidden;
}

.sidenav a {
  padding: 10px 20px;
  display: block;
  color: white;
  font-size: 20px;
  text-decoration: none;
}

.sidenav a:hover {
  background: #555;
}

.sidenav .closebtn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
}


    .badge {
      background: red;
      color: white;
      font-size: 12px;
      font-weight: bold;
      padding: 2px 6px;
      border-radius: 10px;
      position: absolute;
      top: 269px;
      left: 132px ;
      animation: pulse 1.5s infinite;
    }
    
    /* Animation ya kuashiria alert */
    @keyframes pulse {
      0% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.2); opacity: 0.7; }
      100% { transform: scale(1); opacity: 1; }
    }


.hero {
  margin-top: 30px;
  color: white;
  padding: 100px 20px;
  height: 400px;
  text-align: center;
  background-image:url('game.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: bgSlide 20s infinite;

}

@keyframes bgSlide {
  0%   { background-image:linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),  url('Home Andy Game Zone.jpeg'); }
  25%  { background-image:linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),  url('game.jpeg'); }
  100% { background-image:linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),  url('Home Andy Game Zone.jpeg          '); } /* 👈 Rudia mwanzo */
}


.hero h2 {
  color: white;
  font-size: 45px;
  margin-bottom: 20px;
  z-index: 2;
  position: relative;
}

.hero .badge {
    background: red;
      color: white;
      font-size: 12px;
      font-weight: bold;
      padding: 2px 6px;
      border-radius: 10px;
      position: absolute;
      top: 225px;
      left: 132px ;
      animation: pulse 1.5s infinite;
    }
    
    /* Animation ya kuashiria alert */
    @keyframes pulse {
      0% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.2); opacity: 0.7; }
      100% { transform: scale(1); opacity: 1; }
    }
   
  


.slideshow {
  height: 100px;
  overflow: hidden;
  text-align: center;
  background: black;
  color: white;
  padding: 10px 0;
  position: relative;
}

.slideshow div {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: slide 12s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

.slideshow div:nth-child(2) {
  animation-delay: 4s;
}

.slideshow div:nth-child(3) {
  animation-delay: 8s;
}

@keyframes slide {
  0% { transform: translateX(100%); opacity: 0; }
  25% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(0); opacity: 1; }
  75% { transform: translateX(-100%); opacity: 0; }
  100% { opacity: 0; }
}

.about {
  text-align: center;
  padding: 50px 20px;
  background: #f9f9f9;
}

.games {
  text-align: center;
  padding: 50px 20px;
  
}

.game {
  display: inline-block;
  margin: 20px;
  max-width: 300px;
}

.game img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
}

.contact {
  background: #eee;
  padding: 40px 20px;
  text-align: center;
}


.contact h2 {
  font-size: 30px;
  margin-bottom: 20px;
}
.contact {
  background: #eee;
  padding: 40px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 30px;
  margin-bottom: 20px;
}


.contact h2 {
  font-size: 30px;
  margin-bottom: 20px;
  
}

.contact p {
  font-size: 18px;
  margin: 10px 0;
}

.whatsapp-channel-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background-color: #25D366; /* WhatsApp green */
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.whatsapp-channel-btn:hover {
  background-color: #1ebe5d;
}

footer {
  background: black;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

/* Optional: Responsive */
@media screen and (max-width: 600px) {
  .sidenav {
    width: 0; /* default closed */
    height: 100%;
    padding-top: 60px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #111;
    z-index: 999;
    transition: 0.3s ease;
    overflow-x: hidden;
  }

  .sidenav a {
    font-size: 18px;
    padding: 10px 32px;
    display: block;
    color: white;
  }

  .sidenav .closebtn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    color: white;
    display: block;
    cursor: pointer;
  }

  .menu-icon span {
    width: 22px;
    height: 4px;
  }

  header h1 {
    font-size: 1.4em;
  }

  .hero h2 {
    font-size: 26px;
  }
}