:root {
    --main: #0000ff;
    --bg: black;
    --mg: lightgray;
    --fg: white;
    --light: white;
    --dark: black;
}

* {
    margin: 0;
    font-family: monospace;
}

html {
    height: 100%;
    display: flex;
    justify-content: center;
    background: var(--bg);
    color: var(--fg);
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
}

header {
    display: none;
    position: fixed;
    width: 100%;
    height: 16pt;
    top: 0px;
}

#title {
    width: 100%;
    background: var(--main);
    color: var(--fg);
}

#title h1 {
    width: 100%;
    height: 24pt;
    text-align: center;
}

#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33vw;
    height: fit-content;
    padding: 16pt;
}

#quote {
    margin-top: 24pt;
    padding-left: 12pt;
    border-left: solid 2pt;
    border-color: var(--fg);
    color: var(--mg);
}

#quote-text {
    width: 100%;
    margin-bottom: 12pt;
    font-style: italic;
    text-align: justify;
    hyphens: auto;
    /* text-align-last: justify; */
}

#quote-source {
    width: 100%;
    font-style: italic;
    font-weight: bold;
    text-align: left;
}

#about, #social, #places {
    margin-top: 24pt;
    width: 100%;
}

#about p {
    text-align: justify;
    hyphens: auto;
}

#about h2, #social h2, #places h2 {
    font-size: 1em;
    margin-bottom: 1em;
}

#social p, #places p {
    text-align: justify;
    hyphens: auto;
}

a {
    color: var(--fg);
}

#places h2 {
    display: none;
}

#places .entry {
    display: block;
    width: fit-content;
}

#places .description {
    display: block;
    margin-left: 2em;
    hyphens: auto;
}

#social h2 {
    display: none;
}

a:hover {
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
}

#chat {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 33vw;
    height: 100%;
    padding: 16pt;
    box-sizing: border-box;
}

#chat>div {
    width: 100%;
    height: 100%;
}

.moon {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#moon {
    stroke-width: 0;
}

#moonbg {
    fill: var(--dark);
}

#moonfg, #moonphase {
    fill: var(--light);
}

#blog {
    display: none;
    position: fixed;
    right: 0px;
    top: 0px;
    width: 33vw;
    height: 100vh;
    overflow-y: auto;
    padding: 16pt;
    box-sizing: border-box;
}

#blog .title {
    padding-bottom: 8pt;
    font-size: 1.5em;
    text-align: left;
}

footer {
    display: none;
    position: fixed;
    bottom: 0px;
    height: 16pt;
    width: 100%;
    background: var(--main);

}

@media (orientation: portrait) {
    body {
        height: fit-content;
    }

    #main {
        width: 100vw;
        box-sizing: border-box;
        height: auto;
    }

    #chat {
        position: relative;
        width: 100vw;
        height: 80vh;
        box-sizing: border-box;
    }

    #blog {
        position: relative;
        width: 100vw;
        height: auto;
        box-sizing: border-box;
        overflow: visible;
    }

    footer {
        position: relative;
    }
}
