.consultorio {
    width: fit-content;
    height: 75vh;
    
    display: flex;
    align-items: center;
    
    position: relative;
    
    margin: 0 auto;
}

.consultorio_imagem {
    position: relative;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    border-radius: 10px;
    box-shadow: 0 0 5px 5px rgba(0,0,0,0.1);
    margin-inline: auto;
}

.consultorio .widgets {
   position: absolute;
   width: 100%;
   top: 8%;
   left: 51%;
   transform: translateX(-50%);
    
   display: flex;
   flex-direction: row;
   align-items: flex-start;
   justify-content: center;
   gap: 20px;
}

.consultorio .widget {
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 6vh;
   /*width: 60px;*/
}

.consultorio .widget a {
    position: relative;
    display: block;
    border-radius: 50%;
    /*width: 50px;*/
    /*height: 50px;*/
    width: 6vh; 
    height: 6vh;
    font-size: 2em;
    background-color: #f0ead9;
    border: 1px solid #7d6a36;
    transition: 100ms ease all;
    box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.1);
    
    display: flex;
    align-items: center;
    justify-content: center;
    animation: icon-pop 5s ease infinite forwards;
}

.consultorio .widget a i {
    user-select: none;
    font-size: 3vh; /*0.8em*/
    animation: icon-pop-icon 5s ease infinite forwards;
}

.consultorio .widget:nth-child(2) a,
.consultorio .widget:nth-child(2) a i {
    animation-delay: 0.3s; /* Delay para o segundo widget */
}

.consultorio .widget:nth-child(3) a,
.consultorio .widget:nth-child(3) a i  {
    animation-delay: 0.6s; /* Delay para o terceiro widget */
}

.consultorio .widget:nth-child(4) a,
.consultorio .widget:nth-child(4) a i  {
    animation-delay: 0.9s; /* Delay para o quarto widget */
}

.consultorio .widget:nth-child(5) a,
.consultorio .widget:nth-child(5) a i  {
    animation-delay: 1.2s; /* Delay para o quinto widget */
}

.consultorio .widget:nth-child(6) a,
.consultorio .widget:nth-child(6) a i  {
    animation-delay: 1.5s; /* Delay para o quinto widget */
}

.consultorio .widget span {
    text-align: center;
    margin-top: 5px;
    font-size: 1.3vh; /*0.7em*/
}

/* Widget receita digital */
.consultorio .widget.receitadigital {
    width: 14vh;
    position: absolute;
    top: 16vh;
    right: 19.4vh;
}

.consultorio .widget.receitadigital a {
    width: 14vh;
    height: 11vh;
    font-size: 2em;
    border-radius: 10px;
}

.consultorio .widget.receitadigital span {
    font-size: 1em;
}

/* Widget zoom */
.consultorio .widget.zoom {
    position: absolute;
    top: 4vh;
    right: 4.4vh;
    width: 10.5vh;
}

.consultorio .widget.zoom a {
    width: 10.5vh;
    height: 11vh;
    font-size: 2em;
    border-radius: 10px;
}

.consultorio .widget.zoom span {
    font-size: 1em;
}

.consultorio .imagem_dentista {
    height: 60%;
    position: absolute;
    left: 10%;
    bottom: 0;
}

/*@media screen and (max-height: 810px) {*/
/*    .consultorio .widget {*/
/*       width: 6vh;*/ /*50px*/
/*    }*/
    
/*    .consultorio .widget a {*/
/*       width: 6vh;*/ /*43px*/
/*       height: 6vh;*/ /*43px*/
/*    }*/
    
/*    .consultorio .widget i {*/
/*       font-size: 0.8em;*/
/*    }*/
    
/*    .consultorio .widget span {*/
/*        font-size: 0.7em;*/
/*    }*/
/*}*/

/*@media screen and (max-width: 700px), screen and (max-height: 400px) {*/
@media screen and (max-width: 700px), 
screen and (orientation: portrait),
screen and (max-height: 575px) {
    .consultorio {
       width: 100%;
    }
    
    .consultorio_imagem,
    .consultorio .imagem_dentista {
        display: none;
    }
    
    .consultorio .widgets {
        /*position: static;*/
        flex-direction: column;
        width: 80%;
        top: 0;
        margin-top: 10px;
        gap: 20px;
    }
    
    .consultorio .widget,
    .consultorio .widget.receitadigital,
    .consultorio .widget.zoom {
       width: 100%;
       position: relative;
    }
    
    .consultorio .widget.receitadigital,
    .consultorio .widget.zoom {
        top: 0;
        right: 0;
    }
    
    .consultorio .widget a,
    .consultorio .widget.receitadigital a,
    .consultorio .widget.zoom a {
        border-radius: 10px;
        width: 100%;
        height: 100px;
        box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.1);
    }
    
    .consultorio .widget span,
    .consultorio .widget.receitadigital span,
    .consultorio .widget.zoom span {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.5em;
        animation: icon-pop-icon 5s ease infinite forwards;
    }
    
    .consultorio .widget:nth-child(2) span {
        animation-delay: 0.3s; 
    }
    
    .consultorio .widget:nth-child(3) span  {
        animation-delay: 0.6s; 
    }
    
    .consultorio .widget:nth-child(4) span {
        animation-delay: 0.9s; 
    }
    
    .consultorio .widget:nth-child(5) span {
        animation-delay: 1.2s; 
    }
    
    .consultorio .widget:nth-child(6) span {
        animation-delay: 1.5s; 
    }
}

@keyframes icon-pop {
    0% {
        transform: scale(1);
        background-color: #f0ead9;
    }
    12.5% {
        transform: scale(1.1);
        background-color: #1a4a4a;
    }
    25% {
        transform: scale(1);
        background-color: #f0ead9;
    }
}

@keyframes icon-pop-icon {
    0% {
        color: #333;
    }
    
    12.5% {
        color: #cc9b1d;
    }
    
    50% {
        color: #333;
    }
}