// ============================================================
// Chat, dice, roll dialogs, buttons
// ============================================================

.chat-message-header {
  background: rgba(220, 220, 210, 0.5);
  font-size: 1.1rem;
  height: 48px;
  text-align: center;
  vertical-align: middle;
  display: flex;
  align-items: center;
}

.message-chat-center {
  text-align: center;
}

.welcome-message-h3 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: darkred;
}

.chat-message {
  background: rgba(220, 220, 210, 0.5);
  font-size: 0.9rem;

  &.whisper {
    background: rgba(220, 220, 210, 0.75);
    border: 2px solid #545469;
  }

  .message-header {
    .flavor-text,
    .whisper-to {
      font-size: 0.9rem;
    }
  }

  .chat-icon {
    border: 0;
    padding: 2px 6px 2px 2px;
    float: left;
    width: 64px;
    height: 64px;
  }
}

.chat-result-text,
.chat-actor-name {
  font-weight: bold;
  font-family: @font-primary;
  font-size: 1.2rem;
  padding: 4px;
}

.chat-result-success { color: darkgreen; }
.chat-result-failure { color: darkred; }

.chat-img {
  width: 64px;
  height: 64px;
}

// Roll dialog
.roll-dialog-header {
  height: 52px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.roll-dialog-actor-title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecryme-roll-dialog,
.ecryme-confront-start-dialog,
.ecryme-confrontation-dialog {
  .window-header { border-radius: 10px 10px 0% 0%; }
  .window-content { border-radius: 0% 0% 10px 10px; }

  .sheet-footer {
    margin-top: 8px;
    padding: 4px 0;
    border-top: 1px solid var(--color-border-light-tertiary, #999);
    gap: 6px;
    button {
      flex: 1;
    }
  }
}

.ecryme-confront-start-dialog {
  .sheet-footer {
    gap: 4px;
    button { font-size: 0.85rem; }
  }
}

.skill-roll-dialog div {
  margin-top: 4px;
  margin-bottom: 4px;
}

// Actor icon in chat
.actor-icon {
  float: left;
  width: 48px;
  height: 48px;
  padding: 2px 6px 2px 2px;
}

// Dice
.padding-dice {
  padding-top: .2rem;
  padding-bottom: .2rem;
}

.dice-image {
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  max-width: 100%;
}

.dice-image-reroll {
  background-color: rgba(115, 224, 115, 0.25);
  border-color: #011d33;
  box-sizing: border-box;
  border: 1px;
  border-radius: 0%;
  max-width: 100%;
}

.chat-dice {
  width: 15%;
  height: 15%;
  font-size: 15px;
  padding: 10px;
  padding-top: .2rem;
  padding-bottom: .2rem;
}

.div-center { align-self: center; }

.ability-icon {
  border: 0;
  padding: 2px;
  max-width: 32px;
  max-height: 32px;
  width: auto;
  height: auto;
}

.small-ability-icon {
  border: 0;
  padding: 2px;
  max-width: 16px;
  max-height: 16px;
  width: auto;
  height: auto;
}

.combat-icon {
  border: 0;
  padding: 2px;
  max-width: 24px;
  max-height: 24px;
  width: auto;
  height: auto;
}

// Dice cell / formula / total
.dice-cell {
  padding-left: 12px;
  padding-right: 12px;
  width: 60px;
  text-align: center;
}

.dice-formula,
.dice-total {
  height: 54px;
  position: relative;
}

// Buttons
.chat-card-button {
  box-shadow: inset 0px 1px 0px 0px #a6827e;
  background: linear-gradient(to bottom, rgba(33, 55, 74, 0.98824) 5%, rgba(21, 40, 51, 0.67059) 100%);
  background-color: rgba(125, 93, 59, 0);
  border-radius: 3px;
  border: 2px ridge #846109;
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.8rem;
  padding: 4px 12px 0px 12px;
  text-decoration: none;
  text-shadow: 0px 1px 0px #4d3534;
  position: relative;
  margin: 2px;

  &:hover {
    background: linear-gradient(to bottom, #800000 5%, #3e0101 100%);
    background-color: red;
  }

  &:active {
    position: relative;
    top: 1px;
  }
}

.plus-minus-button {
  box-shadow: inset 0px 1px 0px 0px #a6827e;
  background: linear-gradient(to bottom, rgba(33, 55, 74, 0.98824) 5%, rgba(21, 40, 51, 0.67059) 100%);
  background-color: rgba(125, 93, 59, 0);
  border-radius: 2px;
  border: 1px ridge #846109;
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  padding: 2px;
  text-decoration: none;
  text-shadow: 0px 1px 0px #4d3534;
  position: relative;
  margin: 0px;

  &:hover {
    background: linear-gradient(to bottom, #800000 5%, #3e0101 100%);
    background-color: red;
  }

  &:active {
    position: relative;
    top: 1px;
  }
}

.plus-minus {
  font-size: 0.9rem;
  font-weight: bold;
}
