.calculator {
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  width: 200px;
  text-align: center;
  justify-content: center;
  align-content: center;
}

.calc-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70%;
}

.display {
  background: #ddd;
  color: black;
  font-size: 1.5rem;
  padding: 10px;
  border-radius: 3px;
  text-align: right;
  margin-bottom: 10px;
  min-height: 30px;
  overflow: auto;
}

.calc_keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 5px;
}
button {
  background: #e0e0e0;
  color: black;
  font-size: 1.2rem;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
}

.key_operator,
.equals {
  background: #d0d0d0;
}

.key_operator:nth-child(-n+4) {
  grid-row: 1; /* Place the first 4 operator buttons on the top row */
}

#zero {
  grid-row-start: 5;
  grid-column-start: 2
}

.backspace {
  grid-row-start: 5;
  grid-column-start: 3;
}

.decimal {
  grid-row-start: 5;
  grid-column-start: 1;
}

.clear {
  background: #f8d7da;
  grid-row-start: 2;  
  grid-column-end: 5;
}

.equals {
  grid-row-start: 3;
  grid-column-start: 4;
  grid-row-end: 6;
}

