/* Base Styles */
:root {
  /* Color Variables */
  --dark-blue: #1a2639;
  --medium-blue: #304769;
  --light-blue: #3e5c89;
  --gold: #e6b54a;
  --gold-dark: #c7954e;
  --wood-brown: #6b4423;
  --wood-light: #8c6239;
  --text-light: #f0f0f0;
  --text-dark: #1a1a1a;
  --black: #0f1420;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Other Variables */
  --border-radius: 0.5rem;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  line-height: 1.5;
  color: var(--text-light);
  background-color: var(--dark-blue);
  background-image: url('../assets/bg-texture.jpg');
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  margin-bottom: var(--spacing-sm);
  color: var(--gold);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .cta-button, .game-button, .submit-button {
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  background-color: var(--gold);
  color: var(--black);
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

button:hover, .cta-button:hover, .game-button:hover, .submit-button:hover {
  background-color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: var(--black);
}

button::before, .cta-button::before, .game-button::before, .submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

button:hover::before, .cta-button:hover::before, .game-button:hover::before, .submit-button:hover::before {
  left: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* Fog Animation */
.fog-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.fog-img {
  position: absolute;
  height: 100vh;
  width: 300vw;
  background-image: url('../assets/fog.png');
  background-repeat: repeat-x;
  background-size: contain;
  background-position: center;
  opacity: 0.4;
}

.fog-img-first {
  animation: fogAnimation 150s linear infinite;
}

.fog-img-second {
  animation: fogAnimation 120s linear infinite reverse;
  opacity: 0.3;
}

@keyframes fogAnimation {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Header Styles */
header {
  position: relative;
  width: 100%;
  z-index: 100;
  padding: var(--spacing-sm) 0;
  background: linear-gradient(to bottom, rgba(15, 20, 32, 0.9), transparent);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
 /* width: 50px;*/
 /* height: auto;*/
  margin-right: var(--spacing-xs);
}

.logo span {
  font-family: 'Pirata One', cursive;
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: var(--spacing-md);
}

nav ul li a {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text-light);
  position: relative;
  padding-bottom: 5px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--gold);
  transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
  color: var(--gold);
}

nav ul li a:hover::after, nav ul li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--gold);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 20, 32, 0.7), rgba(26, 38, 57, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--spacing-md);
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  animation: textGlow 3s infinite alternate;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-light);
}

.cta-button {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 10px rgba(230, 181, 74, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(230, 181, 74, 0.8), 0 0 30px rgba(230, 181, 74, 0.6);
  }
}

/* Games Section */
.games {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: rgba(15, 20, 32, 0.7);
  position: relative;
}

.games::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/wood-texture.jpg');
  background-size: cover;
  opacity: 0.2;
  z-index: -1;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.game-card {
  background-color: rgba(48, 71, 105, 0.7);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(230, 181, 74, 0.3);
  text-align: center;
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
  border-color: var(--gold);
}

.game-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.game-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(15, 20, 32, 0.8));
  z-index: 1;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-card h3 {
  padding: var(--spacing-sm) var(--spacing-sm) 0;
  font-size: 1.2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-button {
  margin: 0 var(--spacing-sm) var(--spacing-sm);
  display: inline-block;
}

/* About Section */
.about {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/map-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-md);
  background-color: rgba(15, 20, 32, 0.6);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(230, 181, 74, 0.3);
  position: relative;
}

.about-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(230, 181, 74, 0.2);
  border-radius: calc(var(--border-radius) + 10px);
  pointer-events: none;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: rgba(15, 20, 32, 0.7);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/wood-texture.jpg');
  background-size: cover;
  opacity: 0.15;
  z-index: -1;
}

.feature {
  text-align: center;
  padding: var(--spacing-md);
  background-color: rgba(48, 71, 105, 0.6);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(230, 181, 74, 0.3);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border-color: var(--gold);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.coin-icon {
  background-image: url('../assets/coin-icon.png');
}

.sound-icon {
  background-image: url('../assets/sound-icon.png');
}

.compass-icon {
  background-image: url('../assets/compass-icon.png');
}

.feature h3 {
  margin-bottom: var(--spacing-sm);
}

/* Disclaimer Section */
.disclaimer {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-md);
  background-color: rgba(15, 20, 32, 0.6);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 2px solid rgba(230, 181, 74, 0.3);
}

/* Footer Styles */
footer {
  background-color: rgba(15, 20, 32, 0.9);
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(230, 181, 74, 0.3);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-logo img {
  width: 40px;
  height: auto;
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(240, 240, 240, 0.7);
}

/* Legal Pages */
.legal-page {
  padding: var(--spacing-xl) var(--spacing-md);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-md);
  background-color: rgba(15, 20, 32, 0.7);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(230, 181, 74, 0.3);
}

.legal-container h1 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--gold);
}

.legal-content h2::after {
  width: 30%;
}

.legal-content p, .legal-content ul {
  margin-bottom: var(--spacing-md);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--spacing-md);
}

.legal-content ul li {
  margin-bottom: var(--spacing-xs);
}

.policy-date {
  font-style: italic;
  margin-top: var(--spacing-lg);
  color: rgba(240, 240, 240, 0.7);
}