:root {
    --royal-purple: #800080;
    --royal-gold: #b29410;
    --background: #ffffff;
    --text-color: #000000;
    --highlight: #a0a0a0;
    --green: green;
}

@media (prefers-color-scheme: dark) {
    :root {
        --royal-purple: #ff80ff;
        --royal-gold: #dcbf3e;
        --royal-gold: #800080;
        --background: #101010;
        --text-color: #ffffff;
        --highlight: #303030;
        --green: green;
    }
}

body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--background);
    color: var(--text-color)
}

button {
    background-color: var(--background);
    color: var(--text-color);
    border-color: var(--highlight);
    border-width: 2px;
    border-radius: 2px;
    border-style: solid;
    margin-top: 1em;
    font-family: 'Courier New', Courier, monospace;
}

button:active {
    background-color: var(--highlight);
    transition: 0.5s;
}

input {
    background-color: var(--background);
    color: var(--text-color);
    border-color: var(--highlight);
    border-width: 1px;
    border-radius: 2px;
    border-style: solid;
    font-family: 'Courier New', Courier, monospace;
}

#content {
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 1em;
}

#bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
    width: 100%;
    overflow: hidden;
}

#bottom_bar {
    background-color: var(--background);
    display: inline-block;
    border-top: var(--highlight) solid 3px;
    width: calc(100% - 2em);
    margin: 0;
    padding: 1em;
    z-index: 2;
}

#loading-bar {
    content: '';
    position: relative;
    top: calc(-1em - 3px);
    left: -1em;
    height: 3px;
    width: 0;

    background: var(--green);
    z-index: 3;
}

.fade-out {
    transition: opacity 0.5s ease;
    opacity: 0;
}

#name_bar {
    float: left;
}

#party_bar {
    float: right;
    text-align: right;
}

#current_party {
    padding-bottom: 1em;
}

.owner {
    color: var(--royal-purple);
    text-shadow: 0px 0px 12px var(--royal-purple);
}

.ready {
    color: var(--green);
    text-shadow: 0px 0px 12px var(--green);
}

.owner.ready {
    color: var(--royal-gold);
    text-shadow: 0px 0px 12px var(--royal-gold);
}

#keypad {
    max-width: 15em;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    /* Move it off-screen */
    transition: visibility 0s 0.25s, opacity 0.25s 0s, transform 0.25s 0s;
    /* You can adjust the time */
}

#keypad.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: visibility 0s 0s, opacity 0.25s 0s, transform 0.25s 0s;
}

#show_keypad {
    visibility: visible;
}

#show_keypad.show {
    visibility: hidden;
}

.button_row {
    width: 100%;
    display: flex;
}

.button {
    flex: 1;
    min-width: calc(20% - 10px);
    height: 0;
    padding-bottom: calc(20% - 10px);
    font-size: 1.6em;
    font-weight: bold;
    margin: 5px;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
}