body {
    --panel-width: 20%
}

p {
    margin-top: 0.7em;
    margin-bottom: 0.7em;

}

#selectionPanel {
    position: sticky;
    top: calc(var(--header-height));
    width: var(--panel-width);
    max-width: var(--panel-width);
    min-width: 200px;
    height: fit-content;
    border-right: 1px solid white;
    padding: var(--global-padding);
    background-color: var(--site-black);
    z-index: 5;
}


#selectionPanel button {
    background-color: var(--site-black);
    font-size: 0.8em;
    display: block;
    width: 100%;
    cursor: pointer;
    border: 1px solid white;
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    transition: 0.1s ease-in;
    background-image: url("https://www.iso-bel.computer/static/resources/images/misc/paper_2.png");
    font-family: 'Syncopate';
    border-radius: 3px;
    font-weight: bold;
}
#selectionPanel button:hover {
    font-weight: bold;
    background-color: rgba(91,186,220, 0.8);
}
#selectionPanel button.active {
    background-color: rgb(91,186,220);
    box-shadow: 0px 0px 6px #00000060

}


#contentPanel {
    background-image: url('/assets/paper1_transparent.png');
    background-position: left centre;
    background-color: var(--site-black);
    background-blend-mode: lighten;
    width: calc(100% - var(--panel-width));
    max-width: calc(100vw - 200px);
    font-size: 1.3em;
    position: relative;
    padding-right: 5vw;
    padding-left: 5vw;
}

section {

    padding-left: 2em;
    padding-right: 2em;
    padding-bottom: 2em;
    padding-top: 2em;
    /* margin-top: 2em; */
    /* margin-bottom: 2em; */
    border-left: 1px solid #ffffff50;
    border-right: 1px solid #ffffff50;
    background-color: #11111195;

}

#contentPanel::before {
    overflow: hidden;
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--panel-bg);
    background-size: cover;
    background-position: center;
    filter: brightness(35%) blur(0px) /* saturate(75%) */;
    z-index: 0;
    pointer-events: none;
    background-attachment: fixed;

}

#contentPanel section {
    position: relative;
    display: flex;
    flex-direction: column;
    /* filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.5)); */
    z-index: 1; /* keeps content above the blurred bg */
}

[hidden] {
    display: none !important;
}

#contentPanel a {
    color: white;
}


#contentPanel h1, #contentPanel h2 {
    font-family: 'Syncopate';
}

hr {
    border: none;
    overflow: visible;
}

hr::after {
    content: "~";
    color: white;
    text-align: center;
    display: block;
}

li {
    margin-bottom: 0em;
    margin-top: 0em;
}


img {
    display: block;
    margin: auto;
    max-width: 40vw;
    box-shadow: 0px 2px 5px #00000060;
}
@media (max-width: 768px) {

    main {
        display: block;
    }
    #selectionPanel {
        padding: 0px;
        display: flex;
        overflow: scroll;
        width: 100vw;
        max-width: 100vw;
        border-right: unset;
    }
    blockquote {
        margin-left: 0px;
        margin-right: 0px;
    }
    #selectionPanel button {
        margin: 0px;
        border-radius: 0px;
        border: none;
        border-bottom: 1px solid white;
    }
    section {
        border-left: unset;
        border-right: unset;
        padding: 1.5em;
        padding-top: 0em;
    }
    #contentPanel {
        width: 100%;
        max-width: 100%;
        padding-left: 0em;
        padding-right: 0em
    }
}
