@font-face {
  font-family: 'GameOfSquids';
  src: url('./font/Game Of Squids.otf') format('opentype');
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: black;
  color: red;
  font-family: 'GameOfSquids', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bgPulse 2s infinite alternate;
  overflow: hidden;
  position: relative;
}

@keyframes bgPulse {
  0% { background-color: #000; }
  100% { background-color: #1a0000; }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
#footer {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace, sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  color: #a0f0ff;
  text-align: center;
  user-select: none;
  pointer-events: none;
  z-index: 10010;
  white-space: nowrap;
  filter: drop-shadow(0 0 6px #4fc3f7);
}

.glowLapis {
  color: #4fc3f7;
  text-shadow:
    0 0 4px #4fc3f7,
    0 0 8px #4fc3f7;
  font-weight: bold;
}

#topTitle {
  position: fixed;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'GameOfSquids', monospace;
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: #fff; /* white text */
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #e0e0e0,
    0 0 30px #bbb,
    0 0 40px #999;
  z-index: 10010;
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.2em;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}


#secTimer {
  position: fixed;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(1rem, 2vw, 2.5rem);
  font-family: 'GameOfSquids', monospace;
  color: #4fc3f7;
  text-shadow: 0 0 8px #4fc3f7, 0 0 14px #2196f3;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 10001;
  pointer-events: none;
}
#secTimer.visible {
  opacity: 1;
}

.countdown {
  font-size: clamp(2rem, 7vw, 5.5rem);
  letter-spacing: 0.25em;
  text-shadow: 0 0 20px red, 0 0 40px crimson, 0 0 60px darkred;
  animation: heartbeat 3s ease-in-out infinite, flicker 0.12s infinite;
  white-space: nowrap;
  max-width: 95vw;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
  padding: 0 1rem;
  box-sizing: border-box;
}


.label {
  font-size: 2vw;
  color: #ff6666;
  text-shadow: 0 0 5px red;
  margin-top: 1rem;
  transition: opacity 0.7s ease;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 24%, 55% { opacity: 0.7; }
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20%, 60% { transform: translate(-3px, 2px); }
  40%, 80% { transform: translate(3px, -2px); }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

@keyframes glitchBg {
  0%, 100% { background-color: #1a0000; }
  50% { background-color: #330000; }
}

.glitch {
  animation: glitchBg 0.15s ease-in-out;
}

#container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
  transition: opacity 1s ease;
  z-index: 1;
}

#container.fadeout {
  opacity: 0;
  pointer-events: none;
}

#bsod {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0000AA;
  color: white;
  font-family: Consolas, monospace;
  font-size: 1.4rem;
  line-height: 1.6;
  padding: 4vw;
  white-space: pre-wrap;
  display: none;
  z-index: 9999;
  user-select: none;
}

#fsBtn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #0000AA;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-family: Consolas, monospace;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 0 8px white;
  display: none;
  z-index: 10000;
  user-select: none;
}

#startBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem 2rem;
  font-size: 1.5rem;
  background-color: red;
  color: black;
  font-family: 'GameOfSquids', monospace;
  border: none;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 0 20px red;
  text-shadow: 0 0 4px black;
}

#console {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  color: #00FF00;
  font-family: Consolas, monospace;
  font-size: 1.3rem;
  line-height: 1.4;
  padding: 2rem 3rem;
  white-space: pre-wrap;
  display: none;
  z-index: 9998;
  user-select: none;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#console.visible {
  display: block;
  opacity: 1;
}

#infoBtn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid red;
  border-radius: 50%;
  color: red;
  font-weight: bold;
  font-size: 30px;
  line-height: 44px;
  cursor: pointer;
  user-select: none;
  z-index: 10001;
  text-align: center;
  text-shadow: 0 0 6px crimson;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#infoBtn:hover {
  background-color: red;
  color: black;
}

#infoOverlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(10, 0, 0, 0.95);
  color: #ff6666;
  font-family: monospace, sans-serif;
  font-size: 0.85rem;
  padding: 1rem 1.25rem;
  border: 2px solid red;
  border-radius: 8px;
  box-shadow: 0 0 20px crimson;
  z-index: 10002;
  user-select: text;
  display: none;
  line-height: 1.3;
}

#infoOverlay h2 {
  margin: 0 0 0.5rem 0;
  color: #ff3333;
  font-size: 1.1rem;
  text-align: center;
  text-shadow: 0 0 8px red;
}

#infoOverlay h3 {
  margin: 0.7rem 0 0.3rem 0;
  color: #ff4444;
  font-size: 0.95rem;
  border-bottom: 1px solid #ff2222;
  padding-bottom: 2px;
}

#infoOverlay p, #infoOverlay ul {
  margin: 0.3rem 0 0.7rem 0;
  padding-left: 1rem;
}

#infoOverlay ul {
  max-width: 100%;
  width: 900px;       /* wider than before */
  margin: 0 auto;
  padding-left: 1.5rem;
  column-count: 2;    /* split into 2 columns */
  column-gap: 3rem;
  list-style-type: disc;
  overflow-wrap: break-word;
}

#infoOverlay em strong {
  color: #4fc3f7;
  text-shadow: 0 0 8px #4fc3f7;
}

#infoCloseBtn {
  position: absolute;
  top: 4px;
  right: 6px;
  color: #ff4444;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 0 5px red;
  user-select: none;
}

#infoCloseBtn:hover {
  color: #ff2222;
}
