body {
    background-image: url('img/medico-de-tiro-medio-verificando-o-paciente.jpg');
    background-position: center;
    background-size: cover;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    font-family: "Open Sans", Arial, sans-serif;
}

/* Navbar */
.navbar-custom {
    background-color: transparent;
    height: 80px;
    padding: 0 20px;
    transition: background-color 0.5s ease;
}

.navbar-custom .navbar-nav .nav-link {
    font-size: 15px;
    font-weight: bold;
    padding: 5px 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover {
    background-color: rgb(101, 177, 119);
    border-radius: 5px;
    border: 1px solid black;
    box-shadow: 1px 5px 5px 2px rgba(15, 15, 15, 0.4), 0 4px 6px -4px rgba(17, 60, 95, 0.4);
}

/* Custom Containers */
.container-custom {
    width: 80%;
    background-color: rgba(225, 213, 213, 0.9);
    box-shadow: 0 0 15px rgba(20, 19, 19, 1);
    overflow-y: auto;
    height: 100vh;
    margin: 0 auto;
}
#BG {
    margin-bottom: 48px;
}
.container-pai {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 0;
}
/* Section Background */
.img-bg {
    height: 600px;
    background-image: url('img/medico-de-tiro-medio-verificando-o-paciente.jpg');
    background-position: center;
    background-size: cover;
    opacity: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Text */
p {
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

/* Logo */
.logo {
    margin-left: 300px;
}

/* Icons */
.icons {
    position: fixed;
    bottom: 90px;
    right: 220px;
    z-index: 1000;
    display: flex;
    gap: 20px;
}

.icons a i:hover {
    animation: translateY 0.8s infinite alternate;
}

#iconinstagram {
    background: linear-gradient(45deg, #feda77, #f58529, #dd2a7b, #8134af, #515bd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#iconfacebook {
    color: blue;
}

/* Keyframes for Icons */
@keyframes translateY {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-8px) scale(1.1);
    }
}

.footer {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(181, 242, 215, 0);
    padding: 0 20px;
    transition: opacity 0.5s ease;
}

.footer.visible {
    background-color: rgba(181, 242, 215, 1);
}

.logo-footer {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.logo-footer.visible {
    opacity: 100%;
}
.text-footer {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.text-footer.visible {
    opacity: 1;
}

@media (max-width: 600px) {
    h1 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
        margin: 0 10px;
        letter-spacing: -1.4px;
    }

    .container-custom {
        width: 95%;
    }

    .container-fluid {
        padding: 5px;
    }

    .m-2, .m-4, .p-1, .p-4 {
        margin: 5px;
        padding: 5px;
    }

    .icons {
        visibility: hidden;
    }
}

@media (max-width: 992px) {
    .logo {
        display: none;
    }
    .logo-footer {
        display: none;
    }
 
}

@media (min-width: 993px) and (max-width: 1700px) {
    .logo {
    
        margin-left: 50px;
    }
}

@media (min-width: 601px) and (max-width: 1720px) {
    .icons {
        right: 50px;
    }
}
