/* Base page */
body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #d2d4dc;
    margin: 20px;
    position: relative;
    z-index: 0;
}

/* Blurred animated background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("https://jorund.org/background.jpg") center/cover no-repeat;
    filter: blur(10px) brightness(0.6) saturate(0.8);
    transform: scale(1.1);
    z-index: -1;
    animation: bgDrift 80s linear infinite alternate;
}

@keyframes bgDrift {
    0% {
        transform: scale(1.1) translate(0px, 0px);
    }
    100% {
        transform: scale(1.15) translate(-40px, -25px);
    }
}

/* Main layout */
.layout {
    background-color: rgba(18, 20, 28, 0.92); /* dark green-grey */
    border: 2px solid #2a3248;
    border-collapse: collapse;
    backdrop-filter: blur(6px);
}

/* Header */
.header {
    background: linear-gradient(90deg, #1a2030, #251f3a);
    color: #e2e4ea;
    padding: 12px;
    border-bottom: 3px solid #141820;
}

/* Logo + title */
.logo {
    height: 60px;
    vertical-align: middle;
}

.title {
    display: inline-block;
    font-size: 22px;
    font-weight: bold;
    margin-left: 15px;
    vertical-align: middle;
    color: #cdd0d8;
}

/* Navigation */
.nav {
    background-color: #161c26;
    border-right: 2px solid #2a3248;
    padding: 12px;
}

.nav a {
    text-decoration: none;
    color: #7aa8a4; /* muted teal */
    font-weight: bold;
}

.nav a:hover {
    color: #b48cff; /* subtle purple highlight */
    text-decoration: underline;
}

/* Content */
.content {
    padding: 18px;
    color: #cdd0d8;
}

/* Tables */
.stats {
    width: 100%;
    border-collapse: collapse;
}

.stats th {
    background-color: #1e2535;
    color: #e2e4ea;
    border: 1px solid #2a3248;
    padding: 6px;
    text-align: left;
}

.stats td {
    border: 1px solid #2a3248;
    padding: 6px;
}

/* Footer */
.footer {
    background-color: #131820;
    text-align: center;
    padding: 8px;
    border-top: 2px solid #2a3248;
    font-size: 12px;
    color: #9aa0aa;
}

/* Ticker */
.ticker {
    width: 100%;
    overflow: hidden;
    color: #d2d4dc;
    font-weight: bold;
    padding: 5px 0;
    box-sizing: border-box;
}

.ticker__inner {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll 22s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.ticker .notice {
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}
