
:root {
  --bg: #000000; 
  --green: #0c4935; 
  --font: "Fira Code", "Courier New", monospace;
}


* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--green);
  font-family: var(--font);
  overflow: hidden;
}


body::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(30deg, transparent 24.5%, rgba(12, 73, 53, 0.1) 25%, rgba(12, 73, 53, 0.1) 25.5%, transparent 26.5%, transparent 74.5%, rgba(12, 73, 53, 0.1) 75%, rgba(12, 73, 53, 0.1) 75.5%, transparent 76.5%),
    linear-gradient(150deg, transparent 24.5%, rgba(12, 73, 53, 0.1) 25%, rgba(12, 73, 53, 0.1) 25.5%, transparent 26.5%, transparent 74.5%, rgba(12, 73, 53, 0.1) 75%, rgba(12, 73, 53, 0.1) 75.5%, transparent 76.5%),
    linear-gradient(30deg, transparent 24.5%, rgba(12, 73, 53, 0.1) 25%, rgba(12, 73, 53, 0.1) 25.5%, transparent 26.5%, transparent 74.5%, rgba(12, 73, 53, 0.1) 75%, rgba(12, 73, 53, 0.1) 75.5%, transparent 76.5%),
    linear-gradient(150deg, transparent 24.5%, rgba(12, 73, 53, 0.1) 25%, rgba(12, 73, 53, 0.1) 25.5%, transparent 26.5%, transparent 74.5%, rgba(12, 73, 53, 0.1) 75%, rgba(12, 73, 53, 0.1) 75.5%, transparent 76.5%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
  pointer-events: none;
  z-index: 0;
}


::-webkit-scrollbar { display: none; }


#loadingScreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--green);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.4em;
  text-shadow: 0 0 8px var(--green);
  z-index: 40;
}

#logOutput {
  flex-grow: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: var(--font);
  background: transparent;
}

#enterPrompt {
  text-align: center;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
}


.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--green);
  margin-left: 6px;
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink { 50% { background: transparent; } }


.showPrompt {
  animation: slideUpFade 1.2s ease-out forwards;
}
@keyframes slideUpFade {
  from {
    opacity: 0;
    visibility: hidden;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}


.fade-out { animation: fadeOut 1s forwards; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }


#introScreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  text-shadow: 0 0 15px var(--green);
  transition: opacity 1s ease-in-out;
  z-index: 35;
}
#introScreen.show { opacity: 1; visibility: visible; }


#asciiArt {
  font-family: var(--font);
  font-size: 15px;       
  line-height: 1.12;    
  margin-bottom: 18px;
  white-space: pre;
  text-align: center;
  color: var(--green);
}


.slow-glow {
  filter: drop-shadow(0 0 12px rgba(12, 73, 53, 0.5));

  animation: slowGlow 3s cubic-bezier(0.4, 0, 0.2, 1) infinite,
             slowPulse 3s ease-in-out infinite,
             slowFlicker 7s infinite;
}

@keyframes slowGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(14, 104, 74, 0.692),
                 0 0 16px rgba(12, 73, 53, 0.25),
                 0 0 24px rgba(12, 73, 53, 0.15);
    opacity: 0.85;
  }

  25% {
    text-shadow: 0 0 14px rgba(16, 116, 82, 0.781),
                 0 0 28px rgba(12, 73, 53, 0.35),
                 0 0 42px rgba(12, 73, 53, 0.25);
    opacity: 0.92;
  }

  50% {
    text-shadow: 0 0 20px rgba(14, 100, 72, 0.842),
                 0 0 40px rgba(12, 73, 53, 0.55),
                 0 0 60px rgba(12, 73, 53, 0.35),
                 0 0 80px rgba(12, 73, 53, 0.2);
    opacity: 1;
  }

  75% {
    text-shadow: 0 0 14px rgba(13, 97, 69, 0.733),
                 0 0 28px rgba(12, 73, 53, 0.35),
                 0 0 42px rgba(12, 73, 53, 0.25);
    opacity: 0.92;
  }
}

