
html {
    scrollbar-color: #D4D5fC #191A7C;
    font-size: 14px;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-rendering: optimizeLegibility;
}
h1 {
    font-size: 2.0rem;
}
/*@media (min-width: 480px) and (min-height: 250px) {
    html {
        font-size: 13px;
    }
}*/
@media (min-width: 768px) and (min-height: 320px) {
    html {
        font-size: 15px;
    }
    h1 {
        font-size: 3.0rem;
    }
}
@media (min-width: 1024px) and (min-height: 510px) {
    html {
        font-size: 16px;
    }
}
::-webkit-scrollbar { background-color: #000554; }
::-webkit-scrollbar-button { background: #D4D5fC; }
::-webkit-scrollbar-thumb { background: #D4D5fC; }

body {
    transition: color 1s ease-in-out, background-color 1s ease-in-out;
    margin: 0;
    /*font-family: 'Friz Quadrata Standard', serif;*/
    font-weight: 400;
    /*text-rendering: optimizeLegibility;*/
    font-family: Segoe UI, sans-serif;
}

h1, h2, h3, div.filter-h2-cont button {
    transition: color 1s ease-in-out, text-shadow 1s ease-in-out;
    color: #1E1F26;
    font-family: 'Friz Quadrata Standard', serif;
}

h1 {
    margin: 5rem 0 7rem 0;
}
h1, h2 {
    text-align: center;
    font-style: italic;
}
h2, h3 {    
    margin: 0 0 0.4rem 0;
}
h2 {
    font-size: 2.0rem;
}
h3 {
    font-size: 1.7rem;
}
h3 a {
    font-family: 'Noto Serif 700', serif;
    font-size: 1.6rem;
}
h1, h2, h3, div.filter-h2-cont button {
    text-shadow: 0.03rem 0.03rem 0.3rem #fff, 0.2rem 0.2rem 0.1rem #6273B5B8;
}
body.dark h1, body.dark h2, body.dark h3, body.dark div.filter-h2-cont button {
    text-shadow: 0.1rem 0.1rem 0.2rem #8585851a, 0.2rem 0.2rem 0.1rem #6273B5B8;
}
h1 + h2 {
    margin-bottom: 0;
}
h1 + h2 + div.line-break {
    margin-top: 0;
}
@media (min-width: 768px) and (min-height: 320px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    h3 a { font-size: 1.8rem; }
}

div.filter-h2-cont {
    display: flex;
    align-items: center;
    justify-content: center;
}

div.filter-h2-cont button {
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 600;
    padding-left: 1rem;
    margin-top: 0.2rem;
}

p a, ul li::before {
    text-shadow: 0.1rem 0.1rem 0.05rem #8585851a, 0.1rem 0.1rem 0.05rem #6273B58A;
}

p a {
    font-style: italic;
    font-size: 1rem;
}

ul {
    list-style-type: none;
    padding-left: 2.5rem;
}

ul li {
    margin-bottom: 0.5rem;
}

ul li::before {
    content: '\21D2';
    margin-left: -1.8rem;
    padding-right: 1rem;
}

body.dark {
    background-color: #222;
    color: #FFF;
}

body.dark h1, body.dark h2, body.dark h3, body.dark div.filter-h2-cont button {
    color: #FFF;
}

body.dark a:visited, body.dark a {
    color: #659AFF;
}
body.dark a:hover, body.dark a:focus {
    color: #7d2450;
}

p {
    margin-left: 0.2rem;
}

p.desc {
    font-size:0.9em;
}

sup {
    font-size: 0.5em;
    padding-left: 0.2em;
}

p.desc img {
    cursor: zoom-in;
    height: 5rem;
    margin-top: 1rem;
}

p img.mini-ic {
    filter: drop-shadow(0.1rem 0.3rem 0.2rem aliceblue);
    filter: drop-shadow(0.0rem 0.1rem 0.2rem aliceblue);
    height: 1rem;
    vertical-align: text-bottom;
    padding: 0 0.2rem 0.1rem 0;
}

div.img-fs {
    display: flex;
    justify-content: center;
}

div.img-fs img {
    width: 21rem;
    max-width: 70dvw;
    min-height: 18rem;
}

h3 img.ico {
    /*height: 0.7em;*/
    display: inline;
    box-shadow: 0.03rem 0.03rem 0.3rem #fff, 0.2rem 0.2rem 0.1rem #6273B5B8;
    transition: box-shadow 1s ease-in-out;
    /*margin-bottom: -0.5rem;*/
    height: 1.3em;
    vertical-align: text-bottom;
}

body.dark h3 img.ico {
    box-shadow: 0.1rem 0.1rem 0.2rem #8585851a, 0.2rem 0.2rem 0.1rem #6273B5B8;
}

button {
    transition: color 0.2s ease-in-out;
    position: relative;
    z-index: 100;
    background: none;
    border: none;
    font-style: inherit;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    padding: 0.5em 0.65em 0.5em 0.5em;
    cursor: pointer;
}
    button:hover {
        /*color: #cb932a;*/
    }
    div.filter-btn button.active {
        color: #cb932a;
        border-color: #cb932a;
    }
    body.dark div.filter-btn button.active {
        box-shadow: 0.1rem 0.1rem 0.0rem #e1c99b;
        /*box-shadow: 0.1rem 0.1rem 0.0rem #33c8cf;*/
        transition: border-color 1s ease-in-out; 
    }

div.filter-btn button {
    font-style: italic;
    border-style: ridge;
    border-radius: 1em 0.5em;
    font-family: 'Friz Quadrata Standard', serif;
    font-size: 1.2rem;
    margin: 0.3rem 0;
    /* padding: 0.5em 0.6em 0.5em 0.5em; */
    transition: 
        color 1s ease-in-out, 
        border-color 1s ease-in-out, 
        box-shadow 1s ease-in-out;
}
div.filter-btn button {
    /*box-shadow: 0.1rem 0.1rem 0.0rem blueviolet;*/
    box-shadow: 0.1rem 0.1rem 0.0rem #6273B5B8;
}

body.dark div.filter-btn {
    color: #FFF;
    border-color: #FFF;        
}

    div.filter-btn button:hover/*, div.filter-btn button:focus*/ {
        transition: color 0s ease-in-out, border-color 0s ease-in-out;
        color: #cb932a;
        border-color: #cb932a;
    }

div.filter-btn, div.contents.btn {
    color: #1E1F26;
    border-color: #1E1F26;
    margin: 1rem 0 3rem 0;
}

.filter-collapse {
    display: none;
}

ul.jump {
    list-style: none;
    padding: 0 0 0 2rem;
    font-size: 1.2rem;
}
ul.jump li {
    padding: 0.1em 0;
    margin: 0.1em 0;
}
ul.jump li::before {
    /*content: "\1F5F2";*/
    content: "\26A1";
    font-size: 0.7em;
    /*color: sandybrown;*/
    padding: 0 0.2em 0 0.05em;
}

a {
    text-decoration: none;
    color: #2121A7;
    /*padding: 0 0.5rem;*/
    padding: 0;
    transition: color 1.3s ease-in-out, text-shadow 1.3s ease-in-out;
}
    a:visited {
        color: #2121A7;
        /*color: #00DC9E;*/
    }
    a:hover {
        color: #A079A6;
    }

/* invisible bookmark anchors, were interfering with margins */
a[name] {
    position: absolute;
}

p.code, span.code, ul li::before {
    font-weight: bold;
    color: darkcyan;
    color: #099;
    /*color: #00c68e;*/
    color: #007e7e;
    font-style: italic;
    /*text-shadow: 0.2rem 0.2rem 0.1rem #F1F1F121;*/
}

.page-cont {
    border-width: 0.9rem;
    border-style: solid;
    border-color: #156bf4 #4d4ab2 #000554 #06206d;
    border-color: #156bf4 #1150b4 #000554 #06206d;
    /*border-color: #3f3c97 #1150b4 #000554 #06206d;*/
    background: linear-gradient(205deg, #152AE996 -1%, #0000 5%), linear-gradient(305deg, #152AE996 0%, #0000 6%);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 0.9rem;
    position: relative;
}
.page {
    max-width: 47rem;
    margin: auto;
}

.fixed-theme-button {
    transition: opacity 500ms ease-in-out;
    position: fixed;
    right: 1rem;
    z-index: 100;
    color: #706be4;
    font-family: 'Noto Serif 700', serif;
    font-style: italic;
    top: 0;
    padding: 2em 1.4em;
    /*text-shadow: 0.05rem 0.05rem 0.1rem #fff;*/
}

.name {
    padding: 0;
}

div.line-break {
    height: 0;
    margin: 3rem 0;
    border-width: 0 0 2px 0;
    border-style: double;
    /*box-shadow: 0.02em 0.02em 1em #FFFFFFAD, 0.14em 0.14em 0.1em #6273B5B8;*/
    /*transition: box-shadow 1s ease-in-out;
    box-shadow: 0.14em 0.24em 0.25em #384578;*/
    box-shadow: 0.14em 0.24em 0.25em #6576BB;
}

/*body.dark div.line-break {
    box-shadow: 0.14em 0.24em 0.25em #6576BB;
}*/

footer {
    width: 100%;
    font-family: 'Noto Serif 700', serif;
}

.footer-parent {
    position: relative;
    height: 4rem;
    color: #706be4;
    font-style: italic;
}

.footer-child {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
}

.footer-child1 {
    align-items: end;
}

.footer-child2 {
    flex-direction: column;
    align-items: center;
}
/*@media (min-width: 768px) and (min-height: 320px) {
    .footer-child2 {
        color: darkred;
    }
}*/
.link-footer-cont {
    color: #9393c2;
}

.link-footer {
    text-shadow: 1px 1px 1px #d8d9e3,1px 2px 5px #151f6c,-1px 2px 5px #17248a,6px 6px 8px #0f1b7a;
    font-size: 2em;
    font-family: 'Noto Serif 700', serif;
}
a.link-footer:visited {
    color: inherit;
}
a.link-footer:hover {
    color: aliceblue;
}
@media (max-width: 480px) {

    .footer-parent {
        font-size: 0.8em;
    }
    .link-footer {
        font-size: 1.5em;
    }
}

.align-left {
    text-align: left;
}


.notransition {
    transition: none !important;
}

.invisible {
    opacity: 0;
}

.hidden {
    z-index: -1000;
}