#sbn-header {
    width: 100%;
    background-color: #000;
    height: 150px;
    color: #ededed;
    display: flex;
    flex-flow: row nowrap;
    background-image: url("../images/bennu.jpg");
    background-size: 40%;
    background-repeat: no-repeat;
    background-position-x: right;
}

.sbn-title-container {
    background-color: #000;
    max-width: 60vw;
    padding-left: 1em;
    padding-bottom: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sbn-title {
    margin-top: auto;
    line-height: initial;
    font-size: 3em;
}

.sbn-title a {
    align-self: flex-end;
    text-decoration: none;
    color: #ededed;
}

.sbn-title a:hover::after {
     
    background-image: url('/pds/images/external.svg');
    
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: 4px 4px;
    display: inline-block;
    padding-left: 1em;
    padding-top: 2px;
    width: 20px;
    height: 30px;
    content:"";
}

.sbn-subtitle {
    margin: 0;
    line-height: initial;
    padding: 0;
    text-decoration: none;
    color: #ededed;
    font-size: 0.9em;
}

.sbn-subtitle:hover {
    color: white;
}

.gradient-bar {
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 100%);
}

.menu-container {
    display: flex;
    flex-flow: row nowrap;
}

.menu-clickable {
    margin: 0;
    padding: 0;
    color: white;
}

nav {
    height: 57px; /* nav bar height */
    position: sticky;
    top: 0px;
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--section-header);
    box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);
}


#menu-drawer {
    padding: 8px;
    margin-left: 8px;
    display: flex;
}

.menu-handle>div {
    display: block;
    padding: 16px;
}

.menu-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background: var(--raised-content);
}


.menu-list li {
    position: relative;
    list-style-type: none;
    display: block;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.menu-list li a:hover {
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    background: var(--raised-content-hover);
}

.menu-list a {
    display: block;
    padding: 16px;
    color: var(--text) !important;
    text-decoration: none;
}

.menu-list .divider {
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
    border-top: 1px solid var(--hr);
}

/* Search */

.search-container {
    margin-left: auto;
    margin-right: 8px;
    min-width: 300px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

.search-box {
    width: 100%;
    background: var(--background-l1);
    border-radius: 4px;
    display: flex;
    flex-flow: row nowrap;
    transition: all 0.3s ease-in-out;
    position: relative;
}
.search-box input::placeholder { 
    color: var(--secondary-text);
    opacity: 1; 
  }

.search-box.focused {
    background: var(--raised-content);
    box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);
}

.search-box .search-icon {
    width: 1.5em;
    height: 1.5em;
    padding: 8px;
    fill: var(--icon);
}

.search-box .input-field {
    flex-grow: 1;
}

.search-box input {
    font-size: 1em;
    height: 100%;
    background: none;
    border: 0;
    width: 100%;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

.search-box input:focus {
    outline: none;
}

.search-results {
    width: 300px;
    position: absolute;
    top: 107px;
    background: var(--raised-content);
    box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);
    overflow-y: scroll;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 4px;
}

.search-result {
    display: block;
    margin: 0;
    padding: 0;
}

.search-results a, .search-results p {
    display: block;
    padding: 12px 24px;
    margin: 0;
}

.search-results .no-results {
    text-align: center;
}

.search-result a {
    color: var(--text) !important;
    text-decoration: none;
}

.search-result a:hover {
    background: var(--raised-content-hover);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.search-filter {
    width: 300px;
    position: absolute;
    top: 57px; /* bar height */
    background: var(--raised-content);
    box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    border-radius: 4px;
}

.search-filter input {
    display: none;
}

.search-filter .toggle-option {
    padding: 0 15px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02857em;
    border: 1px solid var(--link);
    background-color: transparent;
    color: var(--link);
    box-sizing: border-box;
}
.search-filter .toggle-option.focused{
    background-color: var(--button);
    border-color: var(--button);
    color: var(--button-contrast);
}
.search-filter .toggle-option:first-child {
    border-right-color: transparent;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.search-filter .toggle-option:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.search-filter .toggle-option:hover {
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    background-color: var(--raised-content-hover);
    color: var(--link-hover);
    cursor: pointer;
}
.search-filter .toggle-option.focused:hover {
    background-color: var(--button);
}

/*Simple css to style it like a toggle switch*/

#theme-switch {
    padding: 8px;
    display: flex;
}

#theme-switch label {
    display: inherit;
    cursor: pointer;
}

#theme-switch input {
    display: none;
}

#theme-switch svg, #menu-drawer svg {
    fill: var(--icon);
    transition: fill 0.3s ease-in-out;
}

/* Responsive breakpoints */

@media (max-width: 767px) {
    .sbn-title {
        font-size: 1em;
    }
    .sbn-subtitle {
        font-size: 2em;
    }
    #search-bar {
        display: none;
    }
    #theme-switch {
        margin-left: auto;
    }
    .menu-handle {
        background-color: var(--section-header);
    }
    #menu-drawer {
        position: relative;
    }
    #menu {
        display: flex;
        flex-flow: column nowrap;
        position: fixed;
        width: 300px;
        top: 0;
        left: -300px;
        bottom: 0;
        overflow-y: scroll;
        transition: all cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
        z-index: 2;
    }
    #menu.open {
        left: 0;
        box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12);
    }
    #menu-backdrop {
        z-index: 1;
        position: fixed;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        opacity: 0;
        background-color: rgba(0, 0, 0, 0.32);
        transition: opacity cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
    }
    #menu-backdrop.on {
        width: 100vh;
        height: 100vh;
        opacity: 1;
    }
}

/* iPad (landscape mode) & wider */

@media (min-width: 768px) {
    #search-bar {
        display: block;
    }
    #sbn-header {
        height: 300px;
    }
    .sbn-title {
        font-size: 2em;
    }
    .sbn-subtitle {
        font-size: 4em;
    }

    #menu-drawer {
        display: none;
    }

    #menu {
        display: flex;
        flex-flow: row nowrap;
    }
    #menu-backdrop {
        display: none;
    }

    .menu-list {
        transition: visibility 0, opacity 0.3s ease-in-out;
        position: absolute;
        top: 57px; /* nav bar height */
        opacity: 0;
        visibility: hidden;
        box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12);
        border-radius: 0 0 4px 4px;
        overflow: hidden;
    }

    .menu-handle:hover {
        background: var(--raised-content);
        cursor: pointer;
    }

    .menu-handle:hover .menu-list {
        visibility: visible;
        opacity: 1;
        cursor: pointer;
        z-index: -1;
    }
}