/* Copyright 2024 @miya7090 */

/* POWERBOX RULES */

#powerBox {
  position: relative;
  margin-top: 24px;
  margin-left: 5px;
  margin-right: 10px;
  height: 138px;
  background-color: var(--powerBox);
  box-shadow: inset 1px 1px 2px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Arrange children vertically not horizontally */
  flex-direction: column;
}

#powerBoxGameTurn {
  padding: 0px;
  z-index: 3;
  /* Centering */
  text-align: center;
  /* Width is parent's width */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column !important;

  height: 10px !important;
  margin: auto;
  margin-top: 13px !important;
  margin-bottom: 7px !important;
}

#gameTurn.p1Turn {
  color: var(--p1FontColor);
  font-size: 15px;
}

#gameTurn.p2Turn {
  color: var(--p2FontColor);
  font-size: 15px;
}

#powerBoxPlayerTurn {
  background-color: rgba(15, 14, 14, 0.8);
  border-radius: 10px;

  padding-top: 8px;
  padding-bottom: 9px;
  padding-left: 20px;
  padding-right: 20px;

  z-index: 3;
  /* Centering */
  text-align: center;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.5);

  /* Width is parent's width */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column !important;

  height: 20px !important;
  margin: auto;
  margin-top: 5px !important;
  margin-bottom: 3px !important;
}

#playerTurn {
  color: #ffffff;
  font-size: 20px;
}

#powerBoxButtons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row !important;
}

#mobilifier #powerBox {
  background-color: rgba(0, 0, 0, 0.451);
  border-top-left-radius: 15px;
  box-shadow: none;
  position: fixed;
  padding: 14px;
  padding-top: 18px;
  right: 45px;
  bottom: 33px;
  height: 8px;
  zoom: 1.5;
}

.button {
  -webkit-appearance: none;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.4); /* Green */
  color: white;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 16px;
}

.button:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: rgba(0, 0, 0, 1);
}

.button:disabled {
  cursor: default;
  background-color: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.1);
}

#playerHint {
  /* Place in top right corner of its parent, but do not affect other children of the parent */
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-family: Georgia;
  color: rgba(255, 255, 255, 0.5);
}

#playerHint:hover {
  color: rgba(255, 255, 255, 1);
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}
