body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  box-sizing: border-box;
  min-height: 600px;
  height: 100vh;
  margin: 0;
  background-color: lightblue;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  touch-action: pan-x pan-y;
}

.calculator {
  background-color: black;
  border-radius: 20px;
  padding: 20px;
  width: 300px;
}

.output {
  display: flex;
  flex-direction: column;
  text-align: end;
  align-items: flex-end;
  justify-content: space-around;
  min-height: 150px;
  word-wrap: break-word;
  word-break: break-all;
  margin: 10px;
  background-color: rgb(1, 103, 135);
  color: white;
  border-radius: 10px;
  padding-right: 24px;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

.output .previous-operant {
  font-size: 1.5rem;
}

.output .current-operant {
  font-size: 2.5rem;
}

.first-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}

.mid-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.last-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
}

button {
  padding: 10px;
  margin: 10px;
  font-size: 2rem;
  border: none;
  width: auto;
  border-radius: 50%;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  cursor: pointer;
}

button.number {
  background-color: rgb(79, 79, 79);
  color: white;
}

button.operator {
  background-color: darkorange;
  color: black;
}

button.equal {
  background-color: darkgray;
  color: white;
}

button.two-fr {
  border-radius: 50px;
}

button.number:hover {
  background-color: lightgray;
  color: black;
}

button.number:hover {
  background-color: lightgray;
  color: black;
}

button.operator:hover {
  background-color: rgb(255, 182, 81);
  color: black;
}

button.all-clear,
button.clear {
  color: black;
}

button.all-clear:hover,
button.clear:hover {
  background-color: rgb(182, 182, 182);
}

button.equal:hover {
  background-color: rgb(62, 62, 62);
}

button:active {
  transform: translateY(2px);
  background-color: rgb(62, 62, 62);
}
