:root {
    --primary-color: #007bff;
    --secondary-color: #f0f0f0;
    --accent-color: #ff5722;
    --text-color: #333;
}
.footer-icon {
    vertical-align: middle;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

footer a:hover {
    text-decoration: underline;
}
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    min-height: 100%;
    position: relative;
}
header {
    width: 100%;
    background-color: black;
    color: white;
    padding: 10px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.logo {
    max-width: 110px;
    margin-left: 1.5em;
}

.header-links {
    margin-right: 20px;
    display: flex;
}

.header-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
}

.header-links a:hover {
    background-color: var(--accent-color);
    color: white;
}
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 5px;
    text-align: center;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
}
footer p {
    margin: 5px 0;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
}

footer a:hover {
    text-decoration: underline;
}
.form-container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    position: relative;
}
.form-container h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
    font-weight: bold;
    text-align: left;
}
.form-container p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 10px;
}
.form-container input {
    width: calc(100% - 22px);
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}
.form-container button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.form-container button:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.message {
    text-align: center;
    font-size: 16px;
    color: #007BFF;
    margin-top: 20px;
}
.menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
}

.menu-button div {
    width: 30px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-button.open div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-button.open div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 60px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    overflow-y: auto;
    z-index: 1001;
    padding-top: 20px;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.menu.show {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.menu a {
    display: block;
    color: black;
    text-decoration: none;
    margin: 15px 20px;
    font-size: 18px;
    text-align: center;
}

.menu a:hover {
    text-decoration: underline;
}
/* Media Queries */
@media (max-width: 768px) {
.header-links {
display: none;
}
.menu-button {
display: flex;
}
/* Estilos quando o botão está aberto */
.menu-button.open div:nth-child(1) {
transform: rotate(-45deg) translate(-5px, 6px); /* Animação de rotação e deslocamento */
}

.menu-button.open div:nth-child(2) {
opacity: 0; /* Segundo traço desaparece */
}
.menu-button.open div:nth-child(3) {
transform: rotate(45deg) translate(-5px, -6px); /* Animação de rotação e deslocamento */
}

.menu {
display: none;
position: fixed; /* Garante que o menu sobreponha outros elementos */
top: 100px; /* Ajusta a posição do menu abaixo do cabeçalho */
left: 0; /* Alinha o menu à borda esquerda da tela */
width: 100vw; /* Ocupa toda a largura da tela */
height: calc(100vh - 60px); /* Ocupa toda a altura da tela menos a altura do cabeçalho */
background-color: rgba(255, 255, 255, 0.95); /* Fundo branco semi-transparente */
box-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra mais forte para destaque */
overflow-y: auto; /* Adiciona rolagem vertical se necessário */
z-index: 1001; /* Garante que o menu fique acima de outros elementos */
padding-top: 20px; /* Espaço acima dos links */
opacity: 0; /* Inicialmente invisível */
transition: opacity 0.3s ease-in-out; /* Animação suave para a opacidade */
}
.menu.show {
display: block; /* Exibe o menu */
opacity: 1; /* Torna o menu visível */
}

.menu a {
display: block;
color: black;
text-decoration: none;
margin: 15px 20px; /* Espaço entre os links */
font-size: 18px; /* Tamanho da fonte dos links */
text-align: center; /* Alinha o texto ao centro */
}

.menu a:hover {
text-decoration: underline; /* Sublinha os links ao passar o mouse */
}
.event-card {
width: calc(46% - 20px); /* Aproximadamente 46% para 2 eventos por linha */
}
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px; /* Reduz o padding em telas menores */
        font-size: 14px; /* Ajusta o tamanho da fonte */
    }

    .logo {
        max-width: 80px;
    }
    .header-links a {
        font-size: 14px;
    }
    .event-card {
        width: 100%; /* Ocupa toda a largura disponível em telas muito pequenas */
        margin-bottom: 20px; /* Espaço entre os cartões */
    }
    .event-card img {
        max-height: 120px; /* Reduz a altura máxima da imagem */
    }
    .event-card h2 {
        font-size: 16px; /* Ajusta o tamanho da fonte do título */
    }
    .event-card p {
        font-size: 12px; /* Ajusta o tamanho da fonte do parágrafo */
    }
    footer {
        font-size: 14px; /* Ajusta o tamanho da fonte do rodapé */
    }
}

/* Estilo do Modal */
.modal {
    display: none; /* Inicialmente escondido */
    position: fixed;
    z-index: 1; /* Fica acima de outros conteúdos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Fundo semitransparente */
    padding-top: 60px;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}