/* Reset e configurações gerais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f2f2f2;
    color: #333;
    box-sizing: border-box;
    flex-direction: column;
}

/* Estilo do header e navegação */
header {    
    background-color: #333;
    padding: 20px 0;
    text-align: center;
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #575757;
}

/* Estilo do conteúdo principal */
#content {
    padding: 20px;
}

#home, #treinamento, #contato {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilo da seção Home */
#home {
    text-align: center;
    padding: 15px 0;
}

#home h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #333;
    text-align: center; 
}

#home p {
    font-size: 1em;
    margin-bottom: 12px;
    color: #666;
    text-align: center; 
}

#home button {
    padding: 12px 24px;
    font-size: 1em;
    background-color: #091430;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#home button:hover {
    background-color: #4713a0;
}

/* Estilo da seção Portfolio */
#treinamento {
    text-align: center;    
    padding: 9px;
}

#treinamento h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.trainings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.training {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-items: center;
    gap: 15px;
}

.training:hover {
    transform: translateY(-15px);
}

.training img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.training:hover img {
    transform: scale(1.1);
}

.training h3 {
    font-size: 1.1em;
    color: #333;
}

.training p {
    font-size: 1em;
    line-height: 1;
    color: #666;
}

/* Estilo da seção Contato */
#contato {
    text-align: center;
}

#contato h2 {
    font-size: 2.2em;
    margin-bottom: 2px;
    color: #333;
}

#contato h1 {
    font-size: 1.em;
    margin-bottom: 2px;
    color: #333;
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contactForm label {
    display: block;
    text-align: left;
    margin-bottom: 1px;
    font-size: 1.1em;
    color: #000000;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 1em;
}

#contactForm textarea {
    resize: vertical;
}

#contactForm button {
    padding: 10px 22px;
    font-size: 1em;
    background-color: #0a1aa7;
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contactForm button:hover {
    background-color: #091430;
}

/* Estilo do rodapé */
footer {
    background: #091430;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
}
/* Estilos para o Logo */
.header-logo {
    display: block; /* Garante que o logo seja um elemento de bloco */
    width: 190px; /* Largura do logo */
    height: auto; /* Altura ajustável conforme a largura */
    margin: 0 auto; /* Centraliza o logo horizontalmente */
    padding: 10px; /* Espaçamento interno ao redor do logo */
}

/* Estilos para o Header */
header {
    background-color: #091430; /* Cor de fundo do cabeçalho */
    padding: 10px 0; /* Espaçamento interno do cabeçalho */
    text-align: center; /* Alinhamento do texto centralizado */
    position: relative
}
.secondary-footer {
    background-color: #f2f2f2;
    padding: 5px;
    text-align: center;
    color: #3b3b3b;
    font-size: 10px;
    border-top: 1px solid #ccc;
}
.imagem {
    max-width: 730px
}
.download{
    padding: 5px 45px;
    font-size: 0.9em;
    background-color: #0a1aa7;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.download:hover {
    background-color: #091430;
}
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-container input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 200px;
}

.search-container button {
    padding: 10px;
    font-size: 16px;
    border: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s;
}

.search-container button:hover {
    background-color: #575757;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .search-container {
        flex-direction: column;
    }

    .search-container input[type="text"], .search-container button {
        width: 100%;
        border-radius: 5px;
    }

    .training {
        width: 100%;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-content a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.modal-content a:hover {
    background-color: #575757;
}

/* Estilo do botão de rolagem para cima */
.scrollToTopBtn {
    display: none; /* Escondido por padrão */
    position: fixed; /* Fixa o botão em uma posição específica */
    bottom: 20px; /* 20px do fundo da página */
    right: 30px; /* 30px da direita da página */
    z-index: 99; /* Garante que o botão fique na frente de outros elementos */
    border: none; /* Remove a borda */
    outline: none; /* Remove a borda de foco */
    background-color: #555; /* Cor de fundo */
    color: white; /* Cor do texto */
    cursor: pointer; /* Cursor de mão */
    padding: 15px; /* Espaçamento interno */
    border-radius: 10px; /* Bordas arredondadas */
    font-size: 18px; /* Tamanho da fonte */
}

.scrollToTopBtn:hover {
    background-color: #333; /* Cor de fundo ao passar o mouse */
}
/* Estilo para os botões de "Gerar" */
button {
    position: relative;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
    overflow: hidden;
    outline: none;
    animation: fizzyPulse 2s infinite ease-in-out;
}

/* Efeito de hover de "Gerar" */
button:hover {
    background-color: #117FC3;
}

/* Animação de pulsação contínua para chamar atenção de "Gerar" */
@keyframes fizzyPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(9, 134, 207, 0.7);
    }
    70% {
        box-shadow: 0 0 20px 20px rgba(9, 134, 207, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(9, 134, 207, 0);
    }
}

/* Partículas fizzy no clique de "Gerar"*/
button:active:before, 
button:active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
    animation: fizzyEffect 0.6s ease forwards;
}

button:before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    animation: particle 1s linear infinite;
    opacity: 0;
}

button:after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    animation: particle 1s linear infinite;
    opacity: 0;
}

/* Animação de partículas no botão de "Gerar" */
@keyframes fizzyEffect {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Criação de partículas saindo do botão de "Gerar"*/
@keyframes particle {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(50px, -50px);
        opacity: 0;
    }
}