*
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
    height: 100%;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: bolder;
    color: rgb(160, 160, 160);
}

body
{
    font-family: "Roboto";
    margin: 0;
    height: 100%;
    align-items: center;
}

h1
{
    color: #57dde3;
    font-size: 50px;
    margin-left: 20px;
}


h2
{
    color: #57dde3;
    font-size: 35px;
}

.logo
{
    width: 30%;
}

.shadow
{
    filter: drop-shadow(0px 3px 1px rgb(82, 82, 82));
}

nav
{
    background-color: aliceblue;
    overflow: hidden;
    display: flex;
    justify-content: space-evenly;
}

nav a
{
    float: left;
    color: #57dde3;
    text-align: center;
    padding: 14px 14px;
    text-decoration: none;
    letter-spacing: 0px;
    transition: 0.3s;
    font-size: 25px;
    border-bottom:3px solid aliceblue ;
}

nav a:hover
{
    letter-spacing: 1px;
    color: gray;
    border-bottom:3px solid #57dde3 ;
}

li h2
{
    text-align: left;
    transition: 0.3s;
    margin-left: 50px;
}

li h2:hover
{
    letter-spacing: 1px;
    margin-left: 80px;
    filter: drop-shadow(0px 3px 1px rgb(51, 51, 51));
}

.flex-container
{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
}

.map-container
{
    justify-content: space-between;
}

.flex-banner 
{
    background-color: #e7e7e7;
    justify-content: space-around;
    background-image: url("FotosClinica/Foto3.jpg");
    background-attachment: fixed;
    background-position: center;
    background-blend-mode: soft-light;
    background-repeat: no-repeat;
    background-size: cover;
}

.flex-banner div
{
    margin: 15px 0;
}

.flex-banner div img
{
    filter: drop-shadow(0px 3px 10px #ffffff);
}

footer
{
    background-color: grey;
}

@keyframes buttonSlide
{
    from {right: -300px;}
    to {right: 15px;}
}

@keyframes whatsappHover
{
    0%{filter: drop-shadow(0px 0px 0px black);}

    20%{bottom:15px;filter: drop-shadow(0px 1px 3px black); transform: rotate(13deg)}

    24%{transform:rotate(-7deg);}

    28%{transform:rotate(7deg);}

    32%{transform:rotate(-7deg);}

    36%{transform:rotate(7deg);}

    40%{transform:rotate(-7deg);}

    44%{transform:rotate(7deg);}

    48%{transform:rotate(-7deg);}

    52%{transform:rotate(7deg);}

    56%{transform:rotate(-7deg);}

    60%{transform:rotate(7deg);}

    64%{bottom:18px; filter: drop-shadow(0px 1px 3px black); transform: rotate(-13deg)}

    100%{bottom:0;filter: drop-shadow(0px 0px 0px black);}

}

@keyframes buttonGrow
{
    30%{ transform: scale(1.05);}
    100%{ transform: scale(1.0);}
}

a.fixedButton
{
    position: fixed;
    animation-name: buttonSlide;
    animation-duration: 3s;
}

a.whatsapp
{
    bottom:20px;
    right: 15px;
    z-index: 10;
}

a.tel
{
    bottom:150px;
    right: 15px;
    z-index: 10;
    animation-duration: 4s;
    visibility: hidden;
}

a.fixedButton img
{
    width: 100px;
    height: 100px;
    position: absolute;
    bottom: 0;
    right: 0;
}

a.fixedButton img.tel
{
    bottom: 0px;
}


a.fixedButton:hover img
{
    animation-name: buttonGrow;

    animation-duration:0.43s;
}

a.fixedButton:hover img.phone
{
    animation-name: whatsappHover;
    animation-duration: 1.5s;
}

a.fixedButton:hover .tooltip
{
    visibility: visible;
    opacity: 1;
}

a.fixedButton.tooltip
{
    visibility: hidden;
    width:120 px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    position: absolute;
    z-index: 1;
    bottom: 125%;

    opacity: 0;
    transition: opacity 0.3s;
}

.flex-img
{
    background-color: AliceBlue;
    justify-content: space-around;
    padding: 0.5rem;
    overflow-x: auto;
}
  

.flex-img div img, .flex-img div h2
{
    max-height: 140px;
    margin: 20px 30px;
    max-width: 200px;
    transform: scale(1);
    transition: 0.5s;
    
}

.flex-img div :hover
{
    animation-name: imgHover;
    animation-duration:1.5s;
    transform: scale(1.2);
    transition-timing-function: ease-out;
}

.flex-card
{
    background-color: white;
    justify-content: space-evenly;
    margin-top: 7px;
    margin-bottom: 7px;
}

.flex-card .card
{
    border-radius: 20px;
    width: 25%;
    background-color: aliceblue;
    align-content: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flex-card .card img
{
    width:100%;
    height:auto;
}

.flex-map
{
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    flex-direction: column;
}

.parallax1
{
    background-image: url("FotosClinica/Foto3.jpg");
    min-height: 500px; 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax2
{
    background-image: url("FotosClinica/Foto1.jpg");
    min-height: 500px; 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: soft-light;
    background-color: #aaaaaa;
}

.flex-form
{
    width: 40%;
    padding: 16px;
    justify-content: space-between;
    background-color: aliceblue;
    margin: 0 auto;
}

input[type=text]
{
    width: 50%;
}

input [type=tel], [type=date]
{
    width:auto;
}

input[type=text], [type=tel],[type=date]
{
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
    font-size: 15px;
}

select
{
    width: auto;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}

input[type=text]:focus, input[type=tel]:focus, input[type=date]:focus
{
    background-color: #ddd;
    outline: none;
}

input[type=submit]
{
    width:60%;
    height: 50px;
    font-size: 15px;
}

@media screen and (max-device-width: 800px) {
    a.tel
    {
        visibility: visible;
    }

    .flex-form
    {
        width: 100%;
        padding: 16px;
        justify-content: space-between;
        background-color: rgba(255, 255, 255, 0);
        margin: 0 auto;
    }

    .parallax {
        background-attachment: scroll;
      }

    .logo
    {
        width: 100%;
    }

    .logo img.logo1
    {
        width: 100%;
    }

    .logo img.logo2
    {
        width: 50%;
    }

    nav
    {
        visibility: hidden;
        background-color: rgba(255, 255, 255, 0);
    }
}