/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================
   Site header, hamburger menu, and nav links
   ============================================================================ */

/* Header */
header {
    overflow: hidden;
}

/* Logo */
.nav_logo {
    display: inline-flex;
    align-items: center;
}

.nav_logo img {
    margin-top: 4px;
    margin-bottom: 10px;
    margin-left: 10px;
    display: inline-block;
    height: 80px;
    width: auto;
}

/* Hamburger Menu */
#hamburger_checkbox {
    display: none;
}

#hamburger_image {
    background-color: rgba(255, 255, 255, 0);
    display: block;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    width: 10%;
}

#hamburger_image:hover {
    background-color: rgba(43, 43, 43, 0.432);
    cursor: pointer;
    border: #ebeaea 1px solid;
    border-radius: 5px;
}

#menu_heading {
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Show or hide the menu */
#hamburger_checkbox:not(:checked) + nav {
    display: none;
}

/* Navigation Links — scoped to header so docs nav is unaffected */
header nav a {
    color: white;
    float: left;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    width: 98%;
    border-radius: 10px;
    margin: 15px 0 10px 5px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

header nav a:hover {
    border-width: 1px;
    border-style: solid;
    border-color: rgba(96, 165, 250, 0.55);
    color: #fff;
}

header nav a:focus {
    background-color: white;
    color: black;
    outline: none;
}

/* Active Link */
header nav a.active_nav {
    border-color: rgb(255, 255, 255);
    color: rgb(255, 247, 247);
    border-width: 1px;
    border-style: solid;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 775px) {
    #menu_heading {
        display: none;
    }

    #hamburger_image {
        display: none;
    }

    #hamburger_checkbox:not(:checked) + nav {
        display: block;
    }

    header nav {
        float: right;
        margin-bottom: 5px;
    }

    header nav a {
        width: auto;
    }
}

/* Large devices (laptops/desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    header {
        margin: 0 auto;
    }
}
