:root {
    --orange: #ffa531;
    --yellow: #ffea00;
}

html {
    scrollbar-gutter: stable;
}

body {
    background: #000;
    margin: 0;
}

#game-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

canvas {
    position: relative;
    z-index: 1;
}

video {
    height: 100% !important;
    width: 100%;
    position: absolute;
    z-index: -1;
}

a {
    text-align: center;
    text-decoration: none;
    color: var(--orange);
}

a:hover {
    text-decoration: underline;
}

hr {
    width: 100%;
}

.header-link {
    font-size: 2em;
    font-family: "Courier New", serif;
    font-weight: bold;
}

.lime {
    color: lime;
}

.red {
    color: red;
}

.orange {
    color: orange;
}

#subtitle-container {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    z-index: 10;
    pointer-events: none;
    justify-content: center;
    display: flex;
}

#subtitle {
    font-family: Arial;
    text-shadow: 3px 0 0 #000, -3px 0 0 #000, 0 3px 0 #000, 0 -3px 0 #000, 1px 1px #000, -1px -1px 0 #000,
        1px -1px 0 #000, -1px 1px 0 #000;
    text-align: center;
    color: white;
    align-self: flex-end;
    font-size: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    background: black;
    border-bottom: 1px solid white;
    z-index: 999;
    padding: 0.5em 1em;
    height: 37px;
}

.nav-links {
    display: flex;
    gap: 2em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-paragraph {
    font-size: 1.5em;
    text-align: center;
}

.header-paragraph-note {
    font-weight: bold;
}

.faq {
    font-size: 1.5em;
    padding: 0 5em;
}

.faq a {
    font-weight: bold;
}

main {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2em;
    padding: 5em;
    padding-bottom: 2em;
}

.question {
    color: var(--orange);
}

.credits-header {
    font-size: 2.5em;
}

.credits {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.credit-name {
    color: var(--orange);
}

.credit {
    font-size: 1.5em;
}

.credit a {
    font-weight: bold;
}

.notes {
    display: flex;
    flex-direction: column;
    color: white;
    padding: 0 25%;
    font-size: 1.5em;
    gap: 4em;
}

.note {
    display: flex;
}

.note-title {
    width: 200px;
    padding: 1em;
    display: flex;
    align-items: center;
}

.note > div:last-child {
    flex: 1;
}

.keybindings {
    border: 1px solid white;
    padding: 1em;
    gap: 1em;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px 16px;
    align-items: center;
}

.keybind {
    display: contents;
}

.keybind > div:nth-child(1) {
    text-align: center;
}

.keybind > div:nth-child(2) {
    text-align: center;
    margin-right: 5em;
}

.keybind > div:nth-child(3) {
    text-align: right;
}

.button-icon {
    color: white;
    width: 32px;
}

.button-container {
    margin-left: auto;
    margin-right: 2.5em;
}

#settings-button,
#console-button,
#dropdown-button {
    background: black;
    cursor: pointer;
    border: none;
    position: relative;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-inner {
    font-size: 1.5em;
    color: white;
    background: black;
    border: 1px solid white;
    width: 80%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;
    overflow-y: scroll;
    overflow-x: hidden;
}

.modal-inner-row {
    display: flex;
    flex-direction: row;
}

.modal-entry {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1em;
}

.modal-entry-title {
    font-size: 2rem;
    text-align: center;
}

.modal-entry-title.language {
    margin-right: 2em;
}

.keybindings {
    border: 1px solid white;
}

.keybind-button {
    background: black;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    padding: 0.2em;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-entry {
    text-align: center;
    border: 1px solid white;
    cursor: pointer;
}

.language-entry:hover,
.keybind-button:hover,
.reset-keybindings-button:hover {
    background: white;
    color: black;
}

.language-entry.active {
    background: white;
    color: black;
}

.keybind-button.active {
    color: var(--orange);
}

.save-file-button {
    background: black;
    color: white;
    font-size: 1em;
    border: 1px solid white;
    cursor: pointer;
}

.save-file-button:hover {
    background: white;
    color: black;
}

#save-import {
    font-size: 1em;
    border: 1px solid white;
    width: 100%;
}

.modal-error-msg {
    color: red;
    display: none;
}

.guide-text {
    font-size: 1.5em;
}

.reset-keybindings-button {
    background: black;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    font-size: 1em;
}

#loading {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    color: white;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.console-modal-wrapper {
    background: black;
    border: 1px solid white;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.console-modal-header {
    padding: 20px;
    border-bottom: 1px solid white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: black;
    gap: 2em;
}

.console-modal-title {
    margin: 0;
    color: var(--orange);
    font-size: 2em;
    font-family: "Courier New", serif;
    font-weight: bold;
}

.console-modal-controls {
    display: flex;
    gap: 10px;
}

.console-log-entry {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.4;
    color: white;
}

.console-log-entry:last-child {
    border-bottom: none;
}

.console-log-entry.error {
    background-color: #1a0000;
    border-left: 4px solid red;
}

.console-log-entry.warn {
    background-color: #1a1000;
    border-left: 4px solid var(--orange);
}

.console-log-timestamp {
    color: #888;
    font-size: 11px;
    margin-bottom: 4px;
}

.console-log-type {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    margin-right: 8px;
    border: 1px solid;
}

.console-log-type.error {
    background-color: black;
    color: red;
    border-color: red;
}

.console-log-type.warn {
    background-color: black;
    color: var(--orange);
    border-color: var(--orange);
}

.console-log-message {
    color: white;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: none;
}

.console-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: black;
}

.console-control-button {
    background: black;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    padding: 0.2em;
    font-size: 1.5em;
}

.console-control-button:hover {
    background: white;
    color: black;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-style: italic;
    font-family: "Courier New", monospace;
}

.badge {
    background-color: black;
    border: 1px solid red;
    color: red;
    padding: 2px;
    font-size: 1.2em;
    position: absolute;
    right: 0;
    bottom: 0;
}

.editor-key {
    text-align: center;
}

.editor-button {
    background: black;
    color: white;
    font-size: 1em;
    border: 1px solid white;
    cursor: pointer;
}

.editor-button:hover {
    background: white;
    color: black;
}

.editor-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.7em;
    margin: auto;
}

.editor-hr {
    width: 100%;
}

.modal-entry.editor {
    padding: 0 6.5em;
}

.editor-table {
    display: flex;
    flex-direction: row;
    border: 1px solid white;
}

.editor-polytan {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.editor-polytan-row {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    justify-content: center;
}

.editor-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.editor-col.left {
    border-right: 1px solid white;
}

.modal-tabs {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    padding-bottom: 1em;
}

.modal-tab {
    border: 1px solid white;
    cursor: pointer;
    padding: 0.2em;
}

.modal-tab.active {
    background: white;
    color: black;
}

.modal-tab:hover {
    background: white;
    color: black;
}

#save-file-modal,
#save-editor-modal {
    display: none;
}

.wheel {
    position: absolute;
    width: 300px;
    height: 300px;
    pointer-events: none;
    border: 1px solid white;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 100%;
    background: black;
}

.wheel.active {
    transform: translate(-50%, -50%) scale(1);
}

.emote-slot {
    position: absolute;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.2s ease;
}

.emote-slot.active {
    transform: translate(-50%, -50%) scale(1.3);
}

.emote-slot > img {
    width: 100%;
}

#settings-button {
    color: var(--yellow);
}

#settings-button:hover {
    text-decoration: underline;
}
