html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
/*  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none; */
}

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

#terminal {
    width: 100%;
    height: 100%;
    background-color: #0d0a09;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#initial-view {
    width: 600px;
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;

    gap: 10px;
    font-family: 'The Girl Next Door', monospace;
    color: #D6C3A8;
    letter-spacing: 3px;
    font-size: 1.4rem;
    text-shadow: 0 0 4px #D6C3A8;
    overflow: hidden;

    border: 1px solid #D6C3A8;
    padding: 10px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

#initial-view.goaway,
#acceptance.goaway {
    opacity: 0;
    pointer-events: none;
}

#acceptance {
    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;
    text-align: center;

    color: #9B7655;
    font-family: monospace;
    font-size: 1.3rem;
    gap: 50px;
    margin-top: 20px;

    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

#acceptance a{
    color: inherit;
    text-decoration: none;
}

#acceptance.visible {
    opacity: 1;
    pointer-events: auto;
}

#open-acpt:hover, #deny-acpt:hover {
    background-color: #B96538;
    color: white;
    cursor: pointer;
}

#acceptance span:hover::before, #acceptance a:hover::before {
    content: ">";
}

#acceptance span:hover::after, #acceptance a:hover::after {
    content: "<";
}

/* console/main page time */
#console.visible {
    opacity: 1;
    pointer-events: auto;
}

#console {
    position: absolute;
    width: 600px;
    height: 400px;
    
    display: flex;
    flex-direction: column;

    background-color: #17130F;
    border: 1px solid #130d0a;
    box-shadow:
        inset 0 0 35px #00000066,
        inset 0 0 5px #BDA98E12;

    overflow: visible;

    color: #BDA98E;
    font-family: 'Redaction 70', monospace;
    font-size: 1.2em;
    border-radius: 30px;
    overflow: hidden;
    padding: 15px;

    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

#screen-effects {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;

    background:
        radial-gradient(
            ellipse at center,
            transparent 45%,
            #00000055 100%
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 2px,
            #00000022 3px,
            transparent 4px
        );
}

#beginning-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px dotted #292019;
    margin-top: 20px;
    margin-bottom: 10px;
}

#header {
    display: flex;
    color: #8B765D;
    text-shadow:
        0 1px 2px #000000AA,
        0 0 4px #8B765D33;
    font-size: 1.4em;
    text-align: center;
}

.mini {
    display: flex;
    color: #858568;
    opacity: 0.85;
    font-size: 0.7em;
    text-align: center;
}

#input-container {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
    flex-direction: row;
    gap: 10px;
    color: #C98245;
    text-shadow:
        0 0 3px #C98245,
        0 0 8px #C9824566;
        animation: blink 1s steps(2, start) infinite;

    font-size: 1.0rem;
}

#command-input {
    background: transparent;
    border: none;
    outline: none;
    color: #C98245;
    font-family: inherit;
    font-size: 14px;
    flex: 1;
}

.response {
    white-space: pre-wrap;
    text-shadow: 
        0 0 2px #BDA98E33,
        0 0 5px #BDA98E18;
}

#output{
    color: #BDA98E;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 1.0rem;
    font-weight: bold;
}

.error {
    background-color: #A65332;
    color: #292019;
    text-shadow:
        0 0 3px #A6533244,
        0 0 7px #A6533218;
}

.command-entry {
    margin-bottom: 12px;
}

.previous-command {
    color: #A65332;
    text-shadow: 0 0 2px #A6533222;
    margin-bottom: 12px;
    opacity: 0.65;
}

.music-source {
    color: #858568;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.music-source:hover {
    color: #C98245;
    text-shadow: 0 0 5px #C9824566;
}

/* mobile users */
#mobile-view {
    display: none;
}

@media (max-width: 768px) {

    #initial-view.mobile-hidden {
    border: none;
    }

    #initial-view {
        width: min(90vw, 420px);
    }

    .mobile-hidden {
        display: none;
        pointer-events: none;
    }

    #console {
        width: min(90vw, 480px);
        height: min(65dvh, 400px);
        margin: auto;
        box-sizing: border-box;
    }
    
    #mobile-view {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        font-family: 'Redaction 50', monospace;
        padding: 16px;
        box-sizing: border-box;
    }

    #window {
        width: 100%;
        max-width: 360px;
        max-height: 400px;
        border: 1px solid #684326;
    }

    .windows-header {
        background-color: #382318;
        border-bottom: 1px solid #684326;
        color: #E8D5C0;
        padding: 4px 6px;
        align-items: center;
        gap: 8px;
        font-weight: bold;
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .windows-header img {
        width: 16px;
        height: 16px;
    }

    .window-body {
        padding: 20px 16px;
        font-size: 11px;
        color: #A98A70;
        background-color: #21150F;
        line-height: 1.5;
    }

    .windows-footer {
        padding-left: 10px;
        padding-right: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
        display: flex;
        justify-content: flex-end;
        background-color: #17100C;
        border-top: 1px solid #684326;
        max-height: fit-content;
        color: #715B49;
        font-size: 10px;
        gap: 12px;
        padding-top: 10px;
    }

    .windows-buttons {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        margin-left: 20px;
        justify-content: flex-end;
        min-width: 30px;
        font-size: 10px;
        gap: 12px;
        padding-top: 10px;
    }

    .highlighted {
        background-color: #A96532;
        border: 1px solid #D99A57;
        color: #FFF0DC;
        border-radius: 20%;
        font-family: monospace;
        font-size: 10px;
    }

    .muted {
        background-color: #38271C;
        border: 1px solid #684326;
        border-radius: 20%;
        color: #C6A17E;
        font-family: monospace;
        font-size: 10px;
    }

}