@font-face {
  font-family: "noto_font";
  src: url("../fonts/NotoSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "morse_arabic";
  src: url("../fonts/NotoSansArabic-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "morse_hebrew";
  src: url("../fonts/NotoSansHebrew-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "morse_devanagari";
  src: url("../fonts/NotoSansDevanagari-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "morse_jp";
  src: url("../fonts/NotoSansJP-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "morse_kr";
  src: url("../fonts/NotoSansKR-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "morse_thai";
  src: url("../fonts/NotoSansThai-Regular.ttf") format("truetype");
}

:root {
  --hud_top: 12px;
  --hud_side: 12px;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #020208;
    font-family: "noto_font", sans-serif;
    color: var(--text_color);
}

#glcanvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#message-container {
    color: #00ffcc;
    overflow-y: auto;
    position: relative;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    min-height: 0;
    max-height: 100%;
    width: 100%;
}

.pissed {
    font-family: "piss_font", sans-serif;
}

@keyframes subtlePulse {
    from {
        box-shadow: 0 0 15px rgba(0, 255, 204, 0.1), inset 0 0 10px rgba(0, 255, 204, 0.05);
    }

    to {
        box-shadow: 0 0 25px rgba(0, 255, 204, 0.4), inset 0 0 20px rgba(0, 255, 204, 0.2);
    }
}

.hud-button {
    cursor: pointer;
}

.hud-text {
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
}

#zone-dials {
  display: flex;
  gap: 15px;
}

.dial {
  appearance: none;
  -webkit-appearance: none;
  background: var(--highlight_color);
  border: 0px solid black;
  padding: 2px 12px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease-in-out;
  color: var(--text_color);
  min-width: 40px;
  text-align: center;
  font-family: monospace;
  border-radius: 4px;
}

.dial:hover {
  filter: brightness(1.2);
}

#dial-menu {
  position: absolute;
  background: var(--highlight_color);
  border: 0px solid black;
  z-index: 100;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  font-family: monospace;
  border-radius: 5px;
}

.dial-menu-item {
  padding: 5px 10px;
  font-size: 18px;
  color: var(--text_color);
  cursor: pointer;
  text-align: center;
  user-select: none;
}

.dial-menu-item:hover {
    background-color: var(--highlight_contrast);
}

.corner {
    user-select: none;
    gap: 20px;
}

#sound-toggle {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#top-left {
    position: absolute;
    top: var(--hud_top);
    left: var(--hud_side);
    z-index: 10;
}

#echo {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-text {
    display: inline-block;
    animation: ticker linear infinite;
    padding-left: 100px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

#top-right {
    position: absolute;
    top: var(--hud_top);
    right: var(--hud_side);
    z-index: 10;
    display: flex;
}

#top-right-top {
    gap: 20px;
}

#words-container {
    user-select: none;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
    z-index: 10;
}

#zone-map-container {
    min-height: 0;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

#zone-map-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.1s ease-in-out;
}

#zone-map-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0;
    overflow-y: auto;
    padding: 4px;
    flex: 1;
    min-height: 0;
}

.zone-map-btn {
    padding: 8px 0;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    min-width: 42px;
    outline: 1px solid rgb(95, 230, 138);
    border: 4px solid transparent;
    background-clip: padding-box;
    outline-offset: -4px;
}

.zone-map-btn:hover {
    filter: brightness(1.2);
}

@keyframes currentZonePulse {
    from {
        outline-color: #00aaff;
        box-shadow: inset 0 0 2px rgba(0, 170, 255, 0.2);
    }
    to {
        outline-color: #00e5ff;
        box-shadow: inset 0 0 8px rgba(0, 170, 255, 0.8);
    }
}

.zone-map-current {
    animation: currentZonePulse 0.42s infinite alternate ease-in-out;
}

.zone-map-populated {
    box-shadow: inset 0 0 6px #c7ff00;
}

#zone-map-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#zone-map-sekrit-row {
    display: flex;
    gap: 0;
    max-width: 500px;
    flex-wrap: wrap-reverse;
    padding-bottom: 10px;
    user-select: none;
    flex-shrink: 0;
}

#zone-map-sekrit-row .zone-map-btn {
    font-family: noto_font, sans-serif;
    padding: 5px 10px;
}

.hidden {
    display: none !important;
}

.hidden_2 {
    display: none !important;
}

#cover {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@keyframes fadeOut {
    from {opacity: 1;}
    to {opacity: 0;}
}

.fade {
    animation: fadeOut 2200ms ease-out forwards;
}

a.modal-link:hover, a.modal-link:link, a.modal-link:visited {
    color: inherit;
}

a.clean-link:hover, a.clean-link:link, a.clean-link:visited {
    color: inherit;
    text-decoration: none;
}

a.modal-link:hover{
    text-shadow: 0 0 0.18rem currentcolor;
}

a.clean-link:hover {
    text-shadow: 0 0 0.18rem currentcolor;
}

#info {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.info-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.separator {
    opacity: 0.5;
}

#bottom-right {
    position: absolute;
    bottom: var(--hud_top);
    right: var(--hud_side);
    z-index: 10;
}

.disabled {
    text-decoration: line-through;
    opacity: 0.5;
    cursor: pointer;
}

#menu:hover {
    font-weight: bold;
}

@media (max-width: 768px) {
    #top-left {
        top: auto;
        bottom: var(--hud_side);
    }
}

.glow:hover {
    text-shadow: 0 0 0.18rem currentcolor;
}

.flex-row-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.flex-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#top-right-below {
    width: 100%;
    justify-content: flex-end;
}

#updates {
    font-size: 18px;
    max-height: 50vh;
    overflow: auto;
    scrollbar-width: none;
}

#updates::-webkit-scrollbar {
    display: none;
}

.modal-btn {
    background-color: #1d222b;
    font-size: 18px;
    font-family: sans-serif;
    color: white;
    border: 1px solid rgb(52, 52, 52);
    padding: 5px;
    cursor: pointer;
}

.modal-btn:hover {
    border: 1px solid rgb(81, 81, 81);
}

.pre {
    white-space: pre-wrap;
}

.Msg-window {
    background: linear-gradient(135deg, #111118, #1a1a2e) !important;
    color: #00ffcc !important;
    border: 1px solid #00ffcc !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.Msg-content-container {
    display: flex !important;
    flex-direction: column;
}

#settings-container {
    width: 480px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#settings-editor {
    font-family: monospace;
    height: 60vh;
    max-height: 460px;
    border: 1px solid #424242;
    padding: 10px;
    background: #23262c;
    color: #f8f8f2;
    outline: none;
    white-space: pre;
    word-wrap: normal;
    text-align: left;
    cursor: text;
    overflow: auto;
    font-size: 18px;
    box-sizing: border-box;
    width: 100%;
}

.pointer {
    cursor: pointer;
}

#app-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 2147483647;
    opacity: 0;
    transition: opacity 0.05s ease-in-out;
    background-color: rgba(48, 48, 59, 0.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    border: 2px solid rgb(200, 186, 186);
}

#settings-bottom {
    width: 100%;
}

#settings-bottom > button {
    flex-grow: 1;
    flex-shrink: 1;
}

.settings-picker {
    gap: 5px;
    font-size: 18px;
    overflow: auto;
    user-select: none;
    min-width: 120px;
}

.settings-picker-item {
    width: 100%;
    text-transform: capitalize;
    cursor: pointer;
}

.settings-picker-item:hover {
    color: #c4fcea;
}

.Msg-titlebar {
    user-select: none !important;
}

.selected {
    background-color: rgb(58, 80, 110);
}