:root {
    --nav-height: 4rem;
    --sidebar-width: 8em;
    --background-primary: #fff;
    --background-secondary: #ccc;
    --text: #222;
    --text-link: #008ac5;
    --text-link-hover: #00aeec;
    --text-link-active: #00aeec;
    --button: #ccc;
    --button-hover: #bbb;
    --button-active: #aaa;
    scroll-behavior: smooth;
    background-color: var(--background-primary);
    color: var(--text);
    height: 100%;
}

[id] {
    scroll-margin-top: var(--nav-height);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-primary: #222;
        --background-secondary: #000;
        --text: #ccc;
        --text-link: #00aeec;
        --text-link-hover: #008ac5;
        --text-link-active: #008ac5;
        --button: #000;
        --button-hover: #222;
        --button-active: #444;
    }
}

body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--text-link);
    transition: all ease 0.5s;
}

a:hover {
    text-decoration: underline;
    color: var(--text-link-hover);
}

a:active {
    text-decoration: underline;
    color: var(--text-link-active);
}

section h1 {
    margin-block: 0.67em;
    font-size: 2em;
}

#tabs {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    margin: 0 -5px;
    padding: 0 10px;
    overflow: auto;
    box-shadow: 0 0 5px var(--text);
    background-color: var(--background-primary);
    z-index: 1;
}

#tabs ul {
    display: flex;
    padding: 0;
    list-style: none;
    margin: auto;
    gap: 1em;
}

#tabs ul>li>a {
    text-decoration: none;
    align-items: center;
    display: inline-flex;
    height: 1.6em;
    border-radius: 1.4em;
    padding: 0.6em 1em;
    color: var(--text);
}

#tabs ul>li>a:hover,
#tabs ul>li>a.active {
    color: var(--background-primary);
    background-color: var(--text);
}

#tabs ul>li svg {
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.5em;
}

body>section {
    display: none;
    margin-top: var(--nav-height);
    width: 100%;
    flex-grow: 1;
}

body>section.active {
    display: flex;
}

.sidebar {
    flex-shrink: 0;
    padding: 0 1em;
    width: var(--sidebar-width);
    background-color: var(--background-secondary);
    margin-left: calc(0px - var(--sidebar-width));
    transition: margin ease 0.5s;
}

.sidebar.active {
    margin-left: 0;
}

.sidebar>div {
    position: sticky;
    top: var(--nav-height);
    padding: 1em 0;
}

.sidebar>button {
    position: fixed;
    top: var(--nav-height);
    font-size: 1em;
    width: 2em;
    height: 2em;
    margin-left: calc(var(--sidebar-width) - 1em);
    padding: 0 0 0.5em 0.5em;
    background-color: var(--button);
    color: var(--text);
    border: none;
    border-radius: 0 0 0 1.8em;
}

.sidebar>button:hover {
    background-color: var(--button-hover);
}

.sidebar>button:active {
    background-color: var(--button-active);
}

.sidebar>div>h2:first-child {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar a {
    color: var(--text);
}

.content {
    margin: 0 auto;
    max-width: 45em;
    padding: 0 1em 1em 1em;
    width: 100%;
    height: fit-content;
}

.carousel-wrapper {
    width: 100%;
    max-width: 800px;
    margin: auto;
}

.carousel-wrapper>.carousel {
    position: relative;
    width: 100%;
    padding-bottom: 52.5%;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.slide {
    align-items: center;
    display: flex;
}

.slide>img {
    width: 100%;
}

.carousel-title-wrapper {
    position: absolute;
    margin: auto;
    height: 100%;
    font-size: 2.25rem;
    font-weight: 500;
    text-align: center;
    color: transparent;
    opacity: 0.9;
    white-space: normal;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

.carousel-title {
    margin-top: auto;
    background-image: linear-gradient(to right, #63e2b7, #2a947d);
    -webkit-background-clip: text;
    background-clip: text;
}

.join-us {
    display: block;
    background-image: linear-gradient(to right, #63e2b7bf, #2a947dcc);
    font-size: 0.6em;
    padding: 0.2em 0.6em;
    color: #fff;
    text-decoration: none;
    margin: 10px auto auto auto;
}

.join-us:hover,
.join-us:active {
    color: #fff;
    text-decoration: none;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .carousel-title-wrapper {
        font-size: 1.8rem;
        font-weight: 450;
    }
}

@media (max-width: 400px) {
    .carousel-title-wrapper {
        font-size: 1.45rem;
    }
}

footer {
    padding: 1em;
    flex: 0;
}