/* ******* DICE ROLLER *********** */

#diceRoller {
  position: absolute;
  width: 300px;
  border: 1px dotted #666;
  z-index: -1;
  overflow: hidden;
  border-radius: 12px;
  max-width: 100%;
  aspect-ratio: 1/1;
}

#canvas {
  width: 100%;
  height: 100%;
}

/* ************* UI ************* */

#diceRollerUI {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1/1;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#diceLimit {
  text-align: center;
  color: red;
  background-color: #050505;
  padding: 0.5rem;
  font-size: 10pt;
  font-weight: bold;
}

.top_field {
  text-align: center;
  width: 100%;
  background-color: rgba(150, 150, 150, 0.1);
}

#textInput {
  text-align: center;
  border: none;
  color: rgba(0, 0, 0, 0.8);
  background-color: rgba(199, 199, 199, 0.7);
  width: 100%;
  text-overflow: ellipsis;
  padding: 0.2em;
  text-decoration: none;
}

#textInput:focus {
  background-color: rgba(255, 255, 255, 0.7);
  outline: none;
}

.center_field {
  flex: 1;
  text-align: center;
  height: 100%;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center_field * {
  user-select: none;
}

#instructions {
  background: rgba(255, 255, 255, 0.8);
  width: 290px;
  border-radius: 4px;
  font-size: 0.8em;
}

#instructions p {
  color: #272727;
  background: none;
  margin: auto;
  top: 35%;
  padding: 1em;
}

#numPad {
  /* container */
  position: absolute;
  width: 200px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.numPad {
  /* table */
  width: 200px;
  margin: auto;
  padding-top: 15px;
  padding-bottom: 15px;
}

.numPad td {
  cursor: pointer;
}

#numPad button {
  padding: 0.5em;
  margin-top: 5px;
  width: 97px;
  border: none;
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
}

.bottom_field {
  position: absolute;
  bottom: 0;
  text-align: center;
  min-height: 3rem;
  background: rgba(0, 0, 0, 0.4);
  width: inherit;
  padding: 0px;
}

#result {
  position: relative;
  display: block;
  min-height: 1.5em;
  bottom: 5px;
  word-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5em;
  margin-left: 5px;
  margin-right: 5px;
}
