/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Garantir que o body ocupe toda a altura da tela */
}

body {
    display: flex;
    flex-direction: column; /* Organizar os elementos em coluna */
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Container principal */
.content {
    flex: 1; /* Permite que o conteúdo expanda e ocupe o espaço disponível */
}

/* Navbar */
.navbar {
    background-color: #001f3f; /* Azul marinho escuro */
    padding: 15px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin: 0 15px;
}

/* Efeito neon ao passar o mouse */
.navbar a {
    position: relative;
    color: #fff;
    text-decoration: none;
}
.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00d4ff; /* Azul neon */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.navbar a:hover {
    color: #00d4ff;
}
.navbar a:hover::before {
    width: 100%;
}

/* Hamburger Menu */
.menu-icon {
    display: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #001f3f;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
}
.footer p {
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #001f3f;
        width: 100%;
        z-index: 1000;
    }
    .navbar ul.active {
        display: flex;
    }
    .menu-icon {
        display: block;
        color: #fff;
        font-size: 24px;
    }
}
.footer {
    background-color: #001f3f;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
}
.footer p {
    margin: 0;
}
.footer-links {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    margin-top: 10px; /* Espaçamento acima dos ícones */
}
.footer-links a {
    margin: 0 10px; /* Espaçamento horizontal entre os ícones */
    text-decoration: none; /* Remove o sublinhado dos links */
}
.footer-links img {
    width: 30px; /* Ajuste o tamanho conforme necessário */
    height: auto;
}
.sobre-container {
    text-align: justify;
    max-width: 800px; /* Limita a largura do container */
    margin: auto; /* Centraliza o container na página */
    padding: 20px;
    background-color: #ffffff; /* Cor de fundo */
    border-radius: 8px; /* Cantos arredondados */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}
.sobre-container h2 {
    color: #001f3f; /* Cor do título */
    margin-top: 20px; /* Espaço acima do título */
}
.sobre-container p {
    line-height: 1.6; /* Aumenta o espaço entre linhas */
    margin-bottom: 15px; /* Espaço abaixo do parágrafo */
}

/* Imagens Home */
.image-gallery {
    display: flex;
    flex-direction: column; /* Coloca as linhas uma embaixo da outra */
    align-items: center; /* Centraliza as colunas */
    margin: 20px 0; /* Espaço acima e abaixo da galeria de imagens */
}
.image-container {
    display: flex;
    justify-content: center; /* Centraliza as imagens na linha */
    margin-bottom: 20px; /* Espaço abaixo de cada linha de imagens */
}
.image-container img {
    width: 360px;  /* Aumente a largura para 400px */
    height: 180px; /* Aumente a altura para 200px */
    margin: 0 10px; /* Espaço entre as imagens */
    transition: transform 0.3s ease; /* Transição suave para o efeito de zoom */
}
.image-container img:hover {
    transform: scale(1.1); /* Amplia a imagem ao passar o mouse */
}

/* Animação de movimento horizontal */
@keyframes slide {
    0% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(-20px); }
}
.image-container {
    animation: slide 3s infinite alternate; /* Animação de deslizamento */
}

/* Vídeos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px; /* aumentado para dar mais espaço horizontal */
    margin: 40px auto;
    padding: 0 20px;
}
.video-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px 20px;  /* 10px em cima/baixo, 20px nas laterais */
    text-align: center;
    transition: transform 0.2s ease-in-out;
}
.video-card:hover {
    transform: scale(1.02);
}
.video-card img {
    width: 100%;
    height: 5cm;               /* altura fixa */
    object-fit: cover;           /* mantém proporção, cortando excesso */
    border-radius: 8px;
    margin-bottom: 15px;
}
.video-card h3 {
    color: #001f3f;
    margin-bottom: 15px;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn.assistir {
    background-color: #28a745;
}
.btn.assistir:hover {
    background-color: #218838;
}
.btn.play {
    background-color: #007bff;
}
.btn.play:hover {
    background-color: #0056b3;
}
.btn.comprar {
    background-color: #ffc107;
    color: #333;
}
.btn.comprar:hover {
    background-color: #e0a800;
}
@keyframes flutuar-horizontal {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}
.video-card {
    animation: flutuar-horizontal 4s ease-in-out infinite;
}

/* Trabalhos Home*/
.media-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 40px;
}
.media-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas iguais */
  gap: 20px;
  width: 100%;
  grid-auto-rows: 8cm; /* mantém altura fixa */
  max-width: 1200px;
  margin: 0 auto;
}
/* Container individual com mídia + título */
.media-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
/* Estilo para vídeos e imagens */
.media-item video,
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  animation: sway 8s ease-in-out infinite;
  border: 2px solid #ccc;
}
/* Título abaixo da mídia */
.media-item p {
  margin-top: 6px;
  font-size: 14px;
  color: #444;
  text-align: center;
}
/* Efeito de movimento lateral */
@keyframes sway {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(8px); }
  100% { transform: translateX(0); }
}
/* Hover e toque: leve zoom */
.media-item video:hover,
.media-item img:hover,
.media-item video:active,
.media-item img:active {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .media-container {
    grid-template-columns: 1fr; /* apenas uma coluna */
    grid-auto-rows: auto; /* altura ajustável ao conteúdo */
    padding: 0 16px; /* um pouco de margem nas laterais */
  }
}

