*,
::after,
::before {
  margin: 0 auto;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  width: 100%;
  font-family: "Inter", "sans-serif";
  font-weight: lighter;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background: -webkit-gradient(linear, left top, right top, from(rgb(48, 95, 166)), color-stop(50%, rgb(111, 106, 171)), to(rgb(184, 95, 95)));
  background: linear-gradient(90deg, rgb(48, 95, 166) 0%, rgb(111, 106, 171) 50%, rgb(184, 95, 95) 100%);
}

button {
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: white;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

a:hover {
  color: rgb(193, 193, 193);
}

.calculator {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  max-width: 232px;
  height: 100vh;
  color: white;
}
.calculator__title {
  font-weight: lighter;
  font-size: 35px;
}
.calculator__text {
  font-size: 10px;
  margin-top: 20px;
}
.calculator__answer-table {
  background-color: #202020;
  padding: 30px 20px 8px;
  width: 100%;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  -webkit-box-shadow: 0 0 20px black;
          box-shadow: 0 0 20px black;
}
.calculator__answer-table-input {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: end;
  font-size: 44px;
  overflow: hidden;
}
.calculator__numbers {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 58px 0 58px 0 58px 0 58px;
  grid-template-columns: repeat(4, 58px);
  gap: 0;
  background-color: #777677;
  text-align: center;
  border-radius: 0px 0px 6px 6px;
  -webkit-box-shadow: 0 0 20px black;
          box-shadow: 0 0 20px black;
}
.calculator__container-btn {
  border: 1px solid #202020;
  width: 58px;
  height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.calculator .btn {
  background-color: #777677;
  color: white;
  font-size: 18px;
  width: 100%;
  height: 100%;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.calculator .btn:hover, .calculator__container-btn:hover {
  background-color: #575757;
}
.calculator__container-btn:hover {
  border: 1px solid #0d0d0d;
}
.calculator__container-btn:active {
  border: 1px solid #000000;
}
.calculator .btn:active, .calculator__container-btn:active {
  background-color: #323232;
}
.calculator .btn.orange:hover, .calculator__container-btn.orange:hover {
  background-color: #cc8315;
}
.calculator .btn.orange:active, .calculator__container-btn.orange:active {
  background-color: #ab6d11;
}
.calculator__container-btn.orange:hover {
  border: 1px solid #0d0d0d;
}
.calculator__container-btn.orange:active {
  border: 1px solid #000000;
}
.calculator__container-btn:nth-child(17) {
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-column: 1/span 2;
  border-bottom-left-radius: 6px;
  width: 100%;
}
.calculator__container-btn:nth-child(19) {
  border-bottom-right-radius: 6px;
}
.calculator__container-btn .orange {
  background-color: #FF9F0A;
  font-size: 32px;
}

.back {
  margin: 20px;
}

.orange {
  background-color: #FF9F0A;
}