.newszone { 
    --dark-color: #161616;
    --bright-color: #e2e2e2;
    --friend-color: #00dada;
    --obesk-color: #ce20ce;
    --neutral-color: #d7d729;
    --bastard-color: #ca0051;
    --fundfriend-color: #3bdf7c;

    --h1-size: 3rem;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
    
    --image: url();
    --gradient-color: var(--neutral-color);
    
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    min-height: 100vh;
    position: relative;
    background: var(--dark-color);
    z-index: 1;
}

::selection {
    background-color: var(--gradient-color, var(--obesk-color));
    color: var(--dark-color);
}

.newszone, .newszone section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.newszone::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    background: url(/img/streetnight.gif);
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.newszone section {
    padding: 5vh 0 10vh;
    margin: 0 2rem;
    width: 700px;
    max-width: 90vw;
    height: auto;
    overflow: unset;
}

.button {
    font-family: barcodetext;
    color: var(--neutral-color);
    text-transform: uppercase;
    font-size: var(--h1-size);
    margin-right: auto;
    border: 1px solid;
    padding: 0.25em 0.5em;
    text-decoration: none;
}

.button:hover {
    color: var(--dark-color);
    background: var(--neutral-color);
}

.homebutton {
    padding: 0 0 5vh;
    width: 100%;
}

.hidden {
    display: none;
}

/* articles and typography */
h1, summary h2 {
    font-size: var(--h1-size);
    font-family: barcodetext;
    text-transform: uppercase;
}

article, details {
    position: relative;
    width: 100%;
}

article img {
    margin: 2rem auto;
    display: block;
}

article img.nocrunch {
    image-rendering: initial;
}

article * {
    margin-top: 1.5rem;
    line-height: 1.5em;
    text-align: justify;
}

.article-container, .article-container > :first-child {
    margin-top: 0;
}

article [definition] {
    cursor: alias;
}

article [definition]:not(img) {
    border-bottom: 2px dotted var(--gradient-color);
}

article hr {
    color: var(--gradient-color);
}

article > iframe, .article-container > iframe {
    margin: 5vh auto;
    display: block;
}

article h2 {
    margin-top: 1em;
    font-size: var(--h3-size);
    font-family: spacemono, monospace;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px var(--dark-color), 1px 1px 5px var(--gradient-color);
}

article strong, article b {
    font-weight: 800;
    text-shadow: 1px 1px 1px var(--dark-color), 1px 1px 5px var(--gradient-color);
}

code {
    font-family: monospace;
    background: var(--dark-color);
    color: var(--neutral-color);
    letter-spacing: 1px;
}

code.pre {
    white-space: pre;
}

details:not(.newsdetail) {
    --image: url();
    position: relative;
}

details:not(.newsdetail)[open] {
    padding-bottom: 1.5rem;
}

details:not(.newsdetail) summary {
    margin-top: 0;
    font-size: var(--h3-size);
    padding: 0.5em;
    border: 1px solid var(--gradient-color);
    font-family: spacemono, monospace;
    background: linear-gradient(45deg, black 25%, #fff0), linear-gradient(135deg, var(--gradient-color) 0%, #fff0), var(--image);
    background-size: cover;
    background-position: center;
}

details:not(.newsdetail) summary ~ * {
    margin-left: 1rem;
}

details:not(.newsdetail)[open]::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: -1;
    width: 100%;
    border-left: 1px solid var(--gradient-color);
    border-bottom: 1px solid var(--gradient-color);
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 5px;
}

summary {
    cursor: pointer;
    text-align: left;
}

article a {
    color: var(--gradient-color, var(--friend-color));
}  

.solopost {
    margin-top: 5vh;
}


blockquote {
    padding-left: 1em;
    border-left: 1px solid var(--gradient-color);
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    font-style: italic;
    font-size: 0.9em;
    padding: 1em 0 1em 1em;
    background: linear-gradient(135deg, var(--gradient-color) 0% , transparent 10%);
}

blockquote > p:first-child {
    margin-top: 0;
}

/* listing */
article.loading {
    min-height: 50vh;
}

article.loading::after {
    content: "loading...";
    margin: 2em;
    display: block;
}

.newsdetail {
    border-left: 2px dotted var(--gradient-color);
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
    padding-left: 1rem;
    backdrop-filter: blur(10px);
    transition: all 400ms ease-in-out;
}

.newsdetail[open], details.newsdetail:hover {
    padding: 1rem;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.release, #release-filter + label {
    --gradient-color: var(--friend-color)
}

.news, #news-filter + label {
    --gradient-color: var(--obesk-color)
}

.support, #support-filter + label {
    --gradient-color: var(--fundfriend-color)
}

