
.Chat {
  display: flex;
  flex-direction: column;
  padding: 0.5em;
  position: relative;
  overflow: hidden;
  margin: 0.25rem 0.25rem 0.25rem 0;
}

.ChatList {
  flex-direction: column;
  position: relative;
  flex-grow: 1;
  /* for Firefox */
  min-height: 0;
  /*scroll-behavior: smooth;*/
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: scroll;
} 

.ChatList .System {
  background-color: #f0f0f0;
  border-radius: 0.25em;
}

.ChatInput {
  flex-grow: 0;
  flex-shrink: 0;
}

.ChatList .System.MuiListItem-gutters {
  margin-bottom: 0.25rem;
  max-width: calc(100% - 0.5rem);
}

.ChatList .System .MuiTypography-body1 {
  font-size: 0.6rem;
}

.ChatList .MuiListItem-gutters {
  padding: 2px 0 2px 0;
}

.ChatList .MuiTypography-body1 {
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.ChatList .MuiTypography-body1 > div {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
}

.ChatList .System .MuiTypography-body1 {
  margin-left: 1em;
}

.ChatList .MuiTypography-body2 {
  font-size: 0.7rem;
}

.ChatList .MuiListItemText-multiline {
  margin-top: 0;
  margin-bottom: 0;
  padding: 4px 0px 4px 4px;
}

.ChatList .PlayerColor {
  width: 1em;
  height: 1em;
  padding: 0;
  margin-top: 6px;
  align-self: flex-start;
}

.ChatList .Resource {
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  height: 1.5rem;
  width: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  pointer-events: none;
  margin: 0 0.125rem;
  background-size: 130%;
  border: 2px solid #444;
  border-radius: 2px;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  top: -0.25rem;
}

.ChatList .Resource > div {
  position: absolute;
  top: -0.625rem;
  right: -0.625rem;
  border-radius: 50%;
  border: 1px solid white;
  background-color: rgb(36, 148, 46);
  font-size: 0.75rem;
  width: 1rem;
  height: 1rem;
  text-align: center;
  line-height: 1rem;
}

.ChatList .Dice {
  margin-left: 0.25em;
}