html {
  scroll-behavior: smooth;
}
:root {
  --dark-indigo: #1a1a4e;
  --topaz: #ffc87c;
  --parchment: #f5f5dc;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--dark-indigo);
  color: var(--parchment);
}

.btn-primary {
  background-color: var(--topaz);
  color: var(--dark-indigo);
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 200, 124, 0.7);
}

.btn-secondary {
  background-color: transparent;
  color: var(--topaz);
  border: 2px solid var(--topaz);
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: rgba(255, 200, 124, 0.1);
}

.header {
  background-color: rgba(26, 26, 78, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-section {
  background-image: url("images/Hero.jpg");
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 26, 78, 0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.section-title {
  color: var(--topaz);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: bold;
}

.section-subtitle {
  color: var(--parchment);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

.features-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.features-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 200, 124, 0.2);
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  position: relative;
}

.testimonial-card:before {
  content: " ";
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 5rem;
  color: var(--topaz);
  opacity: 0.3;
  line-height: 1;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 200, 124, 0.3);
  padding: 1.5rem 0;
}

.faq-question {
  color: var(--topaz);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--topaz);
}

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.leaderboard-table th {
  color: var(--topaz);
  text-align: left;
  padding: 1rem;
  font-weight: 600;
}

.leaderboard-table td {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.leaderboard-table tr td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.leaderboard-table tr td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background-color: rgba(26, 26, 78, 0.95);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

.modal-content {
  background-color: var(--dark-indigo);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 200, 124, 0.3);
}

.game-modal-content {
  background-color: var(--dark-indigo);
  border-radius: 12px;
  padding: 1rem;
  max-width: 1000px;
  width: 95%;
  height: 90vh;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 200, 124, 0.3);
  display: flex;
  flex-direction: column;
}

.game-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#gameFrame {
  flex: 1;
  border: none;
  border-radius: 8px;
  background: transparent;
}

.game-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--topaz);
  font-size: 1.2rem;
}

.game-loading i {
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Background image styles */
.bg-image-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.bg-content {
  position: relative;
  z-index: 10;
}

.footer {
  background-color: rgba(20, 20, 50, 0.95);
  padding: 3rem 0;
}

.footer-link {
  color: var(--parchment);
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--topaz);
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--topaz);
  color: var(--dark-indigo);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 40;
}
