:root {
  --bg: #05060a;
  --text: #e9eef8;
  --accent-1: #64d2ff;
  --accent-2: #a78bfa;
  --muted: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 8px 30px rgba(2, 6, 23, 0.7);
  --glass-blur: 10px;
  font-family: Inter, system-ui, Roboto;
}

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

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

canvas#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: background 0.4s;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

nav {
  max-width: 1150px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #041627;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(100, 210, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--accent-1);
}

.nav-links a:hover::after {
  width: 100%;
}

.theme-menu {
  position: absolute;
  top: 60px;
  right: 24px;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);

  /* New Scroll Styling */
  max-height: 300px; /* Limit height so it won’t go off-screen */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) rgba(255,255,255,0.1);
  transition: max-height 0.4s ease, opacity 0.4s ease;

}

/* Optional – better-looking scrollbar for WebKit browsers */
.theme-menu::-webkit-scrollbar {
  width: 6px;
}

.theme-menu::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 4px;
}

.theme-menu::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}


.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.theme-option.active {
  border: 2px solid var(--accent-1);
}

.color-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.theme-toggle {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.3s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}



main {
  max-width: 1150px;
  margin: 60px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  text-align: center;
  padding: 60px 0;
  position: relative;
}

.title {
  text-align: center;
  position: relative;
  font-size: 48px;
  margin-bottom: 16px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 18px;
}

.cta-btn, .secondary-btn {
  border-radius: 12px;
  font-weight: 500;
  padding: 12px 24px;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}

.cta-btn {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #041627;
  box-shadow: 0 0 12px rgba(100, 210, 255, 0.4);
}

.cta-btn:hover {
  transform: scale(1.05);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-1);
  border: 1px solid var(--glass-border);
}

.secondary-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 40px;
  box-shadow: var(--shadow);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  text-align: center;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border 0.4s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-1);
  box-shadow: 0 0 20px var(--accent-1), 0 0 40px rgba(0,0,0,0.3);
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--accent-1);
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--accent-2);
}

.feature-card .icon {
  font-size: 30px;
  color: var(--accent-1);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.navbar-container {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
  background-color: #1a1b23;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  border: 1px solid #2a2b33;
}

.search-bar:focus-within {
  background-color: var(--accent-1);
  border-color: #00ff99;
  box-shadow: 0 4px 15px rgba(0, 255, 153, 0.35);
}

.search-bar:hover {
  background-color: #222533;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.InputContainer {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 0.75rem;
}

.input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: none;
  color: #f0f0f0;
  padding: 0.5rem 0;
  font-family: inherit;
}

.input::placeholder {
  color: #8a8a8a;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.input:focus::placeholder {
  opacity: 0.5;
}

.searchIcon {
  width: 20px;
  height: 20px;
  fill: #8a8a8a;
  transition: fill 0.2s ease;
}

.search-bar:focus-within .searchIcon {
  fill: #00ff99;
}

.border {
  width: 1px;
  height: 24px;
  background-color: #3a3b43;
  margin: 0 0.75rem;
}

.micButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.micButton:hover {
  background-color: #2a2b33;
}

.micIcon {
  width: 18px;
  height: 18px;
  fill: #8a8a8a;
  transition: fill 0.2s ease;
}

.micButton:hover .micIcon {
  fill: #ff5100;
}


#games {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .6vw;
    padding-bottom: 5vw;
    cursor: url('/assets/normal.cur'), auto;

}
 
#games img {    height: 15.6vw;
    width: 15.6vw;
    border-radius: 1vw;
    margin: .5vw;
    cursor: pointer;
    user-select: none;
    transition: transform .2s;
}

#games img:hover {
  transform: translateY(-8px) scale(1.05);
  border-radius: 8px;
  padding: 3px;
  box-sizing: border-box;
  background: radial-gradient(circle at 80% 10%, var(--accent-1) 0%, transparent 100%),
              radial-gradient(circle at 20% 80%, var(--accent-1) 0%, transparent 100%),
              radial-gradient(circle at center, var(--accent-1) 0%, transparent 100%);
  transition: transform 0.3s, background 0.4s;
}

