nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #51acb8;
    padding: 25px 0;
    border-bottom: 1px solid #192169;
}
nav a {
    font-size: 1.3em;
    text-decoration: none;
    color: inherit;
    margin-right: 15px;
}
nav a.active {
    background: #192169;
    color: #fff;
    border-radius: 4px;
    padding: 8px 12px;
}
/* Body styles */
body {
    margin: 0;
    padding: 0;
    margin-top: 80px;
    background-color: #4c67ad; /* Added background color */
    background-image: url('../Images/background.jpg'); /* Add your image path */
    background-repeat: repeat; /* fallback */
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}
/* Footer styles */
footer {
    text-align: center;
    border-top: none;
    height: 32px;
    background: #192169;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: 200;
    transform: none;
}
.main-content {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin: 32px 0;
    font-family: 'Terraria';
}

.main-content img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.main-content > div {
    flex: 1;
    max-width: 400px;
    word-break: break-word;
    text-align: left;
}

/* Main content 1 styles */
.main-content1 {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin: 32px 0;
    padding-top: 5%;
}

.main-content1 > div {
    flex: 1;
    max-width: 400px;
    word-break: break-word;
    text-align: left;
    font-family: 'Minecraft';
}

.main-content1 header {
    font-size: 1.5em;
    margin-bottom: 8px;
    word-break: break-word;
    text-align: left;
    margin-top: 0;
}

.main-content1 img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

body > header,
body > p {
    max-width: 400px;
    word-break: break-word;
    text-align: left;
}
 /* Navigation container styles */
.nav-container {
    display: flex;
    align-items: center;
    position: fixed;;
    top: 0;
}
.nav-container {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #51acb8;
    border-bottom: 1px solid #192169;
    z-index: 100;
}

.nav-logo {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-left: 16px;
    margin-right: 20px;
}

nav {
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    flex: 1;
}
@font-face {
    font-family: 'Minecraft';
    src: url(../fonts/Minecraft.ttf) format('truetype');
}

@font-face {
    font-family: 'Terraria';
    src: url(../Fonts/Terraria.TTF) format('truetype');
}

/* Table styles */
th, td {
    border: 2px solid rgb(0, 153, 255) !important;
    padding: 10px;
    font-family: 'Terraria';
    text-align: center;
}

table {
    border-collapse: collapse;
}

th {
    background-color: #f2f2f2;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    font-family: 'Terraria';
    text-align: center;
}

/* Gambling machine styles */
.gambling {
    padding-top: 10px;
    padding-bottom: 20px;
    padding-left: 40px;
    font-family: 'Terraria';
}

/* Theme variables and presets */
:root {
	/* default colors */
	--nav-bg: #51acb8;
	--nav-text: #0b2130;
	--accent: #192169;
	--page-bg: #4c67ad;
	--text-color: #111;
	--footer-bg: #192169;
	--footer-text: #fff;
	--card-bg: rgba(255,255,255,0.06);
}

/* Dark preset */
:root[data-theme="dark"] {
	--nav-bg: #1f2937;
	--nav-text: #e6eef6;
	--accent: #0f1724;
	--page-bg: #0b1220;
	--text-color: #e6eef6;
	--footer-bg: #0b1220;
	--footer-text: #e6eef6;
	--card-bg: rgba(255,255,255,0.03);
}

/* Pastel preset */
:root[data-theme="pastel"] {
	--nav-bg: #cfe7e9;
	--nav-text: #284b4d;
	--accent: #7aa7b0;
	--page-bg: #f6fbfb;
	--text-color: #16363a;
	--footer-bg: #7aa7b0;
	--footer-text: #072226;
	--card-bg: rgba(255,255,255,0.8);
}

/* High contrast preset */
:root[data-theme="highcontrast"] {
	--nav-bg: #000;
	--nav-text: #fff;
	--accent: #ff0;
	--page-bg: #fff;
	--text-color: #000;
	--footer-bg: #000;
	--footer-text: #fff;
	--card-bg: rgba(0,0,0,0.04);
}

/* Apply variables to major elements */
nav, .nav-container {
	background: var(--nav-bg);
	color: var(--nav-text);
	border-bottom: 1px solid var(--accent);
}
nav a {
	color: var(--nav-text);
}
nav a.active {
	background: var(--accent);
	color: var(--footer-text);
}

body {
	background-color: var(--page-bg);
	color: var(--text-color);
}

/* Footer styles using variables */
footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	/* ...existing footer rules remain ... */
}

/* small control styles for the theme selector */
#theme-select {
	margin-left: 8px;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid rgba(0,0,0,0.12);
	background: transparent;
	color: inherit;
}