@font-face {
  font-family: "Digital-Numbers";
  src: url("fonts/Digital-Numbers.ttf.woff") format("woff"),
    url("fonts/Digital-Numbers.ttf.svg#Digital-Numbers") format("svg"),
    url("fonts/Digital-Numbers.ttf.eot"),
    url("fonts/Digital-Numbers.ttf.eot?#iefix") format("embedded-opentype");
  font-weight: normal;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-weight: normal;
  color: rgba(245, 245, 245, 1);
}

body {
  padding: 0;
  margin: 0;
  background: linear-gradient(to right, purple, teal);
}

.calculator-grid {
  margin: auto;
  background: rgba(233, 208, 117, 1);
  display: grid;
  justify-content: center;
  min-height: 80vh;
  max-height: 110vh;
  max-width: 420px;
  grid-template-columns: repeat(4, 100px);
  grid-template-rows: 15px minmax(140px, auto) repeat(5, 70px);
  border-radius: 1%;
}

.calculator-grid > button {
  cursor: pointer;
  font-size: 2rem;
  border: 6px solid rgba(21, 23, 12, 1);
  outline: none;
  margin: 6px;
}

.span-one {
  background-color: white;
  border-radius: 4%;
}

.span-two {
  grid-column: span 2;
  border-radius: 4%;
}

.num {
  background-color: rgba(41, 42, 36, 1);
}
.num:hover {
  background-color: grey;
}

.oper {
  background-color: rgba(190, 193, 147, 1);
  color: rgba(41, 42, 36, 1);
}
.oper:hover {
  background-color: grey;
}

.ac-btn {
  background-color: orange;
}

.ac-btn:hover {
  background-color: gold;
}

.del-btn {
  background-color: brown;
}

.del-btn:hover {
  background-color: red;
}

.output {
  border-radius: 1%;
  margin-top: 3px;
  border: 15px solid rgba(40, 40, 32, 1);
  grid-column: 1 / -1;
  background-color: rgba(136, 160, 90, 1);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  flex-direction: column;
  padding: 10px;
  word-wrap: break-word;
  word-break: break-all;
}

.output .previous-operand {
  color: rgba(21, 34, 42, 1);
  font-size: 1.5rem;
  font-family: "Digital-Numbers";
}

.output .current-operand {
  color: rgba(21, 34, 42, 1);
  font-size: 2.5rem;
  font-family: "Digital-Numbers";
}

.logo {
  margin-top: 0px;
  background-color: rgba(233, 208, 117, 1);
  color: black;
  font-family: "Faster One", cursive;
}
