/* Clean & Pretty Website CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #2E86AB;
  --dark-primary: #1F5F85;
  --light-primary: #4A9BC7;
  --accent-color: #A23B72;
  --dark-accent: #8B2E5F;
  --black: #1A1A1A;
  --dark-gray: #2D2D2D;
  --medium-gray: #6B6B6B;
  --light-gray: #F8F9FA;
  --white: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  
  /* Theme colors for games */
  --elf-primary: #228B22;
  --elf-secondary: #32CD32;
  --oktoberfest-primary: #D4AF37;
  --oktoberfest-secondary: #FFD700;
  --caribbean-primary: #20B2AA;
  --caribbean-secondary: #40E0D0;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

/* Header */
header {
  background: linear-gradient(135deg, var(--black), var(--dark-gray));
  color: var(--primary-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo:hover {
  color: var(--light-primary);
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 12px;
  border: 2px solid transparent;
}

nav a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  border-color: var(--light-primary);
  transform: translateY(-2px);
}

/* Sub Header */
.sub-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 4px 15px var(--shadow);
}

.sub-header img {
  height: 40px;
  margin: 0 1rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.sub-header img:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Hero Section */
.hero {
  position: relative;
  height: 800px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 0 0 20px 20px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(46, 134, 171, 0.2), rgba(162, 59, 114, 0.3));
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 10;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  background: linear-gradient(45deg, var(--white), var(--light-primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-text h2 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Main Content Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Featured Game Sections */
.featured-game-section-1, .featured-game-section-2 {
  background: linear-gradient(135deg, var(--white), var(--light-gray));
  padding: 4rem 2rem;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow);
  border: 1px solid rgba(46, 134, 171, 0.1);
}

.featured-game-section-1 {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.featured-game-section-1 img {
  width: 40%;
  border-radius: 15px;
  box-shadow: 0 12px 40px rgba(46, 134, 171, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-game-section-1 img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 50px rgba(46, 134, 171, 0.3);
}

.featured-game-text {
  flex: 1;
}

.featured-game-text h2, .featured-game-text h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
  margin-bottom: 1rem;
}

.featured-game-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.featured-game-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.featured-game-text p {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.featured-game-section-2 {
  text-align: center;
  width: 100%;
  padding: 4rem 2rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--accent-color), var(--dark-accent));
  color: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow);
  border: 1px solid rgba(162, 59, 114, 0.1);
}

.featured-game-section-2 h2, .featured-game-section-2 h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  margin-bottom: 1rem;
}

.featured-game-section-2 h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.featured-game-section-2 h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light-gray);
}

.featured-game-section-2 p {
  color: var(--light-gray);
}

/* Game Section */
.game-section {
  background: linear-gradient(135deg, var(--black), var(--dark-gray));
  color: var(--primary-color);
  padding: 4rem 2rem;
  margin: 2rem 0;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.game-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.game-image {
  background: var(--white);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.game-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--shadow-hover);
  border-color: var(--primary-color);
}

.game-image img {
  width: 82%;
  height: 200px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.game-image h3 {
  color: var(--black);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.game-image p {
  color: var(--medium-gray);
  margin-bottom: 1rem;
}

/* Buttons */
.play-button, .button, .orange-button {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 134, 171, 0.3);
}

.play-button:hover, .button:hover, .orange-button:hover {
  background: linear-gradient(135deg, var(--dark-primary), var(--dark-accent));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 134, 171, 0.4);
}

/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
  margin: 2rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--light-gray), var(--white));
  border-radius: 20px;
}

.contact-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.contact-section label {
  margin-top: auto;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 1rem;
  margin: 0 auto 1.5rem;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.contact-section input:focus,
.contact-section textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(46, 134, 171, 0.15);
  transform: translateY(-2px);
}

/* FAQ Section */
.faq, .faq-section {
  background: linear-gradient(135deg, var(--white), var(--light-gray));
  padding: 4rem 2rem;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow);
}

.faq h2, .faq-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px var(--shadow);
  border-color: var(--primary-color);
}

.faq-question {
  padding: 1.5rem;
  background: var(--light-gray);
  cursor: pointer;
  font-weight: 600;
  color: var(--black);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(46, 134, 171, 0.1);
}

.faq-question.active {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
}

.faq-answer {
  padding: 1.5rem;
  background: var(--white);
  color: var(--medium-gray);
  line-height: 1.8;
  display: none;
}

.faq-question.active + .faq-answer {
  display: block;
}

/* Policy Sections */
.disclaimer-section, .cookies-policy, .privacy-policy, .terms-section {
  max-width: 1100px;
  margin: 2rem auto;
  background: linear-gradient(135deg, var(--white), var(--light-gray));
  line-height: 1.8;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow);
}

.policy-title, .section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.policy-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
  margin: 2rem 0 1rem 0;
}

.disclaimer-section p, .cookies-policy p, .privacy-policy p, .terms-section p {
  color: var(--medium-gray);
  margin-bottom: 1rem;
}

.disclaimer-section ul, .cookies-policy ul, .privacy-policy ul, .terms-section ul {
  color: var(--medium-gray);
  margin: 1rem 0 1rem 2rem;
}

