/* This prsonal web page, with related html, css and js codes © 2025 by Fabio Marques de Souza
is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International.
To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/4.0/ */


/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: black; /* Fundo escuro para melhor contraste */
}

.content {
    position: relative;
    z-index: 10;
    color: #00ff00;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif; /* Fonte Orbitron com fallback */
}

p {
    font-size: 1.2rem;
    margin-bottom: 45px; /* Ajuste do espaçamento (triplo) */
    line-height: 1.5;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 0.5rem 0;
}

/* Aplica Courier New aos links para páginas externas */
a {
    color: #00ff00;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif; /* Fonte Orbitron com fallback */
}

a:hover {
    color: #00FF41;
    background: rgba(0, 0, 0, 0.7);
    text-decoration: underline;
    border: 1px solid #CC0000;
    margin: -17px;
    padding: 16px;
    position: relative;
    z-index: 1;
}

a.hoverText {
    text-decoration: underline;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #00ff00;
    transition: color 0.3s ease;
}

a.hoverText:hover {
    color: #00FF41;
	text-decoration: none;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Evita interferir na interação com links */
}

#dynamicQuote {
    font-family: 'Agency FB', sans-serif; /* Fonte Agency FB com fallback */
    font-size: 24px; /* Tamanho da fonte */
    color: #0f0; /* Cor do texto */
    text-align: center; /* Alinha o texto ao centro */
    margin-top: 20px; /* Distância da margem superior */
    font-style: italic; /* Aplica o estilo itálico */
}

/* Novo estilo para "all rights reserved" no canto inferior direito */
#rightsReserved {
    position: fixed;
    bottom: 10px;  /* Distância da parte inferior */
    right: 10px;   /* Distância da parte direita */
    color: #00ff00;
    font-family: 'Orbitron', sans-serif; /* Fonte Orbitron */
    font-size: 1rem; /* Tamanho da fonte */
    text-align: right;
	line-height: 1.5;
    z-index: 100;
}

#rightsReserved span {
    font-weight: bold; /* Negrito para os numerais romanos */
}

/* Ajustes de responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    p, a {
        font-size: 1rem;
    }

    #rightsReserved {
        font-size: 0.9rem; /* Reduz o tamanho da fonte em dispositivos menores */
    }
}

@media (orientation: landscape) {
    .content {
        padding: 10px;
    }
}

/* Personalização da barra de rolagem */
body::-webkit-scrollbar {
    width: 8px; /* Largura da barra de rolagem */
    height: 8px; /* Altura da barra de rolagem */
}

body::-webkit-scrollbar-track {
    background: black; /* Fundo igual ao da página */
}

body::-webkit-scrollbar-thumb {
    background: #0f0; /* Cor verde camuflada */
    border-radius: 4px; /* Borda arredondada */
}

body::-webkit-scrollbar-thumb:hover {
    background: #00FF41; /* Cor mais viva ao passar o mouse */
}

/* Ajustes de rolagem suave */
html {
    scroll-behavior: smooth; /* Rola suavemente */
    overflow-y: scroll; /* Garante rolagem mesmo sem overflow imediato */
}

/* Responsividade para paisagens em dispositivos móveis */
@media (orientation: landscape) {
    .content {
        padding: 15px;
    }

    #matrixCanvas {
        height: 100vh;
        width: 100vw;
    }
}

@keyframes matrixRain {
    0% {
        text-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 15px #0f0;
        color: transparent;
    }
    50% {
        text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
        color: transparent;
    }
    100% {
        text-shadow: none;
        color: #00ff00;
    }
}

a {
    position: relative; /* Para garantir que a animação seja aplicada no local certo */
    overflow: hidden; /* Impede que caracteres saiam do espaço do link */
    display: inline-block; /* Permite a aplicação do tamanho correto */
}

a:hover {
    animation: matrixRain 2s; /* Define a duração da animação */
    animation-fill-mode: forwards; /* Garante que o texto final permaneça visível */
}

/* Posição e estilo do controle de áudio */
#audioControl {
    position: fixed;
    bottom: 10px; /* Mesma altura que o texto de direitos */
    right: 10px;
    color: #00ff00;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-align: right;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre o ícone e o texto */
}

#soundIcon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-on {
    background: url('sound-on-icon.png') no-repeat center;
    background-size: contain;
}

.sound-off {
    background: url('sound-off-icon.png') no-repeat center;
    background-size: contain;
}

/* Estilo para o vídeo de fundo */
/* Vídeo de fundo */
#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vídeo cobrir toda a tela */
    z-index: 1; /* Camada inferior, mas acima do fundo */
    opacity: 0.5; /* Transparência do vídeo */
}

/* Canvas do efeito Matrix Rain */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Camada intermediária, acima do vídeo */
    pointer-events: none; /* Evita interferência nos cliques e interações */
}

/* Conteúdo HTML */
.content {
    position: relative; /* Posicionamento normal */
    z-index: 3; /* Camada superior */
    color: #00ff00;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
/* Botão do menu suspenso */
#dropdownMenu {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    width: 40px;
    cursor: pointer;
}

#menuIcon {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
    border-radius: 4px;
    gap: 4px; /* Espaço entre as linhas */
}

/* Três linhas horizontais no ícone */
#menuIcon div {
    width: 24px; /* Largura das linhas */
    height: 2px; /* Altura das linhas */
    background-color: #00ff00; /* Cor das linhas */
    border-radius: 1px;
}

/* Opções do menu suspenso */
#menuOptions {
    position: absolute;
    top: 50px;
    left: 0;
    width: 150px;
    display: none; /* Esconde o menu inicialmente */
    background-color: black;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    border-radius: 4px;
    z-index: 101;
}

#menuOptions button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    font-size: 14px;
    color: #00ff00;
    background: none;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
}

#menuOptions button:hover {
    background-color: #00ff00;
    color: black;
}
