html {
	color: #131313;
	font-size: 62.5%;
	line-height: 1.4;
	width: 100%;
	height: 100%;
	font-weight: 700;
	letter-spacing: 1px;
	font-family: 'Lato', sans-serif;
}
html, body {
	margin:0; padding: 0;
	height: 100%;
}
html.index, html.index body {
	display: flex; /* Usa Flexbox */
    justify-content: center; /* Allinea orizzontalmente al centro */
    align-items: center; /* Allinea verticalmente al centro */
}
body {
	width: 100%;
	height: 100%;
	background-image: url("../img/background.svg"); background-repeat: no-repeat; background-size: cover; background-attachment: fixed; background-position: center;
}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}


.toggle-presence, .toggle-presence-admin {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 20px;
    background: #ddd;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    outline: none;
}

.toggle-presence:checked, .toggle-presence-admin:checked {
    background: #4caf50;
}

.toggle-presence:before, .toggle-presence-admin:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 18px;
    background: white;
    transition: 0.3s;
    left: 1px;
    top: 1px;
}

.toggle-presence:checked:before, .toggle-presence-admin:checked:before {
    left: 21px;
}
.item {
    display: flex;
    align-items: center; /* Allinea verticalmente */
    justify-content: flex-start; /* Allinea orizzontalmente all'inizio */
	border-bottom: 1px solid #cccccc;
	padding: 0.4rem;
}
.item label {
    margin-left: 1rem; /* Aggiungi un margine a sinistra della label */
}

.nome, .classe { font-size:1rem;}
.btncondi {
	margin:0 1rem; font-size: 1.2rem; padding: 1rem 5rem; border-radius:1rem; background-color: #44912b; color:#ffffff; border: none; font-family: 'Lato', sans-serif; margin-top: 1rem; text-transform: uppercase; cursor: pointer; letter-spacing: 1px;  display: none;
}
.btncondi2 { display:block;}
.div_button { text-align:center; padding-bottom: 5rem;}
#content { padding:2rem; }
#content h1 {  text-align: left; font-size: 1.8rem; text-transform: uppercase; font-weight: 300; padding-bottom: 2rem; margin: 0 1rem}
#content h1 span {font-size: 1rem; font-weight: bold;}

.login-box {
    margin: 0 auto; /* Centra il box */
    width: 30rem; /* Larghezza del box */
	height: 35rem;
	background-color: rgba(255,255,255,0.8);
	border-radius:3rem;
	text-align: center;
	font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px;
	position: relative;
	padding-top: 3rem;
	font-weight: 300;
  }
.login-box h1 {
	font-weight:700; font-size: 2rem; margin-top: 2rem
}
.login-box:before {
	content:"";
	width: 10rem; height: 10rem; position: absolute; background-image: url("../img/logo.png"); background-repeat: no-repeat; background-position: center; border-radius: 50%; background-color: #eaf3db; left: 0; right: 0; top: -5rem; margin: auto; background-size: 6rem;
}
  form:not(.aggiungi_calendario) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  input[type="text"], input[type="password"], select {
    font-size: 16px; padding: 1rem; border-radius:1rem; background-color: #bad68b; color:#000000; border: none; font-family: 'Lato', sans-serif;
  }
  input[type="submit"], .scegli {
    font-size: 1.5rem; padding: 1rem 3rem; border-radius:1rem; background-color:#44912b; color:#ffffff; border: none; font-family: 'Lato', sans-serif; margin-top: 1rem; text-transform: uppercase; letter-spacing: 1px; text-wrap: balance; text-decoration: none; font-weight: 300; transition: all ease 0.3s; display: inline-block; cursor: pointer;
  }