#sub {
 max-width: 700px;
 margin: 40px auto 50px;
 opacity: 0;
 animation: fadeInScale 1.2s ease 0.9s forwards;
 text-align: center;
 font-size: 1.2rem;
 color: #d1d1d1;
 line-height: 1.7;
 margin-bottom: 0;
 font-weight: 300;
}

@keyframes fadeInScale {
     from {
         opacity: 0;
         transform: scale(0.95);
    }
     to {
         opacity: 1;
         transform: scale(1);
    }
}


.featured {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1vw;
    margin:1%;
    margin-top: 6vw;
}

.featured h1 {
    font-size: 3.5vw;
    font-weight: 700;
    margin: 1vw 1vw .4vw 1vw;
    width: 83.8%;
    text-align: left;
    color: #fff;
}

.featured .column {
    display: flex;
    flex-direction: column;
}

.featured img {
    height: 12.5vw;
    width: 12.5vw;
    border-radius: 1vw;
    margin: .5vw;
    cursor: pointer;
    user-select: none;
    transition: all .2s;
}

.featured img:hover {
    transform: scale(1.02);
    filter: brightness(50%);
cursor: url('/assets/select.cur'), auto;

}


.featured .row img {
    height: 26vw;
    width: 26vw;
}

.featured a {
    display: inline-block;
    position: relative;
    color: #2c7ffc;
    text-decoration: none;
}
    
    .featured .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
    }
    
    .featured a:hover .play-button {
    opacity: 1;
    pointer-events: none;
    }
    
    .featured .play-button i {
    font-size: 5vw;
    text-shadow: 0 0 100px #2c7ffc;
    }

.content {
    flex-direction: column;
    align-items: left;
    padding: 7vw;
    padding-top: 0vw;
}

.content hr {
    border: 0;
    height: 4px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(255, 255, 255), rgba(0, 0, 0, 0));
    margin: 1vw 0;
}


#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 85%, var(--accent-1) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, var(--accent-1) 0%, transparent 50%),
    radial-gradient(circle at 45% 60%, var(--accent-1) 0%, transparent 50%),
    radial-gradient(circle at 70% 40%, var(--accent-1) 0%, transparent 50%),
    linear-gradient(135deg, #000000 0%, var(--accent-1) 50%, #000000 100%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}


#loading-spinner {
  width: 60px;
  height: 60px;
  border: 8px solid #e6e6f0;
  border-top: 8px solid #333333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

#loading-screen h1 {
  font-size: 24px;
  font-family: 'title';
  margin: 0;
}

/* ===== Timeline Section ===== */
/* Timeline Base */
.timeline {
  position: relative;
  margin: 50px auto;
  padding: 20px 0;
  max-width: 900px;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  background: var(--accent-1);
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
}

/* Each item */
.timeline-item {
  position: relative;
  margin: 40px 0;
  width: 50%;
  padding: 10px 30px;
}

/* Alternate left/right placement */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

/* Content bubble */
.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px var(--accent-1);
}

/* Circle marker (no icon inside) */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -12px;
  width: 20px;
  height: 20px;
  background: var(--accent-1);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-1);
}

.timeline-item:nth-child(even)::before {
  left: -12px;
  right: auto;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown trigger matches nav links */
.dropbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.3s;
}

.dropbtn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Dropdown content */
.dropdown-content {
  max-height: 0; /* start collapsed */
  opacity: 0;
  position: absolute;
  right: 0;
  top: 100%;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(12px);
  min-width: 180px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  flex-direction: column;
  box-shadow: var(--shadow);
  z-index: 101;
  overflow: hidden;

  /* Transition for smooth effect */
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* Show on hover */
.dropdown:hover .dropdown-content {
  max-height: 500px; /* large enough to show all items */
  opacity: 1;
}


.dropdown-content a {
  padding: 10px 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255,255,255,0.1);
}

