header {
    z-index: 100;
    position: fixed;
    width: 100vw;
    transition: top 0.3s ease-in-out; /* request an transition on the change of the top property */
    -moz-transition: top 0.3s ease-in-out;
}

header .logo img {
    width: 57px;
    height: 57px;
    display: block; /* Prevent space below the logo because it is inside an link tag made by default for text with space letters like y and g */
}

.header-content, .navigation-menu {
    box-shadow: -4px 8px 5px 3px rgba(0, 0, 0, 0.3)
}

.header-content {
    display: flex;
    width: 100%;
    align-items: center; /* This will vertically center the items if they are of different heights */
    justify-content: space-between; /* This will place space between the items, pushing them to either end of the container */
}

.top-level-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /*Navigation Menu on right*/
    z-index: 101;
    overflow-x: hidden;
}

.navigation-menu {
    display: flex;
    flex: 1;
    position: absolute;
    top:57px;
    right: -55%; /* Shift the navigation menu out of view*/
    width: 50%;
    padding: 0;
    margin-top: 0;
    overflow-y: auto; /* To allow scrolling if the content inside is more than the available space */
    transition: right 0.3s ease-in-out; /* request an transition on the change of the right property */
    -moz-transition: right 0.3s ease-in-out;
}

.navigation-menu ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100vh;
    list-style: none;
    margin: 0 0 0 20px;
    padding: 0;
    font-family: var(--md-sys-typescale-label-medium-font-family-name);
    font-style: var(--md-sys-typescale-title-medium-font-family-style);
    font-weight: var(--md-sys-typescale-title-medium-font-weight);
    font-size: var(--md-sys-typescale-title-medium-font-size);
}
.navigation-menu li {
    margin-top: 20px;
}

.navigation-menu a, .navigation-menu button {
    text-decoration: none;
    color: var(--md-ref-palette-neutral-variant30);
}

/* Reposition navigation menu when the toggle is active */
.navigation-menu-opened {
    right: 0;
}

.navigation-menu-buttons-container {
    position: relative;
    width: 57px;
    height: 57px;
    -webkit-margin-end: 30px;   /*Fixes SWS-36 where menu icons would be too far right*/
}

.open-navigation-button, .close-navigation-button {
    width: 57px;
    height: 57px;
    background: none;
    border: none;
    color: #212529;
    cursor: pointer;
    position: absolute;
    top: -10px;
    left: 0;
    opacity: 1;
    z-index: 1;
}

.close-navigation-button {
    font-weight: normal;
}

.menu-button-in-view {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    z-index: 2;
}

.menu-button-out-of-view {
    opacity: 0;
    z-index: 1;
}

/* Media query for larger screens */
@media screen and (min-width: 1024px) {

    .top-level-container {
        position: relative;
    }

    .open-navigation-button {
        display: none; /* Hide the toggle button */
    }

    .navigation-menu {
        display: flex; /* Show the navigation items */
        box-shadow: none; /* Remove shadow */
        top: 0;
        right: 0;
        width: auto;
    }

    .navigation-menu ul {
        flex-direction: row;
        height: auto;
        padding: 0 20px;
    }

    .navigation-menu li {
        margin-right: 20px;
    }

    .navigation-content-item a:hover {
        transition: color 0.2s ease-in;
        color: var(--md-ref-palette-neutral-variant70)
    }
}

.header-title {
    font-family: var(--site-brand-font);
    margin: 0;
    padding-left: 30px;
    flex: 1;
}
