:root {
    --color-black: rgb(30, 30, 30);
    --color-dark: rgb(37, 37, 37);
    --color-grey: rgb(51, 51, 51);
    --color-soft-grey: rgb(110, 110, 110);
    --color-light: rgb(200, 200, 200);
    --color-light-2: rgb(230, 230, 230);
    --color-white: rgb(245, 245, 245);
    --color-red-2: rgb(224, 90, 90);
}

/* Reset */

html {
    box-sizing: border-box;
    font-size: 1.2em;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
    line-height: 1.4em;
}

ol,
ul {
    list-style: none;
    margin-left: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Style */

a {
    color: var(--color-light-2);
}

a:hover {
    color: var(--color-white);
}

body {
    background-color: var(--color-dark);
    color: var(--color-white);
    font-family: sans-serif;
    padding: 1rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    body {
        width: 1024px;
    }
}

@media (min-width: 1280px) {
    body {
        width: 1280px;
    }
}

h1 {
    font-weight: bold;
    font-size: 3rem;
    color: var(--color-red-2);
}

h1:first-line {
    color: var(--color-white);
}

code,
.code {
    background-color: var(--color-black);
    padding: 0.3em;
    font-size: 0.85rem;
    font-family: 'Courier New', Courier, monospace;
    overflow: auto;
}

header {
    margin-bottom: 8rem;
    display: flex;
    justify-content: space-between;
}

header .logo {
    width: 60px;
    height: 60px;
}

header nav ul {
    display: block;
    text-align: right;
}

header nav ul li {
    margin-top: 0.5rem;
}

header nav ul li a {
    color: var(--color-light);
    font-weight: bold;
    text-decoration: none;
}

@media (min-width: 1024px) {
    header,
    header nav ul {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header nav ul li {
        margin: 0 0 0 2rem;
    }
}

section {
    margin-bottom: 8rem;
}

footer {
    font-size: 0.9em;
    color: var(--color-soft-grey);
}

footer div {
    margin-bottom: 2rem;
}

footer a {
    color: var(--color-soft-grey);
}

footer div.about img {
    height: 1em;
}

.cookie-banner {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    display: none;
}

section.documentation h1 {
    margin-bottom: 8rem;
}

section.documentation h2,
section.documentation h3 {
    font-weight: bold;
    margin: 4rem 0;
}

section.documentation li {
    list-style: disc;
}

section.documentation a {
    color: var(--color-red-2);
}

section.documentation ol.index li {
    list-style: decimal;
    padding-bottom: 2rem;
}

section.documentation ol.index li p {
    margin-bottom: 0;
}

section.documentation ol.index li h2 {
    display: inline;
    margin-right: 1rem;
}

section.documentation img {
    display: block;
    margin: 2rem auto;
}

section.documentation img.inline {
    display: inline;
    margin: 0;
    vertical-align: middle;
}

section.documentation p {
    margin-bottom: 1rem;
}

section.documentation li {
    margin-bottom: 1rem;
}

section.documentation table {
    table-layout: auto;
    width: 100%;
    margin: 4rem 0;
    border-collapse: collapse;
}

section.documentation table th,
section.documentation table td {
    padding: 0.5rem;
}

section.documentation table th {
    background-color: var(--color-black);
}

section.documentation table tr:not(:last-child) {
    border-bottom: 1px solid var(--color-black);
}

section.index .block {
    margin-bottom: 8rem;
}

section.index .block:last-child {
    margin-bottom: 0;
}

section.index .block h2 {
    font-weight: bold;
    font-size: 3rem;
    color: var(--color-red-2);
    margin-bottom: 8rem;
}

/* Intro block */

section.index .intro {
    margin-bottom: 8rem;
}

/* Canvas block */

section.index .canvas {
    margin-bottom: 8rem;
}

/* Description block */

section.index .description {
    margin-bottom: 8rem;
}

@media (min-width: 1024px) {
    section.index .description {
        padding: 0 14rem;
    }
}

section.index .description p {
    font-size: 1.3em;
    text-align: justify;
    margin-bottom: 3rem;
}

section.index .description p.see-it {
    font-size: 1.1em;
    text-align: center;
}

/* Features block */

section.index .features div.main-features.last {
    margin-bottom: 4rem;
}

section.index .features div.main-features div.feature {
    margin-bottom: 2rem;
}

section.index .features div.main-features div.feature p:first-child {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-red-2);
}

@media (min-width: 1024px) {
    section.index .features div.main-features {
        display: flex;
        flex-direction: row;
        column-gap: 2rem;
        justify-content: space-between;
        margin-bottom: 2rem;
    }

    section.index .features div.main-features div.feature {
        margin-bottom: 0;
        flex: 1;
    }
}

section.index .features div.sub-features {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 2rem;
    row-gap: 1rem;
    justify-content: center;
}

section.index .features div.sub-features div.feature {
    font-size: 0.9em;
    color: var(--color-light);
    flex: 0 0 10rem;
}

@media (min-width: 1024px) {
    section.index .features div.sub-features {
        row-gap: 2rem;
    }

    section.index .features div.sub-features div.feature {
        flex: 0 0 12rem;
    }
}

/* Donwload block */

section.index .block.download .main-container {
    margin-bottom: 4rem;
}

section.index .block.download .main-container .latest-version {
    padding: 1rem 0;
}

section.index .block.download .main-container .latest-version p:first-of-type {
    font-weight: bold;
}

section.index .block.download .main-container .box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 1rem;
    background-color: var(--color-grey);
    padding: 1rem;
    margin-top: 1rem;
}

