:root {
    --bg: #f9f9f9;
    --text: #222;
    --header-bg: #0f2b55;
    --header-text: #f9fafb;
    --anchor-active: #f4c300;
    --anchor-hover: #e10600;
    --main-bg: #fff;
    --footer-bg: #f9f9f9;
    --footer-text: #777;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1em;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav a {
    color: var(--header-text);
    margin: 0 10px;
    text-decoration: none;
}

nav a.active {
    color: var(--anchor-active);
}

nav a:hover {
    color: var(--anchor-hover);
    text-decoration: underline;
}

main {
    background: var(--main-bg);
    border-radius: 8px;
    flex: 1;
    margin: 20px auto;
    max-width: 900px;
    padding: 2em;
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 12px;
    padding: 1em;
    text-align: center;
}

footer a {
    color: var(--footer-text);
}

table {
    border: 1px solid #888;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #888;
    padding: 6px 12px;
}

.screenshot-gallery {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.screenshot-thumb {
    border-radius: 6px;
    box-shadow: 0 2px 8px #aaa;
    cursor: pointer;
    height: 120px;
    transition: transform 0.2s;
}

.screenshot-thumb:hover {
    transform: scale(1.05);
}

#lightbox-overlay {
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

#lightbox-overlay[style*="display: flex"] {
    display: flex !important;
}

#lightbox-img {
    border-radius: 8px;
    box-shadow: 0 4px 24px #222;
    max-height: 80vh;
    max-width: 80vw;
}

#lightbox-close {
    color: #fff;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 2.5rem;
    position: absolute;
    top: 32px;
    right: 48px;
    z-index: 10000;
}
