/* Global reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    width: 100%;
    height: 100%;
    font-family: Helvetica, sans-serif, Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

/* Header component styling */
header {
    width: 100%;
    height: 6vh;
    display: flex;
    position: relative;
    z-index: 99;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    border-bottom: 1px solid #d0ddec;
}

a.sitelogo {
    margin-left: 2%;
    display: flex;
    align-items: center;
    font-family: serif;
    font-size: 4vmin;
    font-weight: 600;
    line-height: 5vmin;
    color: #FF4757;
}

a.sitelogo img {
    width: 3.45vmin;
    height: auto;
    margin-right: 4px;
}

@media only screen and (max-width: 768px) {
    a.sitelogo {
        font-size: 6.00vmin;
        font-weight: 300;
        line-height: 6vmin;
    }

    a.sitelogo img {
        width: 5.15vmin;
    }
}

/* Navigation menu styling */
nav {
    margin-right: 2%;
}

ul.menubar {
    margin: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
}

ul.menubar li {
    margin-left: 3rem;
}

ul.menubar li:has(> .hidden) {
    display: none !important;
}

ul.menubar li a {
    display: block;
    font-size: 2.35vmin;
    font-weight: 300;
    text-align: center;
    text-transform: uppercase;
    color: #464646;
}

ul.menubar li a:hover {
    color: darkslategray;
}

ul.menubar li a.active {
    mix-blend-mode: luminosity;
}

@media only screen and (max-width: 768px) {
    ul.menubar {
        width: 100%;
        position: fixed;
        top: 5.9vh;
        left: -100%;
        border-bottom: 1px solid #d0ddec;
        border-radius: 0 0 15px 15px;
        background-color: aliceblue;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        transition: 0.5s;
    }

    ul.menubar.open {
        left: 0;
        z-index: 9;
    }

    ul.menubar li {
        width: 100%;
        margin: 0;
        border-top: 1px solid #d0ddec;
    }

    ul.menubar li a {
        padding: 2.5vw 4vw 2.5vw 4vw;
        font-size: 3.50vmin;
        text-align: left;
    }

    ul.menubar li a::after {
        width: 0;
        height: 0;
        margin-top: 3px;
        content: "";
        position: absolute;
        right: 4vw;
        border-top: 1.5vmin solid transparent;
        border-bottom: 1.5vmin solid transparent;
        border-left: 1.5vmin solid #C8A962;
    }
}

/* Hamburger menu button */
div.hamburger {
    display: none;
    font-family: Arial, Helvetica, sans-serif;
}

div.hamburger span {
    width: 6.6vmin;
    height: 0;
    display: block;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    border-top: 1vmin solid darkcyan;
    border-radius: 5vmin;
}

@media only screen and (max-width: 768px) {
    div.hamburger {
        display: flex;
        flex-direction: column;
        gap: 1.0vmin;
        cursor: pointer;
    }

    div.hamburger.open span:nth-child(1) {
        transform: translateY(1.8vmin) rotate(45deg);
    }

    div.hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    div.hamburger.open span:nth-child(3) {
        transform: translateY(-1.9vmin) rotate(-45deg);
    }
}

/* Main container styling */
main {
    width: 100%;
    min-height: 90vh;
    padding: 2%;

    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

main>h1 {
    width: fit-content;
    margin: 0 0 10px 0;
    padding: 8px 10px;
    background-color: #ffffff;
    border: 1px solid #e1e5ea;
    border-left: 5px solid rgb(var(--material-theme-color1, 33, 150, 243));
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    font-size: 1.15em;
    font-weight: 600;
    color: #1b2f42;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

main>h2 {
    margin: 40px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #edf2f7;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2b3648;
    letter-spacing: -0.01em;
    position: relative;
}

main>h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: rgb(var(--material-theme-color1, 33, 150, 243));
}

main>h3 {
    margin: 30px 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #3f4b5b;
    letter-spacing: -0.005em;
}

main>h4 {
    margin: 20px 0 8px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
}

main>p {
    margin: 0 0 18px 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4a5568;
    letter-spacing: 0.01em;
}

main>ul {
    margin: 0 0 20px 20px;
    padding: 0;
    line-height: 1.7;
    color: #4a5568;
}

main>ul li {
    padding: 6px 0;
}

main>p strong,
main>ul strong {
    font-size: 105%;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    main>h1 {
        margin: 0 auto 20px auto;
        font-size: 1em;
    }
}

/* Footer component styling */
footer {
    width: 100%;
    height: 4vh;
    display: flex;
    position: relative;
    z-index: 99;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    border-top: 1px solid #d0ddec;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    letter-spacing: -0.01em;
}

span.copyright {
    margin: 0 2% 0 2%;
    overflow: hidden;
    font-size: 1.60vmin;
    color: darkslategray;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

ul.links {
    margin: 0 2% 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul.links li {
    margin-left: 1.5vw;
    font-size: 1.50vmin;
    white-space: nowrap;
}

ul.links li a {
    font-size: 110%;
    color: darkolivegreen;
}

footer ul.links li a:hover {
    color: crimson;
}

ul.links li a.active {
    color: crimson;
    text-decoration: underline;
}

@media only screen and (max-width: 768px) {
    span.copyright {
        font-size: 2.35vmin;
    }

    ul.links li {
        font-size: 2.35vmin;
    }
}

/* Panel layout styling */
*.panel {
    margin: 0;
    padding: 0;
}

*.panel .fullway {
    display: flex;
    align-items: center;
}

*.panel .halfway {
    display: flex;
    justify-content: space-between;

    >* {
        width: 49.5%;
    }
}

*.panel .rightway {
    text-align: right;
}

*.panel .midway {
    text-align: center;
}

*.panel .splitway {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media only screen and (max-width: 768px) {
    *.panel .halfway {
        display: block;

        >* {
            width: 100%;
        }
    }
}

/* Switch menu styling */
div.switch {
    display: inline-flex;
    position: absolute;
    right: 2%;
    top: calc(6vh + 15px);
    background-color: #f7f9fc;
    border: 1px solid #d0ddec;
    border-radius: 30px;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

div.switch a {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #5f6368;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

div.switch a+a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #d0ddec;
    transition: all 0.2s ease;
}

div.switch a:hover+a::before,
div.switch a:hover::before {
    opacity: 0;
}

div.switch a:hover {
    color: #1a73e8;
    background-color: rgba(26, 115, 232, 0.08);
}

@media only screen and (max-width: 768px) {
    div.switch {
        position: relative;
        top: auto;
        margin: 25px auto 5px auto;
        display: flex;
        justify-content: center;
        width: max-content;
    }

    div.switch a {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Alert notify styling */
div.alert {
    min-height: 2em;
    margin: 0.25% 2% 0 2%;
    padding: 10px;
    display: none;
    position: fixed;
    bottom: 5vh;
    z-index: 9;
    background-color: #000000;
    border-radius: 8px;
    font-size: 1em;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

div.alert.notice {
    background-color: #3664D8;
}

div.alert.success {
    background-color: #04AA6D;
}

div.alert.warning {
    background-color: #ff9800;
}

div.alert.error {
    background-color: #F44336;
}

div.alert .close {
    margin-left: auto;
    padding: 4px 5px;
    position: absolute;
    top: 0;
    right: 0;
    align-self: center;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    color: white;
    transition: 0.3s;
}

div.alert .close:hover {
    color: yellow;
}