@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap');

:root {
  /* color palette */
  --primary-color: #5A9BD4;
  --secondary-color: #1E90FF;
  --background-color: rgba(1, 2, 5, 0.77);
  --text-color: #000000;
  --card-bg: #1b1b1d;
  --nav-bg: rgba(255, 255, 255, 0.1);
  --footer-bg: rgba(0, 0, 0, 0.8);
  --button-bg: linear-gradient(135deg, rgba(51, 51, 51, 0.25), rgba(35, 35, 35, 0.15));
  --button-border: #5A9BD4;
  --box-border: #0084ff;
  --search-border: #5A9BD4;
  --particle-color: #5A9BD4;
  
  /* gradients */
  --title-gradient: linear-gradient(45deg, #5A9BD4, #1E90FF, #5A9BD4);
  --card-overlay: linear-gradient(135deg, rgba(90, 155, 212, 0.15) 0%, transparent 60%);
  
  /* shadows */
  --text-shadow: 0px 4px 10px rgba(0, 0, 255, 0.6);
  --card-shadow: 0 8px 25px rgba(30, 144, 255, 0.35), 0 0 0 2px rgba(90, 155, 212, 0.4);
  --button-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.15);
  
  /* fonts */
  --main-font: 'Orbitron', sans-serif;
  --title-font: 'Inter', sans-serif;
  --subtext-font: 'Lato', sans-serif;
  --nav-font: 'Poppins', sans-serif;
}

