html, body{
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.annuncio{
    overflow: auto;
    z-index: 10;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 37, 54, 0.808);
    text-align: center;
}
.contenuto_annuncio{
    position: relative;
    top: 10%;
    left: 25%;
    width: 50%;
    padding: 25px;
    background-color: white;
    border: 3px inset black;
}
.contenuto_annuncio a{
    color: red;
    text-decoration: underline;
}
.contenuto_annuncio a:visited{
    color: red;
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header{
    text-align: center;
    background: conic-gradient(rgb(87, 136, 151), white, rgb(87, 136, 151))    
}

.header p{
    margin: 0px;
    background-size: auto;
    background-image: url(./immagini/frontespizio.png);
    overflow: hidden;
    padding-top: 415px;
    background-repeat: no-repeat;
    background-position-y: 50%;
    background-position-x: center;
}

.menu{
    border-top: 2px solid black;
    background: linear-gradient(rgb(87, 136, 151), white);
    overflow: hidden;
    border-bottom: 1px dotted rgb(87, 136, 151);
    background-clip: text;
}

.menu a{
    /*float: left;*/
    display: block;
    padding: 25px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    color: black;
    transition: background-color .5s, color .5s;
}

.menu a:hover{
    color: rgb(255, 255, 255);
    background-color: rgb(0, 84, 104);
}

a.pag_attuale{
    color: rgb(255, 255, 255);
    background-color: rgb(0, 84, 104);   
}

.body{
    padding:10px;
    text-align: justify;
}
.flex_spiegazione{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}

.testo_alto_home{
    padding: 10px; 
    border: 1px solid black;
    box-shadow: 1px 1px 5px black;
    font-weight: bold; 
    font-size: 20px;
    text-align: center;
}
.testo_alto_home a{
    text-decoration: underline;
}
.testo_spiegazione, .testo_spiegazione_fuori{
    font-size: 23px;
    line-height: 1.8em;
    text-align: justify;
    width: 500px;
    border: 1px solid black;
    padding: 10px;
    background-color: aliceblue;
    box-shadow: 1px 1px 5px black;
    display: inline-block;
    margin: 10px;
}
.testo_spiegazione_fuori{
    margin-left: auto;
    margin-right: auto;
    width: 700px;
    display: block;
}
.testo_spiegazione b:first-child, .testo_spiegazione_fuori b:first-child{
    display: block;
    width: 100%;
    background-color: rgb(87, 136, 151);
    color: white;
    padding: 5px;
    text-align: left;
    text-shadow: 1px 1px 1px black;
    border: 1px solid black;
    border-right: 0px;
}
ol > li::marker{
    font-weight: bold;
}

.flex_container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.form_ricerca{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.ricerca_medico{
    flex-grow: 5;
    width: 350px;
    font-size: 18px;
    padding: 10px;
    border: 0;
    border-bottom: 1px solid rgb(68, 102, 255);
    font-variant: small-caps;
    font-style: italic;
    text-align: center;
}
select.ricerca_medico{
    flex-grow: 1;
    width: auto;
    margin-right: 5px;
}

.medico{
    position: relative;
    box-shadow: 5px 5px 3px lightgray;
    border: 1px solid rgb(230, 230, 230, .5);
    margin: 5px;
    padding: 3px;
    text-align: center;
    width: 350px;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
    background-color: aliceblue;
}

.stampa_tamponi, .stampa_vaccini{
    display: block;
    background-position: left;
    background-repeat: no-repeat;
    padding-left: 25px;
    min-height: 24px;
}
.stampa_tamponi{
    background-image: url("immagini/swab.png");
}
.stampa_vaccini{
    background-image: url("immagini/injection.png");
}

.medico:hover{
    /*background-color: rgb(156, 224, 255);*/
    background: rgb(87, 136, 151);
    /*color: red;*/
    color: white;
}

.titoloIndirizzo{
    text-align: left;
    font-style: italic;
    font-size: 12px;
    color: #656565;
}
.indirizzo{
    border-bottom: 1px solid #656565;
}
.prestazioni{
    text-align: left;
}
/*.medico_link{
    padding: 100%;
    color: black;
    text-decoration: none;
}

.medico_link:hover{
    color: red;
}*/

.nome{
    font-variant: small-caps;
    padding: 3px;
    font-size: 23px;
    font-weight: bold;
    background: rgb(87, 136, 151);
    color: white;
    text-shadow: 1px 1px 1px black;
}

.medico_bottom{
    width: 100%;
    position: absolute;
    bottom: 0px;
}

.contatti{
    text-align: center;
}

.menu_profilo{
    background-color: rgb(255, 196, 0);
    width: max-content;
}
.menu_profilo a{
    display: inline-block;
    padding: 9px;
    background-color: rgb(255, 196, 0);
    color: rgb(0, 0, 0);
    font-variant: small-caps;
    border-right: 2px double black;
}
.menu_profilo a:visited{
    color: black;
}
.menu_profilo a:hover{
    background-color: rgb(255, 66, 66);
    color: white;
}

.container_dati_profilo{
    display: flex;
    flex-direction: column;
}

.azioni_pazienti{
    /*margin-top: 5px;*/
    overflow-y: auto;
    height: 150px;
    background-color: rgb(211, 211, 211);
    padding: 5px;
    border: 3px inset black;
    font-size: 18px;
}

.titolo_log, .titolo_medici{
    align-self: flex-start;
    display: block;
    background-color: black;
    width: fit-content;
    margin-top: 5px;
    margin-right: 5px;
}

.titolo_medici{
    width: 50%;
}

.titolo_medici a{
    display: block;
    border-bottom: 1px dashed black;
    text-decoration: none;
}

.titolo_medici a:visited{
    color: black;
}

.titolo_medici a:hover{
    background-color: rgb(71, 105, 255);
    color: white;
}

.azioni_pazienti li{
    list-style-type: none;
    font-style: italic;
    border-bottom: 1px dashed black;
}
.azioni_pazienti span{
    color:rgb(255, 70, 70);
    text-decoration: underline;
}

.info_medico li{
    padding-left: 10px;
    border: none;
}
.info_medico a{
    display: inline-block;
    border: none;
}

#info{
    display: none;
}

.form_contatti{
    display: block;
    padding: 10px;
    margin: 15px;
    font-size: 18px;
}

input[type="text"].form_contatti, input[type="password"].form_contatti, input[type="email"].form_contatti, input[type="number"].form_contatti{
    width: 250px;
}

.form_registrati{
    float:left;
    width: 50%;
}
.titolo_form_registrazione{
    display: none;
}

.form_indirizzo{
    padding: 10px;
    margin: 15px;
}
input.form_indirizzo{
    padding:5px;
    margin: 2px;
    font-size: 14px;
    display: block;
}
textarea.form_indirizzo{
    display: block;
    width: 500px;
}
#messaggio_errore{
    display: none;
    padding-left: 20px;
    color: red;
    font-weight: bold;
}

