* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background-color: #ffffff;
    --card-background: rgba(0, 0, 0, 0.05);
    --card-background-hover: rgba(0, 0, 0, 0.15);
    --card-background-heavy: rgba(55, 55, 55, 0.3);
    --text-color-opposite: rgb(255, 255, 255);
    --text-color: rgb(0, 0, 0);
    --toolbar-focused-background: rgba(216, 216, 216, 0.9);
    --secondary-background-color: #f5f5f5;
    --secondary-background-color-2: #e5e5e5;
    --button-foreground-color: #222222;
    --button-background-color: #c4c4c4;
    --button-hover-background-color: #b6b6b6;
    --text-home-slightly-transparent: rgba(0, 0, 0, 0.6);
    --link-color: #2e849e;
    --link-gradient-start: #8b74d4;
    --link-gradient-end: #2e849e;
}

body {
    background-color: var(--background-color);
}

body .content-root {
    display: contents;
    max-width: 1000px;
    padding: 0 16px;
}

h1, h2, h3, h4, h5, h6, p, a, span, li, input, textarea, button {
    color: var(--text-color);
    font-family: Inter, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a.unset {
    all: unset;
}

a.unset:hover::after {
    content: none;
}

.drop-shadow {
    filter: drop-shadow(0 8px 12px black);
}

.home-background-header {
    background-image: url("/assets/home-graphic.png");
    background-size: 800px;
    background-repeat: no-repeat;
    background-position: 50% 0;
    height: 800px;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding-top: 76px;
}

.feature-container {
    width: 100%;
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    gap: 72px;
    padding: 0 40px;
}

.feature-root {
    display: flex;
    justify-content: center;
}

.feature {
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 200px;
}

.feature-image {
    max-width: 400px;
}

.feature-image img {
    width: 400px;
    border-radius: 7px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-description p {
    margin-top: 8px;
}

.toolbar {
    width: 100%;
    padding: 24px 32px;
    position: fixed;
    display: flex;
    justify-content: space-between;
    z-index: 1;
    transition: background 0.2s;
}

.toolbar.scrolled {
    background-color: var(--toolbar-focused-background);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

a {
    position: relative;
    padding-bottom: 2px;
    text-decoration: none;
    color: var(--link-color);
}

a.nav-link {
    margin-top: 2px;
    color: var(--text-color);
}

a.nav-link:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -8px;
    height: 3px;
    width: 100%;
    max-width: 16px;
    background: linear-gradient(40deg, var(--link-gradient-start), var(--link-gradient-end));
    border-radius: 12px;
}

a:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: #444;
    background: linear-gradient(40deg, var(--link-gradient-start), var(--link-gradient-end));
    border-radius: 12px;
}

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

a.selected {
    color: var(--link-color);
}

a.nav-link.selected::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -8px;
    height: 3px;
    width: 100%;
    max-width: 16px;
    background: #444;
    background: linear-gradient(40deg, #a68bff, #44D2FF);
    border-radius: 12px;
}

button {
    background-color: var(--button-background-color);
    color: var(--button-foreground-color);
    border-radius: 8px;
    padding: 8px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;;
}

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

.elevated-button {
    background: linear-gradient(80deg, #67A0E3, #82D7CC);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: black;
}

.elevated-button:hover {
    background: linear-gradient(80deg, #67A0E3, #82D7CC);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.footer {
    margin-top: 100px;
    background-color: var(--secondary-background-color);
    padding-top: 50px;
}

.home-footer-card {
    max-width: 500px;
    background-color: var(--secondary-background-color-2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-footer-container {
    display: grid;
    margin-top: 24px;
    grid-template-columns: auto auto;
    column-gap: 12px;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-link-group h4 {
    margin-bottom: 8px;
}

.info-footer .footer-link-group {
    max-width: 150px;
}

.info-footer {
    margin-left: 5%;
    padding: 100px 0;
    display: grid;
    grid-template-columns: auto auto auto;
}

button.menu-flyout-item {
    background-color: transparent;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    border: none !important;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    text-align: left;
    outline: none;
    display: flex;
    gap: 12px;
    align-items: center;
}

button.menu-flyout-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.card {
    padding: 12px;
    border-radius: 8px;
    background-color: var(--card-background);
    transition: background 0.3s;
}

.settings-card {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-radius: 8px;
    background-color: var(--card-background);
}

.page-header {
    margin-top: 36px;
    margin-left: 24px;
}

img.round-profile-image {
    border-radius: 50%;
}

@media (prefers-colors-scheme: dark) {
    :root {
        --background-color: #222222;
        --card-background: rgba(255, 255, 255, 0.05);
        --card-background-hover: rgba(255, 255, 255, 0.15);
        --card-background-heavy: rgba(0, 0, 0, 0.5);
        --text-color-opposite: rgb(0, 0, 0);
        --text-color: rgb(255, 255, 255);
        --toolbar-focused-background: rgba(22, 22, 22, 0.9);
        --secondary-background-color: #252525;
        --secondary-background-color-2: #333333;
        --button-foreground-color: #ffffff;
        --button-background-color: #444444;
        --button-hover-background-color: #555555;
        --text-home-slightly-transparent: rgba(255, 255, 255, 0.8);
        --link-color: #44D2FF;
        --link-gradient-start: #a68bff;
        --link-gradient-end: #44D2FF;
    }
}

@media (max-width: 860px) {
    .page-header {
        margin-left: 12px;
    }
}

@media (max-width: 940px) {
    .feature {
        flex-direction: column-reverse;
        gap: 24px;
    }
    
    .feature.column-reverse-feature {
        flex-direction: column;
    }

    .feature-image {
        align-self: center;
    }

    .feature-description {
        text-align: center;
    }

    .feature-description p {
        margin-top: 12px;
    }

    .home-footer-container {
        grid-template-columns: none;
        grid-template-rows: auto auto;
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-footer-card {
        margin-right: auto;
        margin-left: auto !important;
        margin-top: 16px;
    }

    .info-footer {
        grid-template-columns: none;
        grid-template-rows: auto auto auto;
        padding: 100px 20px;
    }

    .info-footer .footer-link-group {
        margin-top: 20px;
    }
}