[data-theme="crimson"] {
  --primary-color: #DC143C;
  --secondary-color: #B22222;
  --background-color: rgba(5, 1, 1, 0.77);
  --text-color: #FFFFFF;
  --card-bg: #1d1b1b;
  --nav-bg: rgba(255, 255, 255, 0.1);
  --footer-bg: rgba(0, 0, 0, 0.8);
  --button-bg: linear-gradient(135deg, rgba(51, 33, 33, 0.25), rgba(35, 20, 20, 0.15));
  --button-border: #DC143C;
  --box-border: #FF0033;
  --search-border: #DC143C;
  --particle-color: #DC143C;
  
  --title-gradient: linear-gradient(45deg, #DC143C, #B22222, #DC143C);
  --card-overlay: linear-gradient(135deg, rgba(220, 20, 60, 0.15) 0%, transparent 60%);
  
  --text-shadow: 0px 4px 10px rgba(139, 0, 0, 0.6);
  --card-shadow: 0 8px 25px rgba(178, 34, 34, 0.35), 0 0 0 2px rgba(220, 20, 60, 0.4);
  --button-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(139, 0, 0, 0.15);

  --main-font: 'Lexend', sans-serif;
  --title-font: 'Inter', sans-serif;
  --subtext-font: 'Lato', sans-serif;
  --nav-font: 'Poppins', sans-serif;
}

[data-theme="secured"] {
  --primary-color: #968cf5; 
  --secondary-color: #b3aaf9; 
  --background-color: rgba(35, 30, 70, 0.9); 
  --text-color: #ffffff; 
  --card-bg: #3a3569; 
  --nav-bg: rgba(150, 140, 245, 0.2);
  --footer-bg: rgba(25, 20, 55, 0.9); 
  --button-bg: linear-gradient(135deg, rgba(150, 140, 245, 0.3), rgba(179, 170, 249, 0.2));
  --button-border: #968cf5;
  --box-border: #c7c2fa;
  --search-border: #968cf5;
  --particle-color: #968cf5;

  --title-gradient: linear-gradient(45deg, #968cf5, #b3aaf9, #968cf5);
  --card-overlay: linear-gradient(135deg, rgba(150, 140, 245, 0.15) 0%, transparent 60%);

  --text-shadow: 0px 4px 10px rgba(150, 140, 245, 0.5);
  --card-shadow: 0 8px 25px rgba(150, 140, 245, 0.35), 0 0 0 2px rgba(179, 170, 249, 0.4);
  --button-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(150, 140, 245, 0.2);

  --main-font: 'Quicksand', sans-serif;
  --title-font: 'Quicksand', sans-serif;
  --subtext-font: 'Quicksand', sans-serif;
  --nav-font: 'Quicksand', sans-serif;
}

[data-theme="emerald"] {
  --primary-color: #50C878;
  --secondary-color: #2E8B57;
  --background-color: rgba(1, 5, 2, 0.77);
  --text-color: #000000;
  --card-bg: #1b1d1b;
  --nav-bg: rgba(255, 255, 255, 0.1);
  --footer-bg: rgba(0, 0, 0, 0.8);
  --button-bg: linear-gradient(135deg, rgba(33, 51, 33, 0.25), rgba(20, 35, 20, 0.15));
  --button-border: #50C878;
  --box-border: #00CC66;
  --search-border: #50C878;
  --particle-color: #50C878;
  
  --title-gradient: linear-gradient(45deg, #50C878, #2E8B57, #50C878);
  --card-overlay: linear-gradient(135deg, rgba(80, 200, 120, 0.15) 0%, transparent 60%);
  
  --text-shadow: 0px 4px 10px rgba(0, 100, 0, 0.6);
  --card-shadow: 0 8px 25px rgba(46, 139, 87, 0.35), 0 0 0 2px rgba(80, 200, 120, 0.4);
  --button-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 100, 0, 0.15);

  --main-font: 'Poppins', sans-serif;
  --title-font: 'Poppins', sans-serif;
  --subtext-font: 'Poppins', sans-serif;
  --nav-font: 'Poppins', sans-serif;
}

[data-theme="hacker"] {
  --primary-color: #00ff00;
  --secondary-color: #00cc00;
  --background-color: #0a0a0a;
  --text-color: #00ff00;
  --card-bg: #111111;
  --nav-bg: rgba(0, 255, 0, 0.05);
  --footer-bg: rgba(0, 0, 0, 0.9);
  --button-bg: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 204, 0, 0.05));
  --button-border: #00ff00;
  --box-border: #00cc00;
  --search-border: #00ff00;
  --particle-color: #00ff00;
  
  --title-gradient: linear-gradient(45deg, #00ff00, #00cc00, #00ff00);
  --card-overlay: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, transparent 60%);
  
  --text-shadow: 0px 0px 10px rgba(0, 255, 0, 0.7);
  --card-shadow: 0 0 15px rgba(0, 255, 0, 0.3), 0 0 5px rgba(0, 255, 0, 0.2);
  --button-shadow: inset 0 2px 4px rgba(0, 255, 0, 0.1), 0 0 10px rgba(0, 255, 0, 0.2);

  --main-font: 'Courier New', monospace;
  --title-font: 'Courier New', monospace;
  --subtext-font: 'Courier New', monospace;
  --nav-font: 'Courier New', monospace;
}

