header {
    padding: 0em 2em 0em 2em;
    
    display: flex;
    flex-direction: row;
    align-content: center;
}

header h1 {
    padding: 0.25em;
    padding-left: 0.1em;
    font-size: 2em;
}

header nav {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 2em;
}

pre {
    white-space: pre-wrap;
    word-wrap: inherit;
}

.w100 {
    width: 100%;
}

.rss {
    margin-left: 1.75em;
}

.lead {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.flex_between {
    display: flex;
    flex-direction: row;
    padding: 0.75rem;
}

.flex_end {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0.5rem;
}

.spacer {
    visibility: hidden;
    flex-grow: 1;
}

.nav_tag {
    margin: 0.5em;
}

.right {
    float: right;
    margin: auto;
    margin-right: 1.5em;
}

.right_nofloat {
    margin: auto;
    margin-right: 1.5em;
}

a {
    color: inherit;
    position: relative;
    display: inline-block;
    text-decoration: none;
}

a.icon {
    display: none;
}

.card a {
    color: #0fcff0;
}

a:not(.icon):not(.rss)::after {
    content: "";
    background: white;
    height: 1px;
    position: absolute;
    bottom: 0;
    transition: .16s all 0.025s;
}

a:not(.icon):not(.rss)::after {
    left: 100%;
    right: 0;
}

a:hover ~ a:not(.icon):not(.rss)::after {
    left: 0;
    right: 100%;
}

a:not(.icon):not(.rss):hover::after {
    left: 0;
    right: 0;
}

.pane {
    margin: auto;
    padding: 0.2em 0.5em;
    width: 75vw;

    background-color: rgba(0, 0, 0, 0.8);
    color: #dcccd5;

    word-wrap: break-word;

    border-radius: 20px;
    box-shadow: 0px 0px 15px 2px #410f5e;
}

.pane img {
    width: 50%;
}

.rss img {
    width: 1.5rem;
}

input {
    background-color: rgba(255, 255, 255, 0.8);
}

.video_container {
    display: flex;
    justify-content: center;
}

iframe {
    aspect-ratio: 16 / 9;
    width: 100% !important;
    background-color: rgba(0, 0, 0, 1.0);
}

.topline {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    margin: 2em;
    margin-left: 1.5em;
}

.inner_pane {
    padding-bottom: 2em;
}

.topline_apart {
    justify-content: space-between;
}

.topline > p {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 2em;
}

.card {
    border-top: 1px solid #fff;

    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
    padding-left: 2rem;
    padding-right: 2rem;

    margin: 0.25rem;
    margin-bottom: 1rem;

    border-radius: 20px;
    transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0px 0px 15px 2px #ecb77d;
}

.card .header {
    text-align: center;
}

.card image {
    width: 100%;
}

#bg-image {
    position: fixed;

    top: 0;
    left: 0;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(0.2rem);
    -webkit-filter: blur(0.2rem);

    height: 100%;
    width: 100%;

    z-index: -1;
}

#music_player {
    background-color: black;
    color: white;
    padding: 5px;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.margin_2rem {
    margin: 2rem;
}

.login_form .markdown_form {
    margin-top: 2em;
    margin-bottom: 2em;
    padding: 0.5em;
}

.flex_center {
    display: flex;
    justify-content: center;
}

.login_form {
    display: grid;
    grid-template-columns: 1fr 9fr;
    gap: 1em;
}

.login_form div {
    margin: auto;
    margin-right: 0em;
}

.comment_zone {
    width: 25%;
    display: grid;
    grid-template-columns: 1fr 5fr 1fr;
    gap: 1em;
}

.comment_zone input {
    max-width: 30vw;
}

.markdown_form {
    margin-left: 2em;
    margin-right: 2em;
}

.video {
    opacity: 1;
    aspect-ratio: 16 / 9;
    width: 90%;
}

.white {
    background-color: white;
    opacity: 0.65;
}

.text_left {
    text-align: left;
}

.vert_align {
    display: inline-block;
    vertical-align: middle;
}

.center {
    width: 100%;
    text-align: center;
}

.button_deck {
    width: 100%;
    height: 5%;
}

@media only screen and (max-width: 768px) {
    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    
    header h1 {
        font-size: 1.5em;        
    }

    .lead {
        flex-direction: column;
    }

    a.icon {
        display: block;
        padding-top: 1.5em;
        padding-right: 0.25em;
    }

    header nav {
        margin-left: 0em;
        display: flex;
        flex-direction: column;
    }

    header nav a:not(.icon) {
        height: 0;
        margin: 0;
        overflow: hidden;
        transition: margin 0.5s ease-out 0.2s,
                    height 0.5s ease-in-out;
    }

    header nav a.icon {
        float: right;
    }

    header nav.responsive {
        position: relative;
    }

    header nav.responsive a {
        height: 1em;
        margin: 0.5em;
    }

    body {
        margin: 0;
        padding: 0;
    }

    .topline {
        margin: 1em;
    }

    .topline > h2 {
        margin: auto;
        margin-left: 0.2em;
    }

    .login_header {
        margin: auto !important;
    }
    
    .topline > p {
        display: none;
    }

    .pane {
        width: 100vw;

        border-radius: 0;

        margin: 0;
        padding: 0;
    }

    .pane img {
        width: 100%;
    }

    .rss img {
        width: 1.5rem;
    }

    .inner_pane {
        padding-bottom: 4em;
    }

    .mobile_flexb {
        margin-left: 1.5em;
    }

    .mobile_fullw {
        width: 100%;
        display: flex;
        gap: 1em;
    }

    .mobile_fullw input {
        flex: 1;
    }
}
