@font-face {
    font-family: "RuneScape";
    src: url("fonts/runescape.woff2") format("woff2");
}

:root {
    --bg: #1a1a1a;
    --bg-alt: #2a2a2a;
    --text: #e6d8a8;
    --accent: #8b5a2b;
    --highlight: #ffd966;
}

.light-mode {
    --bg: #f4f1ea;
    --bg-alt: #ffffff;
    --text: #2b2b2b;
    --highlight: #5a3b1d;
}

body {
    margin: 0;
    font-family: "RuneScape", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

nav {
    background-color: var(--bg-alt);
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

nav a {
    color: var(--highlight);
    text-decoration: none;
    font-weight: bold;
}

.toggle {
    border: 2px solid var(--accent);
    background: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}

.hero {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(#3a2b18, var(--bg));
}

.hero h1 {
    font-size: 42px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--accent);
    padding: 12px 28px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

section {
    max-width: 1000px;
    margin: auto;
    padding: 40px 16px;
}

.card, .event, .staff {
    background-color: var(--bg-alt);
    padding: 18px;
    margin: 14px 0;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
}

.discord-widget {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.discord-widget iframe {
    width: 350px;
    height: 500px;
    border-radius: 8px;
    border: 2px solid var(--accent);
}

table.hiscores {
    width: 100%;
    border-collapse: collapse;
}

table.hiscores th,
table.hiscores td {
    padding: 10px;
    border-bottom: 1px solid var(--accent);
}

footer {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 32px;
    }

    .discord-widget iframe {
        width: 100%;
        height: 420px;
    }
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
    border: 3px solid var(--accent);
}

.card-box {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    border: 3px solid var(--accent);
    margin: 16px 0;
    padding: 2px;
    text-align: center;
}
