html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
}

.logo {
    max-width: 170px;
}

.navbar-nav {
    margin: auto;
}

.nav-link {
    padding: 0.5rem 1rem !important;
}

.services {
    padding: 50px 0px;
}

.service__card {
    display: block;
    border: none;
    background-color: transparent;
}

.service__card img {
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: 250px;
    margin: auto auto 50px;
    height: 200px;
    transition: all .5s;
}

.service__card img:hover {
    transform: scale(1.1);
}

.modal-dialog {
    max-width: 1200px;
}

.modal-content {
    margin: 0px 15px;
}

.modal img {
    max-width: 100%;
    border-radius: calc(.3rem - 1px);
    object-fit: cover;
    object-position: center;
}

.modal h2 {
    margin-bottom: 20px;
}

.modal .col-lg-7 {
    border-right: 1px solid #ccc;
}

.about {
    padding: 70px 0px;
}

.about img {
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

.about .d-flex {
    border: 1px solid #ccc;
}

.about h2 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 10px;
}

.about .d-flex div {
    padding: 10px 20px;
}

@media only screen and (max-width:991px) {
    .modal .row {
        flex-direction: column-reverse;
    }

    .modal-dialog {
        max-width: 700px;
        text-align: center;
    }

    .modal img {
        max-width: 500px;
        display: block;
        margin: auto;
    }

    .contact h2 {
        text-align: start;
    }

    .about .d-flex {
        flex-wrap: wrap;
        align-items: center !important;
    }

    .about .d-flex div {
        display: contents;
    }

    .about h2 {
        padding: 20px;
    }

    .about .d-flex p {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        -ms-flex-positive: 1;
        flex-grow: 1;
        padding: 20px;
    }
}

@media only screen and (max-width:576px) {
    .service__card {
        margin: auto;
    }

    .about .d-flex {
        flex-direction: column;
        padding: 20px;
    }

    .about .d-flex p {
        text-align: center;
        padding: 0px;
    }

    .about .d-flex h2 {
        padding: 20px 0px;
        margin-bottom: 0;
    }
}

#container {
    position: relative;
    height: 800px;
    width: 1400px;
    margin-left: auto;
    margin-right: auto;
    z-index: 0;
}

#image1 {
    position: absolute;
    height: 600px;
    width: 600px;
    top: 340px;
    left: 350px;
    z-index: 10;
}

#image2 {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 0;
}

#image3 {
    position: absolute;
    top: 260px;
    left: 950px;
    z-index: 10;
}

.text {
    position: absolute;
    top: 10px;
    left: 350px;
    font-family: fantasy;
    font-size: 3em;
    color: aqua;
}

#age1 {
    position: absolute;
    bottom: 60px;
    left: 0px;
    z-index: 10;
}

#age2 {
    position: absolute;
    bottom: 60px;
    right: 60px;
    z-index: 10;
}

#age3 {
    position: absolute;
    bottom: 20px;
    left: 0px;
    z-index: 10;
}

#age4 {
    position: absolute;
    bottom: 20px;
    right: 10px;
    z-index: 10;
}

#age5 {
    position: absolute;
    bottom: 20px;
    left: 0px;
    z-index: 10;
}

#age6 {
    position: absolute;
    bottom: 20px;
    right: 10px;
    z-index: 10;
}

#n2 {
    position: absolute;
    top: 85px;
    left: 340px;
    z-index: 10;
}

#balloon {
    position: absolute;
    top: 0px;
    left: 500px;
    z-index: 20;
}

#baby {
    position: absolute;
    top: 0px;
    left: 100px;
    z-index: 10;
}

#cloud {
    position: absolute;
    top: 570px;
    right: 500px;
    z-index: 10;
}

#star {
    position: absolute;
    top: 0px;
    left: 400px;
    z-index: 10;
}
