/* ==============================
   8-BIT / PIXEL GAME THEME CSS
   ============================== */

/* Import a pixel-style font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --bg: #0b1020;
  --panel: #111a33;
  --accent: #00e5ff;
  --accent2: #ff3df2;
  --text: #e6f0ff;
  --shadow: #000000;
}

/* Global reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

body {
  font-family: 'Press Start 2P', monospace;
  background: linear-gradient(180deg, var(--bg), #050714);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Pixelated CRT-style scanlines overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.4;
}

/* Container panels */
.container, section, .panel, .card {
  background: var(--panel);
  border: 4px solid var(--accent);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 16px;
  margin: 16px;
  image-rendering: pixelated;
}

/* Pixel buttons */
button, .btn, a.button {
  font-family: 'Press Start 2P', monospace;
  background: var(--accent);
  color: #000;
  border: 4px solid #000;
  padding: 10px 12px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.1s ease;
}

button:hover, .btn:hover, a.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
}

button:active, .btn:active, a.button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

/* Links */
a {
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

a:hover {
  border-bottom: 2px solid var(--accent2);
}

/* Headings (big retro block feel) */
h1, h2, h3 {
  color: var(--accent);
  text-shadow: 3px 3px 0 #000;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 14px;
}

/* Pixel-style input fields */
input, textarea, select {
  font-family: 'Press Start 2P', monospace;
  background: #0a0f1f;
  color: var(--text);
  border: 3px solid var(--accent2);
  padding: 8px;
  box-shadow: 3px 3px 0 #000;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}








/* =========================
   TOP BANNER / NAV
   ========================= */
.top-banner {
  backdrop-filter: blur(10px);
}

/* Logo container */
.logo-container img {
  width: 30vw;       /* 50% of the viewport width */
  height: auto;
  display: block;
  margin: 0 auto; /* centers + space below */
}

.logo-container {
  text-align: center;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #333;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 10px;
}

.nav-row a {
  text-decoration: none;
  color: white;
  background-color: #0FBA4E;
  padding: 12px 18px;
  border-radius: 5px;
  transition: 0.3s;
}

.nav-row a:hover {
  background-color: #777;
}

/* =========================
   SECTIONS
   ========================= */
.page-section {
  padding: 10px;
}

section img {
  width: 100%;
  height: auto;
}

.section-button {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background-color: #444;
  color: white;
  padding: 15px;
  border-radius: 8px;
  transition: 0.3s;
}

.section-button:hover {
  background-color: #666;
}




















/* Navigation bar */
nav {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #050714;
  border-bottom: 4px solid var(--accent);
}

nav a {
  color: var(--text);
  padding: 6px 10px;
  border: 2px solid transparent;
}

nav a:hover {
  border: 2px solid var(--accent);
  background: rgba(0,229,255,0.1);
}

/* Images (pixel crisp look) */
img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 var(--shadow);
}

/* Simple flicker animation for retro feel */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

.pixel-flicker {
  animation: flicker 2s infinite;
}

/* HUD-style footer */
footer {
  margin-top: 40px;
  padding: 16px;
  background: #050714;
  border-top: 4px solid var(--accent2);
  text-align: center;
  font-size: 10px;
}
