

        #loader-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            background-color: rgba(0, 0, 0, 0.3);
        }
        #loader {
            display: block;
            position: relative;
            left: 50%;
            top: 50%;
            width: 100px;
            height: 100px;
            margin: -50px 0 0 -50px;
            border-radius: 50%;
            border: 3px solid transparent;
            border-top-color: #3498db;
            -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
            animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
        }
         
        #loader:before {
            content: "";
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            border-radius: 50%;
            border: 3px solid transparent;
            border-top-color: #e74c3c;
            -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
              animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
        }
         
        #loader:after {
            content: "";
            position: absolute;
            top: 15px;
            left: 15px;
            right: 15px;
            bottom: 15px;
            border-radius: 50%;
            border: 3px solid transparent;
            border-top-color: #f9c922;
            -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
              animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
        }
         
        @-webkit-keyframes spin {
            0%   {
                -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
                -ms-transform: rotate(0deg);  /* IE 9 */
                transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
            }
            100% {
                -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
                -ms-transform: rotate(360deg);  /* IE 9 */
                transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
            }
        }
        @keyframes spin {
            0%   {
                -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
                -ms-transform: rotate(0deg);  /* IE 9 */
                transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
            }
            100% {
                -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
                -ms-transform: rotate(360deg);  /* IE 9 */
                transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
            }
        }
            .time_larger {
                font-size: large;
            }

            /* For desktop: */
            .header-campo {
                background-color: darkgray;width: 300px;
            }
            

            .corpo-del-tabellone {
                padding: 1.00rem;
                background-color: black;
            }


             /* Stile per l'overlay */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /*background-color: rgba(0, 0, 0, 0.5); /* Overlay semitrasparente */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            pointer-events: none; /* Permette di cliccare sugli elementi sotto l'overlay */
        }


        .overlay-content h1 {
            margin: 0;
            font-size: 24px;
        }

        .overlay-content p {
            margin: 10px 0 0;
            font-size: 16px;
        }

        @media only screen and (max-width: 1000px) {
          /* For mobile phones: */
            .time_larger {
                font-size: x-small;
            }

            .header-campo {
                background-color: darkgray;width: 100px;height: 25px;font-size: 10px;
            }

            .card-header-campo {
                height: 25px;
            }

            .header-giorno {
                height: 36px;
            }

            .calendarBtn {
                width: 100px;
                min-height: 40px;
                height: auto;
                padding: 4px 2px;
            }

            .corpo-del-tabellone {
                padding: 1.00rem !important;
                background-color: black;
            }


             /* Stile per l'overlay */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /*background-color: rgba(0, 0, 0, 0.5); /* Overlay semitrasparente */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            pointer-events: none; /* Permette di cliccare sugli elementi sotto l'overlay */
        }

        /* Stile per il contenuto del div */
        .overlay-content {
            margin-top: 50%;
            /*margin-left: 50%;*/
            background-color: rgba(128, 128, 128, 0.8); /* Grigio semitrasparente */
            color: white;
            padding: 20px 30px;
            border-radius: 10px;
            text-align: center;
            font-family: Arial, sans-serif;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
            pointer-events: auto; /* L'interazione è abilitata solo sul contenuto */
        }

        .overlay-content h1 {
            margin: 0;
            font-size: 24px;
        }

        .overlay-content p {
            margin: 10px 0 0;
            font-size: 16px;
        }


        button .time_larger {
    display: flex; /* Mantiene il layout flessibile */
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra orizzontalmente */
    overflow: visible; /* Modificato da hidden per evitare il taglio */
    text-overflow: ellipsis; /* Aggiunge "..." al testo troncato */
   /* white-space: nowrap;  Evita il wrapping del testo */
    height: auto !important; /* Adatta l'altezza */
    min-height: 100%;
    width: 100%; /* Assicura che il div occupi tutta la larghezza del bottone */
}

button .time_larger label {
    display: inline-block; /* Mantiene il contenuto inline */
    width: 100%; /* Adatta il contenuto alla larghezza */
    text-align: center; /* Centra il testo */
    font-size: inherit; /* Adatta la dimensione del testo al contesto del bottone */
    line-height: 1.2; /* Evita che il testo occupi troppo spazio verticalmente */
    margin: 0; /* Rimuove i margini esterni */
    padding: 0; /* Rimuove i padding */
    height: auto !important; /* Sovrascrive l'altezza inline fissa */
    overflow: visible !important; /* Evita il taglio verticale */
}
            
          }


          /* For desktop: */
        @media (min-width: 1000px) {
            .container, .container-lg, .container-md, .container-sm, .container-xl {
                max-width: 100% !important;
            }
            .time_larger {
                font-size: medium;
                margin-top: -1%;
            }
            .calendarBtn {
                width: 100%;
                min-height: 30px;
                height: auto;
                padding: 2px 0;
            }
            .header-campo {
                width: 100%;
                height: 30px;
            }
            .header-giorno {
                height: 45px;
                font-size: small;
            }

            .overlay-content {
                margin-top: 20%;
               /* margin-left: 15%;*/
                background-color: rgba(128, 128, 128, 0.8);
                color: white;
                padding: 20px 30px;
                border-radius: 10px;
                text-align: center;
                font-family: Arial, sans-serif;
                box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
                pointer-events: auto;
            }
           
        }


        @media (orientation: landscape) {
          .container, .container-lg, .container-md, .container-sm, .container-xl {
                max-width: 100% !important;
            }
            .time_larger {
                font-size: medium;
                margin-top: -1%;
            }
            .calendarBtn {
                width: 100%;
                min-height: 30px;
                height: auto;
                padding: 2px 0;
            }
            .header-campo {
                width: 100%;
                height: 30px;
            }
            .header-giorno {
                height: 45px;
                font-size: small;
            }

            .overlay-content {
                margin-top: 20%;
               /* margin-left: 15%;*/
                background-color: rgba(128, 128, 128, 0.8);
                color: white;
                padding: 20px 30px;
                border-radius: 10px;
                text-align: center;
                font-family: Arial, sans-serif;
                box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
                pointer-events: auto;
            }
        }