@font-face {
  font-family: calculator;
  src: url(fonts/DSEG14Classic-Regular.ttf);
}

@font-face{
  font-family: led-calculator;
  src: url(fonts/LEDCalculator.ttf);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100vh;
}

body {
  margin: 0;
  background-color: gray;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.calculator {
  background-color: rgba(40, 40, 100, 1);
  padding: 1em;
  border-radius: 5px;
  box-shadow: 10px 0px 0px rgba(20, 20, 50, 1), 0px 0px 50px rgba(20, 20, 50, 1);
  width: 380px;
}

.logo{
  color: rgba(170, 106, 123, 1);
  font-family: monospace;
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  text-align: center;
  margin-bottom: 16px;
  text-shadow: 0 0 5px black;
  user-select: none;
}

.logo > span{
  color: white;
}

.visor {
  background-color: rgba(170, 184, 127, 1);
  border-radius: 5px;
  padding: 0.2em 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-family: calculator, arial;
  box-shadow: 0 -3px 0 rgba(100, 114, 57, 1);
  user-select: none;
}

.result {
  font-size: 3rem;
  width: 100%;
  height: 52px;
  display: flex;
  justify-content: flex-end;
  margin: 0.05em;
}

.background {
  color: rgba(0, 0, 0, 0.04);
  position: absolute;
  width: 100%;
  overflow: hidden;
  text-align: end;
}

.front {
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.7);
  color: rgba(0, 0, 0, 1);
}

.calc {
  width: 100%;
  font-size: 1.7rem;
  height: 26px;
  margin: 0.1em;
  overflow: hidden;
  font-family: led-calculator;
}

.calc > .front {
  text-shadow: 0.5px 1px 2px rgba(0, 0, 0, 0.7);
  padding-left: 2px;
}

.calc,
.result {
  position: relative;
}

.keys {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 64px 64px 64px 64px;
  gap: 10px;
  font-family: arial;
  width: 100%;
}

.key {
  background-color: white;
  font-size: 1.6rem;
  padding: 0.08em;
  border-radius: 5px;
  box-shadow: 0 4px 0 rgba(100, 100, 100, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.keyActive {
  box-shadow: none;
  transform: translate(0px, 2px);
}

.red {
  background-color: rgba(170, 106, 123, 1);
  color: white;
  box-shadow: 0 4px 0 rgba(80, 26, 33, 1);
}

.orange {
  background-color: rgba(241, 196, 15, 1);
  color: white;
  box-shadow: 0 4px 0 rgba(131, 86, 0, 1);
}

.hidden{
  display: none;
}