.indirizzo_secondario{
    display: none;
}

.form_logga{
    float: right;
}

.form_richiesta{
    font-size: 18px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

p.avviso{
    text-align: left;
    font-weight: lighter;
}
.avviso{
    display: block;
    font-weight: bold;
    text-align: center;
}

.avviso_testo{
    text-align: justify;
}

textarea.form_richiesta{
    width: 100%;
    height: 140px;
    resize: none;
}

input[type="button"].form_richiesta, input[type="submit"].form_richiesta{
    display: inline-block;
}

p.form_richiesta{
    font-style: italic;
    color: rgb(104, 104, 104);
    font-size: 16px;
}

.prestazioniForm{
    display: flex;
    flex-direction: row;
}
.prestazioniColonna{
    padding-right: 20px;
    border-right: 5px dotted rgb(100, 100, 100);
}
.prestazioniColonna:last-child{
    padding-left: 20px;
    border: none;
}
.prestazioniRiga{
    display: block;
    padding-bottom: 5px;
}

.footer{
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    font-style: italic;
    font-variant: small-caps;
}
#htesto{
    font-weight: bold;
    cursor: pointer;
}

.contenitore_medici{
    width: 350px;
}

.form_admin{
    font-variant: small-caps;
    font-size: 18px;
    padding: 5px;
    width: 97%;
    border: none;
    border-bottom: 1px solid black;
}
.header_ricerca{
    margin-bottom: 2px;
}
.header_ricerca span{
    margin: 0px;
    background-color: rgb(141, 202, 255);
    display: block;
    font-size: 19px;
    padding: 5px;
}

