body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('image.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}

.calculator {
  background-color: rgba(0, 0, 0, 0.6); /* Add a semi-transparent overlay */
  border-radius: 10px;
  width: 300px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-rows: repeat(5, auto); /* Rows for each button row */
  gap: 10px;
}

#displayInput {
  grid-row: span 1;
  width: 100%;
  border: none;
  background-color: #222;
  color: #fff;
  font-size: 24px;
  padding: 10px;
  border-radius: 5px;
  text-align: right;
  box-sizing: border-box;
  margin-bottom: 10px;
}

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

button {
  font-size: 24px;
  padding: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  background-color: #666;
  color: #fff;
  transition: background-color 0.2s ease-in-out;
}

button.operator {
  background-color: #f39c12;
  color: #333;
}

button.clear {
  background-color: #e74c3c;
  color: #fff;
}

button.calculate {
  background-color: #2ecc71;
  color: #333;
}

button:hover {
  background-color: #555; /* Darken button on hover */
}

@media screen and (max-width: 768px) {
  .calculator {
    width: 80%;
  }
}
