/* things that affect how objects are laid out */

.loading-overlay {
    position: absolute;
    width: 100vw;
    height: 100vh;
    margin: -35px;
    z-index: 600;
    background-color: var(--theme-bg-under);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.underlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background-color: var(--theme-bg-under);
    z-index: 300;
    position: fixed;
}

.centre-page {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-direction: column;
    width: 1000px;
    max-width: 80vw;
    list-style-position: inside;
    margin: 15px auto;
    padding: 15px;
    text-align: left;
}

.centre-page.stylised {
    background-color: var(--theme-bg-secondary);
    border: 3px solid var(--theme-border);
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.force-whole-page {
    min-height: calc(100% + 25px);
}

/* https://stackoverflow.com/a/12540590 */
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.clearfix {
    display: inline-block;
}

html[xmlns] .clearfix {
    display: block;
}

* html .clearfix {
    height: 1%;
}

.sidebyside {
    display: flex;
}

.sidebyside>*:first-child {
    margin: 5px;
}

.sidebyside>* {
    flex: auto;
    /* flex: 1; */
}


/* stuff for sidebar, navbar, footer */

.external {
    border: 3px solid var(--theme-border);
    background-color: var(--theme-bg-secondary);
    position: fixed;
}


.layoutElem {}

.layoutElem a {
    color: var(--theme-text-primary);
}

.layoutElem a:hover {
    color: var(--theme-text-primary);
}

.layout-forced-special-buttons {
    text-align: left;
    width: 100%;
}



