:root {
	--rosewater: #f5e0dc;
	--flamingo: #f2cdcd;
	--pink: #f5c2e7;
	--mauve: #cba6f7;
	--red: #f38ba8;
	--maroon: #eba0ac;
	--peach: #fab387;
	--yellow: #f9e2af;
	--green: #a6e3a1;
	--teal: #94e2d5;
	--sky: #89dceb;
	--sapphire: #74c7ec;
	--blue: #89b4fa;
	--lavender: #b4befe;
	--text: #cdd6f4;
	--subtext1: #bac2de;
	--subtext0: #a6adc8;
	--overlay2: #9399b2;
	--overlay1: #7f849c;
	--overlay0: #6c7086;
	--surface2: #585b70;
	--surface1: #45475a;
	--surface0: #313244;
	--base: #1e1e2e;
	--mantle: #181825;
	--crust: #11111b;
}

body {
    background: var(--base);
    color: var(--text);
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    margin-left: 2rem;
    margin-right: 2rem;
    padding: 0 0 40px 0;
    position: relative;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: url('background.png') center center / cover no-repeat;
    opacity: 0.4;
    pointer-events: none;
    filter: blur(6px);
}

p {
    padding: 0.5em 0;
}

h1 {
    color: var(--lavender);
    text-align: center;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.home-link {
    display: inline-block;
    margin-top: 1.2rem;
    margin-left: 0.5rem;
    font-size: 1em;
    font-weight: 600;
    background: var(--mantle);
    color: var(--lavender);
    padding: 0.4em 1.2em;
    border-radius: 0.7em;
    box-shadow: 0 0.15em 0.6em #18182566;
    transition: background 0.2s, color 0.2s;
}

.home-link a {
    color: var(--lavender);
    text-decoration: none;
}


.instructions {
    max-width: 700px;
    margin: 0 auto 24px auto;
    background: rgba(24, 24, 37, 0.8); /* var(--mantle) with 70% opacity */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 16px #18182588;
}

.instructions h3 {
    color: var(--lavender);
    margin-top: 0;
    margin-bottom: 8px;
}

.instructions p {
    color: var(--text);
    margin: 0;
}

.subtitle {
    text-align: center;
    color: var(--lavender);
    margin-bottom: 12px;
    margin-top: 0;
    font-size: 2em;
    font-weight: 600;
}

.total-posts {
    text-align: right;
    margin-bottom: 8px;
    color: var(--subtext0);
    font-size: 1.1em;
    margin-right: 5%;
}

table {
    width: 90%;
    margin: 0 auto 24px auto;
    border-collapse: collapse;
    background: rgba(24, 24, 37, 0.7); /* var(--mantle) with 70% opacity */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px #18182588;
}

th, td {
    padding: 8px 12px;
    text-align: left;
}

th {
    background: var(--surface1);
    color: var(--lavender);
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 2px solid #b4befe44;
}

td {
    border-bottom: 1px solid var(--surface1);
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) td {
    background: #1a1826;
}

tr:hover td {
    background: #b4befe22;
}

a {
    color: #0af;
    text-decoration: none;
}

.pagination {
    text-align: center;
    margin-bottom: 24px;
}

.pagination a, .pagination span.current {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    color: var(--lavender);
    background: var(--mantle);
    transition: background 0.2s, color 0.2s;
}

.pagination a:hover {
    background: var(--lavender);
    color: var(--mantle);
}

.pagination span.current {
    background: var(--lavender);
    color: var(--mantle);
    font-weight: bold;
}

div[style*="text-align: right"] {
    color: var(--subtext0);
    font-size: 1.1em;
    margin-right: 5%;
}

::-webkit-scrollbar {
    width: 10px;
    background: var(--mantle);
}
::-webkit-scrollbar-thumb {
    background: var(--surface1);
    border-radius: 8px;
}

.footer {
    position: fixed;
    bottom: 0;
    font-size: 1rem;
    left: 1rem;
    right: 1rem;
    text-align: left;
    z-index: 1;
}

.footer a {
    color: var(--lavender);
    text-decoration: none;
}

.footer a:hover {
    color: var(--lavender);
}

.footer a:visited {
    color: var(--lavender);
}

.logo {
    color: var(--surface2);
}

ul, ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

li {
    margin-bottom: 0.2em;
}