/* Create a sticky/fixed navbar */
#navbar {
    overflow: hidden;
    background-color: #768070;
    padding-top: 0px!important;
    padding: 13px 0px; /* Large padding which will shrink on scroll (using JS) */
    transition: 0.4s; /* Adds a transition effect when the padding is decreased */
    position: fixed; /* Sticky/fixed navbar */
    width: 100%;
    top: 40px; /* At the top */
    z-index: 99;
}
#navbar-2{
    width: 100%;
    top: 0px; /* At the top */
    z-index: 99;
}
#logo{
    width: 119px;
    padding: 13px;
}
#navbar-2{
 height: 40px;
    background-color: #9E9B8B;
    position:fixed;
}

/* Style the navbar links */
#navbar a {

}
#navbar-right a,
#navbar-left a,
.izquierda a,
.derecha a
{
    padding: 0 10px;
    color: #D4CCC2;
}
/* Style the logo */
#navbar #logo {
    font-size: 35px;
    font-weight: bold;
    transition: 0.4s;
}

/* Links on mouse-over */
#navbar a:hover {
color: #9E9B8B;
}

/* Style the active/current link */
#navbar a.active {
    background-color: dodgerblue;
    color: white;
}
.centro{
    text-align: center;
}
.centro a {
    padding:10px;
    top: .5em;
    position: relative;
}
/* Display some links to the right */
.derecha {
    float: right;
    padding: 10px;
    padding-right: 10%;
    color: white;
}
/* Display some links to the right */
#navbar-right {
    float: right;
    padding: 7px;
    padding-right: 10%;
    margin-top: 1%;
}

/* Display some links to the right */
#navbar-left {
    float: left;
    padding: 7px;
    padding-left: 10%;
    margin-top: 1%;
}/* Display some links to the right */
.izquierda {
    float: left;
    padding: 10px;
    padding-left: 10%;
    color: white;
}

/*overlay*/
.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.9);
    overflow-y: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

@media screen and (min-width: 721px){
    .overlay{display: none}
    #myNav{display: none}
    .elspan{display: none}
    .navmobile{display: none !important;}
}

/* Add responsiveness - on screens less than 580px wide, display the navbar vertically instead of horizontally */
@media screen and (max-width: 720px) {
    #navbar {
        padding: 20px 10px !important; /* Use !important to make sure that JavaScript doesn't override the padding on small screens */
    }
    #navbar a {
        float: none;
        display: block;
        text-align: left;
    }
    #navbar-right {
        float: none;
    }
    .desktop{
        display: none !important;
    }
    .overlay{display: inherit}
    #myNav, .navmobile{display: inherit}
    .elspan{display: inherit}
}


@media screen and (max-height: 450px) {

    .overlay {overflow-y: auto;}
    .overlay a {font-size: 20px}
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

