body {
    background: #2c2c2c;
    color: #aaaaaa;
}

div.content {
    display: flex;
    flex-direction: column;
    margin: 3rem auto 0;
    width: min(950px, 92vw);
}

div.checkbox {
    width: 100%;
}

div.centered-div {
    margin: 0 auto;
    width: fit-content;
    height: fit-content;
}

/* shared border style for box/panel elements */
div.centered-box,
div.add-show,
div.song-request {
    border: thin solid #aaaaaa;
    border-radius: 25px;
    margin-inline: auto;
}

div.centered-box {
    width: min(600px, 100%);
    height: min(600px, 100vw);
    display: grid;
    place-items: center;
}

div.add-show {
    width: 100%;
    height: calc(100vh - 13rem);
    padding: 15px;
    box-sizing: border-box;
}

div.song-request {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

div.columns {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 1rem;
}

div.crates {
    border: thin solid #aaaaaa;
    border-radius: 10px;
    padding: 1rem;
    height: calc(100vh - 13rem);
    overflow-y: auto;
}

div.crate-buttons, div.track-buttons {
    margin-top: 1rem;
}

div.crate-tree {
    margin-bottom: 1rem;
}

button.crate-button {
    width: 49%;
}

input.crate-checkbox {
    margin-right: 1rem;
}

div.tracks {
    border: thin solid #aaaaaa;
    border-radius: 10px;
    padding: 1rem;
    height: calc(100dvh - 13rem);
    overflow-y: auto;
}

span.header {
    font-size: 16pt;
}

ul.tree, ul.tree-child {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.tree-child {
    padding-left: 1.5rem;
}

ul.tree-child li {
    position: relative;
    padding: 0.15rem 0 0.15rem 0.5rem;
}

ul.tree-child li::after {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: var(--line-bottom, 0);
    border-left: 1px solid #aaaaaa;
}

ul.tree-child li.last::after {
    bottom: auto;
    height: 0.75rem;
}

ul.tree-child li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.75rem;
    width: 1rem;
    border-top: 1px solid #aaaaaa;
}

ul.tree-child li span,
ul.tree li > span {
    cursor: pointer;
}

ul.tree-child li span:hover,
ul.tree li > span:hover {
    color: #ffffff;
}

ul.tree li.selected > span,
ul.tree-child li.selected > span {
    color: #ffffff;
}

p, label {
    font-size: 16pt;
}

img.qr-code {
    display: block;
    max-width: 100%;
}

th, td {
    font-size: 12pt;
    padding-inline: 0.25rem;
}

tr.light-background {
    background: #3c3c3c;
}

.centered-text {
    text-align: center;
}

a.centered-button {
    display: block;
    margin: 0 auto;
    width: 75px;
}

button.with-margins {
    margin: 3px;
}

input.gray-text {
    font-size: 16pt;
    background-color: #5c5c5c;
    color: #eeeeee;
    margin-bottom: 1rem;
}

input.gray-text::placeholder {
    color: #aaaaaa;
}

input.submit-button {
    margin-top: 1rem;
}

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#overlay.active {
    display: flex;
}

#hash-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 500px;
}

#hash-filename {
    color: #fff;
    font-size: 14pt;
    text-align: center;
    word-break: normal;
}

#hash-progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#hash-progress-bar {
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 4px;
    transition: width 0.2s ease;
}

#overlay0, #overlay1, #overlay2, #overlay3 {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

#modal, #success-modal, #failure-modal, #rate-limit-modal {
    background: #2c2c2c;
    border-radius: 12px;
    border: solid 1px #aaaaaa;
    padding: 1.5rem;
    width: min(440px, 90vw);
}

thead th {
    position: sticky;
    top: -16px;
    padding-top: 16px;
    background: #2c2c2c;
    z-index: 2;
}

select.gray {
    background: #5c5c5c;
    color: #eeeeee;
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 16pt;
    box-sizing: border-box;
}