body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('imagens/baixa_de_barcelos.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    background-color: rgba(51, 51, 51, 0.8);
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    position: relative;
    bottom: 0;
}

footer {
    background-color: rgba(51, 51, 51, 0.8);
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 20px;
}

.social-icons a:hover {
    color: #ddd;
}

img.center-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

img.center-image:hover {
    transform: scale(1.05);
}

nav {
    background-color: rgba(51, 51, 51, 0.8);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

nav img {
    height: 80px;
    margin: 7px 20px;
}

nav a {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    padding: 14px 10px; /* Ajustado para menos espaçamento */
    margin: 0 5px; /* Ajustado para menos espaçamento */
}

nav a:hover {
    transform: scale(1.1);
    background-color: transparent;
    color: rgb(213, 168, 71);
}

nav a:focus {
    outline: none;
}

.logo-link img {
    transition: transform 0.3s ease;
}

.logo-link img:hover {
    transform: scale(1.1);
}

html {
    scroll-behavior: smooth;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

.text-shadow-effect {
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    color: #C3A563;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
}

.modal-gallery img {
    width: 100%;
    max-width: 700px;
    margin-bottom: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Media Queries */

/* Estilos para dispositivos móveis */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        padding: 10px 0;
        width: 100%;
        text-align: center;
        margin: 5px 0; /* Ajustado para menos espaçamento vertical */
    }

    .logo-link img {
        width: 150px;
        margin-bottom: 10px;
    }

    .image-container .center-image {
        width: 100%;
        height: auto;
    }

    .modal-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 14px;
    }

    .logo-link img {
        width: 120px;
    }
}
