@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #141e30, #244e55);
}

h1{
  color: white;
  margin-bottom: 20px;
}

.container {
  position: relative;
  max-width: 320px;
  width: 100%;
  border-radius: 12px;
  padding: 15px 20px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.display {
  height: 50px;
  width: 100%;
  outline: none;
  border: none;
  text-align: right;
  margin-bottom: 15px;
  font-size: 30px;
  color: #ffffff;
  background: transparent;
  padding-right: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.buttons {
  display: grid;
  grid-gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.buttons button {
  padding: 15px;
  border-radius: 8px;
  border: none;
  font-size: 22px;
  cursor: pointer;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.buttons button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.buttons button:active {
  transform: scale(0.96);
}

.operators {
  color: #ff9f43;
  font-weight: bold;
}

button[data-value="AC"],
button[data-value="DEL"] {
  background: rgba(255, 69, 69, 0.7);
}

button[data-value="AC"]:hover,
button[data-value="DEL"]:hover {
  background: rgba(255, 69, 69, 0.9);
}

button[data-value="="] {
  background: #28a745;
  font-weight: bold;
}

button[data-value="="]:hover {
  background: #218838;
}

button[data-value="0"],
button[data-value="00"] {
  grid-column: span 2;
}