input[type="submit"]:hover, .scegli:hover { background-color:#2c4923}
.studente_presente {
    /* Stili per studenti presenti */
	text-align: center;
        color:green;
}
.studente_presente span {
    /* Stili per studenti presenti */
    display: inline-block; height: 1rem; width: 1rem; border-radius: 50%;
	margin: 0 auto;
        background-color:#44912b;
}

.studente_assente {
    /* Stili per studenti assenti */
    color: #7B0D0D;
	text-align: center;
}
.totale_assenze { text-align:center;}
.righe_studenti {
	 font-weight: 300;
}
.righe_studenti.attivo_no { opacity:0.7; text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.2);}
.righe_studenti td {
	border-bottom:1px dotted #666666; padding: 0.3rem; font-size: 1.2rem;
}
th, .assenza_giornata td { font-weight:700; font-size:1.3rem; text-align: left;padding: 0.5rem 0.3rem; border-bottom:1px dotted #333333;}
.assenza_giornata td.assenza_giornata_center {  text-align: center;}

.logout, .indietro, .archivio, .homebtn, .utenti { position:fixed; right: 1rem; top: 1rem; width: 4rem; height: 4rem; }
.indietro { right:16rem}
.indietro.indietro_3 { right:11rem}
.archivio, .homebtn { right:6rem}
.utenti { right:11rem}
.logout a, .indietro a, .archivio a, .utenti a, .homebtn a, #closeButton, .modificaBtn, .eliminaBtn, .eliminaBtnAdmin { width: 4rem; height: 4rem; background-image: url("../img/sign-out.svg"); background-color:#44912b; border-radius:50%; background-size: 2rem; background-position: center; text-indent: -99999px; overflow: hidden; right: 1rem; top: 1rem; display: block; background-repeat: no-repeat;transition:ease all 0.3s}
.modificaBtn, .eliminaBtn, .eliminaBtnAdmin {  right: auto; top: auto; position: relative;background-position: 0.5rem 50%; text-align: left; cursor: pointer;}
.homebtn a {background-image: url("../img/home.svg"); }
.archivio a {background-image: url("../img/archive.svg"); }
.utenti a {background-image: url("../img/user.svg"); }
.indietro a {background-image: url("../img/arrow-left.svg"); }
#closeButton {background-image: url("../img/times.svg"); right: -1.5rem; top:-1.5rem }
.modificaBtn {background-image: url("../img/pen.svg"); margin-right: 0.5rem }
.eliminaBtn, .eliminaBtnAdmin {background-image: url("../img/times_white.svg"); }
.modificaBtn, .eliminaBtn, .eliminaBtnAdmin { border: none; width: 2rem; height: 2rem; background-size: 1rem; display: inline-block; position: absolute; top:-1.5rem}
.indietro a:hover, .logout a:hover, .archivio a:hover, .utenti a:hover, .homebtn a:hover {background-color:#2c4923;}
.modificaBtn:hover, .eliminaBtn:hover, .eliminaBtnAdmin:hover {
    width: 10rem; /* Larghezza automatica per adattarsi al contenuto */
    padding: 0 10px; /* Aggiunge spazio intorno al testo */
    text-indent: 0; /* Mostra il testo */
    position: absolute; /* Permette al bottone di espandersi senza influenzare altri elementi */
    z-index: 10; /* Assicura che il bottone sia sopra gli altri elementi */
    white-space: nowrap; /* Impedisce al testo di andare a capo */
	background-color:#2c4923;
	border-radius:1rem;
	color:#ffffff; text-transform: uppercase; font-weight: 300; font-size: 1rem; letter-spacing: 1px; background-position: 1rem 50%;
	text-align: left;
	padding-left: 3rem; box-sizing: border-box;
	
}
.buttonWrapper {
    position: relative;
    display: inline-block;
	width: 2.5rem
}

.aggiungi_studente, .aggiungi_amministratore { display:inline-block; text-transform: uppercase; font-weight: 300; font-size: 1.6rem; padding: 1rem 2rem; padding-left: 6rem; border-radius:1rem; background-color: #44912b; position: relative; color:#ffffff;  background-image: url("../img/plus.svg"); background-repeat: no-repeat; background-size: 2rem; margin-top: 5rem; background-position:2rem  50%; cursor: pointer; transition:ease all 0.3s; margin-bottom: 5rem}
.aggiungi_studente:hover, .aggiungi_amministratore:hover { background-color:#2c4923}
#formLayer {
	z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.form_flex { background-color:#eaf3db; width:30rem; height: 40rem; border-radius: 3rem; text-align: center; font-weight: 300; font-size: 1.4rem; letter-spacing: 1px; box-sizing: border-box; padding: 2rem; position: relative; display: flex; justify-content: center; align-items: center; transition: all ease 0.3s}
.form_flex_utenti { height: 50rem;}
.form_flex h2 { font-weight: 300; font-size: 1.6rem; margin: 0; padding: 0; text-transform: uppercase; padding-bottom: 2rem; text-wrap: balance;}
.form_flex.rimpicciolisci { height:10rem}
.form_flex input[type="text"], .form_flex select { margin-bottom:1rem; position: relative; box-sizing: content-box; width: 70%}
#closeButton { position:absolute; border: none;background-color:#bad68b; cursor: pointer;background-size: 1.5rem; }
#studentFormDelete, #adminFormDelete { display:none}
.errore { color:#cc0000; font-weight: 700;}
.tabella_elimina { white-space:nowrap; width: 5rem; height: 2rem}
.tooltip {
    position: absolute;
    background-color: #44912b;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.tooltip.visible {
    visibility: visible;
    opacity: 1;
}
.modalita_test {
    position: fixed;
    top: 7rem;
    right: 1rem;
    width: 16rem;
    font-size: 1.1rem;
    font-weight: 300;
    color: #ffffff;
    background-color: #cc0000;
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    text-transform: uppercase;
    text-wrap: balance;
    letter-spacing: 1px;
}
.select_nascosta {
	-webkit-appearance: none;
	appearance: none;
	border:none;
	background-color: transparent;
	padding:0;
	font-size:2rem; font-weight: 300; text-transform: uppercase; display: inline-block;
	font-family: 'Lato', sans-serif; letter-spacing: 1px;
}
.giorno_passato_h2 { border-top:1px dotted #44912b; margin-top: 1rem; padding-top: 1rem; margin-bottom: 2rem}
.aggiungi_calendario { margin-bottom:5rem}

.plesso_h2 { margin: 0 1rem; text-transform:uppercase; border-bottom:1px dotted #44912b; margin-bottom: 1rem; padding-top: 2rem;; font-weight: normal;}

.linea_divisoria td { padding:1rem 0; font-size: 1.6rem}
