@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
}

main {
    --bg: rgb(218, 218, 218);
    --main-bg: white;
    --bg-text: black;
    --main-text: black;
}

main.dark {
    --bg: rgb(255, 255, 255);
}

main.red {
    --bg: rgb(255, 0, 0);
    --bg-text: black;
}

main.orange {
    --bg: rgb(255, 123, 0);
    --bg-text: black;
}

main.yellow {
    --bg: rgb(255, 230, 0);
    --bg-text: black;
}

main.green {
    --bg: rgb(102, 255, 0);
    --bg-text: black;
}

main.nuclear-green {
    --bg: rgb(0, 255, 115);
    --bg-text: black;
}

main.cyan {
    --bg: rgb(48, 207, 255);
    --bg-text: black;
}

main.blue {
    --bg: rgb(48, 62, 255);
    --bg-text: white;
}

main.purple {
    --bg: rgb(127, 48, 255);
    --bg-text: white;
}

main.pink {
    --bg: rgb(255, 48, 238);
    --bg-text: black;
}

main.black {
    --bg: black;
    --bg-text: white;
}

main.dark {
    --main-text: white;
    --main-bg: rgb(14, 14, 14);
}

main {
    width: 100%;
    height: 100%;
    background-color: var(--main-bg);
    color: var(--main-text);
}

nav {
    display: flex;
    padding: 5px;
    padding-left: 25%;
    padding-right: 25%;
    color: var(--bg-text);
    background-color: var(--bg);
}

nav.white {
    color: black;
    background-color: rgb(218, 218, 218);
}

main.dark nav.white {
    background-color: rgb(255, 255, 255);
}

nav.black {
    color: white;
    background-color: black;
}

nav a {
    color: inherit;
    text-decoration: none;
}

section a {
    color: color-mix(in srgb, var(--main-text) 50%, rgb(0, 128, 255));
}

section a:visited {
    color: color-mix(in srgb, var(--main-text) 50%, rgb(128, 0, 255));
}

section a:active {
    color: color-mix(in srgb, var(--main-text) 20%, rgb(255, 0, 0));
}

section {
    background-color: color-mix(in srgb, var(--main-bg) 90%, rgb(128, 128, 128));
    padding: 5px;
    margin: 20px;
    margin-left: 25%;
    margin-right: 25%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

button {
    border: none;
    background-color: var(--bg);
    color: var(--bg-text);
    border-radius: 6px;
    padding: 5px;
    line-height: 1;
    margin-top: 5px;
    cursor: pointer;
}

button:hover {
    background-color: color-mix(in srgb, var(--bg) 80%, white);
}

button:active {
    background-color: color-mix(in srgb, var(--bg) 90%, black);
}

.left {
    text-align: left;
    justify-content: left;
}

.center {
    text-align: center;
    justify-content: center;
}

.right {
    text-align: right;
    justify-content: right;
}

.fill {
    flex: 1;
}