
#main {
    margin-left: 250px;
}

div#backGiocaSideNav {
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.8;
  position: fixed;
  z-index: 3;
  top: 0;
  display: none;
}

/* The side navigation menu */
div#giocaSideNav {  
  font-size: 1.18rem;

  height: 85%; 
  width: 250px; /* 0 width - change this with JavaScript */
  /* position: absolute;  Stay in place */
  z-index: 998; /* Stay on top */
  /* top: 116px; Di default poi viene modificata da js function adjustTopbarwrap in index.php
  left: 0;
  background-color: #111; /* Black*/
  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 sidenav */  

  position: fixed;

  /* color: #313131; */
  /* margin-left: -15px; */
  background: #fff;


  /* max-height: 800px; */

  /* top: 60px; */

}

.sidenav .dropdown-divider {
  border-top: 4px dotted orange;
}

.sidenav .nav-link {
    color: #353535;
}

.sidenav .nav-item {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}


.sidenav .nav-dropdown-btn:hover,
.sidenav .nav-dropdown-btn:active,
.sidenav .nav-dropdown-btn:focus {
  background-color: #f3f3f3;    
}

.sidenav .nav-dropdown-btn-text {
  margin-left: 0.8rem;
  color: #353535;
}


.sidenav .nav-dropdown-btn {
  border: unset;
  background: unset;
  text-align: left;
  width: 100%;
}

.sidenav .nav-dropdown-collapse {
  background-color: #f3f3f3;   
  text-align: left; 
}

.sidenav .nav-dropdown-collapse-items {
  margin-left: 2.0rem;
  font-size: 1.0rem;
  font-weight: bold;
  color: #505050;
}

.sidenav .nav-link:hover,
.sidenav .nav-link:active,
.sidenav .nav-link:focus,
.sidenav .hovered {
  color: #0092ff !important;
  background: #e8e8e8;
  border-radius: 20px;
}


/* Position and style the close button (top right corner) */
.nav-closebtn {
  visibility: hidden; 
}

.sidenav span.nav-title {
  padding-left: 15px;
  font-weight: bold;
  font-variant: small-caps;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 20px;
}

.sidenav.opened {
  /* empty */
}

/* Only desktop */
@media screen and (min-width: 992px) {
  .sidenav .no-padding-top-desktop {
    padding-top: 0px;
  }
}

/* Mobile */
@media screen and (max-width: 991px) {
  div#giocaSideNav {
    height: 100%; 
    width: 80%; /* Viene anche modificato da script js in giocamenu_nav.js*/
    background: #f3f3f3;
    top: 0px;    
    width: 0px; /* Di default da mobile nascosto */
    z-index: 1001;
  }
  .nav-hamburger-menu {
    cursor: pointer;
  }

  .nav-closebtn.opened {
    /* top: 19;
    right: 16; */
    font-size: 60px;
    /* margin-left: 83%; */
    visibility: visible;
    position: fixed;
    right: 10px;
    top: 10px;
    opacity: 1.0;
    z-index: 1002;    
    background: #fff;
    padding: 8px 8px 16px 8px;
    border: 2px solid;
    border-radius: 30%;
  }

  .sidenav.opened {
    box-shadow: 0px 0px 10px 3px gray;
  }
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}

  /* .nav-mobile {
    display: block;
    visibility: visible;
  } */

}

.nav-header {
    font-weight: bold;
}
