:root {
  --head-color: #C22C17;
  --dice-bg-color: #B1B3B7;
  --attributes-bg-color: #F2DC80;
  --details-bg-color: #7FA8C9;
  --text-color: #46445D;
  --wild-color: #557E6E;
  --add-color: #B37344;
  --wild-one-color: var(--head-color);
}

body {
  font-family: sans-serif;
}

div#top {
  width: 100%;
  background-color: #eee;
  padding-left: 1em;
  padding-right: 1em;
}

div#top a, div#top a:visited {
  text-decoration: none;
  padding-left: 1em;
  padding-right: 1em;
  margin-left: 0.5em;
  margin-right: 0.5em;
  border: 1px solid #666;
  text-align: center;
  color: black;
}

div#universaldice div {
  font-size: 1em;
  float: left;
  margin: 0.2em;
  background: black;
  color: white;
  padding: 0.2em;
  border-radius: 5px;
  font-family: monospace;
  font-variant: small-caps;
}

div.description {
  border-radius: 10px;
  margin: 0.25em;
  border: 1px dotted var(--text-color);
  color: var(--text-color);
  width: 45% ;
}
div.description td.attributename {
  font-variant: small-caps;
  vertical-align: top;
}
div.description td.attributevalue {
  font-size: 0.9em;
  word-break: normal;
  text-align: justify;
}

div.attributes {
  width: 45%;
  float: left;
  background-color: var(--attributes-bg-color);
  color: var(--text-color);
  border-radius: 10px;
  padding: 0.1em;
  columns: 2;
  margin: 0.25em;
}
div.attributes table {
  width: 100%;
  break-inside: avoid;
  padding: 0.5em;
}
div.attributes table td {
  height: 1em;
  word-break: normal;
  text-align: justify;
}
div.attributes td.skillvalue {
  width: 4em;
  text-align: right;
}
div.attributes td.roll {
  width: 1em;
  text-align: center;
}
div.attributes td.roll img {
  height: 100%;
}
div.attributes thead td {
  font-weight: bold;
  font-variant: small-caps;
  border: 0px;
}

div.details {
  float: left;
  width: 45%;
  background-color: var(--details-bg-color);
  border-radius: 10px;
  margin: 0.25em;
}
div.details div {
  padding: 0.5em;
  color: var(--text-color);
  word-break: normal;
  text-align: justify;
  font-size: 0.9em;
}
div.details div em {
  color: var(--head-color);
  font-variant: small-caps;
  margin-right: 1em;
  font-size: 1em;
}

div#dicechat {
  clear: both;
  max-width: 100%;
  max-height: 5em;
  overflow: auto;
  columns: 4;
  background: var(--dice-bg-color);
  border-radius: 10px;
  padding: 0.5em 0.5em 0em 0.5em;
  margin-bottom: 0.5em;
}
div#dicechat div {
  break-inside: avoid;
  font-size: 0.8em;
  padding: 0;
  margin: 0;
}
div#dicechat div em {
  font-size: 1em;
  font-weight: normal;
  font-style: normal;
}
div#dicechat div em b.p {
  font-size: 0.5em;
}
div#dicechat div em b.a {
  color: var(--add-color);
}
div#dicechat div em b.z {
  color: var(--wild-one-color);
/*  text-decoration: red wavy line-through; */
}
div#dicechat div em b.w {
  color: var(--wild-color);
}

td {
  border-bottom: 1px solid black;
}
td.edit {
  min-width: 3em;
}
