body {
  background-color: #000;
  color: #ffa500;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  display: flex;
  flex-direction: row;
  max-width: 960px;
  width: 100%;
  height: 90vh;
  border: 1px solid #ffa500;
}

nav {
  border-right: 1px solid #ffa500;
  padding: 5.5rem 1rem 2rem 1rem;
  width: 150px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

nav h2 {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  text-align: left;
  width: auto;
  align-self: center;
  margin-left: 0;
}

nav li {
  margin-bottom: 0.3rem;
}

nav a {
  color: #ffa500;
  text-decoration: none;
  font-weight: normal;
  display: block;
}

nav a.active {
  font-weight: bold;
}

.content-display ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.content-display li {
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.content-display h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem 0;
  color: #ffa500;
}

.content-display a {
  color: #ffa500;
  text-decoration: none;
  font-weight: bold;
}

.content-display a:hover {
  text-decoration: underline;
}

.writings-section {
  position: relative;
  margin-bottom: 0.3rem;
}

.writings-toggle {
  cursor: pointer;
  display: block;
}

.writings-submenu {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 -0.3rem 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  text-align: left;
}

.writings-section.expanded .writings-submenu {
  max-height: 200px;
}

.writings-toggle::before {
  content: "> ";
}

.writings-section.expanded .writings-toggle::before {
  content: "X ";
}

.writings-submenu li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  text-align: left;
}

.writings-submenu a {
  font-weight: normal;
  opacity: 0.8;
  display: block;
  text-align: left;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

header {
  border-bottom: 1px solid #ffa500;
  padding: 1rem;
  font-size: 1.4rem;
  text-align: center;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid #ffa500;
  animation: typing 3s steps(10, end), blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 8ch }
}

@keyframes blink {
  50% { border-color: transparent; }
}

main {
  padding: 2rem;
  flex-grow: 1;
  overflow-y: auto;
}

.content-display {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.content-display h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.content-display p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

footer {
  border-top: 1px solid #ffa500;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #ffa500;
}
