/* ===============================
   VARIABLES
================================ */
:root {
  --bg-color: #121212;
  --console-bg: #1e1e1e;
  --pre-bg: #111;
  --text-color: #f1f1f1;
  --accent-color: #00ffd0;
  --accent-hover: #00c0a0;
  --button-color: #4CAF50;
  --button-hover: #45a049;
  --font-mono: 'Consolas', monospace;
  --padding-base: 20px;
  --transition-speed: 0.3s;
}

/* ===============================
   GLOBAL STYLES
================================ */
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  padding: var(--padding-base);
  line-height: 1.6;
  transition: background var(--transition-speed), color var(--transition-speed);
  animation: fadeInBody 1s ease-out forwards
}

@keyframes fadeInBody {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px rgba(0,255,208,0.2); }
  50% { box-shadow: 0 0 20px rgba(0,255,208,0.5); }
  100% { box-shadow: 0 0 5px rgba(0,255,208,0.2); }
}

h1 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

kbd {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95em;
  color: #333;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 #bbb;
  user-select: none;
}

kbd:hover {
  box-shadow: inset 0 2px 2px rgba(0,0,0,0.2);
  background-color: #e0e0e0;
}

/* ===============================
   CONSOLE & PRE
================================ */
#console {
      width: 100%;
      height: 300px;
      background: #1e1e1e;
      padding: 10px;
      overflow-y: auto;
      border: 1px solid #444;
      margin-bottom: 10px;
      white-space: pre-wrap;
}

pre {
  background: var(--pre-bg);
  color: #0f0;
  height: 200px;
}

/* ===============================
   INPUTS & BUTTONS
================================ */
input, button {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  margin: 5px 0;
  border-radius: 4px;
  outline: none;
  transition: all var(--transition-speed);
}

button {
  background: var(--accent-color);
  color: black;
  border: none;
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
}

/* ===============================
   COOKIE CONSENT BOX
================================ */
.cookie-consent-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  font-size: 14px;
  z-index: 9999;
  display: none;
  opacity: 0;
  animation: slideIn 0.5s ease-out forwards;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@keyframes slideIn {
  0% {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.cookie-consent-box button {
  background-color: var(--button-color);
  color: white;
  padding: 8px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  transition: background var(--transition-speed);
}

.cookie-consent-box button:hover {
  background-color: var(--button-hover);
}

.cookie-consent-box a {
  color: var(--button-color);
  text-decoration: none;
}

.fadeOut {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* ===============================
   SPINNER
================================ */
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #00ffd0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite, spinColor 1s linear infinite;
  margin: 10px auto;
  display: block;
}

.ad-wrapper {
  width: 100%;
  max-width: 728px;
  margin: 20px auto;
}


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

@keyframes spinColor {
  0% { border-top-color: #00ffd0; }
  50% { border-top-color: #00c0a0; }
  100% { border-top-color: #00ffd0; }
}

/* ===============================
   PAGE SECTIONS
================================ */
#runnerPage { display: none; }
pre { background: #111; color: #0f0; padding: 10px; height: 200px; overflow-y: auto; }