section.index .block.download .main-container .box .info {
    flex-grow: 1;
}

section.index .block.download .main-container .box .get-it {
    text-align: center;
}

section.index .block.download .main-container .box .os {
    font-weight: bold;
}

@media (min-width: 1024px) {
    section.index .block.download .main-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    section.index .block.download .main-container .box {
        flex-direction: column;
        width: 170px;
        height: 170px;
    }
}

@media (min-width: 1280px) {
    section.index .block.download .main-container .box {
        width: 200px;
        height: 200px;
    }
}

section.index .block.download .secondary-container {
    font-size: 0.9em;
    color: var(--color-light);
}

section.index .block.download .secondary-container p.title {
    font-weight: bold;
}

section.index .block.download .secondary-container .changes {
    margin-bottom: 4rem;
}

section.index .block.download .secondary-container .changes .title {
    margin-bottom: 1rem;
}

section.index .block.download .secondary-container .changes li {
    list-style: disc;
}

@media (min-width: 1024px) {
    section.index .block.download .secondary-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        column-gap: 2rem;
    }

    section.index .block.download .secondary-container .changes {
        margin-bottom: 0;
        width: 40%;
    }

    section.index .block.download .secondary-container .changes .title {
        text-align: center;
    }
}

/* Follow-us block */

section.index .block.follow-us div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    section.index .block.follow-us div {
        width: 70%;
        margin: 0 auto;
    }
}

section.media h1 {
    margin-bottom: 8rem;
}

section.media h2 {
    font-weight: bold;
    margin-bottom: 8rem;
}

section.media div.group {
    margin-bottom: 8rem;
}

section.media div.group:last-child {
    margin-bottom: 0;
}

section.media div.group div.container {
    margin-bottom: 2em;
}

section.media div.group div.more {
    text-align: center;
}

section.media div.group div.tutorial {
    margin-top: 2em;
}

section.media div.group div.media-video {
    margin-top: 4em;
}

section.media div.group div.media-video h3 {
    font-weight: bold;
    margin: 1rem 0;
}

section.media div.group div.media-video img {
    border: 40px solid var(--color-grey);
}

section.media div.group div.media-video p {
    color: var(--color-light);
}

@media (min-width: 1024px) {
    section.media div.group div.media-video {
        margin-top: 0;
    }

    section.media div.group div.container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        column-gap: 2em;
    }

    section.media div.group div.container div {
        flex: 1 1 0;
        width: 0;
    }
}
