@font-face {
  font-family: "AudioWide";
  font-weight: 400;
  src: url("../assets/fonts/audiowide-v16-latin-regular.woff2") format("woff2");
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  background-image: url(../img/background.jpg);
  background-size: cover;
  font-family: "Rye", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#calculator-container {
  box-sizing: border-box;
  gap: 2em;
  box-shadow: inset 0em 0em 6em #ff0000;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3em 3em;
  border: 0.1em solid black;
  border-radius: 3em;
  background-color: black;
  width: 32em;
  height: 48em;
}

#screen-container {
  box-shadow: 0em 0em 10em #ff0000;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border: 0.01em white solid;
  border-radius: 0.5em;
  color: #eb1362;
  text-shadow: -1px 0 #eb1362, 0 1px #eb1362, 1px 0 #eb1362, 0 -1px #eb1362;
  height: 10rem;
  width: 26rem;
  font-size: 4em;
  overflow: hidden;
}

#screen-output {
  margin: 0.3em;
  height: 6rem;
}

#screen-tmp {
  font-size: 0.5em;
  margin: 0.2em 0.6em;
  height: 4rem;
}

#screen-output,
#screen-tmp {
  overflow: hidden;
  text-overflow: ellipsis;
}

#button-container {
  display: flex;
  align-items: center;
  gap: 2em;
}

.button-column {
  display: flex;
  gap: 1em;
  flex-direction: column;
  width: calc(100% / 4);
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Audiowide", sans-serif;
  color: white;
  width: 5rem;
  height: 5rem;
  font-size: 2.7rem;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  border: 0.01em white solid;
  border-radius: 1rem;
  background-color: #a12222;
  transition-duration: 0.2s;
  cursor: pointer;
}

@media (max-width: 40em) {
  #calculator-container {
    width: 16em;
    height: 28em;
    gap: 1em;
  }

  #screen-container {
    height: 5rem;
    width: 12.2rem;
    font-size: 2em;
  }

  #screen-output {
    margin: 0.3em;
    height: 2.5rem;
  }

  #screen-tmp {
    font-size: 0.5em;
    height: 2rem;
  }

  .button {
    height: 3rem;
    width: 3rem;
    font-size: 1.5rem;
  }
  .button-column {
    gap: 0.2em;
  }
  #button-container {
    gap: 0.4em;
  }
}

button:hover {
  box-shadow: 0 0 1em #ff0000;
  transform: scale(1.1);
  border-color: gold;
}

#sound-button {
  margin: 1em 0em 0em 1em;
  height: clamp(3em, 3vw, 5em);
  width: clamp(3em, 3vw, 5em);

  padding: 0;
  cursor: pointer;
  align-self: flex-start;
  justify-content: center;
}
