/* General styles */
:root {
  --primary-color: #ff4d4d; /* Bright Red - calls to action */
  --secondary-color: #ffd700; /* Gold - accents, highlights */
  --dark-bg: #1a2a3a; /* Deep Blue/Black - main background, header, footer */
  --light-bg: #f5f8fa; /* Off-White/Light Grey - contrasting sections */
  --text-color: #34495e; /* Dark Grey Blue - general text */
  --white-text: #ffffff; /* Pure White */
  --border-color: #ccc; /* Light Grey Border */
  --error-color: #e74c3c; /* Red for errors */
  --success-color: #2ecc71; /* Green for success */

  --font-heading: "Roboto", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto:wght@700;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f8f8f8;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--dark-bg);
  color: var(--white-text);
  padding: 15px 0;
  position: static;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li {
  margin: 0 18px;
}

nav ul li a {
  color: var(--white-text);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--secondary-color);
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px; /* More rounded buttons */
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 1em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.primary-btn {
  background-image: linear-gradient(to right, #ff6b6b, var(--primary-color));
  color: var(--white-text);
}

.primary-btn:hover {
  background-image: linear-gradient(to right, #e63946, #cc3333);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.secondary-btn {
  background-image: linear-gradient(to right, #ffd700, #ffc400);
  color: var(--dark-bg);
}

.secondary-btn:hover {
  background-image: linear-gradient(to right, #e0bb00, #ccaa00);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
  background: url("images/hero_background.jpg") no-repeat center center/cover;
  color: var(--white-text);
  text-align: center;
  padding: 120px 20px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 4.5em;
  margin-bottom: 25px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  animation: fadeInDown 1s ease-out;
}

.hero-content p {
  font-size: 1.6em;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1.1s ease-out 0.3s;
  animation-fill-mode: both;
}

.small-text-hero {
  font-size: 0.85em;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* General Section Styles */
.section {
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 3.5em;
  margin-bottom: 25px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section p {
  font-size: 1.15em;
  margin-bottom: 40px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  color: var(--text-color);
}

.section-description {
  font-size: 1.2em;
  font-style: italic;
  color: #666;
  margin-top: 50px;
}

.light-bg {
  background-color: var(--light-bg);
}

.dark-bg {
  background-color: var(--dark-bg);
  color: var(--white-text);
}

.dark-bg h2 {
  color: var(--secondary-color);
}

.dark-bg p {
  color: #e0e0e0;
}

/* What We Offer Section */
.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 50px;
}

.game-card {
  background-color: var(--white-text);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.game-card:hover {
  transform: translateY(-12px) rotateZ(1deg); /* Slight rotation on hover */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.game-card img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  height: 200px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.game-card h3 {
  font-family: var(--font-heading);
  font-size: 2em;
  color: var(--dark-bg);
  margin-bottom: 12px;
}

.game-card p {
  font-size: 1em;
  color: var(--text-color);
  margin-bottom: 25px;
  flex-grow: 1;
  line-height: 1.6;
}

.game-card .btn {
  width: 100%;
  margin-top: auto;
}

.more-games-text {
  font-style: italic;
  margin-top: 60px;
  font-size: 1.05em;
  color: #666;
}

/* Features Section */
.feature-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-block {
  background-color: var(--white-text);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.feature-block img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 25px;
  border: 5px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.feature-block h3 {
  font-family: var(--font-heading);
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-block p {
  font-size: 1em;
  color: var(--text-color);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Comparison Section */
.comparison-table {
  overflow-x: auto;
  margin-top: 50px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: var(--white-text);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid rgba(204, 204, 204, 0.5);
  padding: 18px;
  text-align: left;
}

.comparison-table th {
  background-color: var(--primary-color);
  color: var(--white-text);
  font-weight: 700;
  font-size: 1.2em;
  font-family: var(--font-heading);
  position: sticky;
  top: 0; /* Sticky header for table */
  z-index: 1;
}

.comparison-table th:first-child {
  border-top-left-radius: 15px;
}

.comparison-table th:last-child {
  border-top-right-radius: 15px;
}

.comparison-table td {
  background-color: var(--white-text);
  color: var(--text-color);
  font-size: 1em;
  line-height: 1.5;
}

.comparison-table tr:nth-child(even) td {
  background-color: #fcfcfc;
}

.comparison-table td strong {
  color: var(--primary-color);
}

.comparison-conclusion {
  margin-top: 50px;
  font-style: italic;
  color: var(--text-color);
  font-size: 1.1em;
  line-height: 1.7;
}

/* Demo Game Section */
.demo-game-container {
  background-color: var(--white-text);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-machine {
  width: 100%;
  max-width: 500px;
  background-color: #333;
  border-radius: 15px;
  padding: 20px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
  border: 5px solid #555;
  overflow: hidden; /* Crucial for reel movement */
}

.reel-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100px; /* Height of the visible area for one symbol */
  border: 2px solid #555;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.reel {
  width: 33.33%; /* Approx. 1/3 for each reel */
  height: auto; /* Content drives height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Symbols align from the top */
  align-items: center;
  position: absolute;
  top: 0; /* Align top of reel with top of container */
  transition: transform 1.5s ease-out; /* Animation duration */
  background-color: #000; /* Ensure reels are dark */
  will-change: transform; /* Optimize for animation */
}

/* Position reels horizontally */
.reel:nth-child(1) {
  left: 0;
}
.reel:nth-child(2) {
  left: 33.33%;
}
.reel:nth-child(3) {
  left: 66.66%;
}

.symbol {
  width: 80px; /* Exact width to ensure consistent sizing */
  height: 100px; /* Exact height for one symbol to be visible */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0; /* Prevent shrinking */
  image-rendering: -webkit-optimize-contrast; /* Sharpen images */
  image-rendering: crisp-edges;
  /* Optional: Add some padding/margin if symbols don't fill 100px perfectly */
}

.symbol.s1 {
  background-image: url("images/slot_symbol_cherry.jpg");
}
.symbol.s2 {
  background-image: url("images/slot_symbol_lemon.jpg");
}
.symbol.s3 {
  background-image: url("images/slot_symbol_bar.jpg");
}
.symbol.s4 {
  background-image: url("images/slot_symbol_seven.jpg");
}
.symbol.s5 {
  background-image: url("images/slot_symbol_bell.jpg");
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
  width: 100%;
  font-size: 1.1em;
  color: var(--text-color);
}

.balance-display {
  font-weight: bold;
  color: var(--dark-bg);
  font-size: 1.4em;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

#balance {
  color: var(--primary-color);
  font-size: 1.1em;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-controls label {
  font-weight: bold;
  color: var(--dark-bg);
}

.demo-controls select,
.demo-controls button {
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.demo-controls select {
  background-color: #f0f0f0;
  appearance: none; /* Remove default arrow */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%2334495e"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 35px; /* Space for the custom arrow */
}

.control-buttons {
  display: flex;
  gap: 15px;
}

.demo-message {
  margin-top: 25px;
  font-weight: bold;
  color: var(--primary-color);
  min-height: 25px;
  text-align: center;
  width: 100%;
  font-size: 1.1em;
}

.disclaimer-text-demo {
  font-size: 0.9em;
  color: #666;
  margin-top: 35px;
  font-style: italic;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: var(--white-text);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.testimonial-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8em;
  color: var(--dark-bg);
  margin-bottom: 8px;
}

.testimonial-card p {
  font-size: 0.98em;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: left;
  flex-grow: 1;
  line-height: 1.6;
}

.testimonial-card .stars {
  color: var(--secondary-color);
  font-size: 1.3em;
}

#add-review-btn {
  margin-top: 50px;
}

/* Registration Section */
.registration-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 50px;
  margin-bottom: 70px;
}

.registration-process .step {
  background-color: var(--white-text);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.registration-process .step:hover {
  transform: translateY(-8px);
}

.registration-process .step img {
  max-width: 110px;
  height: auto;
  margin-bottom: 25px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.registration-process .step h3 {
  font-family: var(--font-heading);
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.registration-process .step p {
  font-size: 1em;
  color: var(--text-color);
  margin-bottom: 0;
  line-height: 1.6;
}

.bonus-info {
  background-image: linear-gradient(
    to right,
    #ffe6b3,
    #fffacd
  ); /* Soft gold gradient */
  border-left: 8px solid var(--secondary-color);
  padding: 40px;
  border-radius: 15px;
  text-align: left;
  margin-bottom: 70px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bonus-info img {
  max-width: 220px;
  height: auto;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bonus-info h3 {
  font-family: var(--font-heading);
  font-size: 2.5em;
  color: var(--dark-bg);
  margin-bottom: 20px;
  text-align: center;
}

.bonus-info p {
  font-size: 1.15em;
  color: var(--text-color);
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.7;
}

.bonus-info ul {
  list-style: none;
  padding-left: 0;
  text-align: center;
  width: 100%;
}

.bonus-info ul li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23ffd700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>')
    no-repeat left center;
  background-size: 22px 22px;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1.05em;
  color: var(--text-color);
  display: block; /* Stack items */
  margin-left: auto;
  margin-right: auto;
  max-width: 400px; /* Limit width of list items */
  text-align: left;
}

.highlight {
  font-weight: 700;
  color: var(--primary-color);
}

.registration-form {
  background-color: var(--white-text);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 50px;
  max-width: 650px;
  margin: 0 auto;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.registration-form h3 {
  font-family: var(--font-heading);
  font-size: 2.5em;
  color: var(--dark-bg);
  margin-bottom: 25px;
  text-align: center;
}

.form-description {
  font-size: 1em;
  color: #666;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark-bg);
  font-size: 1em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"] {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
  outline: none;
}

.form-group input[readonly] {
  background-color: #e9ecef;
  cursor: not-allowed;
  box-shadow: none;
}

.input-hint {
  font-size: 0.85em;
  color: #888;
  margin-top: 5px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-top: 30px;
  margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 12px;
  margin-top: 5px;
  transform: scale(1.2); /* Make checkbox slightly larger */
}

.checkbox-group label {
  font-weight: normal;
  font-size: 0.95em;
  margin-bottom: 0;
  line-height: 1.5;
}

.checkbox-group a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.registration-form .btn {
  width: 100%;
  padding: 18px;
  font-size: 1.3em;
  margin-top: 30px;
}

.data-security-info {
  font-size: 0.9em;
  color: #888;
  margin-top: 25px;
  text-align: center;
  line-height: 1.6;
  font-style: italic;
}

.error-message {
  color: var(--error-color);
  font-size: 0.88em;
  margin-top: 6px;
  min-height: 20px;
  font-weight: 600;
}

/* Upcoming Games Section */
.upcoming-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 50px;
  margin-bottom: 70px;
}

.upcoming-game-card {
  background-color: var(--white-text);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.upcoming-game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.upcoming-game-card img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  height: 200px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.upcoming-game-card h3 {
  font-family: var(--font-heading);
  font-size: 2em;
  color: var(--dark-bg);
  margin-bottom: 12px;
}

.upcoming-game-card p {
  font-size: 1em;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.upcoming-game-card .release-date {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95em;
  margin-top: auto;
}

.newsletter-signup {
  background-image: linear-gradient(
    to right,
    #e0f7fa,
    #d1f4f8
  ); /* Light blue gradient */
  border-left: 8px solid #3498db; /* Blue border */
  padding: 40px;
  border-radius: 15px;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.newsletter-signup h3 {
  font-family: var(--font-heading);
  font-size: 2.5em;
  color: var(--dark-bg);
  margin-bottom: 20px;
}

.newsletter-signup p {
  font-size: 1.15em;
  color: var(--text-color);
  margin-bottom: 35px;
  line-height: 1.7;
}

#newsletter-form {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

#newsletter-form .form-group {
  flex-grow: 1;
  margin-bottom: 0;
  max-width: 400px;
}

#newsletter-form input[type="email"] {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 1em;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#newsletter-form input[type="email"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

#newsletter-form button {
  padding: 14px 30px;
  font-size: 1.1em;
  min-width: 160px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.newsletter-disclaimer {
  font-size: 0.8em;
  color: #777;
  margin-top: 20px;
  line-height: 1.5;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 0, 0, 0.05);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  filter: brightness(1.1);
}

.gallery-note {
  font-style: italic;
  margin-top: 40px;
  font-size: 1em;
  color: #777;
  line-height: 1.6;
}

/* Disclaimer Section */
.disclaimer-intro {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 35px;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.dark-bg ul {
  list-style: none;
  padding-left: 0;
  margin: 0 auto 50px auto;
  max-width: 900px;
  text-align: left;
}

.dark-bg ul li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="%23ffd700"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>')
    no-repeat left center; /* Warning icon */
  background-size: 25px 25px;
  padding-left: 40px;
  margin-bottom: 18px;
  font-size: 1.15em;
  line-height: 1.6;
  color: #e0e0e0;
}

.highlight-warning {
  color: var(--secondary-color);
  font-weight: 700;
}

.disclaimer-final {
  font-size: 1.05em;
  color: #ccc;
  margin-top: 40px;
  line-height: 1.6;
}

.disclaimer-final a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #111; /* Even darker footer */
  color: #eee;
  padding: 60px 0 25px 0;
  font-size: 0.95em;
  border-top: 5px solid var(--primary-color);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  text-align: left;
}

footer .footer-col .logo img {
  height: 70px;
  margin-bottom: 20px;
}

footer .footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 25px;
}

footer .footer-col p,
footer .footer-col ul li {
  color: #bbb;
  margin-bottom: 12px;
  line-height: 1.6;
}

footer .footer-col ul {
  list-style: none;
  padding: 0;
}

footer .footer-col ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-col ul li a:hover {
  color: var(--secondary-color);
}

.social-icons {
  margin-top: 25px;
  display: flex;
  gap: 18px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.social-icons img:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #333;
  color: #aaa;
  font-size: 0.9em;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: var(--white-text);
  margin: auto;
  padding: 35px;
  border-radius: 15px;
  max-width: 550px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
  text-align: left;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal .close-btn {
  color: #aaa;
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal .close-btn:hover,
.modal .close-btn:focus {
  color: var(--primary-color);
  text-decoration: none;
}

.modal-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
  text-align: center;
}

#gallery-modal .modal-content {
  max-width: 95%;
  max-height: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  padding: 0;
  box-shadow: none;
}

#img-full {
  max-width: 100%;
  max-height: 90vh; /* Limit image height to viewport */
  display: block;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.8em;
  }
  .hero-content p {
    font-size: 1.4em;
  }

  .section h2 {
    font-size: 3em;
  }

  .game-cards,
  .testimonials-grid,
  .registration-process,
  .upcoming-games-grid,
  .feature-blocks {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 20px;
  }

  nav ul {
    margin-top: 15px;
  }

  nav ul li {
    margin: 0 10px;
  }
  nav ul li a {
    padding: 6px 0;
  }

  .hero-section {
    padding: 100px 20px;
    min-height: 450px;
  }
  .hero-content h1 {
    font-size: 2.8em;
  }
  .hero-content p {
    font-size: 1.2em;
  }

  .section {
    padding: 70px 0;
  }

  .section h2 {
    font-size: 2.5em;
  }
  .section p {
    font-size: 1em;
  }

  .game-card,
  .testimonial-card,
  .upcoming-game-card,
  .registration-process .step,
  .feature-block {
    padding: 20px;
  }
  .game-card h3,
  .upcoming-game-card h3,
  .feature-block h3 {
    font-size: 1.8em;
  }

  .comparison-table table {
    min-width: unset; /* Allow table to shrink */
  }
  .comparison-table th,
  .comparison-table td {
    padding: 12px;
    font-size: 0.9em;
  }

  .demo-game-container {
    padding: 30px;
  }
  .slot-machine {
    width: 90%;
    max-width: 400px;
  }
  .reel-container {
    height: 100px; /* One symbol height */
  }
  .symbol {
    height: 100px; /* One symbol height */
  }
  .demo-controls {
    flex-direction: column;
    gap: 20px;
  }
  .control-group,
  .control-buttons {
    width: 100%;
    justify-content: center;
  }
  .demo-controls select,
  .demo-controls button {
    width: 100%;
    max-width: 280px;
  }
  .balance-display {
    font-size: 1.2em;
  }

  .registration-form {
    padding: 35px;
  }
  .registration-form h3 {
    font-size: 2em;
  }

  .bonus-info {
    padding: 30px;
  }
  .bonus-info h3 {
    font-size: 2em;
  }
  .bonus-info img {
    max-width: 180px;
  }

  .newsletter-signup {
    padding: 30px;
  }
  .newsletter-signup h3 {
    font-size: 2em;
  }
  #newsletter-form {
    flex-direction: column;
    gap: 15px;
  }
  #newsletter-form .form-group,
  #newsletter-form button {
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
  .gallery-item {
    height: 160px;
  }

  .disclaimer-intro {
    font-size: 1.2em;
  }
  .dark-bg ul li {
    font-size: 1.05em;
    padding-left: 35px;
    background-size: 22px 22px;
  }

  footer {
    padding: 40px 0 15px 0;
  }
  footer .footer-col h3 {
    font-size: 1.4em;
  }
  .social-icons img {
    width: 30px;
    height: 30px;
  }
  .copyright {
    font-size: 0.8em;
  }

  .modal-content {
    padding: 25px;
  }
  .modal .close-btn {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 50px;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  nav ul li {
    margin: 0;
  }

  .hero-section {
    padding: 80px 15px;
    min-height: 400px;
  }
  .hero-content h1 {
    font-size: 2.2em;
  }
  .hero-content p {
    font-size: 1em;
  }
  .small-text-hero {
    font-size: 0.8em;
  }

  .section {
    padding: 50px 0;
  }
  .section h2 {
    font-size: 2em;
  }
  .section p {
    font-size: 0.95em;
  }

  .game-cards,
  .testimonials-grid,
  .registration-process,
  .upcoming-games-grid,
  .feature-blocks {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .game-card img,
  .upcoming-game-card img {
    height: 160px;
  }
  .game-card h3,
  .upcoming-game-card h3,
  .feature-block h3 {
    font-size: 1.6em;
  }

  .comparison-table th,
  .comparison-table td {
    font-size: 0.8em;
    padding: 10px;
  }

  .demo-game-container {
    padding: 20px;
  }
  .slot-machine {
    width: 100%;
    max-width: 300px;
  }
  .reel-container {
    height: 100px; /* One symbol height */
  }
  .symbol {
    height: 100px; /* One symbol height */
    width: 60px; /* Adjust width for smaller screens */
  }
  .demo-controls select,
  .demo-controls button {
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .registration-form {
    padding: 25px;
  }
  .registration-form h3 {
    font-size: 1.8em;
  }
  .form-group input {
    padding: 12px;
  }
  .registration-form .btn {
    padding: 15px;
    font-size: 1.1em;
  }

  .bonus-info {
    padding: 25px;
  }
  .bonus-info h3 {
    font-size: 1.8em;
  }
  .bonus-info ul li {
    font-size: 1em;
    padding-left: 28px;
    background-size: 20px 20px;
  }

  .newsletter-signup {
    padding: 25px;
  }
  .newsletter-signup h3 {
    font-size: 1.8em;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  .gallery-item {
    height: 100px;
  }

  .disclaimer-intro {
    font-size: 1.2em;
  }
  .dark-bg ul li {
    font-size: 0.9em;
    padding-left: 30px;
    background-size: 20px 20px;
  }

  footer {
    padding: 40px 0 15px 0;
  }
  footer .footer-col h3 {
    font-size: 1.4em;
  }
  .social-icons img {
    width: 30px;
    height: 30px;
  }
  .copyright {
    font-size: 0.8em;
  }

  .modal-content {
    padding: 25px;
  }
  .modal .close-btn {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }
}

/* Policy and Terms Sections */
.policy-content,
.terms-content {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.policy-content h3,
.terms-content h3 {
  font-family: var(--font-heading);
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 15px;
}

.policy-content p,
.terms-content p {
  font-size: 1.1em;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.7;
}

.policy-content ul,
.terms-content ul {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 30px;
}

.policy-content ul li,
.terms-content ul li {
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1.05em;
  line-height: 1.6;
}

.section-intro {
  font-size: 1.2em;
  font-style: italic;
  color: #666;
  margin-bottom: 40px;
}

.policy-final,
.terms-final {
  font-size: 1.1em;
  font-style: italic;
  color: #666;
  margin-top: 50px;
  text-align: center;
}

/* Responsive adjustments for policy and terms */
@media (max-width: 768px) {
  .policy-content h3,
  .terms-content h3 {
    font-size: 1.8em;
  }

  .policy-content p,
  .terms-content p {
    font-size: 1em;
  }

  .policy-content ul li,
  .terms-content ul li {
    font-size: 0.95em;
    background-size: 16px;
    padding-left: 28px;
  }

  .section-intro {
    font-size: 1.1em;
  }

  .policy-final,
  .terms-final {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .policy-content h3,
  .terms-content h3 {
    font-size: 1.6em;
  }

  .policy-content p,
  .terms-content p {
    font-size: 0.95em;
  }

  .policy-content ul li,
  .terms-content ul li {
    font-size: 0.9em;
    background-size: 14px;
    padding-left: 25px;
  }

  .section-intro {
    font-size: 1em;
  }

  .policy-final,
  .terms-final {
    font-size: 0.95em;
  }
}
