@layer framework, layout, components, utilities;

@import url("menu.css") layer(framework);

:root[color-mode="user"] {
    --active-brightness: 0.85;
    --border-radius: 5px;
    --box-shadow: 2px 2px 10px;
    --color-accent: #9a9a9a15;
    --color-bg: #fff;
    --color-bg-secondary: #e9e9e9;
    --color-link: #5f5f5f;
    --color-secondary: #1b4f8f;
    --color-secondary-accent: #000000;
    --color-shadow: #676767;
    --color-table: #1c2227;
    --color-text: #000;
    --color-text-secondary: #999;
    --color-scrollbar: #e0e0e0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --hover-brightness: 1.2;
    --justify-important: left;
    --justify-normal: left;
    --line-height: 1.5;
    --width-card: 285px;
    --width-card-medium: 460px;
    --width-card-wide: 800px;
    --width-content: 1080px;

    /* Custom colors */
    --color-highlighted: #4c6af2;
    --color-important: #FF0000;
    --color-success: #009007;
    --color-info: #ff9d00;
}

* {
    /* margin: 0;
	padding: 0; */
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1d252c;
    background: linear-gradient(180deg, #f4f7fb 0%, #edf1f6 65%, #e8edf3 100%);
    min-height: 100vh;
}

.content {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem 0;
    background: var(--color-bg-secondary);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    overflow: clip;
    position: relative;
    padding: 0;
}


header {
    padding: 2.25rem 1rem;
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
}

main {
    /* width: min(960px, calc(100% - 2rem)); */
    padding: 1.0rem;
    background: rgba(255, 255, 255, 0.9);
    max-width: none;
}

footer {
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: clamp(0.75rem, 0.7vw, 1.5rem);
    font-weight: 700;
    max-width: none;
    background: linear-gradient(180deg, #f4f7fb 0%, #edf1f6 65%, #e8edf3 100%);
}

img {
    max-width: 100%;
    height: auto;
}


@media (max-width: 860px) {
    .content {
        margin: 0 auto;
        padding: 0.5rem 0;
        border-radius: 0;
        box-shadow: none;
    }


    header {
        padding: 1rem 0.75rem;
    }
}

/* Top link styles */

.top-link {
    display: block;
    width: fit-content;
    margin: 0 0.75rem 0 auto;
    position: sticky;
    bottom: 0.75rem;
    cursor: pointer;
    color: var(--shadow);
    transition: color .35s ease-in-out;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

/* Classes */
.icon {
    display: inline-block;
    width: 2.25rem;
    height: 2.25rem;
    vertical-align: middle;
    flex-shrink: 0;
    stroke-width: 1;
    fill: none;
}

/* HELPERS */

.show {
    visibility: visible;
    opacity: 1;
}

.hide {
    visibility: hidden;
    opacity: 0;
}

.display-none {
    display: none;
}

.shadowed {
    box-shadow: 3px 3px 3px var(--shadow);
}