* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.calculator {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  width: 320px;
}

.display {
  background: black;
  color: #0f0;
  font-size: 2rem;
  padding: 15px;
  text-align: right;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

button {
  padding: 20px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  opacity: 0.85;
}

.operator {
  background: #ff9500;
  color: white;
}

.equal {
  background: #34c759;
  color: white;
  grid-column: span 2;
}

.clear {
  background: #ff3b30;
  color: white;
  grid-column: span 2;
}

.backspace {
  background: #555;
  color: white;
}