.lista_medici{
    max-height: 400px;
    overflow-y: auto;
}
.lista_medici li{
    list-style-type: none;
    padding-bottom: 3px;
}
.lista_medici li:hover{
    border: 1px solid black;
    padding: 5px;
    cursor: pointer;
    user-select: none;
    background-color: rgb(178, 180, 255);
}
.lista_medici span{
    text-align: right;
}


.caricamento{
    display: none;
    position: fixed;
    bottom: 0;
    padding: 10px;
    color: beige;
    background-color: rgb(136, 136, 136);
    width: 100%;
    text-align: center;
}

.mostra_smartphone{
    display: none;
    font-variant: small-caps;
    background-color: rgb(31, 35, 255);
    color: white;
    padding: 2px;
    padding-bottom: 5px;
}

.pop_form, .pop_form_otp{
    border: 1px solid black;
    box-shadow: 1px 1px 0 0 red;
    background-color: rgba(46, 143, 255, 0.950);
}

.pop_form{
    position: fixed;
    overflow: auto;
    top: 0px;
    left: 0px;
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.pop_form_otp{
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    position: absolute;
}

.form_otp{
    font-size: 18px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 4px;
    padding: 8px;
}

@media only screen and (max-width: 650px) {
    body {
        font-size: 25px;
        padding-bottom: 250px;
    }
    .body{
        text-align: left;
    }
    .header p{
        background-size: 615px;
        background-position-x: -210px;
        background-position-y: 5px;
    }
    .menu a{
        padding: 10px;
        font-size: 20px;
    }
    .contatti{
        display: none;
    }
    .indirizzo, .prestazioni{
        font-size: 20px;
    }
    .prestazioniForm{
        flex-direction: column;
    }
    .prestazioniColonna{
        border-right: none;
        border-bottom: 5px dotted rgb(100,100,100);
        border-top: 5px dotted rgb(100,100,100);
    }
    .prestazioniColonna:last-child{
        border: none;
        padding-left: 0px;
    }
    .form_registrati{
        float:none;
        width: auto;
        background-color: rgb(164, 203, 255);
        border: 1px solid rgb(176, 217, 255);
    }
    textarea.form_indirizzo{
        margin: 0;
        width: 310px;
        padding: 5px;
        height: 50px;
        font-size: 15px;
    }
    .form_logga{
        float: none;
    }
    .titolo_form_registrazione{
        display: inline-block;
        padding: 10px;
    }
    input[type="text"].form_contatti, input[type="password"].form_contatti, input[type="email"].form_contatti, input[type="number"].form_contatti{
        width: auto;
    }
    .menu_profilo{
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        font-size: 26px;
    }
    .menu_profilo a{
        padding: 13px;
        height: 24px;
        width: 24px;
        text-indent: -999999em;
        overflow: hidden;
    }

    input[type="checkbox"].form_richiesta{
        transform: scale(1.5);
    }

    #admin{
        background: url("immagini/admin.png") no-repeat;
        background-position: center;
    }
    #m_profilo{
        background: url("immagini/edit.png") no-repeat;
        background-position: center;
    }
    #home{
        background: url("immagini/home.png") no-repeat;
        background-position: center;
    }
    #esci{
        background: url("immagini/logout.png") no-repeat;
        background-position: center;
    }

    .footer{
        margin-bottom: 80px;
    }

    .titolo_medici{
        width: 100%;
    }

    .medico{
        width: 350px;
        height: 180px;
    }
    .contenitore_medici{
        width: 100%;
    }

    .contenuto_annuncio{
        top: 5%;
        left: 5%;
        width: 75%;
    }
    .mostra_smartphone{
        display: block;
    }

    .testo_spiegazione, .testo_spiegazione_fuori{
        width: fit-content;
        font-size: 18px;
    }
}