/* Header  */

header{
    padding-top: 30px;
    height: 59px; /* based on the height after the content has been injected by JavaScript; eliminates load jitter */
}

/* responsive nav from https://blog.logrocket.com/create-responsive-mobile-menu-with-css-no-javascript/ */
nav{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--white);
    overflow: hidden;

}
nav a{
    display: block;
    /* controls the space between the menu items */
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: var(--blue);
}

nav{
    max-height: 0;
    transition: max-height .5s ease-out;
    margin-left: -5%;
}
/* Menu Icon */
header label{
    cursor: pointer;
    float: right;
    padding: 30px 20px;
}/* Style label tag */

header span {
    background: var(--blue);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;

} /* Style span tag */

header span::before,
header span::after{
    background: var(--blue);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
header span::before{
    top: 5px;
}
header span::after{
    top: -5px;
}

#side-menu {
    display: none;
} /* Hide checkbox */
/* Toggle menu icon */
#side-menu:checked ~ nav{
    max-height: 100%;

}
#side-menu:checked ~ label span {
    background: transparent;
}
#side-menu:checked ~ label span::before {
    transform: rotate(-45deg);
    top:0;
}
#side-menu:checked ~ label span::after {
    transform: rotate(45deg);
    top:0;
}
/* wide screen menu (i.e., desktop browsers) */
@media (min-width: 900px) {
    nav{
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
        margin-left: 0;
    }
    nav li{
        float: left;
    }
    nav a{
        margin-top: 0;
        margin-bottom: 0;
        font-size: 16px;
        display: inline-block;
        padding-bottom: 0;
        position: relative;
    }
    nav a:hover{
        background-color: transparent;
        color: var(--blue);
    }
    nav a::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background-color: var(--blue);       /* by default, the menu links are underlined in blue when mouse over */
        transition: width 0.25s ease-out;
    }
    nav a[href="leadership.html"]::before {
        background-color: var(--leadership); /* if the link is to leadership, then the link is underlined in yellow */
    }
    nav a[href="culture.html"]::before {
        background-color: var(--culture);    /* if the link is to culture, then the link is underlined in orange */
    }
    nav a[href="strategy.html"]::before {
        background-color: var(--strategy);   /* if the link is to strategy, then the link is underlined in blue */
    }
    nav a:hover::before {
        width: 100%;
    }
    header label{
        display: none;
    }
}

/* Footer */
footer{ /* no height defined (as with header above) since there doesn't seem to be load jitter with the footer */
    display: grid; 
    grid-template-columns: 1fr 1fr; /* 2 column layout, each with half the width */
}
#footercontactblock{
    padding-top: 25px; /* aligns the top with the top of the headline */
    width: 365px;
    font-size: 16px;
    line-height: 20px;
    justify-self: end; /* aligns the contentblock to the right side of its column */
}
#contentblockheadline{
    font-weight: 500;
    padding-bottom: 8px;
}
#linkedIn{
    float: right;
}
@media only screen and (max-width: 830px) { /* too small for headline and contact block to be side by side, so move the contact block below */
    footer{ display: block; }
}
#copyright{
    grid-column: 1 / 3; /* spans two columns */
    padding-top: 60px;
    font-size: 14px;
    color: #767676;
    text-align: center;
}