/* Full-screen responsive background image */

html, body {
	height: 100%;
	margin: 0;
}

body {
	/* background image (keeps path relative to the HTML file) */
	background-size: cover;       /* cover the viewport, cropping as needed */
	background-position: center center; /* center the focal point */
	background-repeat: no-repeat;
	min-height: 100dvh;

	/* set a sensible default type & color so text sits well on image */
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	color: #fff;

	/* layout helpers so content can be centered if desired */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
    background-attachment: fixed;
}

/* Semi-transparent overlay to improve contrast and make the page look polished */
body::before {
	content: "";
	position: fixed;
	inset: 0; /* top:0; right:0; bottom:0; left:0 */
	background: var(--bg-overlay);
	pointer-events: none; /* don't interfere with clicks */
	z-index: 0;
}

/* Ensure page content sits above overlay */
/* Wrap page content in a container with class `.content` or rely on semantic tags */
main, header, footer, .content {
	position: relative;
	z-index: 1;
}

/* Optional utility: a centered card that looks good over the image */
.desktop-card {
	background: rgba(0,0,0,0.3);
	backdrop-filter: blur(6px) saturate(120%);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	box-shadow: 0 6px 18px rgba(0,0,0,0.35);
	color: #fff;
    max-width: 800px;
    margin: 2rem;
}

.mobile-card {
    background: rgba(0,0,0,0.3);
    width: 100%;
    min-height: 100vh;
    padding: 1.25rem 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.clickable {
    cursor: pointer;
}

.logo {
    width: 50%;
    min-width: 200px;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.link-section {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
}

.link-section-mobile {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.link-card-row {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex: 1;
}

.link-card-mobile {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.link-card-row {
    flex: 2;
}

.link-section-mobile > .link-card-mobile {
    flex: 1;
}

.link-section-mobile > .link-card-mobile {
    align-self: center;
    max-width: 60%;
}

.link-card-row .link-card-mobile img {
    width: 100%;
    height: auto;
}

.lone-image {
    width: 70%;
}

.link-section span {
    width: 33.33%;
    padding: 0.5rem;
}

h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

a {
    color: #6DC2FD;
    font-weight: bold;
    background-color: rgba(0,0,0,0.2);
    padding: 0.235rem 0.6rem;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
}

/* Make sure images and media don't overflow */
img, video { max-width: 100%; height: auto; }

.app-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    height: 10rem;
}

.instruction-image {
    width: 35rem;
    margin-top: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.instruction-card {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px) saturate(120%);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    color: #fff;
    max-width: 800px;
    margin: 2rem;
}

.server-address {
    font-family: monospace;
    background-color: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    margin: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.header-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 15rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .instruction-card {
        background: rgba(0,0,0,0.3);
        backdrop-filter: none;
        border-radius: 0;
        max-width: none;
        margin: 0;
        width: 100%;
        color: #fff;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    .appstore-img {
        width: 45%;
        height: auto;
    }
}