@font-face {
  font-family: "FantasqueSansMono";
  src: url("assets/fonts/FantasqueSansMono-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Theme variables */
:root {
  --color-primary: #64748b;
  --color-secondary: #64748b;
  --color-tertiary: #64748b;
  --color-background: #4a2c4f;
  --color-background-overlay: #081d2dd8;
  --color-accent: #ef4b44;
  --color-danger: #9d174d;
  --color-hover: #8de2d0ac;
  --color-shadow: #1d1e1fb4;
  --color-command: #73abad;
  --color-error: #6d71b9d9;
  --color-white: #fff;
  --color-spotify-bg: #061826a7;
  --color-spotify-border: #ffffff;
  --color-spotify-icon: #ffffff;
  --color-spotify-text: #fff;
  --color-spotify-track-info: #ffffff;
  --background-image: url("assets/wallpaper.png");
  --step--2: clamp(0.7813rem, 0.7747rem + 0.0326vw, 0.8rem);
  --step--1: clamp(0.9375rem, 0.9158rem + 0.1087vw, 1rem);
  --step-0: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
  --step-1: clamp(1.35rem, 1.2761rem + 0.3696vw, 1.5625rem);
  --step-2: clamp(1.62rem, 1.5041rem + 0.5793vw, 1.9531rem);
  --step-3: clamp(1.944rem, 1.771rem + 0.8651vw, 2.4414rem);
  --step-4: clamp(2.3328rem, 2.0827rem + 1.2504vw, 3.0518rem);
  --step-5: clamp(2.7994rem, 2.4462rem + 1.7658vw, 3.8147rem);
  --step-ascii: clamp(1.125rem, 0.916rem + 1.4435vw, 3.0518rem);
}

/* Anime Theme */
.theme-anime {
  --color-primary: #7ae0ca;
  --color-secondary: #519975;
  --color-tertiary: #64748b;
  --color-background: #4a2c4f;
  --color-background-overlay: #081d2dd8;
  --color-accent: #ef4b44;
  --color-danger: #9d174d;
  --color-hover: #8de2d0ac;
  --color-shadow: #1d1e1fb4;
  --color-command: #73abad;
  --color-error: #6d71b9d9;
  --color-white: #fff;
  --color-spotify-bg: #061826a7;
  --color-spotify-border: #7ae0ca;
  --color-spotify-icon: #1db954;
  --color-spotify-text: #fff;
  --color-spotify-track-info: #7ae0ca;
  --background-image: url("assets/438198.webp");
}

a {
  color: var(--color-primary);
}
a:hover {
  color: var(--color-accent);
}

body {
  background-color: var(--color-background);
  background-image: var(--background-image);
  background-attachment: scroll;
  background-size: cover;
  color: var(--color-secondary);
  -moz-text-size-adjust: auto;
  -webkit-text-size-adjust: auto;
  text-size-adjust: auto;
  overflow: hidden;
  font-family: "FantasqueSansMono";
}

.terminal-window {
  border: 1px solid var(--color-primary);
  background-color: var(--color-background-overlay);
  border-radius: 4px;
  width: 100%;
  height: 100%;
  min-height: 98vh;
  max-height: 105vh;
  overflow: hidden;
  box-shadow:
          0 20px 25px -5px var(--color-shadow),
          0 8px 10px -6px var(--color-shadow);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 0 10px;
  position: relative;
  font-size: var(--step-0);
  font-family: "FantasqueSansMono";
}

hr {
  border: 1px ridge var(--color-primary);
}
.centered {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-icon {
  padding-top: 2.5px;
  font-size: 1.25rem;
  color: var(--color-tertiary);
}

.github-icon:hover {
  color: var(--color-accent);
}
.close-icon:hover {
  color: var(--color-danger);
}

.ascii {
  font-family: monospace;
  white-space: pre;
  display: inline-block;
  font-size: var(--step-ascii);
  padding-left: var(--step-2);
  color: var(--color-hover);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  line-height: 1;
}

.name {
  position: relative;
  display: inline-block;
  font-weight: bold;
  color: var(--color-primary);
}
.name::after {
  content: "------------------------------";
  display: block;
  margin-top: 0.5rem;
  width: 100%;
}

.info-item {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.info-item i {
  margin-right: 0.6rem;
  min-width: 1.25rem;
  text-align: center;
}

.link-text {
  padding-left: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.link-text:hover {
  color: var(--color-accent);
}

#contentscroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-y: scroll;
}
.content-container {
  display: flex;
  flex-direction: row;
  gap: 9rem;
  flex-wrap: wrap;
}
.ascii-Hero {
  flex-shrink: 0;
}
.profile-info {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  text-align: left;
  font-size: var(--step--1);
  padding: var(--step-2);
}

@media (max-width: 1015px) {
  .content-container {
    flex-direction: column;
    gap: 0rem;
  }
  .profile-info {
    padding-top: var(--step--2);
  }
  .spotify-panel {
    float: left;
  }
}

/* Terminal input */
#terminal {
  height: 55vh;
  padding-left: var(--step-0);
  font-size: var(--step-0);
}
@media (max-width: 726px) {
  #terminal {
    height: 38vh;
  }
}
#command {
  cursor: text;
  height: 50px;
  color: var(--color-command);
}
.texter {
  position: absolute;
  opacity: 0;
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
}
#liner {
  line-height: 1.3em;
  animation: show 0.5s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}
