/* --- Global Styles: Box sizing and font settings --- */
*, *::before, *::after {
  box-sizing: border-box;
  font-family: Gotham Rounded, sans-serif;
  font-weight: normal;
}

/* --- Body Styles: Remove default margin/padding and set background gradient --- */
body {
  padding: 0;
  margin: 0;
  background: linear-gradient(to right, #00AAFF, #00FF6C);
}

/* --- Calculator Grid Layout: Center calculator and define grid structure --- */
.calculator-grid {
  display: grid;
  justify-content: center;
  align-content: center;
  min-height: 100vh;
  grid-template-columns: repeat(4, 100px);
  grid-template-rows: minmax(120px, auto) repeat(5, 100px);
}

/* --- Button Styles: Appearance and hover effect for calculator buttons --- */
.calculator-grid > button {
  cursor: pointer;
  font-size: 2rem;
  border: 1px solid white;
  outline: none;
  background-color: rgba(255, 255, 255, .75);
}

.calculator-grid > button:hover {
  background-color: rgba(255, 255, 255, .9);
}

/* --- Utility Class: Span button across two columns --- */
.span-two {
  grid-column: span 2;
}

/* --- Output Display Styles: Style for calculator display area --- */
.output {
  grid-column: 1 / -1;
  background-color: rgba(0, 0, 0, .75);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  flex-direction: column;
  padding: 10px;
  word-wrap: break-word;
  word-break: break-all;
}

/* --- Previous Operand Display: Style for previous operand text --- */
.output .previous-operand {
  color: rgba(255, 255, 255, .75);
  font-size: 1.5rem;
}

/* --- Current Operand Display: Style for current operand text --- */
.output .current-operand {
  color: white;
  font-size: 2.5rem;
}