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

* {
    box-sizing: border-box;
}

.center {
    text-align: center;
}

.self-center {
    margin: auto;
}

.hash {
  font-family:
          ui-monospace,
          SFMono-Regular,
          Menlo,
          Monaco,
          Consolas,
          "Liberation Mono",
          "Courier New",
          monospace;
}

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

header {
    background: linear-gradient(90deg, #8b0000, #b30000);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

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.5rem 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    color: white;
    border-radius: 6px;
    transition: all 0.25s ease;
    background-color: transparent;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #ff4c4c;
    color: white;
    box-shadow: 0 2px 6px rgba(255, 76, 76, 0.4);
}

div.sub-nav {
    position: fixed;
    top: 3.1rem;
    left: 0;
    right: 0;
    padding: 0.6rem 0;
    text-align: center;
    z-index: 50;
    background-color: #262626;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    margin-top: 0;
}

div.sub-nav nav {
    display: inline-block;
    margin: auto;
    padding: 0 1rem;
    border-radius: 10px;
    text-align: center;
}

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

div.sub-nav ul a {
    margin: 0 .5rem;
    padding: .3rem .9rem;
    text-decoration: none;
    color: #eee;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.25s ease;
    background-color: transparent;
}

div.sub-nav ul a:hover,
div.sub-nav ul a.active {
    background-color: #ff4c4c;
    color: white;
    box-shadow: 0 2px 6px rgba(255, 76, 76, 0.4);
}

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

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

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

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

#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;
    padding: 20px;
    border-radius: 10px;
    background: #222;
}

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

div.feature-item.warning {
    background: #333300;
}

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

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

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

div.feature-item p + button{
    margin-top: 1rem;
}


div.feature-item a.button,
div.feature-item button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    color: #ff6b4c;
    background-color: #333;
    border: 1px solid #ff6b4c;
}

div.feature-item a.button:hover,
div.feature-item button:hover {
    color: #ffac99;
    border: 1px solid #ffac99;
}

div.feature-item button:hover a{
    color: #ffac99;
}

div.feature-item a.button:active,
div.feature-item button:active {
    color: #ff6b4c;
}

div.feature-item button.btn-sha {
    position: absolute;
    bottom: 1.4rem;
    margin-left: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    padding: .3rem;
    padding-bottom: .4rem;
    border: none;
    background: none;
    box-shadow: none;
}

div.feature-item button.btn-sha:hover {
    color: #ffac99;
}

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;
}

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

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

.hidden {
    display: none
}

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

a:hover {
    color: #ffac99
}

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;
}

span.code {
    line-height: 2rem;
}

.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: #808080;
    margin-bottom: 0;
    padding: 20px 10px;
    background-color: #252525;
}

button,
.button,
a.button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    background-color: #ff6b4c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
.button:hover,
a.button:hover {
    background-color: #ff7f61;
}

button:active,
.button:active,
a.button:active {
    background-color: #ff5c3d;
    box-shadow: 0 2px 6px rgba(255, 107, 76, 0.4);
}

.fade-slider {
  position: relative;
  width: 100%;
  max-width: 50rem;
  aspect-ratio: 16 / 9;
  margin: 2rem auto 1rem;
}

.fade-slider img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-slider img.active {
  opacity: 1;
}

.expandable {
  border-radius: 6px;
  margin: 1em 0;
  overflow: hidden;
  background: #808080;
  border: 1px solid #ff6b4c;
}


.expandable-button {
  margin: 0;
  padding: 0.75em 1em;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  color: #ff6b4c;
  background-color: #333;
  border: 1px solid #ff6b4c;
  transition: background 0.2s ease, color 0.2s ease;

}

.expandable:hover,
.expandable-button:hover {
    color: #ffac99;
    border: 1px solid #ffac99;
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  color: black;
  padding: 0 1em;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.expandable.open .expandable-content {
  max-height: 1000px;
}

.expandable-button::after {
  content: "▼";
  float: right;
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
}
.expandable.open .expandable-button::after {
  transform: rotate(0deg);
}

@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;
    }
}