html, body {
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    position: fixed;
    inset: 0;
}

html {
    font-family: "myriad-pro";
    font-weight: 400;
    color: rgb(211, 211, 211);
    image-rendering: pixelated;
}

.row {
    display: flex;
    flex-direction: row;
}
.column {
    display: flex;
    flex-direction: column;
}
.hidden {
    display: none !important;
}

.error {
    color: #ff6b6b;
    margin: 3px;
}

.playerlist {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    overflow: scroll;
    max-height: 80vh;
}
.playerlist div:not(.slot) {
    display: flex;
    justify-content: center;
    align-items: start;

    padding: 4px;
    margin-bottom: -16px;
}
.playerlist .group {
    display: flex;
    flex-direction: column;
}
.playerlist p {
    font-size: 18px;
    padding: 8px;
}
.playerlist label {
    font-size: 16px;
    padding: 8px;
}
.playerlist canvas {
    width: 110px;
    height: 110px;
}
.playerlist > div:not(:last-child) {
    position: relative;
    padding-bottom: 24px;
    margin-bottom: 8px;
}
.playerlist > div:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    background: url(../assets/ui/seperator.png) repeat-x;
    background-size: 120px;
}
@media (max-width: 800px), (any-pointer: coarse) {
    .playerlist {
        max-height: calc(90vh - 10rem);
        max-width: calc(90vw - 3rem);
    }
    .playerlist > div:not(.slot) { justify-content: flex-start; }
}

.preview_slot {
    width: 200px;
    height: 200px;

    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;

    margin-bottom: -1rem;
}

.top_right {
    top: 1rem;
    right: 1rem;
    position: absolute;

    display: flex;
}

.top_left {
    top: 1rem;
    left: 1rem;
    position: absolute;

    display: flex;
}

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

    display: flex;
    flex-direction: column;
}

.group {
    margin-top: 8px;
    display: flex;
    gap: 0;
    width: 100%;
}
.group > * {
    flex: 0 0 50%;
    min-width: 0;
    box-sizing: border-box;
}

.label {
    font-family: "myriad-pro";
    font-size: 1.25rem;
    font-weight: 400;

    background-color: transparent;
    color: rgba(255,255,255,0.6);
    position: relative;

    border: none;
    outline: none;
}

.blank_button {
    background-color: transparent;
    border: none;
    width: 4rem;
    min-height: 4rem;
}
.blank_button span {
    display: inline-block;
}

.button, .img_button {
    font-family: "myriad-pro";
    font-weight: 400;
    font-size: 1rem;
    color: rgb(211, 211, 211);

    margin: 3px;
    min-width: 8rem;

    background-color: #636363;
    border-image: url("../assets/ui/border.png") 9 / 9px / 0 round;
    padding: 6px;
    border-width: 12px;
    border-style: solid;
    box-sizing: border-box;
    image-rendering: pixelated;
}
.button:hover, .img_button:hover {
    color: #eee;
    background-color: #535353;
}

.img_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 8px;
}

.img_button span {
    display: inline-block;
    flex-shrink: 0;
    margin: 0 10px 0px 15px;
}

.bordered, .button, .panel {
    background-color: #636363;
    border-image: url("../assets/ui/border.png") 9 / 9px / 0 round;
    padding: 6px;

    border-width: 12px;
    border-style: solid;
    box-sizing: border-box;
    image-rendering: pixelated;
}

.extrusion, .panel button:not(.slot_sprite), .panel select {
    font-family: "myriad-pro";
    font-weight: 400;

    color: white;
    background-color: #777;

    display: flex;
    justify-content: center;

    border-image: url("../assets/ui/health_border.png") 9 / 9px / 0
        round;
    border-width: 12px;
    border-style: solid;
    outline: none !important;
}

.extrusion:hover, .panel button:hover, .panel select:hover {
    background-color: #888;
}

.extrusion:active, .panel button:active, .panel select:active {
    background-color: #555;
}

.intrusion, .panel input {
    font-family: "myriad-pro";
    font-weight: 400;
    font-size: 1rem;
    color: rgb(211, 211, 211);
    position: relative;

    display: flex;
    box-sizing: content-box;
    justify-content: center;

    background-color: #525252;
    border-image: url("../assets/ui/slot_border.png") 4 / 4px / 0 round;
    border-width: 4px;
    border-style: solid;
    outline: none;
}

.strong_input {
    font-family: "myriad-pro";
    font-weight: 400;
    font-size: 1rem;

    color: black !important;
    background-color: white !important;

    display: flex;
    box-sizing: content-box;
    justify-content: center;
    border-image: url("../assets/ui/text_input_border.png") 9 / 9px / 0
        round !important;
    border-width: 12px;
    border-style: solid;
    outline: none !important;
}

.panel {
    min-width: 22vw;
    margin: 3px;

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

#leaderboard .panel, #graveyard .panel { padding-inline: 0; }

.panel h3 {
    margin-right: auto;
    margin-top: 4px;
    margin-left: 4px;
    margin-bottom: 18px;
}

.panel input {
    margin-top: 8px;
    width: 95%;
    padding: 4px;
}
.panel .strong_input {
    margin-top: 0px;
}
