
/* 
    Created on : Jun 1, 2020, 6:36:37 PM
    Author     : eriedel
*/

.topnav {
    overflow: hidden;
    background-color: #e9e9e9;
    opacity: 0.8;
}

.topnav a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover, .topnav .account-container:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.active, .topnav .account-container.active {
    background-color: #2196F3;
    color: white;
}

.topnav .icon {
    display: none;
}

.topnav .login-container {
    float: right;
}

.topnav input[type=text] {
    padding: 6px;
    margin-top: 8px;
    font-size: 17px;
    border: none;
    width:120px;
}

.topnav input[type=password] {
    padding: 6px;
    margin-top: 8px;
    font-size: 17px;
    border: none;
    width:120px;
}

.topnav .account-container {
    float: right;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav .login-container button {
    float: right;
    padding: 6px 10px;
    margin-top: 8px;
    margin-right: 16px;
    background-color: #555;
    color: white;
    font-size: 17px;
    border: none;
    cursor: pointer;
    opacity: 1;
}

.topnav .login-container button:hover {
    background-color: green;
}

@media screen and (max-width: 600px) {

    .topnav .login-container {
        float: none;
    }

    .topnav input[type=text], .topnav .login-container button, .topnav input[type=password] {
        float: none;
        display: block;
        text-align: left;
        width: 100%;
        margin: 0;
        padding: 14px;
    }

    .topnav input[type=text], .topnav input[type=password] {
        border: 1px solid #ccc;  
    }
}

/*
How TO - Responsive Top Navigation
https://www.w3schools.com/howto/howto_js_topnav_responsive.asp
*/

@media screen and (max-width: 600px) {
    /*    .topnav a:not(:first-child) {display: none;} */
    .topnav a {display: none;}
    .topnav a.icon {
        float: right;
        display: block;
    }   
}

@media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    } 

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}