.announcement-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.25); /* softer background blur */
  backdrop-filter: blur(5px);      /* subtle blur */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.announcement-popup.visible {
  opacity: 1;
}

.popup-card {
  background: linear-gradient(145deg, rgba(10,10,20,0.95), rgba(20,20,30,0.95));
  padding: 30px 25px;
  border-radius: 18px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.announcement-popup.visible .popup-card {
  transform: translateY(0);
}

.popup-card h2 {
  font-size: 22px;
  color: var(--accent-1, #64d2ff);
  margin-bottom: 12px;
  font-weight: 600;
}

.popup-card p {
  font-size: 15px;
  color: var(--text, #e9eef8);
  margin-bottom: 20px;
  line-height: 1.5;
}

.popup-card button {
  background: var(--accent-1, #64d2ff);
  color: #111;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.popup-card button:hover {
  background: #82e0ff;
  transform: scale(1.05);
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.login-box {
  background: rgba(10, 10, 20, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 30px;
  width: 300px;
  text-align: center;
  color: white;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
}

.login-box button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--accent-1, #64d2ff);
  color: #111;
  cursor: pointer;
  transition: background 0.3s;
}

.login-box button:hover {
  background: #82e0ff;
}

.rules-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.rules-popup.visible {
  opacity: 1;
  pointer-events: all;
}

.rules-card {
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid var(--accent-1, #64d2ff);
  border-radius: 16px;
  padding: 25px 30px;
  color: var(--text, #fff);
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 30px var(--accent-1, #64d2ff);
  animation: popIn 0.4s ease;
}

.rules-card h2 {
  color: var(--accent-1, #64d2ff);
  margin-bottom: 10px;
}

.rules-card ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  text-align: left;
  font-size: 15px;
  color: var(--text, #e9eef8);
}

.rules-card li {
  margin: 6px 0;
}

.rules-card button {
  background: var(--accent-1, #64d2ff);
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.rules-card button:hover {
  transform: scale(1.05);
  background: var(--accent-2, #a78bfa);
}

#randomGameBtn {
  background: var(--accent-1);
  color: var(--text);
  border: none;
  padding: 0.8vw 1.6vw;
  font-size: 1vw;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: 0.3s;
  position: fixed;
  bottom: 2vw;
  right: 2vw;
  z-index: 999;
}

#randomGameBtn:hover {
  transform: scale(1.05);
  background: var(--accent-2);
}

#randomGame {
  position: relative;
}

#randomGame img {
  height: 15.6vw;
  width: 15.6vw;
  border-radius: 1vw;
  margin: .5vw;
  cursor: pointer;
  user-select: none;
  transition: transform .2s, box-shadow .3s, background .4s;
  box-shadow: 0 0 12px var(--accent-1);
  border: 2px solid var(--accent-1);
  animation: pulseGlow 2.5s infinite;
}

#randomGame:hover img {
  transform: translateY(-8px) scale(1.05);
}

#randomGame .game-label {
  display: block;
  text-align: center;
  margin-top: 0.4vw;
  color: var(--accent-1);
  font-weight: 600;
  font-size: 1vw;
  text-shadow: 0 0 10px var(--accent-1);
}

.settings-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  color: var(--text, #fff);
}

.settings-title {
  font-size: 2.2rem;
  margin-bottom: 25px;
  text-align: center;
}

.settings-section {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.settings-section h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.settings-btn {
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent-1, #64d2ff);
  color: #000;
  cursor: pointer;
  font-weight: 600;
}

.settings-btn:hover {
  opacity: 0.9;
}

.settings-select {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.4);
  color: #fff;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.keybind-output {
  margin-top: 10px;
  opacity: 0.8;
  font-size: 0.95rem;
}


@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px var(--accent-1); }
  50% { box-shadow: 0 0 20px var(--accent-1); }
  100% { box-shadow: 0 0 8px var(--accent-1); }
}



@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


@font-face {
  font-family: notitle;
  src: url(/assets/RedditSans-Medium.ttf);
}

@font-face {
  font-family: title;
  src: url(/assets/ClashDisplayBold.otf)
}
