body {
	background-color: #2e2e2e;
}

body.dark {
	background-color: #2e2e2e;
}

body.light { 
	background-color: #fff;
}

/* P Tags */

p {
	color: white;
	font-family: arial;
	font-size: 22px;
	text-align: center;
}

.light p {
	color: black;
	font-family: arial;
	font-size: 22px;
	text-align: center;
}

a.downloadweb {
	color: white;
	font-family: arial;
	font-size: 22px;
	text-align: center;
}

.light .downloadweb {
	color: #000000;
}

table {
	margin-top: 15px;
}

/* Highlight Colours */

p.txt::selection {
	background: #d89eff;	/* WebKit/Blink Browsers */
}

p.txt::-moz-selection {
	background: #d89eff;	/* Gecko Browsers */
}

a.nav::selection { 
	background: #00fc8b;	
}

a.nav::-moz-selection {
	background: #00fc8b;	
}

a.Heading::selection {
	background: #ff5b5b;	
}

a.Heading::-moz-selection {
	background: #ff5b5b;	
}

span.subject::selection {
	background: #ff5b5b;	
}

span.subject::-moz-selection {
	background: #ff5b5b;	
}

/* Subject */
.subjectwrapper {
	background-color: #ad60e0;
	padding: 10px;
	/*  border: 2px solid rgb(140, 0, 255); */
}

.subject {
	font-family: source-code-pro, monospace;
	font-weight: 400;
	font-style: italic;
	font-size: 22px;
	text-align: center;
	position: inherit;
}

/* Heading */
.Headingwrapper{
	background-color: #8960e0;
	padding: 10px;
}
.Heading {
	line-height: 30px;
	color: white;
	width: auto;
	font-family: source-code-pro, monospace;
	font-weight: 700;
	font-style: italic;
	font-size: 30px;
}


/* Navigation buttons */
.nav {
	width: auto;
	text-align: center;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nav {
	font-family: source-code-pro, monospace;
	font-weight: 200;
	font-style: italic;
	font-size: 1.5vw;
	padding: 1px 15px;
	color: #f4f4f4;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #8960e0;
	position: relative;
	overflow: hidden;
}

@media all and (max-width:1250px) {
	.nav {
        font-size: 20px;
	}
}

@media all and (max-width:400px) {
	.nav {
        font-size: 14px;
	}
}

.light .nav {
	font-family: source-code-pro, monospace;
	font-weight: 200;
	font-style: italic;
	font-size: 1.5vw;
	padding: 1px 15px;
	color: black;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #8960e0;
	position: relative;
	overflow: hidden;
}

@media all and (max-width:1250px) {
	.light .nav {
        font-size: 20px;
	}
}

@media all and (max-width:400px) {
	.light .nav {
        font-size: 14px;
	}
}

/*.nav:hover {
    box-shadow: 1px 1px 25px 10px rgba(146, 148, 248, 0.4);
  }*/

.nav:before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient( 120deg, transparent, rgba(146, 148, 248, 0.4), transparent);
	transition: all 650ms;
}

.nav:hover:before {
	left: 100%;
}

/* End of Nav */

.titles {
	font-family: arial;
	text-align: center;
	font-size: 24px;
	color: white;
	background-color: slateblue;
}

img.logo {
	margin-top: 5px;
	width:auto;
	height:22px
}

/* Theme buttons */

#themebuttons {
	margin: 0px;
	width: 99%;
	padding: 10px;
	display: grid;
	position: relative;
}

#Darkbutton {
	display: inline-block;
	padding: 0.35em 1.2em;
	border: 0.1em solid #ffffff;
	margin: 0 0.3em 0.3em 0;
	border-radius: 0.12em;
	box-sizing: border-box;
	text-decoration: none;
    font-family: 'Arial', sans-serif;
	font-weight: 300;
	color: #ffffff;
	text-align: center;
	transition: all 0.2s;
	position: inherit;
}

#Darkbutton:hover {
	color: #000000;
	background-color: #FFFFFF;
}

