/* ===== 기본 공통 스타일 ===== */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  height: 100vh;
  background-color: #f8f8f8;
}

button:disabled {
  background-color: rgba(0, 200, 200, 0.5);
  cursor: not-allowed;
}


.uniform-button {
  width: 10em;
  height: 2.2em;
  font-size: 1em;
  margin-left: 0.5em;
  margin-right: 0.5em; 
  border-radius: 16px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

input[type="submit"] {
  flex: 1;
  font-size: 0.9rem;
  /* padding: 0.5em; */
  margin-bottom: 0.5em;
  border-radius: 6px;
  color: #ffffff;
  background-color: #407f40;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.section {
  width: 100%;
  margin-bottom: 1rem;
}

#error-message, .error {
  color: red;
  margin: 0.5em;
}

#message {
  color: #333;
  margin: 0.5em;
}

h1, h2, h3, h4 {
  color: #333;
  margin-top: 0
  margin-bottom: 0
}


/* ===== viewer 페이지 전용 ===== */
body.viewer-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-bottom: 1em
}

.chat-container {
  width: 90%;
  height: 70%;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 1em;
  margin-top: 0.5em;
  background-color: #f9f9f9;
}

.story-form {
  width: 90%;
  display: flex;
  justify-content: center;
  margin-bottom: 0em;
}

.story-form input[type="text"] {
  width: 15%;
  font-size: 1em;
  margin: 0 0.5em;
  padding: 0.5em;
}

.buttons-flex {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;
}


/* ===== editor 페이지 전용 ===== */
body.editor-page {
  padding: 0 20px;
  display: block;
}

textarea {
  width: 90%;
  min-height: 160px;
  font-size: 1em;
  font-family: 'Nanum Gothic', sans-serif;
  margin-top: 1em;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.section-title {
  color: #333;
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: bold;
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

.message-area {
  display: flex;
  flex-wrap: wrap;
  height: 2em;
  margin-top: 1em;
}







