﻿/* The sidepanel menu */
.sidepanel {
  height: 100%; /*Specify a height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 2; /* Stay on top ma sotto pulsante di chiusura */
  top: 0;
  left: 0;
  background-color: #020D7A; /* Blu*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 40px; /* Place content far from the top */
  transition: 0.1s; /* 0.5 second transition effect to slide in the sidepanel */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8), 0 6px 20px 0 rgba(0, 0, 0, 0.8); /* ombra */
}

/* The sidepanel links */
.sidepanel a {
  padding: 0px 5px 0px 20px;
  text-decoration: none;
  font-size: 15px;
  color: #878787;
  display: block;
}

/* When you mouse over the navigation links, change their color */
.sidepanel a:hover {
  color: #FFA200;
}

/* Position and style the close button (top right corner) */
.sidepanel .closebtn {
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 25px;
  margin-left: 50px;
}

/* Stylethe button that is used to open the sidepanel */
.openbtn {
  font-size: 30px;
  cursor: pointer;
  padding: 3px 7px 2px 7px;  
  margin-top: 30px;
  border-radius: 0px 10px 10px 0px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3), 0 2px 20px 0 rgba(0, 0, 0, 0.2);
}

/* Rende il pulsante di apertura overlay */
#SidepanelToggle {
  position: fixed; /* Sit on top of the page content */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0; 
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
  height:0px;  /* 3 cose per far si che i link della pagina sotto siano cliccabili anche se il pulsante è in overlay */
  overflow:visible; /* 3 cose per far si che i link della pagina sotto siano cliccabili anche se il pulsante è in overlay */
  background:none; /* 3 cose per far si che i link della pagina sotto siano cliccabili anche se il pulsante è in overlay */
}