@media all and (max-width:30em) {
	#Darkbutton {
		display: block;
		margin: 0.4em auto;
	}
}

#Lightbutton {
	display: inline-block;
	padding: 0.35em 1.2em;
	border: 0.1em solid #2e2e2e;
	margin: 0 0.3em 0.3em 0;
	border-radius: 0.12em;
	box-sizing: border-box;
	text-decoration: none;
    font-family: 'Arial', sans-serif;
	font-weight: 300;
	color: #2e2e2e;
	text-align: center;
	transition: all 0.2s;
	position: inherit;
}

#Lightbutton:hover {
	color: #ffffff;
	background-color: #2e2e2e;
}

@media all and (max-width:30em) {
	#Lightbutton {
		display: block;
		margin: 0.4em auto;
	}
}

.downloadbutton {
	display: inline-block;
	padding: 0.46em 1.6em;
	border: 0.1em solid #000000;
	margin: 0 0.2em 0.2em 0;
	border-radius: 0.12em;
	box-sizing: border-box;
	text-decoration: none;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	color: #000000;
	text-shadow: 0 0.04em 0.04em rgba(0, 0, 0, 0.35);
	background-color: #FFFFFF;
	text-align: center;
	transition: all 0.15s;
}

.downloadbutton:hover {
	text-shadow: 0 0 2em rgba(255, 255, 255, 1);
	color: #FFFFFF;
	border-color: #FFFFFF;
}

@media all and (max-width:30em) {
	.downloadbutton {
		display: block;
		margin: 0.4em auto;
	}
}


/* Works on Firefox */

* {
	scrollbar-width: thin;
	scrollbar-color: slateblue #2e2e2e;
}


/* Works on Chrome, Edge, and Safari */

*::-webkit-scrollbar {
	width: 10px;
}

*::-webkit-scrollbar-track {
	margin-block: 7px;
}

*::-webkit-scrollbar-thumb {
	background-color: slateblue;
	border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
background: #AD60E0;
}

*::-webkit-scrollbar-thumb:active {
	background: springgreen;
}

footer {
	position: relative;
	width: 100%;
}

#copyright {
	color: white;
	background-color: #ff457d;
	align-items: center;
	padding: 10px;
}

/* the game */

/* ------------------------------ */
/* Modern redesign 2024 (phase 1) */
/* ------------------------------ */
/*
   The following CSS introduces a modern minimalist dark theme with
   gray, purple, and light-blue accents.  It uses CSS custom properties
   (variables) so colours, spacing, and fonts are defined once and can
   be re-used or tweaked easily across the whole project.  These rules
   are appended to the end of the legacy stylesheet so they override
   previous definitions while existing pages are gradually migrated.
*/

:root {
  /* Colour palette */
  --accent-purple: #8960e0;
  --accent-blue:   #8cc8ff;
  --accent-gray:   #6d6d6d;

  --bg-dark:  #1f1f1f;
  --bg-light: #ffffff;

  --text-dark:  #eaeaea;
  --text-light: #1f1f1f;

  /* Other tokens */
  --radius-base: 4px;
  --transition-fast: 0.25s ease;
  --max-width: 1200px;
  --font-base: "Inter", Arial, sans-serif;
}

/* Base layout ------------------------------------------------------ */
body {
  font-family: var(--font-base);
  background: var(--bg-dark);
  color: var(--text-dark);
  margin: 0;
  line-height: 1.6;
  transition: background var(--transition-fast), color var(--transition-fast);
}

body.light {
  background: var(--bg-light);
  color: var(--text-light);
}

/* Container helper */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography ------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

/* Header & Navigation --------------------------------------------- */
header {
  background: var(--accent-purple);
  color: #ffffff;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

/* underline effect */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-fast);
}

nav a:hover::after {
  width: 100%;
}

