:root {
    --text: #d7d2db;
    --text-faded: #7b7581;
    --text-invert: #142702;
    --background: #070906;
    --primary: #BC9DCA;
    --secondary: #241A23;
    --tertiary: #DEC6E9;
    --accent: #f61ea3;
    --site-width: 800px;
    --list-header-height: 45px;
}

body {
    background-color: var(--background);
    margin: 0;
    font-family: "Iosevka Web", sans-serif;
    font-size: 16px;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.container {
    position: absolute;
    width: var(--site-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pageTop h1 {
    color: var(--primary);
    text-align: center;
}

.pageTop p {
    color: var(--text);
    text-align: center;
    margin-bottom: 20px;
}

.pageTop img {
    position: relative;
    height: 40px;
    top: 6px;
}

.content {
    flex-grow: 1;
}

@media only screen and (min-width: 800px) {
    .container {
        left: 50%;
        transform: translate(-50%, 0);
    }
}

.element {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
}

.element p { 
    margin: 0;
}

.header {
    background-color: var(--primary);
    color: var(--text-invert);
    height: 25px;
    line-height: 25px;
}

.clickableHeader {
    background-color: var(--tertiary);
    color: var(--text-invert);
    height: 25px;
    line-height: 25px;
}

.siteHeader p {
    margin-left: 5px;
    font-weight: 600;
}

.elementHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    cursor: pointer;
}

footer {
    color: var(--text);
    text-align: center;
}

.footerContact {
    color: var(--text-faded)
}

.footerDiscord {
    color: var(--tertiary);
}

.siteContent {
    border-left: 1px dashed var(--primary);
    border-right: 1px dashed var(--primary);
}

.collapsableContent {
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
}

.helpContainer p {
    padding-left: 5px;
}

.helpTags p {
    margin: 0;
}

.queryBlock {
    margin: 5px;
}

.queryBlock select {
    font-family: "Iosevka Web", sans-serif;
    background-color: var(--secondary);
    border: 1px solid white;
    color: var(--text);
}

.queryBlock select option {
    font-family: "Iosevka Web", sans-serif;
    background-color: var(--secondary);
    border: 1px solid white;
}

.queryBlock p {
    margin: 0;
}

.statsBlock p {
    margin: 0;
}

.queryFilter {
    display: flex;
    flex-direction: row;
    align-items: start;
}

.queryFilterList {
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.statsBlock {
    text-align: center;
}

.runQuery {
    text-align: center;
}

.runQuery button {
    font-family: "Iosevka Web", sans-serif;
    font-size: 18px;
    margin: 3px;
    background-color: #7283cc;
    border: none;
    cursor: pointer;
}

.runQuery button:hover {
    background-color: #9fabe0;
}

.queryMessages {
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.queryMessages img {
    height: 24px;
    margin-bottom: -5px;
}

.queryMessages h4 {
    font-weight: 400;
}

.emptyQuery h3 {
    margin-top: 50px;
    margin-bottom: 0;
}

.missingMsg {
    color: #ff6060;
}

.emptyStats h4 {
    margin: 20px;
}

.filterTag {
    margin-top: 2px;
    margin-bottom: 2px;
    justify-content: left;
    font-size: 14px;
}

.filterTag button {
    background-color: #cc7272;
    border: none;
    margin-right: 5px;
    cursor: pointer;
}

.filterTag p {
    margin-right: 5px;
}

.deathTag {
    background-color: #a53232;
}

.deathTag button {
    background-color: #cc7272;
}

.runTag {
    background-color: #3268a5;
}

.runTag button {
    background-color: #728fcc;
}

.endingTag {
    background-color: #58595a;
}

.endingTag button {
    background-color: #98999b;
}

.speedrunIdDate {
    width: 160px;
    margin-left: 5px;
    justify-content: space-between;
}

.speedrunTime {
    width: 86px;
    background-color: var(--tertiary);
    margin-left: 5px;
    text-align: center;
}

.speedrunText {
    flex-grow: 1;
    margin-left: 5px;
}

.elementContent {
    background-color: var(--secondary);
    color: var(--text);
    display: flex;
    flex-direction: row;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
    align-items: end;
}

.expanded {
    max-height: 120px;
}

.embedContainer {
    margin: 5px;
    height: 100px;
    display: flex;
    align-items: center;
}

.embed {
    user-select: none;
    border: 1px dashed var(--primary);
    color: #ff3333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 90px;
}

.embed img {
    height: 30px;
}

.missing {
    filter: grayscale(0.7);
}

.spliceList {
    margin: 5px;
    width: 195px;
}

.spliceEntry {
    justify-content: left;
}

.spliceEntry p {
    margin-left: 2px;
}

.spliceEntry img {
    height: 20px;
}

.rightHalf {
    margin: 5px;
    flex-grow: 1;
    height: 100px;
}

.streamInfo {
    width: 413px;
}

.streamInfo > .textBold {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.netherPortal {
    display: flex;
    flex-direction: row;
}

.netherPortal img {
    height: 40px;
}

.netherPortal p {
    margin-left: 2px;
}

.anchorRight {
    text-align: right;
}

.textBold {
    font-weight: 600;
}

.textNormal {
    color: var(--text);
}

.textFaded {
    color: var(--text-faded);
}

.embedLink {
    cursor: pointer;
    text-decoration: none;
}

.slider {
    margin-left: 4px;
    margin-right: 4px;
}

.flexRow {
    display: flex;
    flex-direction: row;
}