* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #f0f0f0;
  background-color: #2a4a8c;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.home-page {
  background-color: #2a4a8c;
}

body.home-page .game-hero {
  background-color: #2a4a8c;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  margin: 0 -20px;
  border-radius: 0;
}

header {
  text-align: center;
  margin-bottom: 2em;
  padding: 20px 0;
}

header h1 {
  margin: 0.5em 0;
}

header a img.logo {
  max-height: 60px;
  width: auto;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

header a {
  text-decoration: none;
}

nav {
  margin: 15px 0;
}

nav a {
  color: #f0f0f0;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #ff9933;
  text-decoration: underline;
}

nav a.game-link {
  color: #f48c06;
  font-weight: 600;
}

nav a.game-link:hover {
  color: #ff9933;
}

h1, h2 {
  color: #f0f0f0;
}

h1 {
  color: #fff;
  font-size: 1.8em;
  margin-bottom: 0.3em;
  text-align: center;
}

h2 {
  font-size: 1.5em;
  margin-top: 1.4em;
  margin-bottom: 0.8em;
  border-bottom: 2px solid #ff9933;
  padding-bottom: 0.3em;
  color: #fff;
}

h3 {
  color: #333;
  font-size: 1.2em;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

p {
  margin-bottom: 1em;
  color: #f0f0f0;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2em 0;
}

main {
  flex: 1;
}

footer {
  margin-top: 3em;
  font-size: 0.9em;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  text-align: center;
}

footer nav {
  margin-top: 10px;
}

footer nav a {
  font-size: 0.9em;
  color: #f0f0f0;
}

footer nav a:hover {
  color: #ff9933;
}
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0073aa, #004e7c);
  color: #fff;
  border-radius: 8px;
  margin: 30px 0;
}

.hero h2 {
  color: #fff;
  border-bottom: none;
  font-size: 2em;
  margin-top: 0;
}

.hero p {
  font-size: 1.1em;
  margin-bottom: 1.5em;
}
.cta {
  display: inline-block;
  margin: 10px;
  padding: 12px 24px;
  background: #f4c542;
  color: #222;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta:hover {
  background: #e6b73a;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.cta.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Game Hero Section - Matching Game Page Style */
.game-hero {
  text-align: center;
  background-color: #2a4a8c;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  margin: 30px 0;
  border-radius: 8px;
}

.game-logo-container {
  margin-bottom: 40px;
}

.game-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.game-enter-btn {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, #ff9933, #ff6600);
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-enter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #ffaa44, #ff7700);
}

.game-tagline {
  color: #f0f0f0;
  font-size: 1.1em;
  margin-top: 20px;
  font-weight: 300;
}

.featured-actions {
  text-align: center;
  margin-top: 30px;
}
.book-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin:30px 0;
}
.book {
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.book img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px;
  background: #f0f0f0;
}

.book h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.book p {
  margin-bottom: 15px;
  color: #555;
}

.book a {
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #0073aa;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.book a:hover {
  background: #0073aa;
  color: #fff;
}

/* Links in content */
main a {
  color: #ff9933;
}

main a:hover {
  color: #ffaa44;
  text-decoration: underline;
}
.promo-banner {
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 40px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 30px 0;
  color: #f0f0f0;
}

.promo-banner h3 {
  margin-top: 0;
  color: #fff;
}

.promo-banner p {
  color: #f0f0f0;
}

.promo-banner a {
  color: #ff9933;
}

.featured {
  margin: 40px 0;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
}

.featured h2 {
  color: #fff;
}

.newsletter {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 30px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.newsletter h3 {
  color: #fff;
}

.newsletter-form {
  text-align: left;
  margin-top: 20px;
}

.newsletter-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #f0f0f0;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 1em;
  margin-bottom: 15px;
  transition: border-color 0.2s ease;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
}

.newsletter-form input[type="text"]:focus,
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: #ff9933;
  box-shadow: 0 0 0 2px rgba(255, 153, 51, 0.2);
  background-color: #fff;
}

.newsletter-form button {
  width: 100%;
  margin-top: 10px;
}

.note {
  font-size: 0.9em;
  color: #f0f0f0;
  margin-top: 15px;
  text-align: center;
}

.note a {
  color: #ff9933;
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .game-logo {
    max-width: 250px;
  }

  .game-hero {
    min-height: 60vh;
    padding: 50px 20px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding: 0 15px;
  }

  body.home-page .game-hero {
    margin: 0 -15px;
    padding: 40px 15px;
    min-height: 60vh;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  nav a {
    display: inline-block;
    margin: 3px 4px;
    font-size: 0.85em;
  }

  header a img.logo {
    max-height: 50px;
  }

  .game-logo {
    max-width: 200px;
  }

  .game-enter-btn {
    padding: 14px 36px;
    font-size: 1em;
  }

  .game-tagline {
    font-size: 1em;
  }

  .hero {
    padding: 40px 15px;
  }

  .hero h2 {
    font-size: 1.5em;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.3em;
  }

  .featured-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .featured-actions .cta {
    width: 100%;
    max-width: 300px;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  nav a {
    font-size: 0.75em;
    margin: 2px 3px;
  }

  .game-logo {
    max-width: 150px;
  }

  .game-enter-btn {
    padding: 12px 28px;
    font-size: 0.9em;
  }

  .game-tagline {
    font-size: 0.9em;
  }
}

/* Cookie Consent Notice */
#cookie-notice {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 3px solid #ff9933;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  padding: 20px;
  z-index: 10000;
  max-width: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#cookie-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-notice-text {
  color: #333;
  font-size: 0.95em;
  line-height: 1.6;
}

.cookie-notice-text a {
  color: #0073aa;
  text-decoration: underline;
}

.cookie-notice-text a:hover {
  color: #004e7c;
}

.cookie-notice-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-notice-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9em;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.cookie-accept-btn {
  background-color: #0073aa;
  color: #fff;
}

.cookie-accept-btn:hover {
  background-color: #005a8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-opt-out-btn {
  background-color: #f4c542;
  color: #222;
}

.cookie-opt-out-btn:hover {
  background-color: #e6b73a;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Adjust body padding when cookie notice is visible */
body.cookie-notice-visible {
  padding-bottom: 150px;
}

/* Mobile Cookie Notice Styles */
@media (max-width: 768px) {
  #cookie-notice {
    padding: 15px;
  }

  .cookie-notice-content {
    gap: 12px;
  }

  .cookie-notice-text {
    font-size: 0.85em;
  }

  .cookie-notice-buttons {
    flex-direction: column;
  }

  .cookie-notice-btn {
    width: 100%;
    padding: 12px 20px;
  }

  body.cookie-notice-visible {
    padding-bottom: 200px;
  }
}

@media (max-width: 480px) {
  #cookie-notice {
    padding: 12px;
  }

  .cookie-notice-text {
    font-size: 0.8em;
  }

  body.cookie-notice-visible {
    padding-bottom: 220px;
  }
}