/* Logout */
.navbar ul li form.logout-form {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}
.logout-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 5px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    text-align: center;
    line-height: 1;
}
.logout-button:hover {
    text-decoration: underline;
    text-decoration-color: #007bff;
}
.navbar ul li {
    display: flex;
    align-items: center;
}

/* Estilos para a página do Fórum */
.forum-form {
    padding: 0 34px;
    margin-bottom: 20px;
    background-color: #f9f9f9; /* Cor de fundo do formulário */
    border-radius: 8px; /* Cantos arredondados */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}
/* Estilizando os botões */
.textarea {
    width: 100%;
    margin: 0 34px; /* margem lateral para afastar da borda da tela */
    padding: 10px;  /* pode manter um padding interno para o texto */
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none; /* Desabilitar redimensionamento */
    margin-bottom: 10px;
    font-size: 16px;
    box-sizing: border-box; /* Inclui padding na largura total */
    color: black;
}
/* Estilizando os botões */
/* Estilo das caixas de mensagem (input e recebida) */
.caixa-mensagem {
    width: 600px;
    min-height: 100px;
    margin: 0 34px; /* margem lateral para afastar da borda da tela */
    padding: 10px;  /* pode manter um padding interno para o texto */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: sans-serif;
    font-size: 14px;
    resize: vertical;
    background-color: #fff;
    color: black;
}
/* Linha horizontal com alinhamento inferior */
.linha-mensagem {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}
/* Botões */
.enviar, .excluir {
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.enviar {
    background-color: #007bff;
    color: #fff;
}
.enviar:hover {
    background-color: #0056b3;
}
.excluir {
    background-color: #6c757d;
    color: #fff;
}
.excluir:hover {
    background-color: #5a6268;
}

/* Estilo bonito e moderno para Login e Registro */
.auth-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinha ao topo */
    padding: 20px 15px 20px; /* Espaço inferior para o footer */
    box-sizing: border-box;

}
.auth-card {
    background-color: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease;
}
.auth-card h2 {
    margin-bottom: 25px;
    text-align: center;
    color: #001f3f;
    font-size: 28px;
}
.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.auth-card label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}
.auth-card input {
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.auth-card input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
}
.auth-card .btn-modern {
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.auth-card .btn-modern.play {
    background-color: #007bff;
    color: white;
}
.auth-card .btn-modern.play:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}
.auth-card .btn-modern.assistir {
    background-color: #28a745;
    color: white;
}
.auth-card .btn-modern.assistir:hover {
    background-color: #1e7e34;
    transform: translateY(-1px);
}
.auth-card p {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 15px;
}
.auth-card p a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}
.auth-card p a:hover {
    text-decoration: underline;
}
.form-error {
    color: #d93025;
    font-size: 13px;
    margin-top: 4px;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tela de fundo */
body {
    background-image: url("/static/images/fundotela3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Login e Register */
.password-container {
    position: relative;
    width: 100%;
}
.password-container input[type="password"],
.password-container input[type="text"] {
    width: 100%;
    padding-right: 44px !important;
    box-sizing: border-box;
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-password svg {
    width: 22px;
    height: 22px;
    stroke: #666;
    transition: stroke 0.3s;
}
.toggle-password:hover svg {
    stroke: #007bff;
}
