/* Add a black background color to the top navigation */
.topnav {

  padding-top: 10px;
  padding-bottom: 25px;
  height: 100%;

  background-blend-mode:luminosity;
 
  background-image: url(../imgfondos/fondos3.jpg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
    
  overflow: hidden;
        box-shadow: inset -40px 100px 200px -50px #0c0c0c;
    background-color: #231658;
}

.menuimagen {
    width: 150px;
    background-color: #623898;
    margin-top: -17px;
    border-radius: 5px;
    box-shadow: 7px 4px 10px black;

}

.menuico{
    
    width: 140px;
    margin-top: -9px;
}

/* Style the links inside the navigation bar */

.topnav a {
    font-family: Franklin Gothic;
    display:inline-block;
    padding: 5px;


  text-decoration: none;
  font-weight: bold;
     
    

   
   
    
 width:fit-content;
 height: 40px;
 font-size: 1.3em;
 margin-left: 0.5%;
    margin-top: 2%;
 margin-right: 0.5%;
 cursor: pointer;
 color: #ffffff;
     text-shadow:   2px 2px 4px #0c0c0c;
 border: none;
 border-radius: 5px;
 transition: all .4s;
}

/* Change the color of links on hover */
.topnav a:hover {
    
    
 border-radius: 5px;
 transform: translateY(-10px);
 box-shadow: 0 7px 0 -2px #f31c5a,
  0 15px 0 -4px #1868f4,
  0 16px 10px -3px #39a2db;
}

/* Add an active class to highlight the current page */
.topnav a.active {
    
    
    
padding: 8px;
  color: white;
  background-color: none;  

}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    padding-top: 5px;
  display: none;
    background-color: #77658e;
     box-shadow: 7px 4px 10px black;
   
}


/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 700px) {
  
  .menuico{
    
    width:90px;
   
    margin-top: 2px;
}
  

  
  .topnav a:not(:first-child) {display: none;}
    
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 701px) {
    
    
    
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  
  .topnav a{
    justify-self:center;
    
  }
  .topnav.responsive a {
    float: none;
    display: block;
  
  }
}