body {
    background: #f7f7f7;
    color: #333;
    text-align: center;
    padding: 0 .3em;
    font-family: "Overpass Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 300;
    line-height: 1.2;
    vertical-align: middle;
    font-style: normal;
}

* {
    box-sizing: border-box;
    user-select: none;
}

.buttonWrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

button,
.button {
    appearance: none;
    backface-visibility: hidden;
    background-color: #2f80ed;
    border-radius: 10px;
    border-style: none;
    box-shadow: none;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: Inter, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    height: 50px;
    letter-spacing: normal;
    line-height: 1.5;
    outline: none;
    overflow: hidden;
    padding: 14px 10px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transform: translate3d(0, 0, 0);
    transition: all .3s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
    width: 48%;
    flex-grow: 1;
}

button:hover,
.button:hover {
    box-shadow: rgba(0, 0, 0, .05) 0 5px 30px, rgba(0, 0, 0, .05) 0 1px 4px;
    opacity: 1;
    transform: translateY(0);
    transition-duration: .35s;
}

button:hover:after,
.button:hover:after {
    opacity: .5;
}

button:active,
.button:active {
    box-shadow: rgba(0, 0, 0, .1) 0 3px 6px 0, rgba(0, 0, 0, .1) 0 0 10px 0, rgba(0, 0, 0, .1) 0 1px 4px -1px;
    transform: translateY(2px);
    transition-duration: .35s;
}

button:active:after,
.button:active:after {
    opacity: 1;
}

button.bad {
    background: coral;
}

button.grey {
    background: grey;
}

button.good {
    background: mediumseagreen;
}

button.special {
    background: mediumpurple;
}

.playerList {
    display: flex;
    flex-wrap: wrap;
}

.playerListPlayer {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
    font-size: .8em;
}

.playerListPlayer > * {
    margin: 0;
}

.playerListPlayer > *:first-child {
    opacity: .7;
    margin-bottom: 4px;
}

.accountBalance {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
    align-items: center;
    justify-content: center;
    border: solid rgba(0, 0, 0, .2) 1px;
    background: #fff;
    border-radius: 300px;
    padding: 10px 20px;
    margin-bottom: 10px;
}

.everythingWrap {
    position: relative;
    transform: scale(1);
    transition: .3s ease-out;
    transition-property: transform, opacity;
}

.accountBalance > * {
    margin: 0;
    transform: translateY(3px);
}

.accountBalance > h3 {
    flex-grow: 1;
    text-align: left;
    opacity: .5;
    transform: translateY(-5px);
}

.accountBalance > h2 {
    font-size: 3em;
}

.backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;;
    right: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 2;
    /*--s: 107px; !* control the size*!*/
    /*--c1: #1c1c1c;*/
    /*--c2: #fbbf09;*/

    /*background:*/
    /*        linear-gradient(135deg,#0000 18.75%,var(--c1) 0 31.25%,#0000 0),*/
    /*        repeating-linear-gradient(45deg,var(--c1) -6.25% 6.25%,var(--c2) 0 18.75%);*/
    /*background-size: var(--s) var(--s);*/
}

.paymentCard {
    display: none;
    position: fixed;
    height: auto;
    max-width: 400px;
    left: 50%;
    top: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    border-radius: 10px;
    border-bottom: solid #cacaca 9px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    z-index: 3;
    overflow: hidden;
    animation: playInCard .2s ease-out forwards;
}

@keyframes playInCard {
    from {
        transform: translate(-50%, 100vh);
    }
}

.paymentInputLabel {
    padding: 1.2em .5em;
    font-weight: bold;
}

.paymentInput {
    appearance: none;
    border: 0;
    font: inherit;
    font-size: 3em;
    background: #f8f8f8;
    color: #333333;
    width: 100%;
    font-weight: bold;
    padding: 15px 10px 10px;
    text-align: right;
    pointer-events: none;
}

.paymentKeypad {
    display: flex;
    flex-wrap: wrap;
}

.paymentKeypad > div {
    width: 33%;
    padding: 12px 3px 8px 3px;
    font-size: 1.8em;
    font-weight: bold;
    flex-grow: 1;
    cursor: pointer;
}

.paymentKeypad > div:hover {
    opacity: .5;
}

body.paying .backdrop {
    display: block;
}

body.paying .paymentCard {
    display: block;
}

body.paying .everythingWrap {
    transform: scale(.94);
    opacity: .8;
}


body.dark {
    background: #000;
    color: #f9f9f9;
}

body.dark .accountBalance {
    background: #000;
    color: #f9f9f9;
    border: solid rgba(0255,255,255, .2) 1px;
}