[data-theme="purple"] {
  --primary-color: #9370DB;
  --secondary-color: #6A5ACD;
  --background-color: rgba(5, 1, 5, 0.77);
  --text-color: #FFFFFF;
  --card-bg: #1d1b1d;
  --nav-bg: rgba(255, 255, 255, 0.1);
  --footer-bg: rgba(0, 0, 0, 0.8);
  --button-bg: linear-gradient(135deg, rgba(51, 33, 51, 0.25), rgba(35, 20, 35, 0.15));
  --button-border: #9370DB;
  --box-border: #9933CC;
  --search-border: #9370DB;
  --particle-color: #9370DB;
  
  --title-gradient: linear-gradient(45deg, #9370DB, #6A5ACD, #9370DB);
  --card-overlay: linear-gradient(135deg, rgba(147, 112, 219, 0.15) 0%, transparent 60%);
  
  --text-shadow: 0px 4px 10px rgba(75, 0, 130, 0.6);
  --card-shadow: 0 8px 25px rgba(106, 90, 205, 0.35), 0 0 0 2px rgba(147, 112, 219, 0.4);
  --button-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(75, 0, 130, 0.15);
}

[data-theme="gold"] {
  --primary-color: #FFD700;
  --secondary-color: #DAA520;
  --background-color: rgba(5, 5, 1, 0.77);
  --text-color: #000000;
  --card-bg: #1d1d1b;
  --nav-bg: rgba(255, 255, 255, 0.1);
  --footer-bg: rgba(0, 0, 0, 0.8);
  --button-bg: linear-gradient(135deg, rgba(51, 51, 33, 0.25), rgba(35, 35, 20, 0.15));
  --button-border: #FFD700;
  --box-border: #CC9900;
  --search-border: #FFD700;
  --particle-color: #FFD700;
  
  --title-gradient: linear-gradient(45deg, #FFD700, #DAA520, #FFD700);
  --card-overlay: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
  
  --text-shadow: 0px 4px 10px rgba(184, 134, 11, 0.6);
  --card-shadow: 0 8px 25px rgba(218, 165, 32, 0.35), 0 0 0 2px rgba(255, 215, 0, 0.4);
  --button-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(184, 134, 11, 0.15);
}

[data-theme]::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

[data-theme]::-webkit-scrollbar-track {
  background: var(--card-bg); 
  border-radius: 8px;
}

[data-theme]::-webkit-scrollbar-thumb {
  background-color: var(--primary-color); 
  border-radius: 8px;
  border: 3px solid var(--card-bg);
  transition: background-color 0.3s ease;
}

[data-theme]::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color); 
}

[data-theme] {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--card-bg);
}

[data-theme] *:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

[data-theme] a:hover, 
[data-theme] button:hover {
  color: var(--secondary-color);
  cursor: pointer;
}

[data-theme] ::selection {
  background-color: var(--primary-color);
  color: var(--text-color);
}

[data-theme] [disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  color: var(--secondary-color);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  overflow-x: hidden;
  min-height: 100vh;
}

body {
  font-family: var(--main-font);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

header {
  background-color: transparent;
  width: 100%;
  padding: 10px 0;
  position: fixed;
  top: 0;
  z-index: 1000;
  border: none;
  outline: none;
  display: flex;
  justify-content: center;
}

nav {
  background-color: var(--nav-bg);
  padding: 10px 40px;
  border-radius: 20px;
  border: 2px solid var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 70%;
  max-width: 1200px;
  position: relative;
  z-index: 10000;
}

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

nav .logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s;
}

nav .logo img:hover {
  transform: scale(1.1);
}

/* indeed poggers! */
nav .poggers {
  margin-left: 10px;
  font-size: 24px;
  color: white;
  font-family: var(--nav-font);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
}

nav ul li {
  margin: 0 5px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.027);
  transition: all 0.3s ease;
  font-family: var(--nav-font);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 15px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--primary-color);
}

nav ul li a:active {
  transform: scale(0.95);
  box-shadow: 0 0 8px var(--primary-color);
  transition: transform 0.1s ease;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  padding-top: 0;
  margin-top: 150px;
  position: relative;
  z-index: 1;
}

.title {
  font-size: 108px;
  font-weight: 700;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-color);
  margin: 0;
  margin-top: 20px;
  font-family: var(--title-font);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  text-shadow: var(--text-shadow);
}

.title:hover {
  transform: scale(1.1);
  text-shadow: 0px 4px 20px rgba(var(--primary-color-rgb), 0.8);
}

.sub-text {
  font-size: 24px;
  color: white;
  font-family: var(--subtext-font);
  margin-top: 10px;
  margin-bottom: 40px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0px 2px 5px rgba(255, 255, 255, 0.5);
}

.sub-text:hover {
  transform: scale(1.05);
  text-shadow: 0px 2px 10px rgba(255, 255, 255, 0.7);
}

footer {
  background: var(--footer-bg);
  padding: 10px 0;
  text-align: center;
  margin-top: auto;
  border: none;
  outline: none;
}

* {
  border: none;
  outline: none;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.bruh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 80%;
  max-width: 1200px;
  margin: 40px 0 40px 1%;
  justify-items: center;
}

.display-card {
  background-color: var(--card-bg);
  color: white;
  width: 350px;
  height: 200px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: 2px solid transparent;
}

