@import "sh_bright.min.css";
@import "sh_darkness.min.css" (prefers-color-scheme: dark);

body {
    font-size: 1.2em;
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif;
    margin: 0px;
    padding: 0px;
}

table {
    margin: auto;
    border-collapse: collapse;
}

table, th, td {
    border-width: 1px;
    border-style: solid;
}

th, td {
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}

s {
    text-decoration-thickness: 0.2em;
}

s:hover {
  text-decoration: none;
}

#nav {
    border-bottom-style: solid;
    border-bottom-width: 2px;
    width: 100%;
    z-index: 2;
}

#navbar {
    margin-top: 0px;
    padding-top: 1em;
}

#content {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

a.anchor {
    display: block;
    position: relative;
    visibility: hidden;
    top: -60px;
}

@media (min-height: 750px) {
    #nav {
        position: fixed;
        top: 0;
        left: 0;
    }

    #wrap {
        height: 5em;
    }

    a.anchor {
        top: -175px;
    }
}

._sh {
    max-height: 300px;
    overflow: auto;
    font-size: 0.9em;
    padding: 10px;
    margin: 1em;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    resize: vertical;
}

.sh_sourceCode, pre {
    margin: 0 0;
}

/* allow resizing larger than max-height */
._sh[style*="height"] {
    max-height: unset;
}

._sh_lines {
    text-align: right;
    float: left;
    margin: 0 0.5em 0 0;
    padding: 0 0.5em 0 0;
    border-right-width: 1px;
    border-right-style: solid;
}

._sh_lines span {
    display: block;
    font-family: monospace;
}

.ascii {
    overflow: auto;
    padding: 10px;
    margin: 1em;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    font-size: 0.7em;
    line-height: 1;
    max-height: max-content;
    font-weight: bold;
    width: max-content;
}

.textwrap {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.listdesc {
    font-size: 0.75em;
    vertical-align: top;
}

.show-comments {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

.releasecard {
    border-width: 2px;
    border-style: solid;
    width: max-content;
    max-width: 100%;
    padding: 0.6em 1em 0em 1em;
    border-radius: 10px;
    text-align: center;
    margin: auto;
}

#home {
    font-size: 2.5em;
    margin-right: 0.5em;
}

#nav ul {
    list-style-type: none;
}

#nav ul li {
    display: inline;
    margin-right: 0.5em;
}

a:link, a:visited {
    text-decoration: none;
}

a:link:hover, a:visited:hover, .show-comments:hover {
    text-decoration: underline;
}

#nav a:link, #nav a:visited {
    font-weight: bold;
}

#footer {
    text-align: center;
    margin-top: 1em;
    font-size: small;
}

#index-avatar {
    width: 150px;
    height: 150px;
    float: right;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    margin-left: 2em;
    margin-bottom: 1em;
}

div.fonts {
    display: inline;
    margin-top: 20px;
    margin-left: 23px;
}

span.font-big {
    font-size: 0.9em;
}

span.font-small {
    font-size: 0.6em;
}

.lightgallery {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.border {
    overflow: hidden;
    height: max-content;
    display: inline-block;
    border-radius: 10px;
    vertical-align: middle;
    margin: 3px 0 3px 0;
    border-width: 2px;
    border-style: solid;
}

.border .pic {
    transition: transform 0.1s;
    vertical-align: bottom;
}

.border:hover .pic {
    transform: scale(1.1, 1.1);
    filter: brightness(75%);
    cursor: zoom-in;
}

.collapse {
    cursor: pointer;
    padding: 15px;
}

.collapse:after {
    content: '\002B';
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.collapseactive:after {
    content: "\2212";
}

.collapsecontent {
    padding: 0;
    margin: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-out;
    border-width: 0px;
    border-style: solid;
    border-radius: 10px;
}

/* colors */

body, #nav, .collapsecontent {
    background-color: #FFFFFF;
}

.show-comments {
    border-bottom-color: #0000CD;
}

a:link, .show-comments {
    color: #0000CD;
}

a:visited {
    color: #4B0082;
}

body, #nav, #nav a:link, #nav a:visited {
    color: #000000;
}

#nav {
    border-bottom-color: #32CD32;
}

._sh_lines {
    border-right-color: #32CD32;
}

hr {
    color: #32CD32;
}

table, th, td, ._sh, .ascii, .border, .releasecard, #index-avatar, .collapsecontent {
    border-color: #32CD32;
}

s {
    text-decoration-color: #FF0000;
}

.releasecard, .collapse {
    background-color: #C0C0C0;
}

#footer, #footer a:link, #footer a:visited {
    color: #808080;
}

.clip-btn {
    font-size: 1em;
    margin-left: 1em;
}

.collapseactive, .collapse:hover {
    background-color: #999999;
}

/* dark mode */
@media (prefers-color-scheme: dark) {
    body, #nav, .collapsecontent {
        background-color: #111111;
    }

    .show-comments {
        border-bottom-color: #7B68EE;
    }

    a:link, .show-comments {
        color: #7B68EE;
    }

    a:visited {
        color: #BA55D3;
    }

    .releasecard, .collapse {
        background-color: #232323;
    }

    body, #nav, #nav a:link, #nav a:visited {
        color: #FFFFFF;
    }

    #footer, #footer a:link, #footer a:visited {
        color: #B0B0B0;
    }

    .ascii, ._sh {
        background-color: #000000;
    }

    .clip-btn {
        background-color: #232323;
        color: #FFFFFF;
    }

    .commento-profile-button {
        fill: #FFFFFF;
    }

    #commento-textarea-root, .commento-guest-details {
        color: #FFFFFF !important;
        background-color: #232323 !important;
        border-color: #B0B0B0 !important;
        border-width: 2px !important;
    }

    #commento-footer, .commento-markdown-button {
        display: none !important;
    }

    .commento-card {
        background-color: #232323 !important;
    }

    .commento-name, .commento-permalink, [id^=commento-comment-text] p {
        color: #FFFFFF !important;
    }

    .collapseactive, .collapse:hover {
        background-color: #424242;
    }
}