.writing-section {
  display: flex;
  justify-content: center;
}
.centered-wrapper {
  width: 100%;
  max-width: 520px;
}
.section-title {
  font-size: 1.3rem;
  letter-spacing: 3px;
  font-weight: 800;
  margin: 0 0 0 0;
  text-align: left;
  color: #ff0000;
  border: none;
  font-family: 'Turret Road', 'Courier New', monospace;
  line-height: 1.2;
}

.writing-card-container {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  align-items: flex-start;
}

.writing-card {
  background: #050000;
  border: 1.5px solid #ff0000;
  box-shadow: 2px 2px 0 rgba(255,0,0,0.2);
  width: 480px;
  min-height: 650px;
  margin-top: 0;
}
.card-content-area {
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.writing-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-right: 0.3rem;
}
.writing-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #ff0000;
}
.writing-content dt {
  background: #ff0000;
  color: black;
  font-weight: bold;
  width: fit-content;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  font-family: 'Turret Road', monospace;
}
.reading-entry {
  margin-bottom: 1.2rem;
}
.reading-entry:last-child {
  margin-bottom: 0;
}
.sub-content {
  display: none;
}
.sub-content.active {
  display: block;
}
.writing-content::-webkit-scrollbar {
  width: 4px;
}
.writing-content::-webkit-scrollbar-track {
  background: black;
}
.writing-content::-webkit-scrollbar-thumb {
  background-color: #ff0000;
}

.card-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.sub-btn {
  background: transparent;
  border: 1px solid #ff0000;
  color: #ff0000;
  font-family: 'Turret Road', monospace;
  font-size: 0.8rem;
  font-weight: bold;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sub-btn:hover {
  background: #ff0000;
  color: black;
  box-shadow: 0 0 4px red;
}
.sub-btn.active {
  background: #ff0000;
  color: black;
  box-shadow: 0 0 6px red;
}