.misc, #misc-filter + label {
    --gradient-color: var(--bastard-color)
}

.misc.pain {
    --gradient-color: #787878;
}

#misc-filter + label {
    --dark-color: var(--bright-color);
}

.misc summary h2, .misc h2, .misc h3 {
    font-family: bastard;
    font-size: var(--h1-size);
}

summary.newsdetail {
    pointer-events: initial;
    border-left: unset;
    cursor: initial;
}

.newsdetail::before {
    content: attr(type);
    text-transform: uppercase;
    font-family: barcodetext;
    font-size: var(--h2-size);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    text-align: left;
    width: 25%;
    border-bottom: 2px dotted var(--gradient-color);
    padding: 0.5rem 0;
    display: block;
    filter: drop-shadow(0px 0px 10px var(--gradient-color));
}

.newsdetail > summary, summary.newsdetail {
    display: flex;
    flex-direction: column;
    padding: 2em;
    background: linear-gradient(45deg, black 25%, #fff0), linear-gradient(135deg, var(--gradient-color) 0%, #fff0), var(--image);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: -3px -3px 5px var(--gradient-color) inset, 10px 10px 50px var(--gradient-color);
    position: relative;
    overflow: hidden;
    align-items: flex-start;
    transition: 400ms ease-in-out;
}

.newsdetail > summary:hover, .newsdetail[open] > summary, summary.newsdetail {
    box-shadow: 0px 0px 20px var(--gradient-color) inset, 0px 0px 0px var(--gradient-color);
}

details:not(.newsdetail) summary {
    transition: 400ms ease-in-out;
    box-shadow: 0px 0px 0px var(--gradient-color);
}

details:not(.newsdetail) summary:hover {
    box-shadow: 2px 2px 20px var(--gradient-color);
}

.newsdetail ~ .newsdetail {
    margin-top: var(--h2-size);
}

.newsdetail > summary time, summary.newsdetail time {
    font-family: "spacemono", monospace;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.newsdetail > summary span, summary.newsdetail span {
    display: inline-block;
    border-top: 1px dashed;
    margin-top: 1em;
    padding-top: 1em;
    font-family: spacemono, sans-serif;
}

.newdetail > summary h2, summary.newsdetail h1 {
    margin-top: 0;
}

.newsdetail[open] > summary::after {
    content: "(close)";
    position: absolute;
    bottom: 1px;
    right: 1px;
    letter-spacing: 0.25em;
    padding: 0.75rem;
    overflow: hidden;
    background: linear-gradient(-45deg, transparent 0%, var(--dark-color));
    border-top-left-radius: 25px;
    border-bottom-right-radius: 10px;
    backdrop-filter: blur(3px);
    font-family: spacemono, monospace;
}

.postinfo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0.5rem 0;
}

.postinfo a {
    text-decoration: none;
    width: 2em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--gradient-color);
    border-radius: 100%;
    height: 2em;
    margin: 0.25em;
}

.postinfo a:hover {
    background: var(--gradient-color);
    color: var(--dark-color);
}

.alt {
    font-size: 0.7rem;
    font-family: spacemono, monospace;
    margin-right: auto;
}

.article-container .alt {
    margin-top: -1.5rem;
}

.alt > em span:first-child {
    text-transform: uppercase;
}  

/* filters */
.filters {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 5vh;
}

.filter {
    flex-grow: 1;
    text-align: center;
    display: inline-flex;
}

.filter input {
    pointer-events: none;
    opacity: 0.5;
    position: absolute;
    z-index: 2;
}

.filter label {
    cursor: pointer;
    border: 1px solid;
}

.filter label {
    width: 100%;
    font-family: barcodetext;
    font-size: 2rem;
    background: transparent;
    color: var(--gradient-color);
    backdrop-filter: blur(2px);
    padding: 0.25em;
}

.filter input:checked + label, .filter label:hover {
    background: var(--gradient-color);
    color: var(--dark-color);
    box-shadow: 0px 0px 5px var(--gradient-color);
    border-color: transparent;
}

/* mobile */
@media only screen and (max-width: 1200px) {
    .newszone {
        --h1-size: 2rem;
        --h2-size: 1.5rem;
        --h3-size: 1.25rem;
    }

    .newsdetail {
        border-left: 2px dotted var(--gradient-color);
        padding-left: 0.5rem;
    }

    .newsdetail[open], details.newsdetail:hover {
        padding: 1rem 0.5rem;
    }

    .newsdetail::before {
        position: relative;
        top: unset;
        left: unset;
        transform: unset;
        border-bottom: 0;
    }

    time {
        font-size: 0.75em;
    }
}
  