@keyframes slowPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slowFlicker {
  0%, 96%, 100% {
    opacity: 1;
  }
  97% {
    opacity: 0.75;
  }
  98% {
    opacity: 0.9;
  }
  99% {
    opacity: 0.85;
  }
}


#introText {
  font-size: 28px;
  letter-spacing: 2px;
  text-align: center;
}

#mainContent {
  display: none; 
  position: fixed;
  inset: 0;
  z-index: 20;
  grid-template-columns: 280px 1fr 280px;
  gap: 18px;
  padding: 28px;
  opacity: 0;
}


#mainContent.fade-in {
  display: grid;
  opacity: 1;
  animation: fadeInMain 1s ease-in forwards;
}
@keyframes fadeInMain {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}


.leftPanel, .centerPanel, .rightPanel {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba#0c493581;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  padding: 16px;
  color: var(--green);
}


.clockBox { text-align: center; padding-top: 6px; }
.bigClock {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba#0c493581;
}
.smallText {
  margin-top: 8px;
  opacity: 0.9;
  font-size: 13px;
  color: var(--green);
  text-shadow: 0 0 6px rgba#0c493581;
}


.terminal {
  height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.01) 0, rgba(255,255,255,0.005) 100%);
  border-radius: 6px;
  overflow: hidden;
}


.term-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.005);
}


.term-body {
  padding: 14px;
  overflow-y: auto;
  position: relative; 
  font-family: var(--font);
  color: var(--green);
  text-shadow: 0 0 6px rgba#0c493581;
  flex: 1;
}

#madeBy {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  font-style: italic;
}




.term-ascii {
  display: block;
  font-size: 13px;
  line-height: 1.0;
  margin: 0 0 12px 0;
  white-space: pre;
  color: var(--green);

  /* Glow filter */
  filter: drop-shadow(0 0 12px rgba(12, 73, 53, 0.5));

  /* Animated glow + pulse + flicker */
  animation: slowGlow 3s cubic-bezier(0.4, 0, 0.2, 1) infinite,
             slowPulse 3s ease-in-out infinite,
             slowFlicker 2s infinite;
}

/* Keyframes for glow effect */
@keyframes slowGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(14, 104, 74, 0.692),
                 0 0 16px rgba(12, 73, 53, 0.25),
                 0 0 24px rgba(12, 73, 53, 0.15);
    opacity: 0.85;
  }
  25% {
    text-shadow: 0 0 14px rgba(16, 116, 82, 0.781),
                 0 0 28px rgba(12, 73, 53, 0.35),
                 0 0 42px rgba(12, 73, 53, 0.25);
    opacity: 0.92;
  }
  50% {
    text-shadow: 0 0 20px rgba(14, 100, 72, 0.842),
                 0 0 40px rgba(12, 73, 53, 0.55),
                 0 0 60px rgba(12, 73, 53, 0.35),
                 0 0 80px rgba(12, 73, 53, 0.2);
    opacity: 1;
  }
  75% {
    text-shadow: 0 0 14px rgba(13, 97, 69, 0.733),
                 0 0 28px rgba(12, 73, 53, 0.35),
                 0 0 42px rgba(12, 73, 53, 0.25);
    opacity: 0.92;
  }
}

/* Pulse effect */
@keyframes slowPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

/* Flicker effect */
@keyframes slowFlicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.75; }
  98% { opacity: 0.9; }
  99% { opacity: 0.85; }
}


.cmd-output {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 92px;
  white-space: pre-wrap;
}



.sys-info {
  font-size: 13px;
  line-height: 1.6;
  color: var(--green);
  border-top: 1px dashed rgba#0c49355e;
  padding-top: 12px;
}


.term-input {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid rgba#0c49355e;
  background: rgba#0c49355e;
}
.term-input .prefix { margin-right: 8px; color: var(--green); font-family: var(--font); }
#terminalInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--green);
  font-family: var(--font);
  font-size: 14px;
}



#matrixCanvas {
  display: none;
  position: absolute;
  left: 66;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5; 
  background: transparent;
}


@media (max-width: 980px){
  #mainContent { grid-template-columns: 1fr; grid-auto-rows: auto; padding: 12px; }
  .leftPanel, .centerPanel, .rightPanel { height: auto; }
  .rightPanel { display: none; }
}

