@import url('https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300;500;600&display=swap');

:root {
    --color1: white;
    --color2: #e7e7e7;
    --color3: #ccf0ff;
    --color4: #0195eb;
    --color5: #212529;


    --fsize1: 56px;
    --fsize2: 42px;
    --fsize3: 28px;
    --fsize4: 22px;
    --fsize5: 16px;
    --fsize6: 14px;
}


body {
    font-family: 'Signika Negative', sans-serif;
    max-width: 1280px;
    margin: auto;
    border-radius: 0.3rem;
    background-color: var(--color1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.body_container {
    padding: 1rem;
    margin-bottom: 4rem;
    max-width: 980px;
    margin: auto;
    margin-top: 0;
}


/* NAV BAR */

nav{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1280px;
    margin: auto;
    align-items: center;
    background-color: var(--color1);
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-bottom: var(--color4) 0.1rem solid;
}

.nav_logo{
    font-size: var(--fsize5);
}

.nav_links {
    display: flex;
    list-style: none;
    text-decoration: none;

    margin: 0%;
}

.nav_item a {
    text-decoration: none !important;
    padding: 0.2rem 0.8rem 0.2rem 0.8rem;
    margin: 0 0.2rem 0 0.2rem;
    border-radius: 0.35rem;
    color: var(--color5);
    font-size: var(--fsize5);
}

.nav_item a:hover {
    background-color: var(--color4);
    color: var(--color1);
}

nav a.active {
    color: var(--color1);
    background-color: var(--color4);
}


/* HOME */

.home_header {
    display: flex;
    flex-direction: row;
    padding: 1rem 1rem 0 1rem;
    justify-content: space-between;
    max-width: 980px;
    margin: auto;
}

.home_header_hub{
    display: flex;
    flex-direction: column;
    flex-basis: 35%;
    align-items: start;
    justify-content: space-around;
    border-right: 1px var(--color5) solid;
}

.home_header_hub a {
    text-decoration: none;
    color: var(--color4);
}

.home_header_hub a:hover {
    text-decoration: underline;
}

.home_header_text {
    flex-basis: 60%;
    text-align: justify;
    font-size: var(--fsize6);
}

.home_header_text h2 {
    text-align: center;
}

.bx {
    margin-right: 0.3rem;
}

.home_header_link {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.home_xlinks {
    margin: auto;
    margin-top: 3rem;
}

.home_xlinks ul {
    margin: 0;
    padding: 0 0 0 10px;
    list-style: none;
}

.home_xlinks li::before {
    content: "•";
    color: var(--color4);
    margin-right: 5px;
}

.home_xlinks_hub {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: var(--color5) 1px solid;
    border-top: var(--color5) 1px solid;
    padding: 0.5rem;
}

.home_xlinks_hub p {
    margin-top: 0;
}

.home_xlinks_hub_group {
    display: flex;
    flex-direction: column;
}

.home_xlinks_hub_group a {
    text-decoration: none;
    color: var(--color4);
    font-size: var(--fsize6);
}

.home_xlinks_hub a:hover {
    text-decoration: underline;
}

.home_content {
    display: flex;
    flex-direction: column;
    margin: auto;
}

.home_content h4 {
    margin-bottom: 0.5rem;
}

.home_content p {
    margin: 0.5rem 0;
    font-size: var(--fsize6);
    text-align: justify;
}

.home_content li {
    font-size: var(--fsize6);
    margin: 0.5rem 0;
}

.home_content_group {
    margin-top: 1.5rem;
}

.home_content_group h3 {
    margin-bottom: 0;
}

.home_content_item {
    border-bottom: var(--color5) solid 1px;
    margin-bottom: 1.5rem;
}

.home_content a {
    text-decoration: none;
    color: var(--color4);
}

.home_content a:hover {
    text-decoration: underline;
}

footer {
    margin: auto;
    margin-top: 5rem;
    margin-bottom: 1rem;
    border-top: var(--color4) 1px solid;
    width: 100%;
}

.footer_text {
    margin-top: 1rem;
}

.footer_content, .footer_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer_content i {
    margin-right: 0.2rem;
}

.footer_content p {
    margin: 0;
    font-size: var(--fsize6);
}

.footer_links a {
    text-decoration: none;
    color: var(--color4);
    font-size: var(--fsize6);
    margin: 0 2rem;
}

footer strong {
    color: var(--color4);
    font-weight: bold;
}


/* VLE */

.vle_header {
    text-align: center;
    margin: auto;
    margin-bottom: 1.5rem;
}

.vle_header p {
    font-size: var(--fsize6);
    text-align: justify;
}

.vle_form {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 1rem;

}

form {
    max-width: 980px;
    margin: auto;
    border-bottom: var(--color5) 1px solid;
    border-top: var(--color5) 1px solid;
}

.units, .values {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.composition, .components, .units, .values {
    margin-bottom: 2rem;
}

.vle_form p {
    margin: 0;
    padding: 0;
    font-size: var(--fsize6);
}

.vle_right, .vle_left {
    margin-bottom: 0;
}

.submit_button {
    margin-top: 30px;
    width: 80px;
    height: 30px;
    border-radius: 0.2rem;
    background-color: var(--color1);
}

.submit_button:hover {
    background-color: var(--color4);
    color: var(--color1);
    cursor: pointer;
}

.vle_results {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 980px;
    margin: auto;
}

.vle_result_up {
    margin: auto;
    margin-bottom: 2rem;
}

.vle_result_down {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.vle_results p {
    margin: 0;
    font-size: var(--fsize6);
}

.vle_results strong {
    color: var(--color4);
}



/* API */

.api_header {
    text-align: justify;
    border-bottom: var(--color5) 1px solid;
    max-width: 980px;
    margin: auto;
}

.api_header h2 {
    text-align: center;
}

.api_header, .api_content p {
    font-size: var(--fsize6);
}

.api_links {
    margin: auto;
    border-bottom: var(--color5) 1px solid;
    padding-bottom: 1.5rem;
}

a {
    font-size: var(--fsize6);
    color: var(--color4);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.api_links ul {
    margin: 0;
    padding: 0 0 0 10px;
    list-style: none;
}

.api_links li::before {
    content: "•";
    color: var(--color4);
    margin-right: 5px;
}

.api_content {
    margin: auto;
}

pre {
    background-color: var(--color2);
    border-radius: 0.4rem;
}

.api_content img {
    display: block;
    max-width: 90%;
    padding: 2rem;
    margin: auto;
    background-color: var(--color2);
    border-radius: 0.4rem;
    margin-bottom: 1rem;
}

.api_content h3 {
    margin-top: 2rem;
}

.api_content_group {
    margin-bottom: 1rem;
    border-bottom: var(--color5) 1px solid;
}



/* Docs */

.docs_content {
    text-align: justify;
}

.docs_content_group {
    margin-bottom: 1rem;
    border-bottom: var(--color5) 1px solid;
}

.docs_content p {
    font-size: var(--fsize6);
}

h2 {
    text-align: center;
}

.docs_content img {
    display: block;
    max-width: 90%;
    padding: 2rem;
    margin: auto;
    background-color: var(--color2);
    border-radius: 0.4rem;
    margin-bottom: 1rem;
}

.docs_content h3 {
    margin-top: 2.5rem;
}

.docs_content_group li {
    margin-top: 2rem;
}


.pt_diagram_figure {
    width: 80%;
    max-width: 500px;
    margin: auto;
}

.pxy_diagram_figure {
    width: 80%;
    margin: auto;
}