#liner::before {
  content: "[alex@brain]~$";
}

.cursor {
  font-size: 12px;
  color: var(--color-command);
  background-color: var(--color-command);
  position: relative;
  opacity: 1;
  height: 1.5em;
  width: 10px;
  max-width: 10px;
  transform: translateY(4px);
  overflow: hidden;
  text-indent: -5px;
  display: inline-block;
  text-decoration: blink;
  animation: blinker 1s linear infinite;
}

@keyframes show {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes blinker {
  50% { opacity: 0; }
}

.index { color: #dcdccc; }
.color2 { color: #8285c1f0; }
.command { color: var(--color-command); text-shadow: 0 0 5px var(--color-command);}
.error { color: var(--color-error);}
.white { color: var(--color-white);}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.5rem;
  z-index: 50;
  background: transparent;
  pointer-events: none;
}
.bottom-bar .spotify-panel {
  pointer-events: auto;
  margin: 15px;
}

/* --- Cat-GIF entfernt --- */

/* Spotify styling */
.spotify-panel {
  background-color: var(--color-spotify-bg);
  border: 1px solid var(--color-spotify-border);
  border-radius: 4px;
  padding: 0.5rem;
  position: relative;
  float: right;
  align-items: center;
  font-size: var(--step--1);
  color: var(--color-spotify-text);
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  transition: width 0.3s ease;
  width: fit-content;
  min-width: 0;
}

/* Pixel-Style, kleiner Play/Pause-Button */
.spotify-panel button {
  background: var(--color-background);
  border: 2px solid var(--color-primary);
  border-radius: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 0.5rem;
  box-shadow: 0 0 0 2px var(--color-primary);
  image-rendering: pixelated;
  font-size: 1rem;
  padding: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.spotify-panel button:hover,
.spotify-panel button:focus {
  border-color: var(--color-spotify-icon);
  box-shadow: 0 0 0 2px var(--color-spotify-icon);
  background: var(--color-hover);
}
#play-icon {
  color: #ffffff;
  font-size: 1rem;
  transition: color 0.2s;
  filter: contrast(200%) brightness(0.8);
  image-rendering: pixelated;
}
.spotify-panel button:hover #play-icon,
.spotify-panel button:focus #play-icon {
  color: var(--color-spotify-icon);
}

/* Pixel-Style Volume Slider */
#volume-slider {
  width: 90px;
  height: 16px;
  background: var(--color-background);
  border: 2px solid #ffffff;
  border-radius: 0;
  outline: none;
  margin: 0 5px;
  box-shadow: 0 0 0 2px #ffffff;
  appearance: none;
  -webkit-appearance: none;
  image-rendering: pixelated;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#volume-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: var(--color-tertiary);
  border-radius: 0;
  image-rendering: pixelated;
}
#volume-slider::-moz-range-track {
  height: 8px;
  background: var(--color-tertiary);
  border-radius: 0;
  image-rendering: pixelated;
}
#volume-slider::-ms-fill-lower,
#volume-slider::-ms-fill-upper {
  background: var(--color-tertiary);
  border-radius: 0;
  image-rendering: pixelated;
}
#volume-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border: 2px solid var(--color-spotify-icon);
  border-radius: 0;
  box-shadow: 0 0 0 2px var(--color-spotify-icon);
  image-rendering: pixelated;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s, border-color 0.2s;
}
#volume-slider:focus::-webkit-slider-thumb,
#volume-slider:hover::-webkit-slider-thumb {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}
#volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border: 2px solid var(--color-spotify-icon);
  border-radius: 0;
  box-shadow: 0 0 0 2px var(--color-spotify-icon);
  image-rendering: pixelated;
  transition: background 0.2s, border-color 0.2s;
}
#volume-slider:focus::-moz-range-thumb,
#volume-slider:hover::-moz-range-thumb {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}
#volume-slider::-ms-thumb {
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border: 2px solid var(--color-spotify-icon);
  border-radius: 0;
  box-shadow: 0 0 0 2px var(--color-spotify-icon);
  image-rendering: pixelated;
  transition: background 0.2s, border-color 0.2s;
}
#volume-slider:focus::-ms-thumb,
#volume-slider:hover::-ms-thumb {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}
#volume-slider::-moz-focus-outer {
  border: 0;
}
#volume-slider:focus {
  outline: none;
}

.volume-control label {
  font-family: "FantasqueSansMono";
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-right: 8px;
  letter-spacing: 0.5px;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Lautstärkeregler ausgeblendet: nimmt keinen Platz mehr ein! */
.volume-control.hidden {
  display: none;
}

/* Optional: falls du .spotify-panel.hidden im JS nutzt */
.spotify-panel.hidden {
  width: fit-content;
  padding-right: 1rem;
}
.spotify-panel:not(.hidden) {
  width: fit-content;
}
.volume-control.hidden + .spotify-info {
  flex-grow: 1;
}