/* === Audio Player Styling === */
.clockBox audio {
  appearance: none;
  width: 150%;
  max-width: 240px;
  height: 36px;
  margin: 1079px auto 0 auto;
  display: block;
  background: rgba#0c49355e;
  border: 1px solid rgba#0c4935;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba#0c493559;
  filter: drop-shadow(0 0 4px rgba#0c493559);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}



.clockBox audio:hover {
  border-color: rgba#0c4935;
  box-shadow: 0 0 14px rgba#0c49355e;
  filter: drop-shadow(0 0 6px rgba#0c493559);
}

/* Try to darken the default controls (some browsers allow partial styling) */
.clockBox audio::-webkit-media-controls-panel {
  background: rgba#0c49355e;
  border-radius: 8px;
}

.clockBox audio::-webkit-media-controls-play-button,
.clockBox audio::-webkit-media-controls-timeline,
.clockBox audio::-webkit-media-controls-current-time-display,
.clockBox audio::-webkit-media-controls-time-remaining-display,
.clockBox audio::-webkit-media-controls-volume-slider {
  filter: brightness(0.8);
}

.clockBox audio::-webkit-media-controls-play-button:hover {
  filter: brightness(1.4);
}

/* === Music Widget === */
/* === Music Widget Responsive === */
.musicWidget {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  max-width: 220px; /* ensures it doesn’t stretch too much */
  margin: 1vh auto;

}

#albumArt {
  width: 80%;
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba#0c49357c;
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#albumArt.playing {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba#0c493580;
}

#audioStatus {
  font-size: clamp(12px, 1.2vw, 14px); /* scales between 12px–14px */
  margin-top: 4px;
  opacity: 0.8;
  text-shadow: 0 0 8px rgba#0c493596;
}

.audioBars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-top: 8px;
}

.audioBars span {
  width: clamp(2px, 0.8vw, 3px);
  height: 6px;
  background: rgba#072e21b2;
  border-radius: 2px;
  animation: barPulse 1.2s ease-in-out infinite;
  animation-play-state: paused;
}

.audioBars span:nth-child(2) { animation-delay: 0.2s; }
.audioBars span:nth-child(3) { animation-delay: 0.4s; }
.audioBars span:nth-child(4) { animation-delay: 0.6s; }
.audioBars span:nth-child(5) { animation-delay: 0.8s; }

@keyframes barPulse {
  0%, 100% { height: 6px; opacity: 0.5; }
  50% { height: 16px; opacity: 1; }
}




/* Smaller screens */
@media (max-width: 980px) {
  .musicWidget {
    max-width: 160px;
    margin: 0 auto;
  }

  #albumArt {
    max-width: 140px;
  }

  .audioBars span {
    width: 2px;
    height: 5px;
  }

  musicWidget audio {
    max-width: 160px;
    height: 28px;
  }
}

/* === Terminal-style Audio Player === */
.audio-shell {
  width: 120%;
  max-width: 258px;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid rgba#01160f6b;
  background: rgba#000000d0;
  border-radius: 6px;
  box-shadow:
    inset 0 0 12px rgba#00140e62,
    0 0 12px rgba#00110c56;
  backdrop-filter: blur(4px);
}

.audio-shell audio {
  width: 100%;
  height: 28px;
  background: transparent;
  filter: brightness(0.85) contrast(1.1);
}

/* Chromium / WebKit */
.audio-shell audio::-webkit-media-controls-panel {
  background: #000000;
  border-radius: 4px;
}

.audio-shell audio::-webkit-media-controls-play-button,
.audio-shell audio::-webkit-media-controls-mute-button {
  filter: invert(1) brightness(1.4);
}

.audio-shell audio::-webkit-media-controls-timeline {
  filter: brightness(0.9);
}

.audio-shell audio::-webkit-media-controls-current-time-display,
.audio-shell audio::-webkit-media-controls-time-remaining-display {
  color: #0c4935;
  font-family: var(--font);
  font-size: 11px;
}

/* Firefox */
.audio-shell audio {
  accent-color: rgba#0c4935;
}

