/* bugwatch is not affiliated with Luduvo Corporation */

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-ExtraLight.ttf") format("truetype");
    font-style: normal;
    font-weight: 200;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-ExtraLightItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 200;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-Light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-LightItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 300;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-Italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-SemiBoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 600;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 700;
}

@font-face {
    font-family: "Titillium Web";
    src: url("../fonts/TitilliumWeb-Black.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
}

:root {
    --bw-bg: #0f0f0f;
    --bw-fg: #f0f0f0;
    --bw-primary: #d20a2e;
    --bw-on-top: #070707;

    --bw-zeroday: #ff1ca8;
    --bw-severe: var(--bw-primary);
    --bw-high: #f0420d;
    --bw-medium: #f7b80d;
    --bw-low: #31e20e;
    --bw-oneoff: #2532e0;
}

/* there's TECHNICALLY a light theme but I didn't bother finishing it cause who tf genuinely uses light mode */
html[data-theme="light"] {
  --bw-bg: #f0f0f0;
  --bw-fg: #0f0f0f;
  --bw-primary: #b00824;
}

html,
body {
    height: 100%;
}

body {
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    background-color: var(--bw-bg);
    color: var(--bw-fg);
    font-family: "Titillium Web", monospace;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cornerlogo {
    position: absolute;
    bottom: -12vw;
    left: -1vw;
    width: 80vw;
    user-select: none;
    opacity: 0.01;
    color: var(--bw-fg);
    z-index: -999;
}

.disclaimer {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 1rem;
    user-select: none;
    opacity: 0.5;
    z-index: -999;
}

.management-link {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 1;
    color: var(--bw-fg);
    font-size: 0.9rem;
    text-underline-offset: 3px;
}

.management-link:hover {
    color: var(--bw-primary);
}

.webcontainer {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: 1300px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--bw-fg) 32%, transparent) transparent;
}

.webcontainer::-webkit-scrollbar {
    width: 8px;
}

.webcontainer::-webkit-scrollbar-track {
    background: transparent;
}

.webcontainer::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    background: color-mix(in srgb, var(--bw-fg) 32%, transparent);
    background-clip: content-box;
}

.webcontainer::-webkit-scrollbar-button {
    display: none;
}

.logo {
    display: block;
    flex: 0 0 auto;
    width: min(400px, 85vw);
    height: auto;
    aspect-ratio: 40.86 / 14.19;
    margin: 20px auto;
}

.bannercontainer {
    display: grid;
    flex: 0 0 auto;
    gap: 10px;
    box-sizing: border-box;
    width: min(100%, 880px);
    margin: 4px auto 28px;
    padding: 0 20px 20px;
}

.banner {
    --banner-level-color: var(--bw-primary);
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--bw-fg) 28%, transparent);
    border-left: 3px solid var(--banner-level-color);
    border-radius: 0;
    background-color: color-mix(in srgb, var(--bw-on-top) 35%, transparent);
}

.banner[data-level="0day"] {
    --banner-level-color: var(--bw-zeroday);
}

.banner[data-level="severe"] {
    --banner-level-color: var(--bw-severe);
}

.banner[data-level="high"] {
    --banner-level-color: var(--bw-high);
}

.banner[data-level="medium"] {
    --banner-level-color: var(--bw-medium);
}

.banner[data-level="low"] {
    --banner-level-color: var(--bw-low);
}

.banner[data-level="one-off"] {
    --banner-level-color: var(--bw-oneoff);
}

.bannertitle {
    width: fit-content;
    max-width: 100%;
    color: var(--bw-fg);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bannertitle:hover {
    color: var(--banner-level-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bannertitle:focus-visible {
    outline: 2px solid var(--bw-primary);
    outline-offset: 3px;
}

.bannerstatus {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bannerlevel,
.bannerspecifics {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    box-sizing: border-box;
    padding: 2px 7px;
    border: 1px solid color-mix(in srgb, var(--bw-fg) 28%, transparent);
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

.bannerlevel {
    border-color: var(--banner-level-color);
    color: var(--banner-level-color);
}

.bannerspecifics {
    color: var(--bw-fg);
}

.bannernote {
    margin: 0;
    color: var(--bw-fg);
    font-size: 0.98rem;
    opacity: 0.82;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .bannercontainer {
        gap: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .banner {
        padding: 13px 14px;
    }

    .bannertitle {
        font-size: 1.15rem;
    }
}