/* Base styles matching the futuristic theme */
:root {
  --bg-dark: #0f0a1e;
  --bg-card: #1a1330;
  --text-light: #f5f5f5;
  --text-muted: #c4b5fd;
  --accent: #9370db;
  --accent-hover: #b19cd9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0b2e 50%, #0f0a1e 100%) !important;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Particle canvas positioning */
#particle-canvas-games {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Header with glassmorphism effect */
header {
  background: rgba(25, 20, 40, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px 20px 30px;
  text-align: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(147, 112, 219, 0.2);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

header h1 {
  margin: 0;
  font-size: 2.8em;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  margin-top: 10px;
  font-size: 1.1em;
  color: #b19cd9;
  font-weight: 300;
}

/* Navigation bar */
nav {
  background: rgba(15, 10, 30, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(147, 112, 219, 0.15);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

nav a {
  color: var(--text-muted);
  margin: 0 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #ffffff;
}

nav a:hover::after {
  width: 100%;
}

/* Main layout */
.layout {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 20px 5vw;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

/* Ad bars with glassmorphism */
.ad-bar {
  width: 160px;
  background: rgba(15, 10, 25, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  color: white;
  text-align: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.ad {
  background: rgba(51, 51, 51, 0.3);
  border: 1px solid rgba(147, 112, 219, 0.2);
  padding: 0;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 600px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Top banner ad */
.top-banner-ad {
  width: 100%;
  height: 90px;
  background: rgba(51, 51, 51, 0.3);
  border: 1px solid rgba(147, 112, 219, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.top-banner-ad iframe {
  display: block;
  margin: 0 auto;
}

/* Main content area with enhanced glassmorphism */
.main-content {
  flex: 1;
  background: rgba(26, 19, 48, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(147, 112, 219, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 600px;
  position: relative;
}

/* Game embed container */
.game-embed-container {
  flex: 1;
  background: linear-gradient(135deg, #274e13 0%, #1a3a0f 100%) !important;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  font-family: "Gill Sans", sans-serif;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
  max-width: 550px;
  box-sizing: border-box;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0,0,0,.6);
  padding-bottom: 10px;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.c-button {
  min-height: 50px;
  appearance: none;
  border: 2px solid rgba(0,0,0,.2);
  border-radius: 8px;
  color: #000;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.btn-primary {
  background: #6aa84f;
  color: #ffffff;
}

.btn-primary:hover {
  background: #8fbc8f;
  border-color: #a2d1a2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 168, 79, 0.4);
  color: #ffffff;
}

.btn-alt {
  background: #073763;
  color: #ffffff;
}

.btn-alt:hover {
  background: #3d85c6;
  border-color: #6f9ac4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 133, 198, 0.4);
  color: #ffffff;
}

.c-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(147, 112, 219, 0.3);
}

.c-button:disabled {
  background: #555;
  cursor: not-allowed;
  opacity: 0.6;
  color: #cccccc;
}

.game-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  padding: 25px;
  font-size: 0.95em;
  color: #8b7fb8;
  border-top: 1px solid rgba(147, 112, 219, 0.2);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* Responsive design */
@media (max-width: 900px) {
  .ad-bar {
    display: none;
  }
  
  .layout {
    flex-direction: column;
    padding: 10px 2vw;
  }
  
  .main-content {
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .button-grid {
    grid-template-columns: 1fr;
  }
  
  .logo-text {
    font-size: 2rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 0.95em;
  }
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 10, 30, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(147, 112, 219, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 112, 219, 0.7);
}