/* ===== GLOBAL ===== */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

/* Container */
.page {
    max-width: 1100px;
    margin: 20px auto;
    margin: 0 auto;
    padding: 10px;
}

/* ===== HEADER ===== */

.header {
    background-color: #1b1b1b;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand container */
.brand {
    display: flex;
    align-items: center;
	gap: 20px;  /* spacer between logo and brand text*/
}

/* Logo image */
.logo-img {
    width: 300px;   /* scale down from 360px */
    height: auto;
    margin-right: 12px;
	display: block; /* removes inline spacing quirks */
}

/* Text next to logo */
.brand-text {
    display: flex;
    flex-direction: column;
}

/* Main name */
.brand-name {
    font-size: 26px;
    font-weight: bold;
    color: #aaff00;
}

/* Tagline */
.brand-tagline {
    font-size: 14px;
    color: #bbbbbb;
}

/* ===== CONTENT BOX ===== */

.content-box {
    background-color: #1e1e1e;
    margin-top: 0px;
    padding: 25px;
    border-radius: 10px;
}

/* ===== STICKY DOWNLOAD LINK TO RIGHT ===== */

.download-link-subtle {
    display: inline-block;
    font-size: 14px;
    color: #00e0ff;
    text-decoration: none;
    margin-top: 10px;
    opacity: 0.75;
    border-bottom: 1px dotted #aaa;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.download-link-subtle:hover {
    opacity: 1;
    color: #3399cc;
    border-bottom: 1px solid #666;
}

#jumpLink {
    position: sticky;
    top: 10px;
    display: inline-block;   /* key fix */
    float: right;            /* pushes it right */
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000; /* keeps it above content if needed */
}

/* visible state */
#jumpLink.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FOOTER ===== */

.footer {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 20px 10px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #8fd3ff; /* soft cyan */
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
    letter-spacing: 0.5px;
    
    /* subtle glow */
    text-shadow: 0 0 4px rgba(143, 211, 255, 0.4);
    
    /* smooth transitions */
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #d6f0ff; /* brighter silver-blue */
    
    /* stronger glow on hover */
    text-shadow: 0 0 6px rgba(143, 211, 255, 0.8),
                 0 0 12px rgba(143, 211, 255, 0.4);
}

.footer-links a:active {
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.6);
}

/* ===== TEXT STYLES ===== */

/* Main Heading */
h1 {
	text-align: center;
    font-size: 28px;
    color: #aaff00;
    margin-top: 0;
}

/* Sub Heading (primary accent) */
h2 {
    font-size: 22px;
    color: #aaff00;
}

/* Secondary sub heading (primary accent) */
h3 {
    font-size: 18px;
    color: #aaff00;
}

/* Alternative Sub Heading Colours */
.sub-alt1 {
    color: #00e0ff;   /* cyan */
}

.sub-alt2 {
    color: #66ff99;   /* soft green */
}

/* Body text */
p {
    font-size: 15px;
    line-height: 1.3;
    color: #dddddd;
}

ul {
	font-size: 15px;
    line-height: 1.2;
    color: #dddddd;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Small text */
.small-text {
    font-size: 12px;
    color: #999999;
}

/* ===== LINKS ===== */

/* Default links (body text style) */
a {
    color: #66ff99;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #aaff00;
}

/* Subheading-style links */
.link-sub {
    color: #00e0ff;
    font-weight: bold;
}

.link-sub:hover {
    color: #aaff00;
}

/* ===== DOWNLOAD BUTTON ===== */

.button-download {
    display: inline-block;
    background-color: #aaff00;
    color: #000;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
}

.button-download:hover {
	color: #2d7a00; /* dark green */
    background-color: #ccff33;
}

/* ===== DIVIDER ===== */

.futuristic-divider {
  width: 100%;
  height: 4px;
  margin: 30px 0px 4px 0px;

  background: linear-gradient(
    90deg,
    transparent,
    #00e5ff,
    #4d7cff,
    #00e5ff,
    transparent
  );

  box-shadow:
    0 0 8px rgba(0, 229, 255, 0.6),
    0 0 16px rgba(77, 124, 255, 0.3);

  border-radius: 999px;
}

/* ===== SYSTEM REQUIREMENTS BOX ===== */

.system-requirements-box h3 {
    margin-top: 0;
    font-size: 16px;
	color: #3399cc;   /* dark cyan */
}

.system-requirements-box ul {
    margin: 10px 0;
    padding-left: 18px;
	color: #999;
}

.system-requirements-box li {
    margin-bottom: 6px;
}

.sys-note {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* ===== SCREENSHOT VIEWER LIGHTBOX ===== */

/* lightbox Must not have flex as this clashes with content wrapper's absolute positioning and nothing shows at all */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
	top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

/* central content block to centre image/caption vertically. Uses absolute positioning to centre in screen, with flex set for its content.*/
.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
	justify-content: center;
    gap: 12px;
}

.lightbox img {
	display: block;
    max-width: 90vw; /* Use vw/vh for viewport - better than % for container for lightbox*/
    max-height: 85vh;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 6px;
    z-index: 1;  /*Set z-index so that caption and buttons go on top */
}

/* close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
	z-index: 3;
}

/* navigation arrows */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
	z-index: 3;
}

.prev { left: 20px; }
.next { right: 20px; }

.lightbox-caption {
	text-align: center;
    color: #ddd;
    font-size: 16px;
    margin-top: 0px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0; /* Set to opaque when text is updated  */
    transition: opacity 0.5s ease; /* transition applies when opacity is changed */
	z-index: 2;
    position: relative; /* IMPORTANT: enables z-index*/
}

.lightbox-caption.show {
    opacity: 0.9;
}