
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* Light Mode */
:root {
  --text: #00FF00;
  --border: #333333;
  --accent: #33FF66;
  --bg: #111111;
  --gradientTop: #000000;
  --gradientBottom: #1a1a1a;
}

header {
  background: url('***light mode banner image***');
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --text: white;
    --border: #5a7678;
    --accent: #74C365;
    --bg: rgba(0,60,60,0.8);
    --gradientBottom: rgb(0, 50, 60);
    --gradientTop: darkslategrey;
  }
  header {
    background: url('***dark mode banner image***');
  }
}

/* Global Reset */
* { 
  box-sizing: border-box;
}

html {
  background: #384a3a url(https://files.catbox.moe/og7ia4.webp);
  background-repeat: repeat;
  background-attachment: fixed;
}



/* CRT Scanlines and Tint Overlay */
html::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  pointer-events: none;
  background:
    linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.25) 50%),
    linear-gradient(90deg, rgba(255,0,0,0.06), rgba(0,255,0,0.02), rgba(0,0,255,0.06));
  background-size: 100% 2px, 3px 100%;
}

html::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,16,16,0.1);
  z-index: 9998;
  pointer-events: none;
}

/* Body Text Effects */
body {
  padding-top: 35px; /* to account for fixed music player height */

  
  
  font-family: 'VT323', monospace;
  animation: textShadow 1.6s infinite;
  filter: grayscale(100%) sepia(100%) hue-rotate(75deg);
  color: var(--text);
}

/* CRT Glitch Animation */
@keyframes textShadow {
  0% { text-shadow: 0.4px 0 1px rgba(0,30,255,0.5), -0.4px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  20% { text-shadow: 2px 0 1px rgba(0,30,255,0.5), -2px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  40% { text-shadow: 0.5px 0 1px rgba(0,30,255,0.5), -0.5px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  60% { text-shadow: 3px 0 1px rgba(0,30,255,0.5), -3px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  80% { text-shadow: 1px 0 1px rgba(0,30,255,0.5), -1px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  100% { text-shadow: 2.5px 0 1px rgba(0,30,255,0.5), -2.5px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
}

/* Container */
.container {
  max-width: 55rem;
  margin: 5vw auto 12px auto;
  border: 6px ridge var(--border);
  outline: 3px solid var(--gradientTop);
  outline-offset: 4px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  gap: 5px;
  background-color: var(--gradientBottom);
  background-image: 
    repeating-radial-gradient(circle at 0 0, transparent 0, var(--gradientBottom) 9px),
    repeating-linear-gradient(var(--bg), var(--bg));
}

/* Layout Sizes */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }

/* Header */
header {
  background-position: center;
  width: 100%;
  height: 120px;
  border: 2px ridge var(--border);
  border-radius: 5px;
  position: relative;
}

header span {
  font-size: 2.5rem;
  position: absolute;
  bottom: 0;
  right: 10px;
  margin: 10px;
  font-weight: bold;
  text-shadow:
    1px 1px var(--text),
    -1px 1px var(--text),
    1px -1px var(--accent),
    -1px -1px var(--accent);
  color: var(--gradientTop);
}

/* Navigation */
nav {
  border: 2px ridge var(--border);
  border-radius: 5px;
  padding: 5px;
  background: linear-gradient(var(--gradientTop), var(--gradientBottom));
}

nav div {
  text-align: center;
  font-size: 1.25rem;
  margin: 5px 5px 10px 5px;
}

nav a {
  display: block;
  margin: 5px;
  background: linear-gradient(to right, var(--bg), var(--gradientBottom));
  border-radius: 5px;
  padding: 2px 7px;
  text-decoration: none;
}

nav a:link,
nav a:visited {
  color: var(--text);
}

nav a:hover,
nav a:focus {
  background: linear-gradient(to right, var(--bg), var(--gradientBottom), var(--gradientTop));
}

/* Optional Button Styling */
div.small > img {
  display: block;
  margin: 5px auto;
  border: 2px ridge var(--border);
  border-radius: 5px;
}

/* Sections */
section {
  border: 2px ridge var(--border);
  border-radius: 5px;
  background: linear-gradient(var(--gradientTop), var(--gradientBottom));
  padding: 5px;
}

/* Footer */
footer {
  text-align: center;
  margin-bottom: 5vw;
  font-size: 0.8rem;
}

footer a {
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6, p {
  margin: 5px;
  line-height: 1.2;
}

h1 {
  font-size: 1.4rem;
  letter-spacing: 2px;
  font-weight: normal;
  text-align: center;
  border-bottom: 2px ridge var(--border);
  padding-bottom: 5px;
}

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  text-align: center;
}

h3 { font-size: 1.1rem; }
h4 {
  font-size: 1rem;
  color: var(--accent);
  padding-left: 12px;
}

/* Misc */
img { max-width: 100%; }
pre { overflow-x: auto; }

/* Links */
a:hover,
a:focus {
  font-style: italic;
}

a:visited {
  color: var(--accent);
}

