* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", Arial, sans-serif;
}

body {
  background-color: #0d0d1a;
  color: #e6e6e6;
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: linear-gradient(180deg, #1a1a2e, #0d0d1a);
  padding: 1.5rem 0;
  position: static;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

nav ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s, border-bottom 0.3s;
  padding-bottom: 0.3rem;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ffcc00;
  border-bottom: 2px solid #ffcc00;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(45deg, #ffcc00, #ff9900);
  color: #1a1a2e;
  box-shadow: 0 4px 8px rgba(255, 204, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #e6b800, #ff8000);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: #fff;
}

.btn-secondary:hover {
  background: linear-gradient(45deg, #0056b3, #003d80);
  transform: translateY(-2px);
}

.btn-register {
  background: linear-gradient(45deg, #28a745, #218838);
  color: #fff;
}

.btn-register:hover {
  background: linear-gradient(45deg, #218838, #1a6b2e);
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

h1,
h2,
h3 {
  color: #ffcc00;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Hero Sections */
#hero,
#tournaments-hero,
#providers-hero,
#bonuses-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before,
#tournaments-hero::before,
#providers-hero::before,
#bonuses-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.2;
  z-index: 0;
}

#hero .container,
#tournaments-hero .container,
#providers-hero .container,
#bonuses-hero .container {
  position: relative;
  z-index: 1;
}

.hero-bg {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-bg:hover {
  transform: scale(1.02);
}

/* Grid Sections */
.game-grid,
.tournament-grid,
.provider-grid,
.bonus-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.game-card,
.tournament-card,
.provider-card,
.bonus-card,
.testimonial {
  background: #1e1e30;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover,
.tournament-card:hover,
.provider-card:hover,
.bonus-card:hover,
.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 204, 0, 0.3);
}

.game-card img,
.tournament-card img,
.provider-card img,
.bonus-card img,
.testimonial img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 2px solid #ffcc00;
}

.testimonial .rating {
  color: #ffcc00;
  font-size: 1.4rem;
  margin-top: 0.8rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Comparison Table */
#comparison {
  overflow: hidden;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 2.5rem;
  border-radius: 12px;
  background: #1e1e30;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  padding: 1rem;
}

table {
  width: 100%;
  min-width: 600px; /* Ensures table has enough width for content */
  border-collapse: collapse;
  background: #1e1e30;
  border-radius: 8px;
}

table th,
table td {
  border: 1px solid #2a2a40;
  padding: 1rem;
  text-align: left;
  font-size: 1rem;
}

table th {
  background: linear-gradient(45deg, #ffcc00, #ff9900);
  color: #1a1a2e;
  font-weight: 600;
}

table td {
  background: #262640;
}

/* Scrollbar Styling for Table */
.table-wrapper::-webkit-scrollbar {
  height: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #2a2a40;
  border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #ffcc00;
  border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #ff9900;
}

/* Demo Game */
#demo-container {
  background: #1e1e30;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
}

#slot-canvas {
  border: 3px solid #ffcc00;
  border-radius: 8px;
  background: #fff;
}

.controls {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.controls button,
.controls select {
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.controls button {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: #fff;
}

.controls button:hover {
  background: linear-gradient(45deg, #0056b3, #003d80);
  transform: translateY(-2px);
}

.controls select {
  background: #262640;
  color: #fff;
  border: 1px solid #ffcc00;
}

/* Register Steps */
.register-steps {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  background: #1e1e30;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
}

.step img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  border: 2px solid #ffcc00;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #1e1e30;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

form label {
  font-weight: 600;
  color: #ffcc00;
}

form input,
form select,
form textarea {
  padding: 0.9rem;
  border: 1px solid #ffcc00;
  border-radius: 8px;
  background: #262640;
  color: #fff;
  font-size: 1rem;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #ff9900;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

form button {
  align-self: center;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #ffcc00;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 204, 0, 0.3);
}

/* Disclaimer */
#disclaimer {
  background: #1e1e30;
  border-radius: 12px;
  padding: 3rem;
  margin: 0 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#disclaimer ul {
  list-style: none;
  padding-left: 0;
}

#disclaimer li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

#disclaimer a {
  color: #ffcc00;
  text-decoration: none;
}

#disclaimer a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #0d0d1a, #1a1a2e);
  color: #f0f0f0;
  padding: 3rem 0;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

footer nav ul {
  justify-content: center;
  gap: 1.5rem;
}

footer .social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

footer .social-links img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

footer .social-links img:hover {
  transform: scale(1.1);
}

footer p {
  font-size: 0.9rem;
  color: #cccccc;
}

/* Modal */
.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: 1000;
}

.modal-content {
  background: #1e1e30;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #ffcc00;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ff9900;
}

/* Responsible Gaming Section */
#responsible-gaming {
  background: #1e1e30;
  border-radius: 12px;
  padding: 3rem;
  margin: 0 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#responsible-gaming ul {
  list-style: disc;
  padding-left: 2rem;
}

#responsible-gaming li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

#responsible-gaming a {
  color: #ffcc00;
  text-decoration: none;
}

#responsible-gaming a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-bg {
    max-height: 350px;
  }

  .game-grid,
  .tournament-grid,
  .provider-grid,
  .bonus-grid,
  .testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  header .container {
    flex-direction: column;
    gap: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul li {
    margin-left: 0;
  }

  .hero-bg {
    max-height: 250px;
  }

  #slot-canvas {
    width: 100%;
    height: 250px;
  }

  .register-steps {
    flex-direction: column;
  }

  .game-card img,
  .tournament-card img,
  .provider-card img,
  .bonus-card img,
  .testimonial img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  section {
    padding: 3rem 0;
  }

  .game-card,
  .tournament-card,
  .provider-card,
  .bonus-card,
  .testimonial {
    padding: 1.5rem;
  }

  .gallery-img {
    height: 140px;
  }

  form {
    padding: 1.5rem;
  }

  .controls {
    flex-direction: column;
    gap: 1rem;
  }
}
