/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.4;
    background-color: #f4f4f9;
    color: #333;
   
}

/* Estilos do header */
header {
    background-color: #005b8a;
    padding: 10px 10px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0; /* Removing default padding */
    margin: 0; /* Removing default margin */
}

nav ul li {
    position: relative; /* Make li a positioning context for the pseudo-element */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px;
    display: inline-block; /* Make the anchor fill the li */
    position: relative; /* Position relative for absolute child */
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;   
    width: 100%; /* Full width of the anchor */
    height: 2px; /* Height of the border */
    background: #fff; /* Border color */
    transform: scaleX(0); /* Start with 0 width */
    transition: transform 0.3s ease-in-out; /* Transition for the effect */
}
nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%; /* Full width of the anchor */
    height: 2px; /* Height of the border */
    background: #fff; /* Border color */
    transform: scaleX(0); /* Start with 0 width */
    transition: transform 0.3s ease-in-out; /* Transition for the effect */
}

nav ul li a:hover::after {
    transform: scaleX(1); /* Scale to full width on hover */
}
nav ul li a:hover::before {
    transform: scaleX(1); /* Scale to full width on hover */
}

/* Estilo para destacar a seção ativa no menu */
nav ul li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%; /* Full width of the anchor */
    height: 2px; /* Height of the border */
    background: #fff; /* Border color */
    transform: scaleX(1); /* Start with 0 width */
    transition: transform 0.3s ease-in-out; /* Transition for the effect */
}


/* Estilos das seções */
section {
    padding: 70px 20px;
    max-width: 900px;
    margin: auto;
}

.highlight {
    font-weight: lighter;
    background-color: #fff7cc;
    padding: 5px 10px;
    border-radius: 18px;
    border: 2px solid #ffc61a;
    box-shadow: 0 10px 10px #ccc;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    color: #0277bd;
}

h2 {
    font-size: 2em;
    color: #005b8a;
}

p, ul {
    margin: 20px 0;
    font-size: 1.1em;
    text-align: justify;
}

.placeholder {
    margin: 20px 0;
    text-align: center;
}

.placeholder img {
    width: 90%;
    object-fit: cover;
    box-shadow: 0 10px 10px #ccc;
}

.placeholder p {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

footer {
    background-color: #005b8a;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Estilos para o modal (imagem em fullsize) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
}

/* Estilos para dispositivos móveis */
@media screen and (max-width: 768px) {
    body {
        font-size: 0.9em;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li a {
        padding: 10px 15px;
        font-size: 1em;
    }

    .placeholder img {
        width: 100%;
        height: auto;
    }

    footer {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        flex-direction: column;
        padding: 10px;
    }

    nav ul li {
        padding-bottom: 10px;
    }

    nav ul li a {
        font-size: 0.9em;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    section {
        padding: 20px 10px;
    }

    footer {
        font-size: 0.8em;
    }
}

/* Estilos do botão de menu hambúrguer */
.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.menu-bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
}

/* Esconde o menu para telas pequenas */
.nav-links {
    display: flex;
    justify-content: space-around;
}

@media screen and (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        left: 0;
        width: 100%;
        background-color: #005b8a;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }


    nav ul li {
        text-align: center;
        padding: 10px 0;
    }
}
