html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  background-color: rgb(90, 90, 90);
}

.bodyOfCalculator {
  width: 60%;
  min-width: 260px;
  max-width: 320px;
  height: 90%;
  max-height: 500px;
  min-height: 350px;
  border: 1px solid rgb(138, 84, 84);
  border-radius: 15px;

  margin-top: 5rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  background-color: rgb(10, 2, 61);

  box-shadow: 6px 6px 20px;
}

.screenContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
}
.screen {
  width: 80%;
  height: 3rem;
  scale: 0;
  position: relative;
  background-color: rgb(44, 63, 104);
  margin-top: 1rem;

  border-radius: 15px;

  color: rgb(255, 255, 255);
  font-size: 1.5rem;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 10px 0 5px;

  transition: 0.4s;
}

.turnMeOn {
  color: rgb(147, 146, 146);
  margin-top: -30px;
  -webkit-animation: turnMeOn 1s both;
  animation: turnMeOn 1s both;
}

@-webkit-keyframes turnMeOn {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}

@keyframes turnMeOn {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}

.buttonsContainer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin-top: 80px;
  -moz-column-gap: 0.5rem;
  column-gap: 0.5rem;
  row-gap: 1rem;
}

.btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  margin-left: 25px;

  border: 1px solid;
  width: clamp(1.9rem, 1.5vw, 2.2rem);
  height: clamp(1.9rem, 1.5vw, 2.2rem);
  text-align: center;

  border-radius: 50%;
}

.btn:hover {
  cursor: pointer;
}

.numberBtn {
  color: rgb(15, 224, 64);
  transition: 0.4s;
  opacity: 0.3;
}

.functionBtn,
.decimalBtn {
  color: orange;
  transition: 0.4s;
  opacity: 0.3;
}

.numberBtn:hover {
  color: rgb(5, 112, 44);
  background-color: rgb(169, 169, 169);
}

.functionBtn:hover,
.decimalBtn:hover {
  color: rgb(155, 7, 7);
  background-color: rgb(169, 169, 169);
}

.switchBtn {
  width: 2.8rem;
  color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 25px;
}

.onBtn {
  background-color: rgb(0, 128, 0);
}

.offBtn {
  background-color: rgb(255, 0, 0);
  display: none;
}

.equal {
  background-color: rgb(0, 128, 0);
  color: rgb(245, 245, 245);
  font-size: 32px;
}

.brandSign {
  color: rgb(169, 169, 169);
  margin-top: 30px;
  font-size: clamp(8px, 1vw, 12px);
}
