:root {
  font-family: 'Ubuntu Mono', 'Courier New', Courier, monospace;
  cursor: url('amiga_wb13_normal.png'), pointer;
}

body,
html {
  margin: 0;
  padding: 0;
  background-color: #bbad92;
  color: #2a2a2a;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 94dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

nav {
  background-color: #9b8e76;
  padding: 0.19rem 0.8rem;
  font-size: 1.2rem;
  font-weight: bold;
  user-select: none;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid #9a8b70;
  display: flex;
}

nav a {
  padding: 0.3rem 1rem;
  margin: 0 !important;
}

nav a:hover {
  background-color: #b3a286;
}

#powerIndicator {
  align-self: center;
  margin-left: auto;
  font-size: 0.9rem;
  text-shadow: rgb(214, 19, 19) 0 0 10px;
}

pre {
  display: inline-block;
  width: 90dvw;
  /* height: 90dvh; */
  /* Allow scrolling but hide the scrollbar */
  overflow-y: auto;
  padding: 1rem;
  margin: 0.5rem auto;
  white-space: pre-wrap;
  user-select: text;
  flex-grow: 1;
  cursor: text;
  border: inset 8px #dbceb4;
  box-sizing: border-box;
  border-radius: 3px;
  cursor: url('./amiga_wb13_text.png') 4 9, text;
}

/* Hide scrollbar (Firefox) */
pre {
  scrollbar-width: none;
}

/* Hide scrollbar (WebKit) */
pre::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
}

/* Hidden input for mobile keyboard - positioned off-screen */
#hiddenInput {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  width: 1px;
  height: 1px;
}

@media (max-width: 768px) {
  pre {
    margin: 0rem;
    width: 99%;
    overflow-y: auto;
    font-size: 1.3rem !important;
    line-height: 1.4rem !important;
  }
  #modal {
    width: 90% !important;
    top: 40% !important;
  }
}

nav a {
  color: #2a2a2a;
  text-decoration: none;
  margin-right: 1rem;
}

nav a:hover {
  color: #000;
}

.menu {
  background-color: #b8a989;
  padding: 0.5rem;
  border: solid 2px #8b7d5f;
  color: #2a2a2a;
  font-size: 1.2rem;
  width: 200px;
  position: absolute;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
  display: none;
  cursor: pointer;
  z-index: 10;
  cursor: url('amiga_wb13_normal.png'), pointer;
}

.menuItem {
  padding: 0.5rem 0.5rem;
}

.menuItem:hover {
  background-color: #cebfa5;
  color: #000;
}

hr {
  border: none;
  border-top: 2px solid #8b7d5f;
  margin: 0.5rem 0;
}

.disabled {
  color: #777 !important;
  pointer-events: none;
}

/* Blinking cursor for terminal input */
.cursor {
  animation: blink 1s step-end infinite;
  position: relative;
  top: -0.15em;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Focus outline for accessibility */
pre:focus {
  outline: none;
}

.themeRetroGlow {
  font-family: 'Workbench', 'Courier New', Courier, monospace;
  font-weight: 400;
  letter-spacing: 1px;
  font-style: normal;
  background-color: #000a00;
  color: #31f731;
  font-size: 1.5rem;
  line-height: 1.8rem;
  box-shadow: inset 0 0 60px rgba(0, 255, 0, 0.3), inset 0 0 120px rgba(0, 255, 0, 0.1);
  text-shadow: 0 0 3px #33ff33, 0 0 8px rgba(51, 255, 51, 0.7), 0 0 12px rgba(51, 255, 51, 0.5);
}

/* Reduce glow for input box in retro glow theme */
input.themeRetroGlow {
  box-shadow: inset 0 0 30px rgba(0, 255, 0, 0.2), inset 0 0 60px rgba(0, 255, 0, 0.08);
  text-shadow: 0 0 2px #33ff33, 0 0 5px rgba(51, 255, 51, 0.5);
}

.themeRetroPlain {
  font-family: 'Workbench', 'Courier New', Courier, monospace;
  font-weight: 400;
  letter-spacing: 1px;
  font-style: normal;
  background-color: #000a00;
  color: #31f731;
  font-size: 1.5rem;
  line-height: 1.8rem;
}

.themeSimple {
  font-family: 'Consolas', 'Courier New', Courier, monospace;
  font-weight: 400;
  letter-spacing: 1px;
  font-style: normal;
  background-color: #000000;
  color: #dfdfdf;
  font-size: 1.3rem;
  line-height: 1.3rem;
  padding: 0.4rem;
}

.themeRetroGlowAmber {
  font-family: 'Workbench', 'Courier New', Courier, monospace;
  font-weight: 400;
  letter-spacing: 1px;
  font-style: normal;
  background-color: #110900;
  color: #ffb71d;
  font-size: 1.5rem;
  line-height: 1.8rem;
  box-shadow: inset 0 0 60px rgba(126, 88, 17, 0.4), inset 0 0 120px rgba(122, 84, 14, 0.2);
  text-shadow: 0 0 3px #ffb347, 0 0 8px rgba(255, 165, 0, 0.8), 0 0 12px rgba(255, 165, 0, 0.6);
}

/* Reduce glow for input box in amber theme */
input.themeRetroGlowAmber {
  box-shadow: inset 0 0 30px rgba(126, 88, 17, 0.25), inset 0 0 60px rgba(122, 84, 14, 0.12);
  text-shadow: 0 0 2px #ffb347, 0 0 5px rgba(255, 165, 0, 0.6);
}

#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000000;
  padding: 1rem;
  display: none;
  width: 50%;
  z-index: 20;
  border: 3px solid currentcolor;
  box-shadow: none;
}

#modal button {
  font-family: inherit;
  font-size: inherit;
  cursor: url('amiga_wb13_normal.png'), pointer;
  border: none;
  background-color: #000000;
  color: inherit;
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
}
