body {
  background-color: #202020;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

header {
  padding: 20px;
  padding-bottom: 0;
  box-sizing: border-box;
}

h1 {
  margin-top: 0;
}


#status {
  font-weight: bold;
  margin: 0; /* Ensure no unwanted margins */
}

.container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  padding: 0 20px 20px; /* Add padding directly to the container */
}

.main-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px 0;
  overflow: hidden;
}

.content-container {
  flex-shrink: 0;
  overflow: auto;
  height: 100%;
  width: fit-content;
  max-width: 100%;
  min-width: 70%;
  margin-bottom: 10px;
  border-radius: 3px;
  background-color: #2a2a2a;
  box-sizing: border-box;
}

#content {
  word-break: break-all;
  background-color: #2a2a2a;
  padding: 10px;
  font-family: monospace, monospace;
  width: 80ch;
  font-size: 0.9em;
  white-space: pre-wrap;
}

.side-panel {
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
  min-width: 300px;
  overflow-y: auto;
  flex-wrap: nowrap;
}

.side-panel h3, .side-panel p {
  margin: 0;
}

.side-panel > div {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  height: fit-content;
}

.side-panel > div > div {
  display: block;
  width: 100%;
  background-color: #2a2a2a;
  padding: 20px;
  height: auto;
  align-items: center;
}

.effects h3 {
  margin-bottom: 1.2em;
}

.effects p {
  margin: 0.8em;
}

.bars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  height: 20px;
}
.group-bars {
  display: flex;
  gap: 4px;
  justify-content: center;
}


.bar {
  width: 25%;
  background-color: #444;
  border-radius: 3px;
  height: 100%;
  position: relative;
}
.full-bar { width: 100% !important; }
.mid-bar { width: 50% !important; }
.group-bars .bar {
  height: 16px;
  width: 33%;
}

.fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.hp-bar  { background-color: #e74c3c; }
.mn-bar  { background-color: #3498db; }
.mv-bar  { background-color: #f39c12; }
.gld-bar { background-color: #efc700; }
.nmy-bar { background-color: #8a2b21; }
.xp-bar  { background-color: #32a852; }

.red     { color: #e74c3c; }
.blue    { color: #3498db; }
.orange  { color: #f39c12; }
.gold    { color: #efc700; }
.crimson { color: #8a2b21; }
.green   { color: #32a852; }
.white   { color: #fff;    }
.gray    { color: #bfbfbe; }

.hidden  { display: none !important; }

.bar span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.9em;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none; /* Prevents text from interfering with bar interaction */
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* Ensure text is readable */
}

.group-bars span { font-size: 0.8em; }

#input {
  height: 60px;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  flex-shrink: 0; /* Prevent the textarea from shrinking */
  font-size: 1em;
}

#input:focus {
  outline: none;
}

#input::placeholder {
  color: #ccc;
}

*:disabled, .disabled {
  filter: brightness(85%);
}

.password {
  color: transparent !important;
  caret-color: transparent !important;
}

.group-member {
  padding: 8px;
  margin-bottom: 5px;
  background-color: #2a2a2a;
  border-radius: 5px;
  text-align: center;
}

.group-member p {
  margin: 0 0 4px;
  font-size: 1em;
}