.display-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.display-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.display-card:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--card-shadow);
  border-color: var(--primary-color);
}

.display-card:hover img {
  transform: scale(1.08);
}

.display-card:hover::before {
  opacity: 1;
}

.display-card:active {
  transform: scale(1.02) translateY(0);
  transition: all 0.1s ease;
}

@media (min-width: 1300px) and (max-width: 1400px) {
  nav {
    width: 100% !important;
    padding: 10px 20px !important;
  }
}

@media (min-width: 1360px) and (max-width: 1370px) {
  .card-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 0px;
    row-gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 20px;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: #2c2c2c69; 
  border-radius: 22px;
  border: 2px solid rgba(0, 0, 0, 0.473);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  padding: 15px;
  width: 160px;
  height: 220px;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.35s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 32px rgba(var(--primary-color-rgb), 0.55);
  outline: 2px solid var(--primary-color);
}

.card:active {
  transform: translateY(-2px) scale(0.97); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  outline: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card img:hover {
  transform: scale(1.08);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.card-title:hover {
  color: #fff;
  transform: scale(1.05);
}

.what-credits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  justify-content: center; 
  justify-items: center; 
}

.part-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  justify-items: center;
}

.part-card {
  width: 200px;
  height: 200px;
  border-radius: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  background: rgba(51, 51, 51, 0.1);
  border: 2px solid transparent;
}

.part-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.part-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.part-card:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--card-shadow);
  border-color: var(--primary-color);
}

.part-card:hover img {
  transform: scale(1.08);
}

.part-card:hover::before {
  opacity: 1;
}

.part-card:active {
  transform: scale(1.02) translateY(0);
  transition: all 0.1s ease;
}

.box {
  margin: 15px auto;
  width: 80%;
  max-width: 800px;
  background-color: #2222224f;
  border: 2px solid var(--box-border);
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  padding: 20px;
  text-align: center;
  color: var(--box-border);
}

.box h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.box ul {
  list-style: none;
  padding: 0;
}

.box ul li {
  font-size: 18px;
  line-height: 1.8;
}

.button {
  background: var(--button-bg);
  color: white;
  border: 2px solid var(--button-border);
  border-radius: 14px;
  padding: 12px 24px;
  font-size: 15px;
  font-family: var(--nav-font);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(8px) brightness(1.1);
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: var(--button-shadow);
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--secondary-color-rgb), 0.2), transparent);
  transition: left 0.6s ease;
}

.button:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(20, 20, 20, 0.2));
  border-color: var(--secondary-color);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 6px 20px rgba(var(--secondary-color-rgb), 0.3),
    0 0 0 4px rgba(var(--secondary-color-rgb), 0.1);
}

.button:hover::before {
  left: 100%;
}

.button:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

.box-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.hibuduhmdoyouknowthisisaboxfortheloader {
  position: relative;
  width: 1200px;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #00000046;
  margin: 15px auto;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--primary-color);
  font-family: 'Lexend', sans-serif;
}

#wowaiframeforitamazing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#funfactthisisastartscreenorguesswhatfortheloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-family: 'Lexend', sans-serif;
}

.start-screen-content {
  width: 85%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#logoContainer {
  text-align: center;
  margin-bottom: 15px;
}

#logoContainer img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 30vh;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(var(--primary-color-rgb), 0.4);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  border: 2px solid var(--primary-color);
}

.start-screen-text {
  text-align: center;
}

#gameTitle {
  margin: 0 0 15px 0;
  font-size: 2rem;
  color: white;
  animation: fadeIn 1.5s ease-in-out;
  font-family: 'Lexend', sans-serif;
  text-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.7);
  font-weight: 600;
}

#gameDescription {
  margin: 0 0 20px 0;
  font-size: 1rem;
  color: white;
  animation: fadeIn 2s ease-in-out;
  font-family: 'Lexend', sans-serif;
  line-height: 1.5;
  max-width: 500px;
  font-weight: 300;
}

