* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

body.home-page {
    min-height: 100dvh;
}

body.content-page {
    min-height: 100dvh;
    line-height: 1.6;
}

/* ---------- Main layout ---------- */

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    text-align: center;
    padding: 80px 20px 40px;
}

.page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 95px 25px 80px;
}

/* ---------- Headings ---------- */

h1 {
    margin-top: 0;
    font-size: clamp(2rem, 6vw, 2.6rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

h2 {
    margin-top: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

p,
li {
    font-size: clamp(1rem, 3.5vw, 1.05rem);
    overflow-wrap: anywhere;
}

/* ---------- Links ---------- */

a {
    color: #fff;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Images ---------- */

.login-link img {
    max-width: min(90vw, 700px);
    max-height: 60vh;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.login-link img:hover {
    transform: scale(1.02);
}

.main-logo {
    max-width: min(90vw, 700px);
    max-height: 60vh;
    height: auto;
}

.qr-image {
    text-align: center;
    margin: 30px 0;
}

.qr-image img {
    max-width: min(300px, 90vw);
    width: 100%;
    height: auto;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

/* ---------- Burger menu ---------- */

.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 34px;
    height: 26px;
    cursor: pointer;
    z-index: 1003;
}

.menu-button span {
    display: block;
    height: 4px;
    margin-bottom: 6px;
    background: #fff;
    border-radius: 2px;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    max-width: 85vw;
    height: 100dvh;
    background: #111;
    border-right: 1px solid #333;
    padding-top: 80px;
    transition: left 0.25s ease;
    z-index: 1002;
}

.side-menu.open {
    left: 0;
}

.side-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 17px 24px;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s ease;
    overflow-wrap: anywhere;
}

.side-menu a:hover {
    background: #222;
}

.side-menu a.active {
    background-color: #005a9c !important;
    color: #fff !important;
    font-weight: bold;
    border-left: 5px solid #fff;
    padding-left: 19px;
}

.side-menu a.active:hover {
    background-color: #005a9c !important;
}

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 1001;
}

.menu-overlay.open {
    display: block;
}

/* ---------- Text blocks ---------- */

.intro {
    color: #ccc;
    font-size: clamp(1.05rem, 3.8vw, 1.15rem);
}

.box {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-wrap: anywhere;
}

.warning {
    border-left: 5px solid #ffcc00;
}

code {
    display: inline-block;
    max-width: 100%;
    background: #222;
    padding: 3px 6px;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

ul,
ol {
    padding-left: 25px;
}

.footer {
    margin-top: 60px;
    color: #aaa;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* ---------- Language dropdown ---------- */

.language-switch {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1003;
}

.language-switch select {
    max-width: 180px;
    background: #111;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
}

.language-switch select:hover {
    background: #222;
}

.language-switch option {
    background: #111;
    color: #fff;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
    .page {
        padding: 95px 16px 60px;
    }

    .container {
        padding: 90px 16px 40px;
    }

    .menu-button {
        top: 18px;
        left: 16px;
    }

    .language-switch {
        top: 14px;
        right: 12px;
    }

    .language-switch select {
        max-width: 145px;
        padding: 7px 8px;
        font-size: 0.9rem;
    }

    .side-menu {
        width: 245px;
        left: -265px;
    }

    ul,
    ol {
        padding-left: 20px;
    }

    .box {
        padding: 16px;
    }
}

@media (max-width: 420px) {
    .page {
        padding: 90px 12px 50px;
    }

    .container {
        padding: 85px 12px 35px;
    }

    .language-switch select {
        max-width: 128px;
        font-size: 0.82rem;
    }

    .menu-button {
        width: 31px;
    }

    .menu-button span {
        height: 3px;
        margin-bottom: 6px;
    }

    .side-menu {
        width: 230px;
        left: -250px;
    }

    .side-menu a {
        padding: 16px 20px;
    }

    .side-menu a.active {
        padding-left: 15px;
    }
}
