:root {
  --console-font: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: black;
  color: #ccc;
  font-family: var(--console-font);
  font-synthesis: none;
  overflow-x: auto;
}

#environment {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
}

#apple-desktop {
  background-image: url('/img/appleBackground.jpg');
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  width: 1124px;
  height: 850px;
  border-radius: 10px;
}

.mac-window {
  position: absolute;
}

.mac-window:focus-visible {
  outline: 2px solid #5fde5f;
  outline-offset: 4px;
}

.window-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 30px;
  width: 100%;
  cursor: grab;
  touch-action: none;
}

.dragging .window-bar {
  cursor: grabbing;
}

#mac-hd-window {
  width: 556px;
  height: 566px;
  background-image: url('/img/macHDFocus.jpg');
  background-repeat: no-repeat;
  left: 15px;
  top: 100px;
}

#the-king-window {
  display: none;
  width: 600px;
  height: 620px;
  background-image: url('/img/theKingFocus.jpg');
  background-repeat: no-repeat;
  left: 50px;
  top: 130px;
  text-align: center;
}

#the-king-video {
  margin-top: 40px;
  max-width: 100%;
}

.mac-audio-indicator {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.85);
  color: #5fde5f;
  font-family: var(--console-font);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(95, 222, 95, 0.6);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9) inset,
    0 6px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  user-select: none;
}

.mac-audio-indicator::before {
  content: '●';
  font-size: 10px;
  line-height: 1;
  animation: mac-audio-indicator-pulse 1.2s steps(2, jump-none) infinite;
  opacity: 0.6;
}

.mac-audio-indicator[hidden] {
  display: none;
}

@keyframes mac-audio-indicator-pulse {
  0%,
  49% {
    opacity: 0.25;
  }
  50%,
  100% {
    opacity: 1;
  }
}

#the-king-blur {
  background-image: url('/img/theKingBlur.jpg');
  width: 600px;
  height: 620px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  display: none;
  transition: opacity 150ms ease-in-out;
}

@media (max-width: 1180px) {
  body {
    overflow-x: scroll;
  }
}
