* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

li {
  list-style: none;
}

:root {
  --memoryBtn: #000;
}

.calculatorContainer {
  max-width: 400px;
  width: 100%;
  padding: 3rem 2rem;
  height: auto;
  background: #001127;
  border-radius: 2rem;
}

.display {
  background: #001127;
  padding: 1rem;
  border: 3px solid #ccc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  height: 15rem;
  text-align: right;
  border-radius: 1rem;
}

.indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  font-size: 0.85rem;
  color: #c7c7c7;
}

.indicator {
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 4px;
  border: none;
}

.indicator.active {
  color: rgb(255, 255, 255);
  font-weight: bold;
}

#historyList {
  font-size: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #c5c5c5;
}

.previous {
  font-size: 0.9rem;
  color: #888;
  height: 1rem;
}

.current {
  font-size: 2rem;
  font-weight: bold;
  min-height: 2.5rem;
  color: #c3c3c3;
}

.keypad {
  display: grid;
  grid-template-areas: "memoryBtn cleanBtn" "buttonFirst buttonFirst" "numbersBtn operationsBtn";
  grid-template-columns: 3fr 2fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.memoryBtn {
  grid-area: memoryBtn;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.cleanBtn {
  grid-area: cleanBtn;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.buttonFirst {
  grid-area: buttonFirst;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.numbersBtn {
  grid-area: numbersBtn;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.numbersBtn button {
  background: #4a4a4a;
  color: #e0e0e0;
}
.numbersBtn button:hover {
  background: #6c6c6c;
}

.operationsBtn {
  grid-area: operationsBtn;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.button {
  width: 3.8rem;
  padding: 0.8rem;
  background: #e0e0e0;
  border: none;
  border-radius: 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 0 0.3rem #000000;
}

.button:hover {
  background: #ababab;
}

.button.plus {
  grid-row: span 2;
  background-color: #ffc107;
}