:root {
  --primary: #f51e1e;
  --text-light: #c76464;
  --border: #000000;
  --bg: #e6e6e6;
  --bg-secondary: #123123;
}

body {
  background: var(--bg);
  font-family: "Roboto Mono", monospace;
}

header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  /* font-size: 1.2rem; */
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

.page {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-color: #000000;
  margin: auto;
  display: none;
}

.page.active {
  display: block;
}

.live-stats {
  display: none;
}

.live-stats.active {
  display: block;
}

.live-stats-box {
  background: var(--bg-secondary);
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.stat-item {
  margin: 5px;
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .writing-textarea {
    padding: 1rem;
    min-height: 400px;
  }

  .live-stats-box {
    flex-direction: column;
  }
}

/* Writing Page */
.writing-section {
}

.textarea {
  margin: auto;
  margin-bottom: 1rem;
  margin-top: 1rem;
  width: 100%;
  height: 60vh;
  resize: none;
  border-radius: 8px;
}
