body {
  font-family: Arial, Helvetica, sans-serif;
  color: black;
  background-color: white;
  text-align: center;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: darkblue;
}

input[type=checkbox] {
  accent-color: gray;
}

/* contenitore principale che contiene tutto */
.main {
  position: relative;
  background-color: #CCC;
  width: 50%;
  margin: 3px;
  padding: 5px;
  border: none;
  text-align: center;
  vertical-align: middle;
}

/* messaggi informativi */
.info {
  color: red;
  font-style: italic;
  padding: 5px;
}

/* messaggi di errore */
.error {
  color: red;
  background-color: lightgoldenrodyellow;
  font-weight: bold;
  padding: 5px;
  margin: 5px;
}

/* Resize per smartphone */
@media only screen and (max-width: 1024px) {
  .main {
    width: 95%;
  }
}

/* Stile dei bottoni */
button {
  background-color: #CCC;
  float: center;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 5px;
  transition: 0.3s;
  font-size: 16px;
  width: 50px;
  height: 50px;
  color: darkblue;
  vertical-align: middle;
}

/* Dimensione immagine dei bottoni standard */
button img {
  width: 32px;
  height: 32px;
}

/* Dimensione bottoni medi */
button.medium {
  width: 40px;
  height: 40px;
}
button.medium img {
  width: 24px;
  height: 24px;
}
img.medium {
  width: 24px;
  height: 24px;
}

/* Dimensione bottoni piccoli */
button.small {
  width: 30px;
  height: 30px;
}
button.small img {
  width: 16px;
  height: 16px;
}
img.small {
  width: 16px;
  height: 16px;
}

/* bottoni che ereditano il colore di sfondo dal padre */
button.inh {
  background-color: inherit;
}

/* Cambia sfondo dei bottoni quando passa il mouse */
button:hover {
  background-color: #DDD;
}

/* Stile del bottone attivo/selezionato */
button.active {
  background-color: #EEE;
  font-weight: bold;
}

/* Stile dei bottoni di SISTEMA */
button.system {
  background-color: #AAA;
}

/* Cambia sfondo dei bottoni di SISTEMA quando passa il mouse */
button.system:hover {
  background-color: #DDD;
}

/* Stile del bottone di SISTEMA attivo/selezionato */
button.system.active {
  background-color: #EEE;
  font-weight: bold;
}

/* Stile del menu principale (in alto) */
.tab {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

/* Stile del box di contenuto */
.content {
  text-align: left;
}

/* Stile del box indentanto di 30 pixel*/
.indent {
  padding-left: 30px;
  padding-right: 30px;
}

/* Stile della lista di categorie (nella pagina di modifica) */
.catlist {
  display: flex;
  flex-direction: column;
}

/* sfondo a righe alternate odd/even*/
.odd {
  background-color: #EEE;
}

.even {
  background-color: #DDD;
}

/* Stile dell'elemento CHECKato */
.checked {
  text-decoration: line-through;
  font-style: italic;
  color: gray;
}

/* Stile del titolo della pagina */
.title {
  font-weight: bold;
  text-align: center;
  padding-top: 5px;
}

/* Stile del contenuto "collapsible"la pagina" */
.collapsible_content {
  display: none;
  overflow: hidden;
}

/* Stile del pop-up */
.popup {
  display: none;
  position: absolute;
  z-index: 1;
  width: 50%;
  /* spazio dall'alto */
  top: 50px;
  /* allinea al centro orizzontalmente */
  left: 50%;
  transform: translate(-50%);
  /* scroll se necessario */
  overflow: auto;
  /* background semitrasparente */
  background-color: rgba(100, 100, 100, 0.9);
  padding: 5px;
}

/* Resize per smartphone */
@media only screen and (max-width: 1024px) {
  .popup {
    width: 80%;
  }
}

/* Stil del contenuto del pop-up */
.popup-content {
  background-color: #ccc;
  margin: 5% auto 5% auto;
  /* 5% from the top, 5% from the bottom and centered */
  border: 1px solid #888;
  padding-top: 10px;
  width: 80%;
}

/* Bottone di chiusura del pop-up  (x) */
.close {
  position: absolute;
  right: 15px;
  top: 5px;
  font-size: 40px;
  font-weight: bold;
  color: #f1f1f1;
}

.close:hover,
.close:focus {
  color: #f44336;
  cursor: pointer;
}
