/* - - - - - - - - - -  DEFAULT COLORS */
/* - - - - - - - - - - - - - - - - - - */
.light {
    color-scheme: light;
    --color-one: #D1C8BA;
    --color-two: #C2B5A1;
    --color-three: #D9D9D9;
    --color-contrast: #464544;
}

.dark {
    color-scheme: dark;
    --color-one: #1a1a1a;
    --color-two: #232426;
    --color-three: #32363F;
    --color-contrast: #aea18c;
    --color-highlight: #caad7d;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - -  CONFIG */
/* - - - - - - - - - - - - - - - - - - */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family, "JetBrains Mono", monospace);
    font-size: 12px;
}

h1 {
    font-size: 24px;
}

h1 a {
    font-size: 24px;
}

h2 {
    font-size: 20px;
}

h2 a {
    font-size: 20px;
}

h3 {
    font-size: 16px;
}

h3 a {
    font-size: 16px;
}

.jetbrains-mono-default {
  --font-family: "JetBrains Mono", monospace;
  --font-optical-sizing: auto;
  --font-weight: 400;
  --font-style: normal;
}

.jetbrains-mono-bold {
  --font-family: "JetBrains Mono", monospace;
  --font-optical-sizing: auto;
  --font-weight: 600;
  --font-style: normal;
}

strong {
    color: var(--color-contrast);
}

em {
    color: var(--color-contrast)
}

hr {
    border: none;
    height: 1px;

    background-color: var(--color-highlight)
}

