* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(to bottom, #0a1128, #1c2a44);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #0a1128;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ffd700;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(to right, #ffd700, #ffaa00);
  color: #0a1128;
}

.btn-primary:hover {
  background: linear-gradient(to right, #ffaa00, #ffd700);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #1c2a44;
  color: #fff;
  border: 2px solid #ffd700;
}

.btn-secondary:hover {
  background: #ffd700;
  color: #0a1128;
}

#hero {
  background: url("images/hero-bg.jpg") center/cover no-repeat;
  text-align: center;
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 17, 40, 0.7);
}

#hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  position: relative;
  animation: fadeIn 1s ease-out;
}

#hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#games,
#features,
#comparison,
#demo,
#testimonials,
#register,
#upcoming-games,
#gallery,
#disclaimer,
#tournaments,
#providers,
#bonuses {
  padding: 80px 20px;
  background: #1c2a44;
  margin-bottom: 20px;
  border-radius: 15px;
}

h1 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ffd700;
}

h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ffd700;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p,
ul,
ol {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.games-grid,
.features-grid,
.tournament-grid,
.provider-grid,
.bonus-grid,
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.game-card,
.feature-card,
.tournament-card,
.provider-card,
.bonus-card,
.upcoming-game {
  background: #0a1128;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  padding: 20px;
}

.game-card:hover,
.feature-card:hover,
.tournament-card:hover,
.provider-card:hover,
.bonus-card:hover,
.upcoming-game:hover {
  transform: translateY(-10px);
}

.game-card img,
.tournament-card img,
.provider-card img,
.bonus-card img,
.upcoming-game img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.testimonial {
  background: #0a1128;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid #ffd700;
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.table-container {
  overflow-x: auto;
  margin: 20px 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-track {
  background: #1c2a44;
}

table {
  width: 100%;
  min-width: 600px; /* Ensures table is wide enough to need scrolling on small screens */
  border-collapse: collapse;
  background: #0a1128;
  border-radius: 10px;
  overflow: hidden;
  table-layout: auto;
}

table th,
table td {
  border: 1px solid #1c2a44;
  padding: 15px;
  text-align: left;
  font-size: 1rem;
}

table th {
  background: #ffd700;
  color: #0a1128;
  font-weight: 600;
}

table td {
  color: #fff;
}

#slot-machine {
  text-align: center;
  background: #0a1128;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.reels {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 3rem;
  margin-bottom: 20px;
}

.reel {
  width: 80px;
  height: 80px;
  background: #1c2a44;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

#register form,
#review-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #0a1128;
  padding: 20px;
  border-radius: 15px;
}

#register form label,
#review-form label {
  font-weight: 600;
  color: #ffd700;
}

#register form input,
#register form select,
#review-form input,
#review-form select,
#review-form textarea {
  padding: 12px;
  border: 1px solid #1c2a44;
  border-radius: 5px;
  background: #1c2a44;
  color: #fff;
  font-size: 1rem;
}

#register form input:focus,
#register form select:focus,
#review-form input:focus,
#review-form select:focus,
#review-form textarea:focus {
  outline: none;
  border-color: #ffd700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #0a1128;
  padding: 20px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  color: #ffd700;
  cursor: pointer;
}

footer {
  background: #0a1128;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

footer nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

footer nav ul li a {
  color: #ffd700;
  text-decoration: none;
}

footer nav ul li a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s;
}

.social-links img:hover {
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  #hero h1 {
    font-size: 2.8rem;
  }

  .games-grid,
  .features-grid,
  .tournament-grid,
  .provider-grid,
  .bonus-grid,
  .upcoming-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #0a1128;
    padding: 20px;
  }

  nav ul.nav-menu.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  #hero p {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .games-grid,
  .features-grid,
  .tournament-grid,
  .provider-grid,
  .bonus-grid,
  .upcoming-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .reels {
    font-size: 2.5rem;
  }

  .reel {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 80px 20px;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

  .reels {
    font-size: 2rem;
  }

  .reel {
    width: 60px;
    height: 60px;
  }

  table th,
  table td {
    padding: 10px;
    font-size: 0.9rem;
  }
}
