/* Base Styles and Variables */
:root {
  /* Common colors */
  --yellow: #ffc567;
  --pink: #fb7da8;
  --coral: #fd5a46;
  --purple: #552cb7;
  --green: #00995e;
  --blue: #058cd7;
  --collympics: #faca78;
  --dark: #121212;
  --light: #f5f5f5;
  --highlight: #f5f5f5;

  /* Light theme (default) */
  --bg-color: #b6ccfe;
  --text-color: #2c2c2c;
  --header-bg: rgba(255, 255, 255, 0.85);
  --card-bg: rgba(255, 255, 255, 0.8);

  --site-width: 100vw; 
}

/* Dark theme */
[data-theme="dark"] {
  --bg-color: var(--dark);
  --text-color: var(--light);
  --header-bg: rgba(18, 18, 18, 0.85);
  --card-bg: rgba(255, 255, 255, 0.05);
  --highlight: #058cd7;
}

/* Fixed body and html styles to prevent overflow */
html, body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "VT323", monospace;
  font-size: 18px;
  line-height: 1.5;
  max-width: 100vw;
}

/* Wrapper to contain everything */
.wrapper {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Mobile Optimizations */
/* @media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  .container {
    width: 95%;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
} */

/* @media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  
  .container {
    width: 98%;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
} */

/* CRT Overlay fixes */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1002;
  animation: scanline 7.5s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}