:root {
  --brown-dark: #2A2024;       /* from dark brownish-purple in cover */
  --brown-dark-dark: #49434C;  /* from dark grey-violet */
  --caramel: #747281;          /* muted blue-grey as a mid-tone */
  --gold-warm: #B9ADB2;        /* soft mauve */
  --beige-soft: #EDEFEA;       /* light grey background tone */
  --beige-light: #EDEFEA;      /* same as beige-soft for consistency */
  --cream: #FFFFFA;            /* matches light background */
  --wood-light: #898486;       /* soft mauve as warm accent */
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--brown-dark);
}

header img {
  max-height: 60px;
}

h5 {
    font-weight: normal; /* remove bold */
    margin: 10px;   /* removes all outside spacing */
    padding: 0;  /* optional: removes inside spacing if any */
}
nav {
  background-color: var(--brown-dark);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-warm);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--gold-warm);
}

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

.mobile-menu-toggle {
  display: none;
  background-color: var(--brown-dark);
  color: var(--wood-light);
  padding: 0.5rem 1rem;
  border: none;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.6s;
}

.mobile-menu-toggle:hover {
  background-color: var(--brown-dark-dark);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--wood-medium);
}

.mobile-nav a {
  padding: 1rem;
  text-align: center;
  color: var(--wood-light);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.mobile-nav a:hover {
  background-color: var(--brown-dark-dark);
  color: var(--cream);
}

@media (max-width: 768px) {
  nav.desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-nav {
    display: none !important;
  }
  .mobile-nav.open {
    display: flex !important;
  }
  html {
    background: var(--brown-dark); /* Solid color for areas outside body */
    height: 100%;
  }
  body {
    background-attachment: scroll; /* Fix for mobile scrolling */
  }

  .card-back-content {
    padding: 0.9rem; /* Reduce padding on mobile */
  }

  .card-back-content p {
    max-height: 30vh; /* Use viewport height units for better mobile scaling */
    margin-bottom: 0.5rem;
  }

  /* Optional: style the scrollbar */
  .card-back-content p::-webkit-scrollbar {
    width: 3px;
  }

  .card-back-content p::-webkit-scrollbar-thumb {
    background-color: var(--gold-warm);
    border-radius: 3px;
  } 
}

body {
    font-family: sans-serif;
    text-align: center;
    background: #EDEFEA; /* light grey background */
    margin: 0;
    padding: 20px;
    color: #2A2024;
}
img.cover {
  width: 250px;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(42, 32, 36, 0.3);
  margin-top: 20px;  /* space above */
}
h1 {
    font-size: 1.5rem;
    margin: 15px 0 5px;
    color: #2A2024; /* dark text */
}
h2 {
    font-size: 1.1rem;
    font-weight: normal;
    color: #49434C;
    margin: 0;
}
.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}
.links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #B9ADB2; /* soft mauve button */
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #2A2024;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(42, 32, 36, 0.2);
    transition: transform 0.1s ease, background 0.2s ease;
}
.links a:hover {
    transform: scale(1.03);
    background: #747281; /* muted blue-grey on hover */
    color: #EDEFEA;
}
.links img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.platform-name {
    flex-grow: 1;
    text-align: left;
    font-size: 1rem;
}

footer {
  text-align: center;
  background-color: var(--brown-dark);
  color: white;
  padding: 1rem;
  font-size: 0.85rem;
  margin-top: 10px;
}