/* Base Styles */
:root {
  --primary-color: #FFD700;
  --secondary-color: #121212;
  --accent-color: #e5a00d;
  --text-light: #ffffff;
  --text-dark: #121212;
  --bg-dark: #0a0a0a;
  --bg-light: #f8f8f8;
  --card-bg: #1e1e1e;
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-buttons {
  display: flex;
  align-items: center;
}

.btn-back {
  background-color: var(--primary-color);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.btn-back i {
  margin-right: 8px;
}

.btn-back:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Game Container Styles */
.game-container {
  padding-top: 100px;
  padding-bottom: 50px;
  background-color: var(--bg-dark);
  position: relative;
}

.game-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../src/assets/bann.jpg');
  opacity: 0.05;
  z-index: 0;
}

.game-header {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.game-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.game-header p {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 700px;
  margin: 0 auto;
}

.game-frame {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
  position: relative;
  z-index: 1;
}

.game-frame iframe {
  display: block;
  border: none;
  background-color: #000;
}

.game-disclaimer {
  text-align: center;
  padding: 15px;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: var(--border-radius);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.game-disclaimer p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.game-disclaimer i {
  color: var(--primary-color);
  margin-right: 5px;
}

/* More Games Section */
.more-games {
  padding: 70px 0;
  background-color: var(--bg-light);
  position: relative;
}

.more-games::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../src/assets/bann.jpg');
  opacity: 0.05;
}

.more-games h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 40px;
  position: relative;
}

.more-games h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 10px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  position: relative;
}

.game-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 200px;
}

.game-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 20px;
  transition: var(--transition);
}

.game-overlay h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 5px;
  transition: var(--transition);
}

.game-item:hover .game-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 100%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-item:hover .game-overlay h3 {
  transform: translateY(0);
  text-align: center;
  font-size: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-content p {
  color: #777;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  .game-header h1 {
    font-size: 2rem;
  }
  
  .game-header p {
    font-size: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .game-frame {
    width: 95%;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  .game-header h1 {
    font-size: 1.8rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}