:root {
    color-scheme: light;
    --primary: #ffffff;
    --secondary: #ffffff40;
    --text: #111827;
    --gradient-1: #F3F3F3;
    --gradient-2: #4B5563;
    --background-1: #0000001a;
    --background-2: #F3F4F6;
    --background-3: #F9FAFB;
    --extra-1: #BEBEBE;
    --extra-2: #EBEAF0;
    --extra-3: #00000042;
    --border: #DDDDDD;
    --brightness: 90%;
    --hover-1: #f9f9f9;
}

[data-theme="dark"] {
    color-scheme: dark;
    --primary: #23272a;
    --secondary: #211e1e40;
    --text: #ffffff;
    --gradient-1: #2c2f33;
    --gradient-2: #d6d6d6;
    --background-1: #ffffff1a;
    --background-2: #434546;
    --background-3: #1f2124;
    --extra-1: #3f3f3f;
    --extra-2: #626262;
    --extra-3: #ffffff42;
    --border: #000000;
    --brightness: 10%;
}

:root::-webkit-scrollbar {
    width: 10px;
}

:root::-webkit-scrollbar-thumb {
    background-color: var(--extra-1);
}

:root::-webkit-scrollbar-track {
    background-color: var(--extra-2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
}

html {
    font-family: Inter;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transition: all 0.3s ease-in-out;
}

body.noscroll {
    overflow-y: hidden;
}

header {
    display: flex;
    width: 100%;
    height: 100px;
    padding: 16px 10px;
    align-items: center;
    z-index: 100;
    position: fixed;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: var(--secondary);
    backdrop-filter: blur(10px);
}

header.active {
    backdrop-filter: unset;
}

header > nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

header > nav > .logo {
    z-index: 3;
}

header > nav > .logo > img {
    width: 60px;
    height: 60px;
}

header > nav > .links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.25s;
    position: fixed;
    visibility: hidden;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    transition: none;
}

header > nav > .links > * {
    z-index: 2;
}

header > nav > .links > *:not(:last-child) {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

header.active > nav > .links {
    visibility: visible;
    backdrop-filter: blur(20px) brightness(var(--brightness));
    opacity: 1;
}

header > nav > .links > .row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

header.active > nav > .links > .row {
    display: flex;
    flex-direction: column;
}

header > nav > .links > .row > a {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

header > nav > .links > .small-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

header > nav >.links > .small-row > .divider {
    width: 2px;
    height: 24px;
    background: var(--extra-3);
}

header > nav > .hamburger {
    display: block;
    cursor: pointer;
    z-index: 2;
}

header > nav > .hamburger > * {
    display: block;
    width: 48px;
    height: 3px;
    margin: 7.5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text);
}

header.active > nav > .hamburger .bar:nth-child(2) {
    opacity: 0;
}

header.active > nav > .hamburger .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

header.active > nav > .hamburger .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

header .button {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;
    border-radius: 5px;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 2px;
    background-color: transparent;
    background-image: none;
    text-transform: none;
    text-decoration: none;
}

header .button.log {
    gap: 5px;
}

header .button.log > span {
    color: var(--text);
    text-decoration: none;
}

header .button.log > img {
    transition: all 0.3s ease-in-out;
}

header .button.log:hover > img {
    transform: translateX(2px);
}

header #log-out > img {
    rotate: 180deg;
}

header .button:hover {
    background-color: var(--gradient-1);
}

header .button:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

section {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: min-content;
    max-height: min-content;
    padding: 100px 30px;
    scroll-margin-top: 100px;
}

.link {
    text-decoration: underline;
    color: var(--text);
    transition: all 0.3s ease-in-out;
}

.link:hover {
    color: var(--gradient-2);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.links > a {
    display: flex;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: var(--text);
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease-in-out;
}

.links > a > svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.links > a:hover {
    background: var(--gradient-2);
}

.links > .secondary {
    color: var(--text);
    background: unset;
    border: 1px solid var(--text);
}

.links > .secondary:hover {
    background: var(--text);
    color: var(--primary);
}

h1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

p {
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.disabled {
    pointer-events: none;
    cursor: not-allowed;
    background-color: var(--background-2);
}

a.disabled > * {
    color: var(--background-1);
}

.text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.between {
    display: flex;
    flex-direction: row;
}

.between > * {
    display: flex;
    justify-content: space-between;
}

.negative {
    color: #b43c48;
}

.positive {
    color: #3c763d;
}

.bold {
    font-weight: 600;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 100px 30px;
    gap: 60px;
}

footer > .credits {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

footer > .credits > .logo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
}

footer > .credits > .logo > img {
    width: 90px;
    height: 90px;
}

footer > .credits > .logo > p > a {
    color: var(--text);
    text-decoration: underline #000000;
}

footer > .credits > .logo > p > a:hover {
    color: var(--gradient-2);
}

@media (min-width: 500px) {
    header > nav {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 1000px) {
    header > nav {
        padding-left: 0;
        padding-right: 0;
    }

    header > nav > .links {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
        visibility: visible;
        position: unset;
        text-align: unset;
        width: 100%;
        height: 100%;
        margin-left: unset;
        opacity: 100%;
    }

    header > nav > .hamburger {
        display: none;
    }

    header {
        padding: 16px 50px;
    }

    section, footer {
        padding: 100px 50px;
    }

    section {
        display: flex;
        flex-direction: row;
        width: 100%;
    }
}

@media (min-width: 1100px) {
    header {
        padding: 16px 100px;
    }

    section, footer {
        padding: 100px 100px;
    }
}

@media (min-width: 1300px) {
    header {
        padding: 16px 200px;
    }

    section, footer {
        padding: 100px 200px;
    }
}

@media (min-width: 1600px) {
    header {
        padding: 16px 250px;
    }

    section, footer {
        padding: 100px 250px;
    }
}

@media (min-width: 1920px) {
    header {
        padding: 16px 300px;
    }

    section, footer {
        padding: 100px 300px;
    }
}


@media (min-width: 2000px) {
    header {
        padding: 16px 20%;
    }

    section, footer {
        padding: 100px 20%;
    }
}
