@font-face {
    font-family: aces07;
    src: url(../Fonts/ACES07.woff2);
}

@font-face {
    font-family: arame_regular;
    src: url(../Fonts/Arame-Regular.woff2);
}

@font-face {
    font-family: stratum2;
    src: url(../Fonts/Stratum2.woff2);
}

@font-face {
    font-family: fixedsys;
    src: url(../Fonts/fixedsys.woff2);
}

html {
    transition: 0.25s;
    /* dark reader on firefox will ignore the background past the content if this isn't here*/
    height: 100%;
    /* mainly for the lines on the sides of the content blocks */
    --highlight-color: #FFFFFF;
    /* content block header/footer */
    --content-bookends: rgba(0, 0, 0, 0.816);
    
    --background-gradient-a: #0A0A0A;
    --background-gradient-b: #000000;
    --background-gradient: repeating-linear-gradient(
        -45deg,
        var(--background-gradient-a),
        var(--background-gradient-a) 5px,
        var(--background-gradient-b) 5px,
        var(--background-gradient-b) 10px
    );
}

@media (prefers-color-scheme: light) {
    html {
        --highlight-color: #000000;
        --content-bookends: rgba(78, 78, 78, 0.8);
        --background-gradient-a: #F0F0F0;
        --background-gradient-b: #EAEAEA;
    }

    body {
        color: black;
    }
}

h1 {
    font-family: arame_regular;
}

body {
    height: 100%;
    color: white;
    margin: 0px;
}

/* overscroll */
body:before {
    content:"";
    width: 100%;
    height: 100%;
    position: fixed;
    background: var(--background-gradient);
}

.example::-webkit-scrollbar {
    /* chrome puts a scrollbar where it shouldn't */
    display: none;
}

.smol {
    font-size: 70%;
}

.content_block {
    background-color: #ffffff;
    margin: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
}

@media (prefers-color-scheme: light) {
    .content_block {
        background-color: rgba(0, 0, 0, 0.2);
    }
}

.content_block_header {
    flex: auto;
    flex-direction: row;
    padding: 8px 5px;
    background-color: var(--content-bookends);
    text-align: left;
    font-family: aces07;
    display: flex;
    margin-left: 0;
    line-height: 30px;
    font-size: 30px;
}

.content_block_header * {
    margin: 0;
    width: auto;
    font-size: 30px;
    line-height: 30px;
    font-weight: 300;
}

.content_block_header a {
    opacity: 0.1;
    width: 30px;
    margin: 0;
    flex-grow: inherit;
}

.content_block_header a:hover {
    opacity: 1;
}

.content_block_content {
    flex-grow: 1;
    background-color: #404040;
    font-family: stratum2;
    font-size: 20px;
    line-height: 20px;
    vertical-align: center;
    padding: 10px;
}

.content_block_footer {
    flex: auto;
    flex-direction: row;
    padding: 5px;
    background-color: var(--content-bookends);
    text-align: left;
    font-family: arame_regular;
    display: flex;
}

.content_block_footer button {
    padding: 5px;
    margin: -5px;
    width: calc(100% + 10px);
    border: 0px;
    background-color: transparent;
    text-align: right;
    filter: none;
}

code {
    background-color: rgba(0, 0, 0, 0.627);
    vertical-align: center;
    line-height: 150%;
    border: 1px solid rgba(255, 255, 255, 0.314);
}

.content_block_code {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.827);
    line-height: 150%;
    border: 15px solid #404040;
    font-family: monospace, monospace;
    padding: 10px;
}

div.subsection {
    padding: 5px;
    margin: 5px;
    background-color: rgba(0, 0, 0, 0.25);
}

span {
    content: attr(data-title);
}

pre {
    overflow: scroll;
}

.content_header {
    transition: 0.25s;
    border: 5px solid var(--highlight-color);
    font-family: aces07;
    width: calc(100% - 10px);
    font-size: 25px;
    line-height: 30px;
    background-color: var(--content-bookends);
    display: flex;
    margin: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
}

.content_header h1 {
    margin: 19px;
    position: relative;
}

.flex_split_if_wide {
    display: flex;
    flex-direction: column;
}

.content_block img, .content_block video {
    width: calc(100% - 5px);
}

.content_block_fullwidth_image {
    font-family: stratum2;
    padding: 10px;
    background-color: #404040;
}

.inline_sbs_image {
    display: flex;
    flex-direction: column;
}

.inline_sbs_image img {
    align-self: end;
    
    width: calc(100% - 20px);
    border: 10px solid #404040;
    background-color: #404040;
}

.content_block_footer, .content_block_footer button{
    font-size: 20px;
        line-height: 20px;
}

.content_column {
    margin: 0;
}

.content_block {
    transition: 0.25s;
    width: 100%;
    margin: 10px 0;
    border-left: 0 solid var(--highlight-color);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
}

@media screen and (min-width: 700px) {
    .inline_sbs_image {
        flex-direction: row;
    }
    
    .inline_sbs_image img {
        width: 340px;
    }
}

@media screen and (min-width: 810px) {    
    /* 1 column, about to not be */
    .content_column {
        margin: 0 calc((100% - 810px)/2);
    }

    /* 1 column, desktop */
    .content_header {
        border-left-width: 10px;
        width: 795px;
        clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
    }

    .content_block {
        width: 800px;
        border-left: 10px solid var(--highlight-color);
        clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
    }
}

@media screen and (min-width: 910px) {
    /* 1 column, desktop */
    .content_column {
        margin-left: 50px;
        margin-right: 0;
    }
}


@media screen and (min-width: 1770px) {
    /* 2 columns */
    .flex_split_if_wide {
        flex-direction: row;
    }

    .content_header {
        margin: 10px 0;
    }
}
