/**
 * @file
 * Basic styling for the program.
 */
body {
  background: #000;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 3%;
  pointer-events: all;
  box-sizing: border-box;
}

#brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-right: 24px;
}

#logo {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}

.logo-git {
  color: #4a93f2;
  text-shadow:
    0 0 10px rgba(0, 212, 255, 0.7),
    0 0 22px rgba(0, 212, 255, 0.35);
}

#tagline {
  font-family: 'Roboto Mono', monospace;
  font-weight: 300;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

#topnav a {
  font-family: 'Roboto Mono', monospace;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
  margin-top: 5px;
  display: none;
}

#topnav a:hover {
  text-decoration: underline;
}

#overlay {
  position: fixed;
  top: 50%;
  left: 3%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

#overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#overlay li {
  font-family: 'Roboto Mono', monospace;
  font-weight: 300;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
  padding-left: 12px;
  /*border-left: 2px solid rgba(255, 255, 255, 0.25);*/
}

#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    visibility 0s linear 0s;
}

#loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0s linear 0.4s;
}

#loader span {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(74, 147, 242, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(74, 147, 242, 0.24);
  animation: spin 0.9s linear infinite;
}

#email-footer {
  filter:
    blur(0.55px)
    drop-shadow(0 0 18px rgba(0, 0, 0, 0.9));
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

#email-footer img {
  display: block;
  width: min(130px, 56vw);
  height: auto;
  opacity: 0.82;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.9));
}

#audio-toggle {
  position: fixed;
  right: 3%;
  bottom: 24px;
  z-index: 10;
  display: grid;
  place-items: center;
  border-radius: 5px;
  width: 32px;
  height: 32px;
  border: 0px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.78);
  padding: 0;
  cursor: pointer;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}

#audio-toggle:hover,
#audio-toggle[aria-pressed="true"] {
  border-color: rgba(74, 147, 242, 0.62);
  color: #ffffff;
}

.audio-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.audio-icon path:first-child {
  fill: currentColor;
  stroke: none;
}

.audio-slash {
  display: none;
}

#audio-toggle[aria-pressed="false"] .audio-wave {
  display: none;
}

#audio-toggle[aria-pressed="false"] .audio-slash {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  #topnav {
    gap: 18px;
    padding: 14px 4%;
  }

  #brand {
    gap: 10px;
    margin-right: 0;
  }

  #logo {
    font-size: 16px;
  }

  #tagline {
    font-size: 9px;
  }

  #email-footer {
    bottom: 18px;
  }

  #email-footer img {
    width: min(220px, 52vw);
  }

  #audio-toggle {
    right: 4%;
    bottom: 18px;
    width: 34px;
    height: 34px;
  }
}
