
:root {
  --bg: #000;
  --green: #ffffff; 
  --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(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px;
  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);
  text-shadow: 0 0 10px rgba(255,255,255,0.85);
}


.slow-glow {
  animation: slowGlow 2.5s ease-in-out infinite alternate;
}
@keyframes slowGlow {
  0% {
    text-shadow: 0 0 8px rgba(255,255,255,0.6),
                 0 0 16px rgba(255,255,255,0.15);
    opacity: 0.95;
  }
  50% {
    text-shadow: 0 0 28px rgba(255,255,255,0.95),
                 0 0 48px rgba(255,255,255,0.2);
    opacity: 1;
  }
  100% {
    text-shadow: 0 0 8px rgba(255,255,255,0.6),
                 0 0 16px rgba(255,255,255,0.15);
    opacity: 0.95;
  }
}


#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(255,255,255,0.04);
  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(255,255,255,0.9);
}
.smallText {
  margin-top: 8px;
  opacity: 0.9;
  font-size: 13px;
  color: var(--green);
  text-shadow: 0 0 6px rgba(255,255,255,0.7);
}


.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(255,255,255,0.85);
  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);
  text-shadow: 0 0 8px rgba(255,255,255,0.75);
}


.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(255,255,255,0.03);
  padding-top: 12px;
}


.term-input {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.01);
}
.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(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.15));
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}



.clockBox audio:hover {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 0 14px rgba(255,255,255,0.25);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.25));
}

/* Try to darken the default controls (some browsers allow partial styling) */
.clockBox audio::-webkit-media-controls-panel {
  background: rgba(255,255,255,0.05);
  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(255,255,255,0.25);
  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(255,255,255,0.4);
}

#audioStatus {
  font-size: clamp(12px, 1.2vw, 14px); /* scales between 12px–14px */
  margin-top: 4px;
  opacity: 0.8;
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.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(255,255,255,0.5);
  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(255,255,255,0.08);
  background: rgba(0,0,0,0.6);
  border-radius: 6px;
  box-shadow:
    inset 0 0 12px rgba(255,255,255,0.05),
    0 0 12px rgba(255,255,255,0.15);
  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: rgba(0,0,0,0.85);
  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: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.7);
  font-family: var(--font);
  font-size: 11px;
}

/* Firefox */
.audio-shell audio {
  accent-color: white;
}

/* Hover glow */
.audio-shell:hover {
  box-shadow:
    inset 0 0 16px rgba(255,255,255,0.08),
    0 0 18px rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.25);
}



/* === 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(255,255,255,0.05);
}



#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: absolute;
  top: 90px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  opacity: 0.85;
  pointer-events: none;
  background: transparent;
}

.globeBox svg {
  width: 100%;
  height: 100%;
  background: transparent;
}



