/* Custom styles for Sari4d */
body {
  background-color: #111111;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* News Ticker Styles */
.news-ticker {
  border-bottom: 2px solid #2D0066;
  padding: 10px 0;
  background-color: #000000;
}

.news-marquee {
  padding: 5px 0;
}

.news-item {
  margin-right: 50px;
  font-weight: bold;
  color: #ffffff;
}

.news-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item a:hover {
  color: #F87171;
}

/* Header */
header {
  background-color: #2D0066 !important;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
}

/* Logo */
nav a img {
  height: 40px; /* Matches h-10 from Tailwind */
  vertical-align: middle;
}

/* Hamburger Menu for Mobile */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFFFFF;
  position: relative;
}

.nav-toggle span:before,
.nav-toggle span:after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.nav-toggle span:before {
  top: -8px;
}

.nav-toggle span:after {
  top: 8px;
}

.nav-toggle.active span {
  background-color: transparent;
}

.nav-toggle.active span:before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active span:after {
  transform: rotate(-45deg);
  top: 0;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #F87171;
}

/* Mobile Menu */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 4rem;
    left: -100%;
    width: 250px;
    height: calc(100% - 4rem);
    background-color: #2D0066;
    flex-direction: column;
    padding: 1rem;
    transition: left 0.3s ease;
  }

  nav ul.active {
    left: 0;
  }

  nav ul li {
    margin: 0.75rem 0;
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 0.5rem 1rem;
  }
}

/* Banner Slider */
.banner-slider {
  position: relative;
  overflow: hidden;
  height: 24rem;
  background-color: #2D0066; /* Deep purple color */
  padding: 20px 0;
  margin: 20px 0;
  border-top: 15px solid #111111; /* Black border on top */
  border-bottom: 15px solid #111111; /* Black border on bottom */
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.banner-slide.active {
  opacity: 1;
}

@media (max-width: 640px) {
  .banner-slider {
    height: 16rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .banner-slider {
    height: 20rem;
  }
}

/* Game Card Hover Effect */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.game-button {
  transition: all 0.3s ease;
}

/* Game Page Styles */
.game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .game-iframe {
    height: 400px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .game-iframe {
    height: 500px;
  }
}

/* General Responsive Adjustments */
h1 {
  font-size: 1.875rem;
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.5rem !important;
  }
}

p {
  font-size: 1rem;
}

@media (max-width: 640px) {
  p {
    font-size: 0.875rem !important;
  }
}

/* Paksa warna header dan footer di semua halaman */
header,
footer {
  background-color: #461cb9 !important;
  color: #fff;
}

/* Kotak panduan (FAQ, card, dsb) */
.bg-guide,
.faq-box,
.card,
.bg-gray-800,
.bg-gray-900 {
  background-color: #7c5cff !important; /* ungu muda */
  color: #fff !important;
}

/* Tombol utama */
button,
.btn,
.game-button,
.bg-red-600 {
  background-color: #7c5cff !important; /* ungu muda */
  color: #fff !important;
  border: none;
}

button:hover,
.btn:hover,
.game-button:hover {
  background-color: #461cb9 !important; /* ungu tua saat hover */
  color: #fff !important;
}