.RoomView {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 0;
  flex-direction: row;
  background-image: url("./assets/tabletop.png");
}

.RoomView .Dialogs {
  z-index: 10000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.RoomView .Dialogs .Dialog {
  display: flex;
  position: absolute;
  flex-shrink: 1;
  flex-direction: column;
  padding: 0.25rem;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  justify-content: space-around;
  align-items: center;
  z-index: 60000;
}

.RoomView .Dialogs .Dialog > div {
  display: flex;
  padding: 1rem;
  flex-direction: column;
}

.RoomView .Dialogs .Dialog > div > div:first-child {
  padding: 1rem;
}

.RoomView .Dialogs .TurnNoticeDialog {
  background-color: #7a680060;
}

.RoomView .Dialogs .ErrorDialog {
  background-color: #40000060;
}

.RoomView .Dialogs .WarningDialog {
  background-color: #00000060;
}

.RoomView .Game {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.RoomView .Board {
  display: flex;
  position: relative;
  flex-grow: 1;
  z-index: 500;
}

.RoomView .PlayersStatus {
  z-index: 500; /* Under Hand */
}

.RoomView .PlayersStatus.ActivePlayer {
  z-index: 1500; /* On top of Hand */
}

.RoomView .Hand {
  display: flex;
  position: relative;
  height: 11rem;
  z-index: 10000;
}

.RoomView .Sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25rem;
  max-width: 25rem;
  z-index: 11500;
}

.RoomView .Sidebar .Chat {
  display: flex;
  position: relative;
  flex-grow: 1;
}

.RoomView .Trade {
  display: flex;
  position: relative;
  z-index: 25000;
  align-self: center;
}

.RoomView .Dialogs {
  position: absolute;
  display: flex;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  justify-content: space-around;
  align-items: center;
  z-index: 20000;
  pointer-events: none;
}

.RoomView .Dialogs > * {
  pointer-events: all;
}

.RoomView .ViewCard {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.RoomView .Winner {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}


.RoomView .HouseRules {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.RoomView .ChooseCard {
  display: flex;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.RoomView button {
  margin: 0.25rem;
  background-color: white;
  border: 1px solid black;  /* why !important */
}

.RoomView .MuiButton-text {
  padding: 0.25rem 0.55rem;
}

.RoomView button:disabled {
  opacity: 0.5;
  border: 1px solid #ccc; /* why !important */
}

.RoomView .ActivitiesBox {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 1em;
  top: 1em;
}

.RoomView .DiceRoll {
  display: flex;
  flex-direction: column;
  position: relative;
  /*
  left: 1rem;
  top: 5rem;*/
  flex-wrap: wrap;
  justify-content: left;
  align-items: left;
  z-index: 1000;
}

.RoomView .DiceRoll div:not(:last-child) {
  border: 1px solid black;
  background-color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.RoomView .DiceRoll div:last-child {
  display: flex;
  flex-direction: row;
}

.RoomView .DiceRoll .Dice {
  margin: 0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
}