* {
    padding: 0;
    margin: 0;
    font-family: sans-serif;
}

header {
    padding: 5px;
}

main {
    padding: 5px;
}
code {
    background: #eee;
    padding: 5px;
    border-radius: 5px;
    white-space: pre;
}
code.block {
    display: block;
}

.page-selection {
    display: flex;
    gap: 5px;
    margin: 5px 0;
}
.page-option {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #222;
    color: #f2f2f2;
    border: none;
    border-radius: 5px;
    padding: 5px;
}

.control_bar {
    display: flex;
    width: max-content;
    border-top: solid 0.5px #aaa;
    border-left: solid 0.5px #aaa;
    border-right: solid 0.5px #aaa;
}
.control_bar-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: solid 0.5px #aaa;
    border-left: solid 0.5px #aaa;
    border-right: solid 0.5px #aaa;
    background: #fff;
    padding: 5px;
    color: #000;
}

table {
    width: 100%;
    background: #aaa;
    border-spacing: 1px;
}
th {
    background: #faa;
    padding: 2px;
}
td {
    background: #fff;
    padding: 2px;
}

.document-button {
    margin: 5px;
}

.document-dialog {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    height: 100dvh;
    width: 100dvw;
    text-align: left;
    border: none;
    padding: 10px;
    box-sizing: border-box;
    overflow: scroll;
}
.document-dialog-header {
    display: flex;
    align-items: center;
}
.document-dialog-header-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.document-dialog-header-item-title {
    flex: 1;
}

.document-block {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
}
.document-block * {
    text-align: left;
}
.document-content {
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    flex: 1;
    flex-direction: column;
}
.document-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.document-menu-button {
    display: block;
    border: solid 2px #aaa;
    background: #fff;
    border: none;
    color: #000;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
}
.document-menu-button[data-selected=true] {
    background: #aaa;
    color: #fff;
}
.document-data {
    display: block;
    border: solid 2px #aaa;
    background: #fff;
    border-radius: 0 0 5px 5px;
    width: 100%;
    flex: 1;
    padding: 5px;
    box-sizing: border-box;
    overflow: scroll;
    font-size: 16px;
}
#document-data {
    display: none;
}
.red {
    background: #f55;
}
.aqua {
    background: #5ff;
}
.yellow {
    background: #ff5;
}

.loading-dialog {
    position: fixed;
    top: calc(50vh - 100px);
    left: calc(50vw - 100px);
    border: none;
    box-shadow: 0 0 3px #aaa;
    height: 200px;
    width: 200px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-sizing: border-box;
}
.loading-box {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    height: 200px;
    width: 200px;
}
.loading-bar {
    border: none;
    border-radius: 5px;
    width: 100%;
    height: 10px;
    background: #fcc;
    color: #f00;
}
.loading-bar::-webkit-progress-bar {
    background-color: #fed;
}
.loading-bar::-webkit-progress-value {
    background-color: #fa0;
}
.loading-icon {
    height: 80px;
    width: 80px;
    border-radius: 40px;
    border: solid 2px #fa0;
    box-sizing: border-box;
    animation: loading 1.5s infinite;
}
@keyframes loading {
    0% {
        height: 80px;
        width: 80px;
        border-radius: 40px;
    }
    50% {
        height: 60px;
        width: 60px;
        border-radius: 30px;
    }
    100% {
        height: 80px;
        width: 80px;
        border-radius: 40px;
    }
}
.loading-status {
}

footer {
    padding: 5px;
}

.textures {
    display: none;
}