:root {
    --accent-color: #FF0000;    /*#F95700;*/
    --is-mobile: 0;
}
@media (max-width: 768px) {
    :root {
        --is-mobile: 1;
    }
}


/*page structure*/
html, body {
    margin: 0;
    padding: 0;

    height: 100%;

    display: flex;
    flex-direction: column;

    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}
/*end*/



/*general*/
h1, h2, h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
}

a {
    color: black;
}
a:hover {
    color:var(--accent-color);
}

hr {
    border: none;
    height: 1px;
    background-color: black;
}
/*end*/



/*header*/
#skip_link {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: white;
    color: #696969;
    padding: 12px 24px;
    border-radius: 5px;
    border-color: #696969;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}
#skip_link:focus {
    opacity: 1;
    pointer-events: auto;
}

#top_container {
    background-color: whitesmoke;
    text-align: center;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    flex-wrap: nowrap;

    padding: 1rem 10%;

    font-family: Georgia, "Times New Roman", Times, serif !important;
}

@media (max-width: 768px) {
    #top_container {
        justify-content: space-evenly;
        padding: 0.5rem 0;
    }
}

#top_container .dummy {
    flex-shrink: 1;

    width: calc(clamp(2.2rem, 8vw, 4rem) * 3 + 2rem);
}

#top_container .logo {
    flex-shrink: 0;
    margin-left: 2rem;
    width: calc(clamp(2.2rem, 8vw, 4rem) * 3);
}

@media (max-width: 768px) {
    #top_container .dummy {
        display: none;
    }

    #top_container .logo {
        margin-left: 0;
    }
}


#top_container a {
    text-decoration: none;
    color: black;
}
#top_container a:hover {
    color: black;
}
#top_container .logo a {
    display: inline-block;
    line-height: 0;
}

#top_container .logo img {
    width: 100%;
}

#top_container .header {
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
}
#top_container .main-header {
    font-weight: normal;

    font-size: clamp(1.8rem, 8vw, 4rem);
}
#top_container .sub-header {
    font-weight: normal;

    font-size: calc(clamp(1.8rem, 8vw, 4rem) * 0.43);
}




#header_space {
    height: 0;
    flex-shrink: 0;
}
#logo_spacer {
    width: calc(clamp(2.2rem, 8vw, 4rem) * 3 + max(0px, calc(15vw - 10rem)));
    margin: auto 0;
}
#logo {
    width: calc(clamp(2.2rem, 8vw, 4rem) * 3);
    margin: auto 0;
    margin-right: max(0px, calc(5rem - 10vw), calc(15vw - 10rem));
}


nav {
    position: relative;
    height: clamp(2.5rem, 5vw, 3.4rem);
    flex-shrink: 0;

    z-index: 50;
    
    background-color: white;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
}
nav.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

nav a {
    text-decoration: none;
    font-size: 1.125rem;
}
nav button {
    display: none;
    background-color: transparent;
    color: black;
    border: none;
    padding: 0;
    height: 100%;
    width: 3rem;

    cursor: pointer;
}
nav button .icon {
    fill: black;
}
nav button:hover .icon {
    fill: var(--accent-color);
}
nav .navbar {
    display: flex;
    height: 100%;
    margin: 0;

    padding-left: clamp(0.5rem, 3vw, 2rem);
    gap: 1rem;
    
	list-style: none;
    align-items: center;
}

#overlay {
    position: fixed;
    inset: 0;
    z-index: 9;
    background: #00000077;
    display: none;
}
@media (max-width: 768px) {
    nav .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(15em, 100%);
        padding: 1rem;

        z-index: 10;
        border-right: 1px solid black;
        background-color: whitesmoke;
        transition: left 300ms ease;

        flex-direction: column;
        gap: 1rem;
    }
    nav .navbar.show{
        left: 0 !important;
    }
    nav .navbar.show ~ #overlay{
        display: block;
    }

    nav .navbar li {
        width: 100%
    }

    nav .navbar a,
    nav .navbar button {
        display: inline-block;
        width: 100%;

        font-size: 2rem !important;
    }
    #open_sidebar_button {
        display: block;
        padding-left: 1rem;
    }
    #close_sidebar_button {
        display: flex;
        height: 2rem;
        justify-content: end;
    }
}
/*end*/



/*content*/
#content {
    text-align: center;
    overflow-wrap: break-word;

    box-sizing: border-box;
    max-width: 100%;
    width: max(32rem, 65%);
    margin: auto;
    padding: 1rem 3rem;
    margin-top: 0;

    box-shadow: 0 0 1.5rem 0px #0008;

    flex: 1;
}
#content > *:not(.wide):not(table) {
    max-width: 45rem;
    margin-left: auto;
    margin-right: auto;
}

#content > * {
    text-align: left;
}
/*end*/



/*footer*/
footer {
    background-color: lightgray;
    padding: 0.6rem;
    text-align: center;
    font-size: 0.9rem;
}
footer a {
    text-decoration: none;
}

footer .top {
    display: flex;
    
    max-width: min(100%, 45rem);
    width: max(32rem, 65%);
    margin: 0 auto;

    padding: 1rem;

    box-sizing: border-box;
}

footer .section-container {
    margin-right: auto;

    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    gap: 2rem; 
}

footer .section {
    position: relative;

    display: flex;
    flex-direction: column;
    text-align: left;

    max-width: 150px;
     
    font-size: 1rem;
}

footer .logo a {
    display: inline-block;
    line-height: 0;
}
footer .logo img {
    max-width: 150px;
}


footer .section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .section li {
    margin-top: 10px;
    font-size: 0.875rem;
}

footer .bottom {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    font-size: 0.875rem;

    padding: 0.5rem;
    gap: 0.4rem;
}

footer .bottom > * {
    margin: 0 1.5rem;
}

footer .copyright {
    white-space: nowrap;
}