@font-face {
  font-family: "DIGITAL";
  src: url(./digital-7\ \(mono\).ttf);
}

html {
  box-sizing: border-box;
  height: 100%;
}

body {
  align-items: center;
  background: #1d1d1d;
  display: flex;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-display: swap;
  height: inherit;
  justify-content: center;
  background-image: url(./background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.calculadora {
  border-radius: 10px;
  color: #000000;

  background: linear-gradient(#e7dfcd, rgb(209, 201, 181));
  border: 1px solid rgba(255, 255, 255, 0.34);
  width: 100%;
  max-width: 400px;
  height: auto;
  padding: 35px 20px 20px;
  box-shadow: 5px 5px 10px 5px rgba(0, 0, 0, 0.8);
}

.titulo {
  border: 1px solid;
  background-color: #dddddd;
  width: 6em;
  text-align: center;
  margin-bottom: 20px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 35px;
  color: #1a1a1a;
}

.resultado {
  border: 2px solid black;
  border-radius: 10px;
  font-size: 50px;
  font-family: "DIGITAL";
  color: rgb(7, 252, 178);
  overflow: auto;
  padding: 5px 15px;
  margin-bottom: 0.5em;
  text-align: right;
  letter-spacing: 0.1em;
  background: #0d1814;
  text-shadow:
    0 0 5px rgba(7, 252, 178, 0.8),
    0 0 10px rgba(7, 252, 178, 0.6),
    0 0 20px rgba(7, 252, 178, 0.4);
}

.botoes {
  background: #262727;
  border-radius: 10px;
  border: 1px solid;
  padding: 1em;
}

.linha-botao {
  display: flex;
  justify-content: space-between;
  margin: 5% 0;
}

.botao-calc {
  background: rgb(237, 222, 189);
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: #000000;
  flex-basis: 20%;
  font-family: inherit;
  font-size: 1.7em;
  height: 65px;
  box-shadow: 0px 0px 1px 3px rgba(0, 0, 0, 0.85);
  transition: all 0.01s ease-in-out;
}

.botao-calc:hover {
  background-color: rgba(237, 222, 189, 0.9);
}

.botao-calc:active {
  transform: scale(0.99);

  box-shadow: 0px 0px 1px 2px rgba(0, 0, 0, 0.85);
}

.botao-calc:last-child {
  color: #ffffff;
  background: #2b2c2d;
  font-size: 1.7em;
}

.botao-calc:last-child:hover {
  background-color: #242425;
  color: white;
}

.botao-calc.igual {
  background-color: rgb(49, 143, 202);
}

.botao-calc.igual:hover {
  background-color: rgba(49, 143, 202, 0.9);
}

.duplo {
  flex-basis: 47%;
}

.C {
  background-color: rgb(215, 40, 47);
}

.C:hover {
  background-color: rgba(215, 40, 47, 0.9);
}

.larr {
  background-color: rgb(240, 123, 44);
}

.larr:hover {
  background-color: rgba(240, 123, 44, 0.9);
}

@media (max-width: 480px) {
  .calculadora {
    padding: 15px;
    border-radius: 10px;
  }

  .titulo {
    font-size: 30px;
  }

  .resultado {
    font-size: 28px;
    padding: 15px;
  }

  .botao-calc {
    font-size: 25px;
    height: 55px;
  }

  .botao-calc:last-child {
    font-size: 30px;
  }
}
