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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #2212b6, #ffe5b4);
}

.container {
  max-width: 300px;
  width: 100%;
  background-color: rgba(51, 51, 51, 0.8);
  backdrop-filter: blur(10px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.calculator {
  width: 100%;
}

.calculator .display {
  padding: 20px;
  background: transparent;
}

.calculator .display input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 2.5em;
  text-align: right;
  color: white;
}

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

.calculator .buttons input {
  border: none;
  outline: none;
  width: 100%;
  height: 60px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.5em;
  color: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.calculator .buttons input:hover {
  background: rgba(255, 255, 255, 0.3);
}

.calculator .buttons input:active {
  transform: scale(0.97);
}

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

.calculator .buttons .operator:hover {
  background: #ffa726;
}

.calculator .buttons .function {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.calculator .buttons .function:hover {
  background: rgba(255, 255, 255, 0.45);
}

.calculator .buttons input[value="%"] {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.calculator .buttons input[value="%"]:hover {
  background: rgba(255, 255, 255, 0.45);
}
