/* =Site Navigation -------------------------------------------------------------- */
.site-navigation {
    width: 100%; /* Does the top bar extend to the right edge of the page */
}
.site-navigation a { /* Links colour inside the top bar */
    color: rgba( 0, 0, 0, 1 );
}

/* =Navigation Menu (the bar at the top [Menu, About]) -------------------------------------------------------------- */
.main-navigation, .menu-toggle { /* Small menu */
    background-color: rgb( 240, 240, 240 );
    background-image: linear-gradient( rgba( 240, 240, 240, 0.8 ), rgba( 210, 210, 210, 0.8 ) ); /* colour of bg of buttons */
    float: left;
    font-size: {{ site.font_size_18px }}; /* Font size of menu items */
    margin: 0;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0 0px; /* Shift menu */
    display: flex;
    justify-content: center;
}
.main-navigation li {
    float: left;
    position: relative;
}
.main-navigation li li {
    width: 180px;
}
.main-navigation a {
    display: block;
    padding: 6px 13px 7px;
    text-decoration: none;
    word-wrap: break-word;
}
.main-navigation ul ul {
    background: rgb( 255, 255, 255 );
    background: rgba( 255, 255, 255, .95 );
    box-shadow: 2px 2px 0 0 rgba( 0, 0, 0, .1 );
    display: none;
    float: left;
    padding: 0;
    position: absolute;
        top: 39px;
    width: 180px;
    z-index: 99999;
}
.main-navigation ul ul ul {
    top: 0;
    left: 180px;
}
.main-navigation ul li:hover > ul {
    display: block;
}
.main-navigation a:focus,
.main-navigation li:hover > a,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a,
.main-navigation .current_page_ancestor > a {
    background-color: rgb( 215, 215, 215 );
    background-image: linear-gradient( rgba( 215, 215, 215, 0.8 ), rgba( 180, 180, 180, 0.8 ) );
}
.main-navigation li li:hover > a,
.main-navigation li li a:hover {
    background: rgb( 215, 215, 215 );
    background: rgba( 215, 215, 215, 0.9 );
    box-shadow: none;
    color: rgb( 13, 61, 155 );
    color: rgba( 13, 61, 155, 1 );
}
.main-navigation li .current-menu-item > a,
.main-navigation li .current-menu-ancestor > a,
.main-navigation li .current_page_item > a,
.main-navigation li .current_page_ancestor > a {
    background: rgb( 230, 230, 230 );
    background: rgba( 230, 230, 230, 0.9 );
    box-shadow: none;
    color: rgb( 13, 61, 155 );
    color: rgba( 13, 61, 155, 1 );
}
h1.menu-toggle {
    cursor: pointer;
    float: none;
    line-height: 26px;
    padding: 13px 0;
    text-align: center;
}
.assistive-text {
    clip: rect( 1px 1px 1px 1px );
    clip: rect( 1px, 1px, 1px, 1px );
    position: absolute !important;
}

/* Dropdown list https://www.w3schools.com/howto/howto_css_dropdown_navbar.asp */
.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    border: none;
    outline: none;
    padding: 6px 13px 7px;
    background-color: inherit;
    font-family: inherit;
    font-size: {{ site.font_size_18px }}; /* font size of drop down buttons; must match "font size of menu items" */
    margin: 0;
    /* cursor: pointer; this lets the pointer transform into a finger on hover (not needed as it's not a link itself) */
}

.navbar a:hover,
.dropdown:hover .dropbtn {
    background-color: rgb( 200, 200, 200 );
}

.dropdown-content {
    margin-top:34px; /* This should be short enough so as not to leave a gap between the button and the drop down list */
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}
