:root {
  --shadow: 2px 2px 30px rgba(0, 4, 255, 0.153);
}

body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.Calculator {
  border: none;
  border-radius: 16px;
}

#body {
  margin-top: 20px;
  width: 350px;
  height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.348);
  box-shadow: var(--shadow);
}

#display {
  width: 320px;
  height: 100px;
  /* background-color:rgba(255, 235, 205, 0.271); */
  text-align: center;
  box-sizing: border-box;
  padding-top: 34px;
  display: flex;
  justify-content: end;
  align-items: end;
  overflow-wrap: break-word;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 20px;
}
#buttons {
  margin-top: 20px;
  width: 340px;
  height: 450px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  row-gap: 15px;
}

.button {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-weight: lighter;
  font-size: xx-large;
  text-align: center;
  background-color: rgb(255, 255, 255);
  margin: 0px;
  font-family: "Pacifico", cursive;
  box-shadow: var(--shadow);
  display: grid;
  place-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color:transparent;
}

.button:nth-of-type(3n-2) {
  margin-left: 30px;
}
.button:nth-of-type(3n) {
  margin-right: 30px;
}

.button:last-child {
  grid-area: 6/2/7/3;
  margin: 0;
}

.button::before {
  content: "";
}

.button:active::before,.button:hover::before {
  content: "";
  width: 100px;
  height: 100px;
  background-color: rgba(0, 0, 255, 0.105);
  overflow: hidden;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  transition: background-color 500ms ease-in-out, width 1000ms ease-in-out;
}

*:focus {
  outline: 0;
  outline: none;
}

#numbers {
  padding-right: 19px;
  padding-bottom: 5px;
  font-family: "Pacifico", cursive;
  font-size: xx-large;
}

/* *{
    border: 2px dashed;
} */

header {
  margin-top: 20px;
  font-weight: bolder;
  height: 40px;
  width: 100vw;
  text-align: center;
  font-size: 2rem;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  text-shadow: 0px 1px 10px rgba(0, 0, 255, 0.247);
}

footer {
  margin-top: auto;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
}

::selection {
  background: rgba(255, 255, 0, 0);
}
