html, body {
    height: 100%;
}

body {
    background-color: white;
    background-image: url("/assets/waterlight.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #1a1923;
    font-family: Verdana;
    
    display: flex;
    flex-direction: column;
    align-content: space-between;
    
    overflow-y: auto;
    overflow-x: auto;
}

@media (max-aspect-ratio: 1/1) {
    #main {
        flex-wrap: wrap;
    }
    
    #index-description {
        flex-wrap: wrap;
    }
}

#header, #article, #footer, #sidebar, #settings {
    background-color: rgba(205, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin: 1rem;
    padding: 1.5rem 2rem;
}

#header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    padding: 1rem 1.5rem;
}

#header img {
    margin: 1rem;
    height: auto;
}

#header-text {
    display: flex;
    flex-direction: column;
}

#header-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#main {
    display: flex;
}

#article {
    flex-grow: 1;
    overflow: wrap;
}

#index-description {
    display: flex;
    flex-flow: column;
}

#sidebar {
    display: flex;
    flex-flow: column;
    order: 2;
    flex-grow: 1;
    min-width: 15rem;
    padding: 0.5rem;
}

#site-map {
    border: 1px solid;
    overflow: scroll;
    height: 100%;
}

#site-map li {
    margin-bottom: 10px;
}

#changelog {
    max-height: 15rem;
    overflow: scroll;
    border-style: solid;
    border-width: 1px;
    padding: 0.5rem;
    margin-top: 1rem;
}

#changelog li {
    margin: 0 0 5px 0;
}

#changelog h5 {
    margin: 0;
    font-size: 1.5rem ;
}

#changelog h6 {
    margin: 0;
    font-size: 1rem;
}

#widgets {
    padding-bottom: 1rem;
    overflow: scroll;
    max-height: 30rem;
}

.table-basic, .table-basic tr, .table-basic td {
    border: 1px solid;
    border-collapse: collapse;
    padding: 5px;
}

#table-terms {
    width: 100%;
}

#table-terms, #table-terms th, #table-terms td {
    border: 1px solid;
    border-collapse: collapse;
    padding: 0.3rem;
}

.table-title {
    font-weight: bold;
    text-align: center;
    background-color: rgba(113, 227, 237, 0.7);
}

.table-subtitle {
    text-align: center;
    background-color: rgba(172, 236, 238, 0.7);
}

.table-subsubtitle {
    font-style: italic;
    text-align: center;
}

.table-read-as {
    font-style: italic;
    color: #4B4B4B;
}

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


.math {
    background-color: #eef5f7;
    display: inline-table;
    transition: all 500ms;
}

.math:hover {
    font-size: 1.5rem;
    transition: all 500ms;
}

.math-division {
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.trace-1-hover {
    color: #d7373a;
    background-color: #E3EEF1;
    text-decoration: underline;
}

.trace-2-hover {
    color: #DCBE37;
    background-color: #E3EEF1;
    text-decoration: underline;
}

.trace-3-hover {
    color: #4db935;
    background-color: #E3EEF1;
    text-decoration: underline;
}

.trace-4-hover {
    color: #da7d1a;
    background-color: #E3EEF1;
    text-decoration: underline;
}

.trace-5-hover {
    color: #7cc5e8;
    background-color: #E3EEF1;
    text-decoration: underline;
}

.trace-6-hover {
    color: #3933e1;
    background-color: #E3EEF1;
    text-decoration: underline;
}

.trace-7-hover {
    color: #a24ae1;
    background-color: #E3EEF1;
    text-decoration: underline;
}

.trace-8-hover {
    color: #e584e3;
    background-color: #E3EEF1;
    text-decoration: underline;
}

.footer-text {
    display: flex;
    flex-direction: row;
}

.text-right {
    text-align: end;
    padding: 1rem 2rem;
}

