:root {
  --accent-color: #059669;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  background-color: #fff;
  color: #000;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 10px;
  overflow-x: hidden;
}

.dark-mode {
  background-color: #000;
  color: #fff;
}

.dark-mode h1 {
  color: var(--accent-color);
  background-color: #011810;
}

main {
  padding: 100px 30px 80px;
  max-width: 1000px;
  width: 100%;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  padding: 4px 8px;
  display: center;
  border-radius: 16px;
  color: var(--accent-color);
  background-color: #011810;
  position: relative;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 4px;
}

.command-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  position: relative;
  margin-bottom: 16px;
}

.command-entry .command {
  position: absolute;
  left: 0;
  width: 30%;
  font-weight: bold;
}

.command-entry .desc {
  position: absolute;
  left: 30%;
  width: 40%;
  text-align: center;
}

.command-entry .role {
  position: absolute;
  right: 0;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
}

.role.viewer {
  background-color: #8b3dff;
  color: white;
}
.role.mod {
  background-color: #00AD03;
  color: white;
}
.role.admin {
  background-color: #E91916;
  color: white;
}

.nav-center {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
.nav-center ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav-center ul li {
  font-weight: bold;
}
.nav-center ul li a {
  text-decoration: none;
  font-size: 1.25rem;
  color: inherit;
  transition: color 0.3s ease;
}
.nav-center ul li a:hover {
  color: var(--accent-color);
}

.theme-toggle {
  border: none;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
  border-radius: 4px;
  height: 40px;
  width: 40px;
  background: none;
  color: inherit;
}
.theme-toggle:hover {
  opacity: 0.8;
}
.theme-toggle svg {
  width: 24px;
  height: 24px;
}

.top-right-container {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 1000;
}

.footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #999;
  padding: 20px 0;
}
.dark-mode .footer {
  color: #555;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: inherit;
  transition: background 0.3s ease-in-out;
  z-index: -1;
}

.lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}
.lines::before,
.lines::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0.1;
}
.lines::before {
  top: 6%;
}

::selection {
  background: var(--accent-color);
  color: #fff;
}
::-moz-selection {
  background: var(--accent-color);
  color: #fff;
}
