@font-face { font-family: 'Cascadia Code'; src: url(Cascadia.ttf); font-display: swap; }
.hl { color: #2255bb; }
.left { text-align: left; }
.right { text-align: right; }

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-family: 'Cascadia Code', 'Courier New', Courier, monospace;
}

header a, footer a { text-decoration: inherit; color: inherit; }
/*header a:hover { text-decoration: underline; }*/

.animate-underline {
    display: inline-block;
    position: relative;
    margin-block: 0px;
}
  
.animate-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #eeeeee;
    transform-origin: bottom right;
    transition: transform 0.12s ease-out;
}
  
.animate-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.links a.active { text-shadow: .05rem .05rem #424242, 0 0 1rem #ffffff;}

.links {
    list-style-type: none;
    padding: 0;
    margin-block: 0;
    max-width: 1500px;
    margin-inline: auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.links li { padding-block: 1.1rem; }
.links li.icon { display: none; padding: 0;}
.links li.icon a { padding-right: 51px; } /* all have 41px, + scrollabr is 51 to align */
.links li.icon a span {
    width: 20px;
    height: 2px;
    border-radius: 9px;
    background-color: #ffffff;
    display: block;
    margin-bottom: 5px;
    transition: all ease-in-out .1s;
}
.links li.icon a:hover span {
    transform: scale(1.2);
    box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.301);
}
.links li.icon span:nth-child(3) { margin-bottom: 0px; }

@media screen and (max-width: 600px) {
    .links { justify-content: space-between; }
    .links a { padding-inline: 41px; }
    .links li:not(:has(.active)) { display: none; }
    .links li.icon { display: block; }
}

@media screen and (max-width: 600px) {
    .links.responsive {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        
    }
    .links.responsive li.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .links.responsive li {
        float: none;
        display: block;
        text-align: left;
    }
}

footer {
    border-top-style: solid;
    border-top-width: 1px;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

footer > * { flex-grow: 1; text-align: center; padding-inline: 20px; }
footer a { text-decoration: underline; }

main, footer {
    padding: 20px;
    max-width: 1150px;
    margin-inline: auto;
    width: 100%;
    box-sizing: border-box;
}

.high-contrast {
    cursor: pointer;
    text-decoration: underline;
}

@media screen and (max-width: 800px) {
    /* Footer align old site mesasge to right */
    footer { flex-direction: column; }
    footer .left { text-align: center; margin-bottom: .4em; }
    footer .right { text-align: center; margin-top: .4em; }
}

@media screen and (max-width: 655px),
       print and (orientation : portrait) {
    /* For mobile phones: */
    .image { display: none; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { border-radius: 10px; }