:root {
    --black: #030303;
    --panel: rgba(8, 3, 3, .9);
    --red: #d40000;
    --red-dark: #5e0000;
    --white: #f5f5f5;
    --muted: #a8a8a8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    color: var(--white);
    font-family: "Courier New", Courier, monospace;
    background-color: var(--black);
    background-image: linear-gradient(135deg, #020202 0%, #070303 45%, #170000 100%);
    background-attachment: fixed;
}

.site-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.w3-bar {
    z-index: 10;
    display: flex;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--red-dark);
    background: rgba(3, 3, 3, .96);
}

.w3-bar-item {
    display: block;
    padding: 12px 18px;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.w3-button:hover,
.w3-button:focus-visible,
.w3-dark-grey {
    color: #fff;
    background: var(--red-dark);
    outline: none;
}

.tab {
    min-width: 0;
}

.frame-tab {
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.frame-tab iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.main-landing {
    flex: 1;
    padding: clamp(24px, 6vw, 80px);
    overflow: auto;
}

.main-landing > p {
    width: min(680px, 100%);
    margin: 0;
    padding: clamp(24px, 5vw, 56px);
    border: 1px solid var(--red-dark);
    background: var(--panel);
    color: var(--muted);
    line-height: 1.7;
}

.client-page {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.main-page {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.main-page > main {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: clamp(18px, 4vw, 48px);
    overflow: hidden;
}

.main-page img,
.main-page video,
.main-page canvas,
.main-page svg,
.main-page iframe {
    display: block;
    max-width: 100%;
}

.main-page img,
.main-page video {
    height: auto;
}

.discord-widget {
    display: block;
    flex: 1 1 360px;
    width: min(350px, 100%);
    height: auto;
    min-height: 0;
    max-height: 500px;
    margin: 12px auto 0;
    border: 0;
}

.client-page > header,
.client-page > footer {
    padding: 16px clamp(18px, 4vw, 48px);
    border-color: var(--red-dark);
    background: rgba(3, 3, 3, .88);
}

.client-page > header {
    border-bottom: 1px solid var(--red-dark);
}

.client-page > header h1 {
    margin: 0;
    color: var(--red);
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.client-page > main {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: clamp(18px, 4vw, 48px);
    overflow: hidden;
}

.client-page > footer {
    border-top: 1px solid var(--red-dark);
    color: var(--muted);
}

/* Reusable text colors */
.text-red { color: var(--red); }
.text-dark-red { color: #8b0000; }
.text-white { color: var(--white); }
.text-muted { color: var(--muted); }

/* Reusable font choices that require no download */
.font-mono { font-family: "Courier New", Courier, monospace; }
.font-sans { font-family: Arial, Helvetica, sans-serif; }
.font-serif { font-family: Georgia, "Times New Roman", serif; }
.font-display { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; }

@media (max-width: 520px) {
    .w3-bar-item {
        flex: 1;
        padding: 11px 8px;
        font-size: 12px;
        text-align: center;
    }
}
