html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: #1a1a1a;
  padding: 1rem;
}
body {
  max-width: 960px;
  margin: 0 auto;
  background: #212121;
  color: #d1d1d1;
}
h1, h2, h3, h4, h5, h6 {
  color: #8b9eff;
  margin: 1rem 0;
}
a {
  color: #8b9eff;
}
hr {
  border: none;
  border-top: 1px solid #404040;
}
nav {
  background: #4b66de;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}
nav h1 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
nav h1 a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  color: white;
  transition: all 0.3s ease;
  display: inline-block;
  border-radius: 0.375rem;
}
nav h1 a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}
nav ul li a,
nav ul li span,
header .action {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: white;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
nav ul li span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
}
nav ul li:nth-child(2) {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.5rem;
  margin-left: 0.5rem;
}

select {
  appearance: none;
  background-color: #2f2f2f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  margin: 10 10 10 10;
  border: 1px solid #404040;
  border-radius: 0.5rem;
  color: #d1d1d1;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
select:hover {
  border-color: #555;
}

select:focus {
  border-color: #4b66de;
}

/* Style the dropdown options */
select option {
  background-color: #2f2f2f;
  color: #d1d1d1;
  padding: 0.5rem;
}

.content {
  padding: 0 1rem 1rem;
}
.content > header {
  border-bottom: 1px solid #404040;
  display: flex;
  align-items: flex-end;
}
.content > header h1 {
  flex: auto;
  margin: 1rem 0 0.25rem 0;
}
.flash {
  margin: 1em 0;
  padding: 1em;
  background: #2a3a4a;
  border: 1px solid #4b66de;
  color: #d1d1d1;
}
.post > header {
  display: flex;
  align-items: flex-end;
  font-size: 0.85em;
}
.post > header > div:first-of-type {
  flex: auto;
}
.post > header h1 {
  font-size: 1.5em;
  margin-bottom: 0;
}
.post .about {
  color: #888;
  font-style: italic;
}
.post .body {
  white-space: pre-line;
}
.content:last-child {
  margin-bottom: 0;
}
.content form {
  margin: 1em 0;
  display: flex;
  flex-direction: column;
}
.content label {
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #ececec;
}
.content input, .content textarea {
  margin-bottom: 1em;
  background: #2f2f2f;
  border: 1px solid #404040;
  color: #ececec;
  padding: 0.5em;
  border-radius: 0.25rem;
}
.content input:focus, .content textarea:focus {
  outline: none;
  border-color: #4b66de;
}
.content textarea {
  min-height: 12em;
  resize: vertical;
}
input.danger {
  color: #f87171;
}
input[type=submit] {
  align-self: start;
  min-width: 10em;
  background: #4b66de;
  color: white;
  border: none;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
input[type=submit]:hover {
  background: #5a75ed;
}