:root {
    --bg-color-main: #1e1e1e;
    --bg-color-top-bar: #131313;
    --bg-color-wrapper: #191919;
    --bg-color-nested: #222;

    --hr-color: white;

    --text-color-main: white;
    --text-color-alternate: hsl(0, 0%, 85%);

    --text-color-a: rgb(176, 233, 255);
    --text-color-a-hover: rgb(217, 244, 255);

    --img-bg-height: 462px;

    --top-bar-height: 54px;
    --top-bar-padding: 16px;
}

/* Elements */
body {
    background: var(--bg-color-main);
    color: var(--text-color-alternate);

    margin: 0;

    font-family: "Heebo", Arial, Helvetica, sans-serif;
    font-weight: 400;
}

li {
    text-align: left;
}

p, li {
    font-size: 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color-main);

    text-align: center;
    font-weight: 500;
}

hr {
    border-color: var(--hr-color);
}

a {
    color: var(--text-color-a);
    text-decoration: none;
    
    transition: all 0.15s ease-out;
}

a:hover {
    color: var(--text-color-a-hover);
    /* text-shadow: currentcolor 0px 0px 3px; */
}

code {
    font-family: "Consolas", monospace;
}

summary {
    cursor: pointer;
    font-size: 24px;
}

/* IDs */
#top-bar-title {
    font-weight: 500;
}

#top-bar {
    background: var(--bg-color-top-bar);

    display: flex;
    justify-content: space-between;

    height: var(--top-bar-height);

    font-size: 60px;
    font-family: "Heebo Medium", Arial, Helvetica, sans-serif;
    font-weight: 500;

    user-select: none;

    position: fixed;
    width: calc(100% - (var(--top-bar-padding) * 2));
    top: 0;

    padding: 0px var(--top-bar-padding);

    z-index: 1000;

    border-bottom: 1px solid white;
}

#top-bar-logo {
    height: 80%;
    margin: auto 0px;
}

#top-bar-title {
    color: white;

    display: flex;
    justify-content: space-between;

    font-size: 40px;
    margin: auto auto auto 16px;
}

#top-bar-title:hover {
    color: white;
}

#top-bar-navigation {
    display: flex;
    justify-content: space-between;

    font-size: 15px;
    margin: auto 0px;
}

#top-bar-navigation > a {
    color: white;

    margin: 0 12px;
}

#top-bar-navigation > a:hover {
    color: var(--text-color-a-hover);
}

#wrapper, #wrapper-single {
    width: 960px;
    margin: 16px auto 24px auto;
    padding: 24px;
    line-height: 1.5;

    background: var(--bg-color-wrapper);
    border-radius: 6px;

    text-align: center;
}

#wrapper h1:first-child, #wrapper-single h1:first-child {
    margin-top: 0px;
}

#wrapper-single {
    margin-top: calc(var(--top-bar-height) + 16px);
}

/* Classes */
.changelog > ul {
    background: var(--bg-color-nested);

    font-family: "Consolas", monospace;
    line-height: 1.5;

    margin-bottom: 0px;
    padding: 16px 16px 16px 36px;

    border-radius: 6px;
}

.changelog li {
    font-size: 16px;
}



/* Mobile changes */
@media (max-width: 1024px) {
    /* Smaller wrapper width on mobile */
    #wrapper, #wrapper-single {
        width: 350px;
    }

    /* Top bar adjustments */
    #top-bar-navigation {
        flex-wrap: wrap;

        flex-grow: 0.7;
        flex-shrink: 1;
        flex-basis: 0;

        justify-content: end;
    }

    /* Hides "connect" button as it does nothing on mobile */
    /* TODO: This is a bad solution, should add a special classname to the button in the future */
    #top-bar-navigation > a:last-child {
        display: none;
    }

    #top-bar-title {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 0;
        
        font-size: 24px;
    }

    /* Lists have less padding */
    ul, ol {
        padding-left: 16px;
    }
}