/* Hover glow */
.audio-shell:hover {
  box-shadow:
    inset 0 0 16px rgba#0c493586,
    0 0 18px rgba#0c49355b;
  border-color: rgba#0c4935;
}



/* === Playlist === */
.playlist {
  width: 100%;
  max-width: 200px;
  margin-top: 660px;
  text-align: left;
  font-size: 12px;
}

.playlist-title {
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-bottom: 50px;
}

#playlist {
  list-style: none;
  padding: 50px;
  margin: 50px;
  margin-top: 90px;
  max-height: -90px;
  overflow-y: auto;
}

#playlist li {
  padding: 6px 8px;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#playlist li:hover {
  opacity: 1;
  background: rgba#0c4935b0;
}



#albumArt {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#albumArt.changing {
  opacity: 0;
  transform: scale(0.95);
}

#playlist {
  position: relative;
  transform: translateY(40px);
}
.musicWidget {
  display: flex;
  flex-direction: column;
}

#playlist {
  margin-top: 70px;
}

#playlist li {
  background: transparent;
  border: none;
  outline: none;
}

#playlist li.active {
  background: transparent;
  border: none;
  box-shadow: none;
}

.leftPanel { position: relative; }



.globeBox {
  position: relative;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(12, 73, 53, 0.3);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0);
  text-align: center;
}

.globeBox svg {
  width: 100%;
  height: 100%;
  background: transparent;
}

.systemStatus {
  position: relative;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(12, 73, 53, 0.3);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0);
  text-align: left;
}

.statusItem {
  margin-bottom: 8px;
  clear: both;
  overflow: hidden;
}

.statusItem:last-child {
  margin-bottom: 0;
}

.statusLabel {
  display: inline-block;
  font-weight: bold;
}

.statusValue {
  display: inline-block;
  font-weight: bold;
}

.threatScanner {
  position: relative;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(12, 73, 53, 0.3);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0);
  text-align: center;
}

.radarContainer {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.radarCircle {
  position: relative;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(12, 73, 53, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 73, 53, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  overflow: hidden;
}

.radarSweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(12, 73, 53, 0.8) 50%, rgba(12, 73, 53, 0.2) 100%);
  transform-origin: left center;
  animation: radarSweep 3s linear infinite;
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radarGrid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.radarRing {
  position: absolute;
  border: 1px solid rgba(12, 73, 53, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radarRing:nth-child(1) {
  width: 30px;
  height: 30px;
}

.radarRing:nth-child(2) {
  width: 60px;
  height: 60px;
}

.radarRing:nth-child(3) {
  width: 90px;
  height: 90px;
}

.radarCenter {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(12, 73, 53, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(12, 73, 53, 0.6);
}

.radarBlip {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 68, 68, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

.radarBlip1 {
  top: 30%;
  left: 70%;
  animation: blipPulse 2s ease-in-out infinite;
}

.radarBlip2 {
  top: 60%;
  left: 25%;
  animation: blipPulse 2s ease-in-out infinite 1s;
}

@keyframes blipPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.scannerStatus {
  text-align: left;
}

.playlistBox {
  position: relative;
  margin-top: 20px;
  padding: 25px;
  border: 1px solid rgba(12, 73, 53, 0.3);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0);
  text-align: center;
  width: 100%;
  max-width: 200px;
  box-sizing: border-box;
  min-height: 400px;
}

#playlist {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

#playlist li {
  padding: 12px 15px;
  margin-bottom: 8px;
  border: 1px solid rgba(12, 73, 53, 0.2);
  border-radius: 3px;
  background: rgba(12, 73, 53, 0.05);
  color: #0c4935;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.5px;
  opacity: 1;
}

#playlist li:last-child {
  margin-bottom: 0;
}

#playlist li:hover {
  background: rgba(12, 73, 53, 0.15);
  border-color: rgba(12, 73, 53, 0.4);
  box-shadow: 0 0 8px rgba(12, 73, 53, 0.2);
  opacity: 1;
}

#playlist li.active {
  background: rgba(12, 73, 53, 0.25);
  border-color: rgba(12, 73, 53, 0.6);
  box-shadow: 0 0 12px rgba(12, 73, 53, 0.3);
  opacity: 1;
}



