:root {
  /* Deep Space & Nature Palette */
  --color-bg: #050510;
  --color-text: #e0e0e0; /* Soft White */
  --color-text-muted: #a0a0b0;
  --color-link: #a8e6cf; /* Mint Green */
  --color-link-hover: #dcedc1; /* Light Green */
  
  --color-primary: #1a1a2e; /* Dark Blue Container */
  --color-border: #4a4e69; /* Muted Purple/Grey */
  
  --color-accent-1: #9b5de5; /* Deep Lavender (Flowers) */
  --color-accent-2: #f15bb5; /* Rose (Flowers) */
  --color-accent-vine: #2d6a4f; /* Dark Green (Vines) */
  
  --font-main: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--color-accent-vine), var(--color-link));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-link);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
}

/* Container for main content */
.container {
  position: relative;
  width: 90%;
  max-width: 800px;
  background-color: rgba(15, 15, 30, 0.92); /* Higher opacity for readability */
  padding: 3rem;
  margin: 2rem 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  overflow: hidden; /* Keep corner accents inside if needed */
}

/* Tech/Nature Corner Accents */
.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--color-link);
  border-left: 2px solid var(--color-link);
  border-radius: 8px 0 0 0;
  box-shadow: -2px -2px 10px var(--color-link);
  z-index: 1;
}

.container::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--color-link);
  border-right: 2px solid var(--color-link);
  border-radius: 0 0 8px 0;
  box-shadow: 2px 2px 10px var(--color-link);
  z-index: 1;
}

/* Navigation */
nav {
  width: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 16, 0.95), rgba(5, 5, 16, 0.0));
  padding: 1.5rem 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: normal;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Floral underline effect */
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--color-accent-1);
  box-shadow: 0 0 8px var(--color-accent-1);
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

nav a:hover {
  color: var(--color-accent-1);
  text-shadow: 0 0 10px var(--color-accent-1);
}

nav a:hover::after {
  width: 100%;
}

/* Headings */
h1, h2, h3 {
  font-family: var(--font-main);
  color: var(--color-text);
  font-weight: normal;
  margin-top: 1.5em;
}

h1 {
  text-align: center;
  margin-top: 0;
  color: var(--color-accent-2); /* title */
  font-size: 2.5rem;
  text-shadow: 0 0 15px rgb(37, 0, 245);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

h2 {
  color: var(--color-accent-2); /* Rose subheaders */
  font-size: 1.8rem;
  border-bottom: 1px solid rgba(168, 230, 207, 0.2);
  padding-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(168, 230, 207, 0.2);
}

/* Text & Links */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: all 0.2s;
}

a:hover {
  color: var(--color-link-hover);
  text-shadow: 0 0 8px var(--color-link);
}

p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

p a {
  border-bottom: 1px dotted var(--color-link);
}

p a:hover {
  border-bottom: 1px solid var(--color-link-hover);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  display: block;
  margin: 1rem auto;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Footer */
footer {
  margin-top: auto;
  padding: 2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  opacity: 0.8;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Specific overrides for games/sections */
article {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

article:hover {
    transform: translateY(-2px);
    border-color: var(--color-link);
    box-shadow: 0 0 15px rgba(168, 230, 207, 0.1);
}

/* Download Box */
.download-box {
    border: 1px solid var(--color-link);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    background: rgba(45, 106, 79, 0.15); /* Dark Green tint */
    box-shadow: inset 0 0 20px rgba(45, 106, 79, 0.2), 0 0 10px rgba(45, 106, 79, 0.2);
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    pointer-events: none;
}

.download-box h3 {
    margin-top: 0;
    color: var(--color-link);
}
