:root {
  --bg: #f4f4f9;
  --text: #222;
  --form-bg: #fff;
  --input-bg: #fff;
  --input-border: #ccc;
  --btn-bg: #ffd700;
  --btn-text: #000;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

/* Body setup: centers everything on the page */
body {
  background-color: #2b2b2b;
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.page header {
  text-align: center;
  margin-bottom: 40px;
}

body.page header h1 {
  font-size: 2.5rem;
  color: var(--btn-bg);
  margin-bottom: 10px;
}

/* Center links visually */
a {
  color: #0066cc;
  text-decoration: none;
  font-size: 1.4rem;
}
a:hover {
  text-decoration: underline;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.name {
  margin: 0 auto;
}

/* Navigation centered */
.navigation {
  width: 100%;
  display: flex;
  justify-content: center;
  color: black;
}

.navbar {
  width: fit-content;
  background-color: #d2d2d2;
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: 0 auto 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.navbar li {
  display: inline-block;
  color: black;
}

.navbar a {
  color: black;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s, background-color 0.3s;
  padding: 6px 12px;
  border-radius: 6px;
}

.navbar a:hover {
  background-color: #555;
  color: #ffd700;
}

.navbar a.active {
  background-color: #4caf50;
  color: white;
}

/* Mobile adjustments */
@media (max-width: 800px) {
  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .navbar {
    width: 90%;
    max-width: 300px;
    padding: 1rem;
  }
}
