@font-face {
    font-family: "Roboto";
    src: url("fonts/Roboto/Roboto-Regular.ttf");
    font-weight: 400;
    font-style: normal;
  }

  @font-face {
    font-family: "Bangers";
    src: url("fonts/Bangers/Bangers-Regular.ttf") ;
    font-weight: 700;
    font-style: normal;
  }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: #333;
}
img{
    max-width: 100%;
    object-fit: cover;
}
a{
    text-decoration: none;
    color: inherit;
}
button{
    border: none;
}
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
header {
  background: linear-gradient(90deg, #FFD700, #FF4500);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-family: 'Bangers', cursive;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 2px 2px #1E90FF;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #1E90FF;
}

.burger {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* General Section Styles */
.section {
  padding: 80px 0;
}

.section-top{
    padding-top: 130px;
}


 h2, h1 {
  font-family: 'Bangers', cursive;
  font-size: 3rem;
  color: #FF4500;
  text-align: center;
  margin-bottom: 40px;
}

.section h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  color: #32CD32;
  margin: 20px 0 10px;
}

.section p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.section ul li {
  margin-bottom: 10px;
}

/* Button Styles */
.btn {
  background: linear-gradient(45deg, #FF4500, #FFD700);
  color: #fff;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
  display: inline-block;
  margin-top: 10px;
}

.btn:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

/* Hero Section (index, about, play, world) */
.hero {
  height: 100vh;
  max-height: 1200px;
  background: url('image/banner.jpg') center/cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px #333;
  position: relative;
}
.hero-about{
    background: url('image/classic.jpg') center/cover;
}
.hero-play{
     background: url('image/cloudy.jpg') center/cover;
}
.hero-world{
     background: url('image/drone.jpg') center/cover;
}
.hero::before{
    position: absolute;
    content: '';
    top: 0;left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero h1 {
    color: #fff;
  font-family: 'Bangers', cursive;
  font-size: 4.5rem;
  margin-bottom: 20px;
}
.hero .container{
    position: relative;
    z-index: 5;
}
/* Hero Animations */
.hero.glitch h1 { /* about.html */
  text-shadow: 0 0 10px #1E90FF, 0 0 20px #1E90FF;
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(2px, 2px); }
  100% { transform: translate(0); }
}

.hero.pulse .btn { /* play.html */
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.overview .container, .basics .container,.story .container{
    display: flex;
    align-items: center;
    gap: 40px;
}
.overview img, .basics img, .story img{
    width: 50%;
}

/* Slider/Carousel (index: gameplay highlights, about: characters, play: cannons, world: enemies) */
.slider .container{
  position: relative;
  overflow: hidden;
}

.slider-container{
  display: flex;
  transition: transform 0.5s;
}
.carousel-container {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
}

.carousel-container::-webkit-scrollbar{
    width: 0;
}
.slide {
  min-width: 100%;
  text-align: center;
  padding: 20px;
}

.carousel-item {
  flex: 1 0 300px;
}

.slide img, .carousel-item img {
  width: 100%;
  border-radius: 10px;
  height: 400px;
}
.carousel-item img {
   
  height: 300px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1E90FF;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next{
  right: 10px;
}

/* Grids (index: customization, gallery; about: stages; play: rewards; world: secrets) */
.customization-grid, .gallery, .stages-grid, .rewards-grid, .secrets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.gallery img{
    height: 250px;
    width: 100%;
}

.card, .stage-card, .reward-card, .secret-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.secret-card{
   height: 250px; 
}

.card:hover, .stage-card:hover, .reward-card:hover, .secret-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card img, .stage-card img, .reward-card img, .secret-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.secret-card img{
    height: 100%;
}
.secret-card .overlay { /* world.html */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.secret-card:hover .overlay {
  opacity: 1;
}

/* Tiles (about: power-ups, play: stages, world: stages) */
.power-up-tiles, .stage-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.power-up-tile, .stage-tile {
  background: linear-gradient(45deg, #FFD700, #FF4500);
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
  transition: transform 0.3s;
}

.power-up-tile:hover, .stage-tile:hover {
  transform: scale(1.1);
}

.power-up-tile img, .stage-tile img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

/* Accordion (index: tips, support; about: challenges; play: traps; world: challenges) */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 10px;
}

.accordion-header {
  background: #32CD32;
  color: #fff;
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  display: none;
  padding: 15px;
  background: #fff;
  border: 1px solid #32CD32;
}

.accordion-content.active {
  display: block;
}

/* Themed Sections */
 .lore { /* index, about, play, world */

  text-align: center;
}

.download, .behind-scenes, .vault, .moments { /* index, about, play, world */
  background: url('image/banner.jpg') center/cover fixed;
  text-align: center;
  color: #fff;
  padding: 100px 0;
  position: relative;
}

.download::before, .behind-scenes::before, .vault::before, .moments::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.download .container, .behind-scenes .container, .vault .container, .moments .container {
  position: relative;
}
.download h2, .behind-scenes h2, .vault h2, .moments h2 {
    color: #fff;
}

.intro { /* terms, privacy */

  text-align: center;
}

/* Support Form (index) */
.support form {
  max-width: 600px;
  margin: 0 auto;
}

.support input, .support textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.support button {
  background: #FF4500;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  cursor: pointer;
}
.support label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.support label input{
    margin: 0;
    width: auto;
}

/* Footer (all except thanks) */
footer {
  background: #333;
  color: #fff;
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.footer-grid div{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-grid h3 {
  font-family: 'Bangers', cursive;
  margin-bottom: 15px;
}

.footer-grid a {
  color: #FFD700;
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

/* Thanks Page Specific */
.thanks-container { /* thanks.html */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}
.thanks-container .container{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.reviews-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
      gap: 20px;
    }
    .review-card {
      background: #fff;
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .review-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    .review-card img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 15px;
    }
    .review-card h3 {
      font-family: 'Bangers', cursive;
      font-size: 1.5rem;
      color: #32CD32;
      margin-bottom: 10px;
    }
    .review-card .rating {
      margin-bottom: 15px;
    }
    .review-card .rating i {
      color: #FFD700;
      font-size: 1.2rem;
    }
    .review-card p {
      font-size: 1rem;
      line-height: 1.6;
    }
   .btn.no {
      background: linear-gradient(45deg, #32CD32, #1E90FF);
    }
    .deny-message {
      display: none;
      font-size: 1.2rem;
      color: #FF4500;
      margin-top: 20px;
    }
    .deny-message.active {
      display: block;
    }
    .top{
      height: 100vh;
      max-height: 100vh;
      display: none;
      align-items: center;
      justify-content: center;
    }
  .age-row{
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #FF4500;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .age-row .btn{
    margin: 0 ;
    font-size: 18px;
    padding: 5px 10px;
  }
  .age-row .deny-message{
    margin: 0;
  }
  .deny-message-mobile{
    color: #fff;
  }
/* Media Queries */
@media (max-width: 768px) {
  .age-row{
    display: none;
  }
    .container{
        padding: 0 10px;
    }
    .top{
      text-align: center;
      display: flex;
    }
  nav ul {
    transform: translateX(100%);
    transition: transform 0.3s;
    position: fixed;
    top: 82px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #333;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }
  nav ul li a{
    font-size: 1.6rem;
  }
  nav ul.active {
   transform: translateX(0%);
  }
  .burger {
    display: block;
    position: relative;
    z-index: 999;
  }
  body.no-scroll {
    overflow: hidden;
  }
  .slide {
    min-width: 100%;
  }
  .section h2 {
    font-size: 2.5rem;
  }
  .btn {
    font-size: 1.2rem;
    padding: 12px 25px;
  }
  .review-card img {
        width: 60px;
        height: 60px;
      }
      .review-card h3 {
        font-size: 1.3rem;
      }
    .overview .container, .basics .container,.story .container{
       flex-direction: column;
    }
    .overview img, .basics img, .story img{
        width: 100%;
    }
    .hero h1{
        font-size: 3rem;
    }
}