/* #region General */
:root {
  --primary-color: #2c2c2c; /* Deep Navy (background base) */
  --secondary-color: #222222; /* Dark Slate (card/section bg) */
  --accent-color: #1dcd9f; /* Neon Green */
  --background-color: #000000; /* Page background */
  --text-color: #f1f5f9; /* Light Gray for main text */
  --muted-text-color: #94a3b8; /* Muted slate for secondary text */
  --link-color: rgb(20, 255, 145); /* Accent link */
  --link-hover-color: #bbf7d0; /* Soft lime green */
  --visited-link-color: rgb(57, 86, 72); /* Visited Accent link */
  --overlay-color: rgba(0, 0, 0, 0.7); /* Darker overlay for contrast */
}

/* High Contrast Mód */
.high-contrast {
  --background-color: #000; /* Black background */
  --text-color: #fff; /* White text */
  --accent-color: #ff0; /* Bright yellow for accents */
  --primary-color: #000; /* Use black for primary blocks */
  --secondary-color: #111; /* Very dark grey for secondary backgrounds */
  --muted-text-color: #ccc; /* Light grey for secondary text elements */
  --link-color: #0ff; /* Cyan links for strong contrast */
  --link-hover-color: #0cf; /* Slightly darker cyan on hover */
  --visited-link-color: #f0f; /* Magenta for visited links */
  --overlay-color: #000000cc;
}
#toggle-contrast {
  padding: 0.4rem;
  font-weight: bold;
  background-color: var(--accent-color);
  border: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}
#toggle-contrast:hover {
  opacity: 0.8;
  cursor: pointer;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: underline;
  text-underline-offset: 0.125rem; /* 2px */
}
p {
  text-align: left;
}
a:visited {
  color: var(--visited-link-color);
}
body {
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: var(--font-size-base);
}
small {
  font-family: sans-serif;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background-color: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}
/* #endregion */

/* #region Navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color);
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  margin-right: 0.5rem;
  border-radius: 0.625rem; /* 10px */
}

.brand-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

.navbar-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.nav-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.nav-link:visited {
  color: var(--accent-color);
}

.nav-link:hover {
  color: var(--link-hover-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 1.5625rem; /* 25px */
  height: 0.1875rem; /* 3px */
  background-color: var(--accent-color);
  margin: 0.25rem 0; /* 4px */
  transition: 0.4s;
}

#menu-toggle {
  display: none;
}

@media (max-width: 44rem) {
  /* 600px */
  .hamburger {
    display: flex;
  }

  .navbar-nav {
    width: 100%;
    flex-direction: column;
    display: none;
    gap: 0;
  }
  #menu-toggle:checked ~ .navbar-nav {
    display: flex;
  }

  .nav-link {
    padding: 0.625rem 0; /* 10px */
    text-align: center;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.2); /* 1px */
    width: 100%;
  }
}
.selected {
  color: var(--link-hover-color) !important;
}
footer {
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* #endregion */