nav .first .menu .logo label i {
    font-size: 18px;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - - - NAV */
/* - - - - - - - - - - - - - - - - - - */

nav {
    background-color: var(--color-one)
}

nav .three-section-model {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    height: 60px;
}

nav .first {
    width: 33%;
    padding-left: 5%;
    color: var(--color-contrast);
    font-family: monospace;
    font-weight: bolder;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav .first .menu {
    display: none;
}

#hamburgerMenu {
    display: none;
}

.menu-interno {
    display: none;
}

nav .second {
    width: 33%;
    color: var(--color-contrast);
    font-family: monospace;
    text-align: center;
}

nav .third {
    width: 33%;
    color: var(--color-contrast);
    font-family: monospace;
    font-weight: bolder;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - -  BODY */
/* - - - - - - - - - - - - - - - - - - */

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - - - -  MAIN */
/* - - - - - - - - - - - - - - - - - - */

.main {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: row;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - THREE SECTION */
/* - - - - - - - - - - - - - - - - - - */

.three-section-model .first {
    align-self: center;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - TITULO PAGINA */
/* - - - - - - - - - - - - - - - - - - */

.three-section-model .first h1 a {
    color: inherit;
    text-decoration: none;
}
.mobile-title {
    display: none;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - -  MAIN: PAINEL */
/* - - - - - - - - - - - - - - - - - - */

.main .lateral-painel {
    width: 230px;
    height: 100%;
    background-color: var(--color-two);
    flex-shrink: 0;
    flex-direction: column;
    display: flex;
    padding-top: 10px;
    overflow-y: auto;
    scrollbar-width: none;
}

.main .lateral-painel a {
    display: block;
    padding: 0.5rem 1rem;

    color: inherit;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        padding-left 0.2s ease;
}

.main .lateral-painel a.topic::before {
    content: "#";
    opacity: 0;

    margin-right: 0.4em;

    transition: opacity 0.2s ease;
}

.main .lateral-painel a.topic:hover {
    background-color: #1a1a1aab;

    padding-left: 2rem;
}

.main .lateral-painel a.topic:hover::before {
    opacity: 1;
}

.main .lateral-painel a.subtopic::before {
    content: "└";
    opacity: 0;

    margin-right: 1.5em;

    transition: opacity 0.2s ease;
}

.main .lateral-painel a.subtopic:hover {
    background-color: #1a1a1aab;
    padding-left: 2.5rem;
}

.main .lateral-painel a.subtopic:hover::before {
    opacity: 1;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - MAIN: CONTENT */
/* - - - - - - - - - - - - - - - - - - */

.main .content {
    background-color: var(--color-three);
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main .content .header {
    width: 100%;
    background-color:  var(--color-two);
    padding: 20px 20px 20px 20px;
}

.main .content .header a {
    color: var(--color-highlight);
}

.main .content .text {
    background-color:  var(--color-three);
    width: 100%;
    height: 100%;
    padding: 50px;
    text-align: justify;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - -  EDIÇÃO TITULOS .MD */
/* - - - - - - - - - - - - - - - - - - */

h2 {
    padding: 20px 0px 20px 20px;
}

h3 {
    padding: 20px 0px 20px 20px;
    color: var(--color-contrast);
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - -  EDIÇÃO H2 CLICAVEL */
/* - - - - - - - - - - - - - - - - - - */

#content h2 a {
    color: var(--color-contrast);
    text-decoration: none;
    transition: padding-left 0.2s ease;
}

#content h2 a::before {
    content: "# ";
    opacity: 0;
    transition: opacity 0.2s ease;
}

#content h2:hover a {
    padding-left: 1em;
}

#content h2:hover a::before {
    opacity: 1;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - EDIÇÃO LISTAS */
/* - - - - - - - - - - - - - - - - - - */
ol {
    padding-top: 20px;
    padding-inline-start: 40px;
}

ol li::marker {
    color: var(--color-contrast);
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - -   EDIÇÃO PAINEL */
/* - - - - - - - - - - - - - - - - - - */

.content .principal {
    display: flex;
    align-items: row;
}

.content .principal .text {
    align-self: center;
}

.content .principal .image img {
    max-width: 300px;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - -  EDIÇÃO ANEDOTA */
/* - - - - - - - - - - - - - - - - - - */

.anedota {
   font-style: italic;
}

details.anedota {
    margin: 1rem 0;
    padding: 0.75rem;

    border-left: 4px solid var(--color-contrast);
    background: var(--color-two);

}

details.anedota summary {
    cursor: pointer;
    font-weight: bold;
}

details.anedota[open] {
    background: var(--color-two);
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - EDIÇÃO FOOTER */
/* - - - - - - - - - - - - - - - - - - */

.main .content .footer {
    padding-top: 20px;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - EDIÇÃO MAILTO */
/* - - - - - - - - - - - - - - - - - - */

a[href^="mailto:"] {
    color: var(--color-highlight);
    text-decoration: none;
}

a[href^="mailto:"]:hover {
    color: var(--color-highlight);
    text-decoration: underline;
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - -  ANIMATIONS */
/* - - - - - - - - - - - - - - - - - - */

.three-section-model .spinning-text {
    border: 0px solid var(--text-color);
    height: 50px;
    line-height: 50px;
    font-size: 12px;
    overflow: hidden;
}

.three-section-model .spinning-text p {
    position: relative;
    animation: spinning 8s ease infinite;
}

@keyframes spinning {
    0%   { top: 0; }
    25%  { top: -50px; }
    50%  { top: -100px; }
    75%  { top: -150px; }
    100% { top: 0; }
}

/* - - - - - - - - - - - - - - - - - - */
/* - - - - - - - - - - - - -   @ MEDIA */
/* - - - - - - - - - - - - - - - - - - */

@media (max-width: 989px) {
    .desktop-title {
        display: none;
    }

    .mobile-title {
        display: inline;
    }

    nav .first .menu {
        display: flex;
        margin-right: 10px;
    }

    .lateral-painel {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform .3s ease;
    }
    
    .lateral-painel.open {
        transform: translateX(0);
    }

    #hamburgerMenu {
        display: none;
    }

    .menu-interno {
        align-self: self-end;
        padding: 20px 20px 20px 20px;
        display: flex;
    }

    .content .principal {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 840px) {
    nav .three-section-model {
        padding-top: 15px;
        flex-direction: column;
        overflow: hidden;

        height: 60px;
    }

    .menu-interno {
        padding: 20px 20px 20px 20px;
    }

    .second {
        display: none;
    }

    nav .first {
        padding-left: 0%;
    }
}