:root {
  /* Base colors */
  --color-fork: #ffd166;
  --color-clone: #06d6a0;
  --color-code: #118ab2;
  --color-push: #ef476f;
  --color-merge: #8338ec;

  --color-text: #222;
  --color-bg: #fff;
  --color-bg-alt: #f0f0f0;
  --font-body: system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--page-color);
  color: var(--color-text);
  padding: 2rem;
  transition: background 0.3s ease;
}

header, main {
  background: var(--color-bg);
  padding: 2rem 3rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  max-width: 600px;
}
header {
  text-align: center;

  h1 {
    margin-top: 0;
    font-size: 2rem;
  }

  nav {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background: var(--color-bg);
    a {
      text-decoration: none;
      background-color: var(--color-bg-alt);
      color: var(--color-text);

      border-radius: 0.5rem;
      padding: 0.5rem 0.5rem;
      transition: background 0.4s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  nav.index {
    a {
      min-width: 150px;
      min-height: 50px;
    }

    a:nth-child(1) {
      background: var(--color-fork);
    }
    a:nth-child(2) {
      background: var(--color-clone);
    }
    a:nth-child(3) {
      background: var(--color-code);
    }
    a:nth-child(4) {
      background: var(--color-push);
    }
    a:nth-child(5) {
      background: var(--color-merge);
    }
  }

  nav a:hover {
    background: rgba(0, 0, 0, 0.15);
  }
}
