*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Space Mono", monospace;
  user-select: none;
}
body {
  padding: 0px;
  margin: 0px;
}
.container {
  background-color: #f5f5dc;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.calculatorDiv {
  height: 95vh;
  width: 21%;
  border: 2px solid black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  padding: 5vh 0;
  box-sizing: border-box;
  border-radius: 4px;
}
.neocalculator {
  height: 9vh;
  width: 90%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0.8vh 0.8vh #f44336;
  border-radius: 4px;
}
h2 {
  color: white;
  font-size: 18px;
  margin: 0;
}
.screen {
  height: 15vh;
  width: 90%;
  background-color: white;
  border: 4px solid black;
  box-shadow: 0.8vh 0.8vh #2196f3;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-direction: column;
  padding: 10px;
}
.operand {
  display: block;
  order: 2;
  font-weight: bold;
  font-size: 30px;
  margin: 0px;
  width: 100%;
  /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;*/
  text-align: right;
}
.equation {
  display: block;
  margin: 0px;
  color: gray;
  font-size: 16px;
}

.buttons {
  height: auto;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  margin: 15px 0 10px 0;
  row-gap: 22px;
}
.btn {
  border: 3px solid black;
  flex: 0 0 23%;
  /* height: 18%; */
  aspect-ratio: 1.2;
  box-shadow: 4px 4px gray;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.btn-equal {
  flex: 0 0 calc(46% + 8px);
  aspect-ratio: 2.6;
}
.btn p {
  margin: 0px;
}
.btn:hover {
  filter: brightness(0.9) grayscale(0.1);
}
.btn:active {
  filter: brightness(0.75);
  transform: translateY(4px) translateX(4px);
  box-shadow: 0px 0px;
}
.yellow {
  background-color: #ffeb3b;
  box-shadow: 4px 4px #ff9800;
}
.red {
  background-color: #f44336;
  box-shadow: 4px 4px #e91e63;
  color: white;
}
