body {
    background: #131519;
    color: #e6e6e6;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    --primary-color: #85b7d5;
    --secondary-color: #a6d69d;
    --dark-background: #314d6a;
}

header {
    margin: 1.5rem auto;
    background-color: var(--dark-background);
    max-width: 1100px;
    border-radius: 8px;
    padding: 1rem;
}

.header-title > h2 {
    font-weight: 300;
}

.header-title > h1 {
    font-size: 4rem;
    font-weight: 300;
}

header {
    display: flex;
    flex-direction: row;
}

header > .logo {
    max-width: 200px;
}

.header-title {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 2ex;
}

.landing-page, .feature-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    text-align: center
}

.feature-list {
    align-items: unset;
}

li {
    text-align: start;
}

.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #181a20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #2c2f36;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-menu ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
}

.main-menu a, .advanced-menu-title {
    color: #e6e6e6;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.main-menu li:hover, .main-menu a:focus {
    background: #2c2f36;
    color: #fff;
}

.no-wrap {
    white-space: nowrap;
}

.codeberg-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e6e6e6;
    margin-right: 2rem;
    font-size: 1.2rem;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.codeberg-text{
    font-size: smaller;
    margin-top: 0.2rem;
}

.menu-list>li, .advanced-menu>li {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    align-content: center;
}

.advanced-menu>li {
    height: 100%;
}

.menu-list > li > a {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.menu-list > li > a > img {
    max-height: 3ex;
    margin: 0;
}


.codeberg-link:hover, .codeberg-link:focus {
    background: #2c2f36;
    color: #b5e853;
}

main {
    max-width: 1100px;
    margin: 2rem auto 2rem auto;
    background: #131519;
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem 2rem;
    min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

p, li {
    line-height: 1.7;
    font-size: 1.05rem;
}

code, pre {
    background: #181a20;
    color: var(--secondary-color);
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-family: 'Fira Mono', 'Consolas', monospace;
}

pre {
    padding: 1em;
    overflow-x: auto;
}

a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
}

footer {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin: 2rem 0 1rem 0;
}

footer > p {
    margin-top: 0;
    margin-bottom: 0;
}

.advanced-menu-title {
    font-size: medium;
}

.advanced-menu > li {
    font-size: smaller;
}

.advanced-menu {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    object-fit: cover;
}

.vertical-line {
    border-left: thin solid #888;
}

.menu-list > li, .menu-list > div {
    display: flex;
    align-items: center;
}

.menu-list > li {
    font-size: larger;
}

.eu {
    font-size: x-large;
}

th, td {
    padding: 0.6rem 1rem;
    border: 1px solid #3a3d44;
    border-radius: 4px;
    background: #23272f;
}

th {
    background: #2c2f36;
    color: #fff;
    font-weight: 600;
}

td {
    color: #e6e6e6;
}

table {
    border: none;
}

.feature-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1ex;
}

.feature-list > li {
    list-style: none;
    max-width: 23ex;
    display: flex;
    flex-direction: column;

    padding: 2ex;
    border: 1px solid #3a3d44;
    border-radius: 8px;

    font-size: smaller;
}

.feature-list > li:hover {
    background: #2c2f36;
    transition: background 0.3s;
}

.feature-list > li > strong {
    font-size: larger;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #3a3d44;
}

.feature-list > li > a {
    width: fit-content;
}

.level {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.levels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.level > h3 {
    background-color: var(--secondary-color);
    margin-top: 0;
    border-radius: 50%;
    padding: 0.5rem;
    width: 3ex;
    min-width: 3ex;
    height: 3ex;
    text-align: center;
    vertical-align: center;
    line-height: 3ex;
    color: var(--dark-background);
}

.disclaimer-block {
    background: #222;
    border-left: 8px solid #0c884c;
    padding: 1ex 2ex;
    margin: 3ex 0;
}

.app-image-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: smaller;
    margin-top: min(-3vh, -3vw);
    width: fit-content;
}


.image-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: smaller;
    width: fit-content;
}

.iframe-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: smaller;
    width: fit-content;
    margin-top: 0.5rem;
}


.theme {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
}

.theme > img {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.usage-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}
.usage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--primary-color);
    transition: box-shadow 0.2s;
}
.usage-card:hover {
    background: var(--primary-color);
}
.usage-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
}
.usage-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.usage-desc {
    font-size: 0.97rem;
    color: #555;
    text-align: center;
}

.theme-overview > iframe {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.note {
    border: 1px solid var(--primary-color);
    border-left: 8px solid var(--primary-color);
    padding: 1ex 2ex;
    margin: 3ex 0;
    border-radius: 8px;
    font-style: italic;
}

.small-code{
    font-size: small;
}

@media (max-width: 600px) {
    main {
        padding: 1rem 0.5rem;
    }

    .main-menu {
        position: relative;
    }

    header {
        flex-direction: column;
    }

    header > img {
        max-width: 150px;
        margin: 0 auto;
    }

    .main-menu, .advanced-menu {
        flex-direction: column !important;
        align-items: stretch;
    }

    .usage-overview-grid {
        grid-template-columns: 1fr;
    }

    .main-menu ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .feature-list > li {
        width: 100%;
        max-width: 100%;
    }
}