@font-face {
    font-family: "themevck";
    src: url("../font/themevck.ttf");
}

@font-face {
    font-family: "basis33";
    src: url("../font/basis33.ttf");
}

.terminal-main {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 4px;

    width: 50vw;
    height: 70vh;

    background-image: url("../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    image-rendering: pixelated;
    box-shadow: 0 0 8px rgba(0, 0, 0, 1);
    outline: 2px solid #cccccc;
}

.terminal-main ::selection {
    background-color: rgba(255, 255, 255, 0.25);
}

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

    padding: 4px 4px 0 4px;

    cursor: grab;
}

.terminal-title {
    margin: 0;

    color: white;
    font-family: themevck, sans-serif;
    font-size: 18px;
    text-shadow: 1px 1px 2px black;

    user-select: none;
}

.terminal-display {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;

    padding: 8px 8px 16px 8px;

    background-color: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.4);

    color: white;
    font-family: basis33, monospace;
    font-size: 20px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}

.terminal-display pre {
    margin: 0;

    width: fit-content;

    white-space: pre-wrap;

    font-family: basis33, monospace;
}

.terminal-display::-webkit-scrollbar {
    display: none;
}

.terminal-display-section {
    display: flex;
    flex-direction: column;
    gap: 8px;

    width: fit-content;

    padding: 1rem;

    background-image: url("../img/ui_background.png");
    background-repeat: repeat;
    background-size: 128px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    outline: 1px solid #cccccc;
}

.terminal-input {
    width: 100%;
    box-sizing: border-box;

    padding: 4px;

    border: none;
    outline: none;

    background-color: rgba(0, 0, 0, 0.35);

    color: white;
    font-family: basis33, monospace;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

.terminal-input:hover, .terminal-input:focus {
    background-color: rgba(0, 0, 0, 0.45);
}

.terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.terminal-autocomplete {
    position: absolute;
    left: 0;
    top: 0;

    max-height: 50vh;
    overflow: auto;

    display: none;
    flex-direction: column;

    background-color: #414141;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.terminal-autocomplete p {
    margin: 0;
    padding: 4px 2px;

    color: white;
    font-family: basis33, monospace;
    font-size: 18px;

    cursor: pointer;
    user-select: none;
}

.terminal-autocomplete-tab {
    background-color: rgba(255, 255, 255, 0.25);
}

.terminal-autocomplete p:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.terminal-sprite {
    width: 8rem;
    image-rendering: auto;

    user-select: none;
}

.terminal-clickable:hover {
    filter: brightness(80%);
}