:root {
  --bg-deep: #1a1d21;
  --bg-surface: #22262b;
  --bg-elevated: #2c3138;
  --text-primary: #e8eaed;
  --text-secondary: #9aa0a8;
  --text-muted: #6b7280;
  --tournament-blue: #30b6ff;
  --tournament-blue-muted: rgba(48, 182, 255, 0.15);
  --snooker-green: #22c55e;
  --logo-navy: #1e2a5e;
  --border-subtle: #2e3440;
  --border-accent: rgba(48, 182, 255, 0.3);
}

html {
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: Tahoma, sans-serif;
  line-height: 1.6;
  margin: auto;
  max-width: 800px;
  -webkit-font-smoothing: antialiased;
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 1.5em;
  color: var(--text-primary);
}

h1 {
  font-size: 1.5rem;
}

a {
  color: var(--tournament-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #7dd3fc;
}

img {
  border-radius: 5px;
  max-width: 100%;
  display: block;
  margin: 1rem 0;
  border: 1px solid var(--border-subtle);
}

#navigation-bar {
  align-items: center;
  background-color: var(--bg-elevated);
  background-image: url("images/siimaseura-logo.gif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70px;
  display: flex;
  height: 80px;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

#logo-text {
  width: 300px;
  filter: invert(1);
  padding: 5px 20px;
}

#navigation-buttons-container {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.navigation-button {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.5rem;
  transition: color 0.2s, border-color 0.2s;
}

.navigation-button:hover {
  color: var(--text-primary);
}

.navigation-button.active {
  color: var(--tournament-blue);
  border-bottom-color: var(--tournament-blue);
}

.content-link {
  color: var(--tournament-blue);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.content-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

#content {
  background-color: var(--bg-surface);
  border-radius: 8px;
  margin: 0 10px;
  padding: 1.5rem;
}

.hidden {
  display: none;
}

@media (max-width: 500px) {
  #navigation-buttons-container {
    gap: 1rem;
  }

  .navigation-button {
    font-size: 0.95rem;
  }

  #logo-text {
    width: 220px;
  }
}