.disclaimer-section li, .cookies-policy li, .privacy-policy li, .terms-section li {
  margin-bottom: 0.5rem;
}

/* Rules Section */
.rules-section {
  background: linear-gradient(135deg, var(--black), var(--dark-gray));
  padding: 4rem 2rem;
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.rules-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.rules-section p {
    color: var(--primary-color);
    line-height: 1.8;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--black), var(--dark-gray));
  color: var(--primary-color);
  padding: 3rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  box-shadow: 0 -4px 20px var(--shadow);
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 6px;
}

footer a:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  transform: translateY(-2px);
}

.footer-icons img {
  height: 50px;
  margin: 0 0.75rem;
  filter: brightness(0.9);
  transition: transform 0.3s ease;
}

.footer-icons img:hover {
  transform: scale(1.15) rotate(5deg);
}

/* Overlay */
.overlay, #game-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.close-button, #close-game {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.close-button:hover, #close-game:hover {
  background: var(--dark-accent);
  transform: scale(1.1);
}

.overlay iframe, #game-iframe {
  width: 90vw;
  height: 90vh;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.button-2 {
  background: linear-gradient(135deg, var(--accent-color), var(--dark-accent));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(162, 59, 114, 0.3);
}

.button-2:hover {
  background: linear-gradient(135deg, var(--dark-accent), var(--accent-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(162, 59, 114, 0.4);
}

.game-section p {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.sub-header {
    flex-direction: row;
    gap: 1rem;
  }

/* Game Details Section with Themed Cards */
.game-details {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow);
}

.game-details h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.game-details h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    font-weight: 400;
}

.game-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-detail-item {
    background: white;
    padding: 30px 25px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.game-detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

/* Elf Kingdom Theme */
.game-detail-item:nth-child(1) {
    border-color: var(--elf-primary);
}

.game-detail-item:nth-child(1)::before {
    background: linear-gradient(90deg, var(--elf-primary), var(--elf-secondary));
}

.game-detail-item:nth-child(1):hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(34, 139, 34, 0.2);
    background: linear-gradient(135deg, white, rgba(34, 139, 34, 0.05));
}

.game-detail-item:nth-child(1) h4 {
    color: var(--elf-primary);
    text-shadow: 0 1px 2px rgba(34, 139, 34, 0.1);
}

/* Oktoberfest Theme */
.game-detail-item:nth-child(2) {
    border-color: var(--oktoberfest-primary);
}

.game-detail-item:nth-child(2)::before {
    background: linear-gradient(90deg, var(--oktoberfest-primary), var(--oktoberfest-secondary));
}

.game-detail-item:nth-child(2):hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.2);
    background: linear-gradient(135deg, white, rgba(212, 175, 55, 0.05));
}

.game-detail-item:nth-child(2) h4 {
    color: var(--oktoberfest-primary);
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.1);
}

/* Caribbean Theme */
.game-detail-item:nth-child(3) {
    border-color: var(--caribbean-primary);
}

.game-detail-item:nth-child(3)::before {
    background: linear-gradient(90deg, var(--caribbean-primary), var(--caribbean-secondary));
}

.game-detail-item:nth-child(3):hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(32, 178, 170, 0.2);
    background: linear-gradient(135deg, white, rgba(32, 178, 170, 0.05));
}

.game-detail-item:nth-child(3) h4 {
    color: var(--caribbean-primary);
    text-shadow: 0 1px 2px rgba(32, 178, 170, 0.1);
}

.game-detail-item h4 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.game-detail-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--medium-gray);
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text p, .hero-text h2 {
    font-size: 1rem;
  }
  
  main {
    padding: 0 1rem;
  }
  
  .featured-game-section-1 {
    flex-direction: column;
    text-align: center;
  }
  
  .featured-game-section-1 img {
    width: 100%;
    max-width: 400px;
  }
  
  .featured-game-section-1, .featured-game-section-2 {
    padding: 2rem 1rem;
  }

  .featured-game-section-2 {
    text-align: center;
    width: 100%;
    padding: 2rem 1rem;
    margin: auto;
  }
  
  .game-section {
    padding: 2rem 1rem;
  }
  
  .game-images {
    grid-template-columns: 1fr;
  }
  
  .game-image img {
    width: 82%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}
  
  .contact-section {
    padding: 2rem 1rem;
  }
  
  .contact-section input, .contact-section textarea {
    max-width: 100%;
  }
  
  .disclaimer-section, .cookies-policy, .privacy-policy, .terms-section {
    padding: 2rem 1rem;
    margin: 1rem;
  }
  
  .footer {
    flex-direction: row;
    text-align: center;
    gap: 1rem;
  }
  
  .sub-header {
    flex-direction: row;
    gap: 1rem;
    display: flex;
  }

  .game-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game-details h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .policy-title, .section-title {
    font-size: 2rem;
  }
  
  .featured-game-text h2, .game-section h2, .contact-section h2 {
    font-size: 2rem;
  }

  .game-details h2 {
    font-size: 1.8rem;
  }

  .game-details h3 {
    font-size: 1.4rem;
  }
}