@charset "UTF-8";
:root {
    --font-main: Arial, Helvetica, sans-serif;
    --font-draft: "Chivo Mono", monospace;
    --text-white: #ffffff;
    --text-gray: #404040;
    --text-lightgray: #aaaaaa;
    --text-theme: #00ffff;
    --text-link: #da0101;
    --text-shadow: #4040407a;
    --background-white: #ffffff;
    --background-gray: #404040;
    --background-blue: #1f202e;
    --background-shadow: #4040408a;
}

#preloader {
    position: fixed;
    inset: 0;
    background: var(--background-white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
}
#preloader img {
    width: 64px;
    height: 64px;
}

body {
    font-family: var(--font-main);
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    overflow-x: auto;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

body.mainbody::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--background-white) url('package/images/about1000.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    pointer-events: none;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

header {
    background-color: transparent;
    border-right: 1px solid var(--text-lightgray);
    width: 80px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

header.scrolled {
    background-color: var(--text-white); /* Fundo na cor text-white */
    border-right: 1px solid var(--text-lightgray); /* Borda na cor text-white */
    color: var(--text-white); /* Cor do texto na cor text-shite */
    box-shadow: none; /* Remove a sombra quando o header está na segunda página */
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(180deg); /* Rotaciona o texto */
}

nav ul li {
    margin: 40px 0;
}

nav ul li a {
    color: var(--text-white); /* Letras do menu em branco */
    font-family: var(--font-draft);
    text-decoration: none;
    font-size: 1.0em;
    font-weight: bold;
    writing-mode: vertical-rl; /* Muda a direção do texto para vertical */
    transition: 0.5s ease; /* Transição suave, ou "color 0.5s;" */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adiciona uma leve sombra ao texto */
    
}

ul.menu:hover li a{
    color: var(--text-theme);
}

ul.menu:hover li a:not(:hover) {
    color: var(--text-white);
    opacity: 0.5;
    filter: blur(1px);
}

header.scrolled ul.menu:hover li a:not(:hover) {
    color: var(--text-gray);
    opacity: 0.5;
    filter: blur(1px);
}

header.scrolled nav ul li a {
    color: var(--text-gray); /* Letras do menu na cor text-gray quando rolado */
    text-shadow: none;
}

main {
    margin-left: 0px; /* Espaço para o header */
    padding: 0em;
    flex-grow: 1; /* Permite que o main ocupe o espaço restante */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Altura total da janela */
}

.content {
    display: flex; /* Define o layout flexível */
    width: 200%; /* Define a largura do conteúdo maior que a largura da janela */
    height: 100vh; /* Altura total da janela */
}

.page {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column; /* Alinha cabeçalho e conteúdo em coluna */
    align-items: center;    /* Centraliza horizontalmente */
    justify-content: center;/* Centraliza verticalmente */
    position: relative;
}

.page-header {
    width: auto;
    max-width: 1240px; /* 2 subjects de 600px + gap */
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
    z-index: 2;
    background: transparent;
}

.subjects-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: auto;
    max-width: 1240px; /* igual ao page-header */
    margin: 0 auto;
    position: static;
    z-index: 1;
}

.page-title {
    position: static;
    font-size: 3em;
    color: var(--text-gray);
    margin: 0;
    font-weight: bold;
    text-align: left;
    z-index: 2;
}

.intro {
    font-size: 1.4em;
    color: var(--text-white);
    max-width: 800px; /* Define uma largura máxima para o texto */
    text-align: center;
    text-shadow: 2px 2px 4px var(--text-gray);
    margin: 0 auto;
}

.highlight {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--text-theme);
    text-shadow: 2px 2px 4px var(--background-shadow);
}

.subject-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    gap: 40px;
}

.photo {
    background: url('package/images/thematic1.png') no-repeat center center;
    width: 35vw;
    height: 35vw;
    background-size: cover;
}

.subject {
    flex: none;
    max-width: 600px;
    padding: 1em;
    font-size: 1.4em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: var(--text-gray);
    background: transparent;
}

.page-buttons-row {
    display: flex;
    gap: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

    .page-buttons-row#next-page {
        right: 150px;
    }

    .page-buttons-row#prev-page {
        left: 150px;
    }

.page-button {
    position: static;
    background-color: var(--text-white);
    box-shadow: 0 1px 4px var(--background-shadow);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .text-page-button {
        color: var(--text-gray);
        font-size: 1.2em;
    }

.professional-button {
    background-color: var(--text-theme);
    box-shadow: 2px 4px 8px var(--background-shadow);
    width: 180px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .text-professional-button {
        color: var(--text-white);
        font-size: 1.2em;
        font-weight: bold;
        text-shadow: 1px 1px 2px var(--text-gray);
    }

footer {
    color: var(--text-white);
    text-align: center;
    padding: 1em;
    position: absolute; /* Posiciona o footer dentro da primeira página */
    width: calc(100%); /* Ajusta a largura do footer */
    bottom: 0;
}