#playButton {
  background: var(--button-bg);
  color: white;
  border: 2px solid var(--button-border);
  border-radius: 14px;
  padding: 12px 24px;
  font-size: 15px;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(8px) brightness(1.1);
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: var(--button-shadow);
}

#playButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--secondary-color-rgb), 0.2), transparent);
  transition: left 0.6s ease;
}

#playButton:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(20, 20, 20, 0.2));
  border-color: var(--secondary-color);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 6px 20px rgba(var(--secondary-color-rgb), 0.3),
    0 0 0 4px rgba(var(--secondary-color-rgb), 0.1);
}

#playButton:hover::before {
  left: 100%;
}

#playButton:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

.control-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 10px 20px; 
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1001;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box; 
}

.fullscreen-btn,
.reload-btn {
  font-size: 22px;
  color: white;
  cursor: pointer;
  transition: transform 0.4s ease, color 0.3s ease;
  padding: 8px; 
  border-radius: 6px;
}

.fullscreen-btn:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.08);
}

.reload-btn:hover {
  animation: spin 0.6s linear;
  background: rgba(255, 255, 255, 0.08);
}

.fullscreen-btn:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.08);
}

.reload-btn:hover {
  animation: spin 0.6s linear;
  background: rgba(255, 255, 255, 0.08);
}

#logoContainer img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.6);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width:1400px) {
  .play-box {
    width: 90%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }
  
  #gameTitle {
    font-size: 1.6rem;
  }
  
  #gameDescription {
    font-size: 0.9rem;
    margin: 0 0 15px 0;
  }
  
  #playButton {
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 12px;
  }
  
  .start-screen-content {
    width: 90%;
  }
  
  .control-area {
    gap: 12px;
  }
  
  .fullscreen-btn, .reload-btn {
    height: 22px;
  }
  
  #logoContainer img {
    max-width: 70%;
    max-height: 25vh;
  }
}

@media (max-width: 480px) {
  .play-box {
    width: 95%;
    aspect-ratio: 16 / 9;
    border-width: 1px;
  }
  
  #gameTitle {
    font-size: 1.4rem;
  }
  
  #gameDescription {
    font-size: 0.85rem;
  }
  
  #playButton {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 10px;
    letter-spacing: 0.5px;
  }
  
  #logoContainer img {
    max-height: 20vh;
    border-radius: 10px;
  }
  
  .control-area {
    gap: 10px;
  }
  
  .fullscreen-btn, .reload-btn {
    height: 20px;
  }
}

@media (min-width: 1300px) and (max-width: 1400px) {
  nav {
    width: 100%;
    padding: 10px 20px;
  }
}

.search-container {
  width: 50%;
  display: flex;
  justify-content: center;
  margin: 30px;
}

.search-bar {
  font-family: var(--main-font);
  padding: 10px 15px;
  width: 60%;
  max-width: 600px;
  border-radius: 15px;
  border: 2px solid var(--search-border);
  font-size: 16px;
  background-color: #1f1f1f;
  color: white;
  height: 35px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0,0,0,0.3); 
}

.search-bar:focus,
.search-bar.active {
  width: 80%; 
  border-color: var(--primary-color); 
  box-shadow: 0 0 15px var(--primary-color);
  outline: none; 
  background-color: #2a2a2a;
}

.search-bar::placeholder {
  color: #bbb;
}

#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--secondary-color);
  width: 0;
  z-index: 9999;
  transition: width 0.3s ease, opacity 0.3s ease;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.theme-switcher-box {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.theme-dropdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.theme-selector {
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  background-color: #1f1f1f;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  cursor: pointer;
  min-width: 180px;
  transition: all 0.3s ease;
}

.theme-selector:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
}

.theme-preview {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.current-theme-display {
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
}

.current-theme-display p {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}

#current-theme-name {
  color: white;
  font-weight: 700;
  text-transform: capitalize;
}

@media (max-width: 600px) {
  .theme-dropdown-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .theme-selector {
    width: 100%;
    max-width: 250px;
  }
}

.particles-js-canvas-el {
  position: absolute;
  top: 0;
  left: 0;
}