/*** Responsive-DESKTOP ***/
@media screen and (min-width: 686px) {  
  /* Add a black background color to the top navigation */
  #menu-panel {
    background-color: #333;
    overflow: hidden;
    padding: 0.8em 1.0em;
    display: block;
    width: 100%;
  }
  
  #menu-panel #menu-panel-content{
    float: right;
  }
  
  /* Style the links inside the navigation bar */
  #menu-panel a {
    padding: 0.8em 1.0em;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    transition: 0.0s; /* Transition effects on hover (color) */
  }

  /* Change the color of links on hover */
  #menu-panel a:hover, 
  #menu-panel a:focus{
    background-color: #ddd;
    color: black;
  }

  /* Add an active class to highlight the current page */
  #menu-panel a.active {
    background-color: #4CAF50;
    color: white;
  }

  /* Hide the link that should open and close the topnav on small screens */
  /* #menu-panel-m,  */
  #menu-panel-m,
  #openbtn,
  #closebtn{
    display: none;
  }
}  /* @media screen and (min-width: ...px) */
/*** /Responsive-DESKTOP ***/


/*** Responsive-MOBILE ***/
/* 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: 685px) {
  #openbtn {
    float: right;
    display: block;
    color:#ffffff;
    font-size:30px;
    cursor:pointer;
  }
  
  /* The menu-panel menu */
  #menu-panel{
    display: none;
  }  

  #menu-panel-m{
    display: block;
    height: 100%; /* Specify a height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0;
    left: 0;
    background-color: rgb(0,0,0); /* Black fallback color*/
    background-color: rgba(0,0,0,0.8); /* Black with opacity*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidepanel */
  }
  

  /* Position the content inside the overlay */
  #menu-panel-m #menu-panel-content-m {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
  }

  /* The menu-panel links/buttons */
  #menu-panel-m a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #ffffff;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
  }
 
  /* Add an active class to highlight the current page */
  #menu-panel-m a.active {
    background-color: #4CAF50;
    color: white;
  }

  /* When you mouse over the navigation links, change their color */
  #menu-panel-m a:hover, 
  #menu-panel-m a:focus{
    background-color: #ddd;
    color: black;
   }
  
  /* Position and style the close button (top right corner) */
  #menu-panel-m #closebtn {
    position: absolute;
    top: 0;
    right: 2.5em;
    font-size: 36px;
    margin-left: 50px;
    display: block;
  }

  /* When the   height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
  @media screen and (max-height: 450px) {
    #menu-panel-m a {font-size: 20px}
    #menu-panel-m #closebtn {
      font-size: 40px;
      top: 15px;
      right: 35px;
    }
  }

  /* Hide the link that should open and close the topnav on small screens */

} /* @media screen and (max-width: 770px) */
/*** /Responsive-MOBILE ***/