* {
    box-sizing: border-box;
}

html, body {
    background: black;
    margin: 0;
    padding: 0;
    color: var(--color);
    font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
    font-size: 3vh;
    width: 100%;
    height: 100%;
    user-select: none;
    word-break: keep-all;
    --color: #eee;
    --background-color: #222;
}

body {
    padding: 2vh;
}

header {
    text-align: center;
    margin-bottom: 2vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header > div {
    margin: 1vh 0;
}

#headline {
    font-weight: bold;
    font-size: 4vh;
}

#subtitle {
    font-size: 3vh;
    opacity: 0.5;
}

#description-toggle, #expand-collapse-all {
    font-size: 2vh;
    opacity: 0.5;
    cursor: pointer;
    text-decoration: line-through;
    background-color: var(--background-color);
    padding: 1vh;
    border-radius: 1vh;
    width: fit-content;
}

#description-toggle:hover, #expand-collapse-all:hover {
    opacity: 1;
}

#description-toggle.on, #expand-collapse-all {
    text-decoration: unset;
}

#settings {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    max-width: 100%;
}

#settings.expand {
    flex-wrap: wrap;
}

#settings .setting-category {
    background-color: var(--background-color);
    padding: 1vh;
    border-radius: 1vh;
    text-align: center;
    transition: opacity 0.1s;
    justify-content: center;
    align-items: center;
    flex: 1;
    flex-direction: column;
    display: flex;
}

#settings .setting-category:not(.expand) div:not(.setting-category-header) {
    display: none;
}

#settings .setting-subcategory-header {
    opacity: 0.1;
    border-top: 0.2vh solid white;
    width: 100%;
    margin-top: 2vh;
    margin-bottom: 1vh;
    font-size: 2vh;
    text-transform: uppercase;
}

#settings .setting {
    cursor: pointer;
    opacity: 0.25;
    margin: 1vh;
}

#settings .setting:is(.on, .preset) {
    opacity: 0.65;
}

#settings .setting.preset .setting-header::after {
    display: none;
}

#settings .setting .setting-header::after {
    display: inline-block;
    content: "\2717";
    width: 3vh;
    height: 3vh;
    line-height: 3vh;
    margin-left: 1vh;
    border: 0.3vh solid transparent;
}

#settings .setting.on .setting-header::after {
    content: "\2713";
}

#settings .setting.loading {
    cursor: wait;
    opacity: 0.1;
}

#settings .setting.loading .setting-header::after {
    content: "\200B";
    border: 0.3vh solid var(--color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: rotating 1s linear infinite;
}

#settings .setting:not(.loading):hover {
    opacity: 1;
}

#settings .setting .image-wrapper {
    display: flex;
    align-content: center;
    justify-content: center;
}

#settings .setting .image-wrapper img {
    display: block;
    width: auto;
    height: 10vh;
    border-radius: 1vh;
    border: 0.2vh solid white;
    background: #ffffff10;
}

#settings .setting-category .setting-category-header {
    cursor: pointer;
    font-size: 4vh;
    font-weight: bold;
    opacity: 0.5;
}
#settings .setting-category .setting-category-header:hover,
#settings .setting-category.expand .setting-category-header {
    opacity: 1;
}

#settings .setting-category .setting-description {
    display: none;
    font-size: 1.5vh;
    opacity: 0.65;
    text-align: justify;
    text-align-last: center;
}

#settings.show-descriptions .setting-category .setting-description {
    display: block;
}

footer {
    text-align: right;
    margin: 2vh;
}

a, a:visited, a:hover, a:active {
    opacity: 0.5;
    text-decoration: none;
    color: var(--color);
}

a:hover {
    opacity: 1;
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}