/* The navigation menu */
.navbar {
    display: flex;
    box-shadow: 10px 10px 10px #000000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #9b111e;
}

/* Navigation links */
.navbar a {
    float: none;
    display: inline-block;
    margin: 0 3%;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav {
    z-index: 9999;
}

/*styling for the underline link animation*/
.navbar a span {
    display: inline-block;
    position: relative;
}

.navbar a span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.6s ease-in-out;
}

.navbar a:hover span::after {
    width: 100%;
}

.navbar ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar li {
    height: 30px;
}

/*end styling for the underline link animation*/

/*this stops the element from wrapping*/
.navbar a[href="https://leadingedgecomputers.com/photo_gallery_index.html"] {
    white-space: nowrap;
}

.navbar a[href="https://leadingedgecomputers.com/about_us.html"] {
    white-space: nowrap;
}

/* The subnavigation menu */
.subnav {
    float: none;
    display: inline-block;
    margin: 0 3%;
    overflow: hidden;
}

/* Subnav button */
.subnav .subnavbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
}

/* Add a red background color to navigation links on hover */
.navbar a:hover,
.subnav:hover .subnavbtn {
    background-color: #0000cd;
    transition: background-color 1.0s;
}

/* Subnav content - hidden by default */
.subnav-content {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 1.0s;
    /* Hides it initially */
    position: absolute;
    left: 0;
    background-color: #0000cd;
    width: 100%;
    z-index: 1;
    justify-content: center;
    box-shadow: 15px 15px 15px #000000;
    /* Still applies when shown */
}

/* Style the subnav links */
.subnav-content a {
    color: white;
    text-decoration: none;
    padding: 14px 16px;
    text-align: center;
    margin: 0 3%;
}

/* Add a changed background color on hover */
/* .subnav-content a:hover {
    background-color: #eee;
    color: #0000cd;
} */

/* Show submenu on hover */
.subnav:hover .subnav-content {
    visibility: visible;
    opacity: 1;
    display: flex;
    /* Only show and use flex when hovering */
}

/*fixes for monochrome filter*/
#float-nav-bar {
    position: relative;
    width: 100%;
}

#float-nav-bar.floating {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

/*this section determines if the navigation bar should or should not be displayed based upon the user's screen size
/*small tablet styles*/
@media screen and (min-width: 300px) {

    #hide-on-mobile {
        display: none;
    }

}

/* large tablets and laptop styles*/
@media screen and (min-width: 860px) {

    #hide-on-mobile {
        display: none;
    }

}

/*desktop styles */
@media screen and (min-width: 1400px) {

    #hide-on-mobile {
        display: flex
    }

}