/* Theme toggle button --------------------------------------------- */
.theme-toggle {
  cursor: pointer;
  background: none;
  color: inherit;
  border: 2px solid currentColor;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-base);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap; /* prevent collapse on small screens */
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Music toggle button (temporarily disabled)
.music-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  background: var(--bg-dark);
  color: var(--text-dark);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1000;
  transition: background var(--transition-fast), transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle:hover {
  background: var(--accent-purple);
  transform: scale(1.1);
}

.light .music-toggle {
  background: var(--bg-light);
  color: var(--text-light);
}
*/

/* Main content ----------------------------------------------------- */
main .container {
  padding: 2rem 0;
}

.feature {
  margin-bottom: 2rem;
}

.feature h2 {
  color: var(--accent-blue);
}

/* Footer ----------------------------------------------------------- */
footer {
  background: var(--accent-gray);
  color: #ffffff;
  padding: 1rem 0;
}

footer a {
  color: inherit;
}

/* ------------------------------ */
/* Responsive enhancements 2024   */
/* ------------------------------ */

/* Fluid typography */
h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
}

p {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none; /* shown only on small screens */
  background: none;
  border: 2px solid currentColor;
  color: inherit;
  font-size: 1.25rem;
  padding: 0.25em 0.6em;
  border-radius: var(--radius-base);
  cursor: pointer;
}

@media (max-width: 700px) {
  header .container {
    flex-wrap: wrap;
    align-items: center;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
  }

  /* Show nav when header has .nav-open */
  header.nav-open nav ul {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  /* Ensure controls stay visible on first row */
  header .container > h1 { flex: 1 1 auto; order: 1; }
  header .container > .theme-toggle { order: 2; }
  header .container > .nav-toggle { order: 2; margin-left: 0.5rem; }
  header .container > nav { order: 3; width: 100%; }

  .theme-toggle,
  .nav-toggle { flex: 0 0 auto; position: relative; z-index: 2; }
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--accent-blue);
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-base);
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ------------------------------ */
/* Alignment & layout fixes 2024  */
/* ------------------------------ */

/* Left–align body copy */
.hero p,
.feature p,
p {
  text-align: left;
}

/* Sticky footer setup */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto; /* take remaining space */
}

/* PC build card styles */
.builds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.build {
  border: 2px solid var(--accent-purple);
  border-radius: var(--radius-base);
  padding: 1rem;
  background: rgba(255,255,255,0.02);
}

.build h3 {
  margin-top: 0;
  color: var(--accent-blue);
}

.build ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.build li {
  margin-bottom: 0.2rem;
}

/* Software download card styles */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.software {
  border: 2px solid var(--accent-blue);
  border-radius: var(--radius-base);
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.software h3 {
  margin: 0;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
}

.software p {
  margin: 0;
  font-size: 0.95rem;
}

.software .downloadbutton {
  align-self: flex-start;
  margin-top: auto;
}

/* Theme consistency fixes */
.light p { text-align: left; }

/* Software card button alignment */
.software p { align-self: flex-start; }
.software .downloadweb { align-self: flex-start; display: inline-block; }

/* --------------------------------- */
/* Link colours & typography uniform */
/* --------------------------------- */

main a {
  color: var(--accent-blue);
  text-decoration: underline;
}
main a:hover {
  color: #aad4ff;
}

.light main a {
  color: var(--accent-purple);
}
.light main a:hover {
  color: #6c50d4;
}

/* Ensure consistent paragraph size across pages */
.software p { font-size: clamp(1rem, 2.2vw, 1.125rem); }

/* Keep Visit website link directly above download button */
.software .downloadweb { margin-bottom: 0.25rem; }

/* Light theme typography fix */
.light p {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 1em;
}

/* FAQ details styling */
details {
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-base);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] {
  background: rgba(255, 255, 255, 0.04);
}

/* Focus styles for better keyboard visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Light theme header/footer color adjustments for contrast */
.light header { color: #fff; }
.light footer { color: #fff; }

/* Keep header content legible in both themes */
header { position: relative; }
header .container > * { color: inherit; }
header .container button { color: #fff; border-color: rgba(255,255,255,0.85); }
.light header .container button { color: #fff; border-color: rgba(255,255,255,0.85); }