
/* Copyright (C) 2024-2025 Rafael Senties Martinelli. All Rights Reserved. */

* {
    box-sizing: border-box;
}

.center {
    text-align: center;
}

.self-center {
    margin: auto;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    margin: 0;
    line-height: 1.6;
    background-color: #1e1e1e;
    color: #f5f5f5;
}

header {
    background: #8b0000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 1.5rem;
}

#logo {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 0;
}

#logo > img {
    height: 2.5rem;
    width: auto;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

nav ul li {
    display: inline;
}

nav ul li a {
    margin-left: .2rem;
    margin-right: .2rem;
    padding: 0.8rem .6rem;
    font-weight: 500;
    text-decoration: none !important;
    color: white;
    transition: background 0.3s, color 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    background: #ff4c4c;
    color: white;
    border-radius: 4px;
}

div.sub-nav {
    position: fixed;
    left: 0;
    right: 0;
    margin-top: .25rem;
    padding: 0.5rem 0;
    text-align: center;
    z-index: 10;
    color: #fff;
}

div.sub-nav nav {
    display: inline-block;
    margin: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    background-color: #333333;
}

div.sub-nav ul {
    display: block;
}

div.sub-nav ul a {
    margin-left: .5rem;
    margin-right: .5rem;
    padding: .6rem .8rem;
}

#scrollable-content {
    position: absolute;
    top: 3.3rem;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
}

body.dual-header #scrollable-content {
    padding-top: 2.3rem;
}

main {
    min-height: calc(100vh - 8.7em);
    background: #1e1e1e;
}

body.dual-header main {
    min-height: calc(100vh - 11.9em);
}

#content,
div.width-container{
    width: 78rem;
    max-width: 100%;
    margin: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

h4 {
   margin-bottom: 0; 
}

ol.no-indent,
ul.no-indent {
    padding-left: 1rem;
}

ol.no-listing,
ul.no-listing {
    list-style-type: none;
    padding-left: 1rem;
}

div.center {
    width: 100%;
    text-align: center;
}

div.left {
    text-align: center;
}

div.feature-section,
div.feature-item {
    margin: 1em;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

div.feature-item{
    display: inline-block;
    text-align: center;
    width: 250px;
}


div.feature-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ff5555;
}

div.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

div.feature-item p {
    font-size: 0.9rem;
    color: #bbb;
}

div.overflow {
    max-width: 100%;
    overflow: auto;
}

table th {
    border-bottom: 2px solid white;
}

table th, table td {
    padding: .25rem;
}

table td img {
    display: block;
    margin: auto auto .5em;
}

#image-container img {
    max-width: calc(100vw - 2em);
    height: auto;
    max-height: 50vh;
    width: auto;
    display: block;
    margin: 2rem auto 1rem auto;
}

h1, h2, h3 {
    color: #ff5555;
}

kbd {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-width: 22px;
    height: 22px;
    margin: 0 1px 2px;
    padding: 3px;
    border-radius: 4px;
    white-space: nowrap;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1rem;
    border: 1px solid #808080;
    background: #b3b3b3;
    color: #262626;
}

.hidden {
    display: none
}

a {
    text-decoration: none;
    color: #ff5555;
    font-weight: 500;
}


button a {
    font-weight: bold;
    color: grey;
}

img.doc-img-section {
    width: 100%;
    max-width: 50rem;
    height: auto;
}

.code,
code {
    font-family: Consolas, Monaco, serif;
    background-color: rgba(255, 255, 255, .6);
    padding: .2rem;
    border-radius: .25rem;
    color: black;
}

pre.code > code {
    background-color: transparent;
}

.block {
    display: block;
    margin-top: .25rem;
    margin-bottom: .25rem;
}

table {
    border-collapse: collapse;
    margin-top: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

table thead {
    background: #ff4c4c;
    color: white;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
}

table tbody tr:hover {
    background: #353535;
}

table tbody tr:last-child td {
    border-bottom: none;
}

footer {
    text-align: center;
    color: grey;
    margin-bottom: 0;
    padding: 20px 10px;
    background-color: #252525;
}

@media (max-width: 650px) {
    
    #logo {
        display: none;
    }
    
    header > div {
       padding: .8rem 1.5rem; 
    }
    
}

@media (max-width: 500px) {
    header  nav {
        margin: auto;
    }
    
    div.sub-nav {
        font-size: .9rem;
    }
    
    div.sub-nav nav {
        padding-left: .5rem;
        padding-right: .5rem;
    }
    
}


@media (max-width: 450px) {
    
    #content,
    div.width-container{
        padding-left: .5rem;
        padding-right: .5rem;
    }
    
    div.sub-nav nav {
        padding-left: 0;
        padding-right: 0;
    }

    div.sub-nav ul a {
        margin-left: .0;
        margin-right: 0;
        padding: .4rem .7rem;
    }
}


@media (max-width: 400px) {
    
     div.sub-nav {
        font-size: .8rem;
    }

}