@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,900;1,400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f6f6f6;
  padding-top: 4rem;
  padding-bottom: 2rem;
  font-family: Roboto;
}

.calculator {
  max-width: 350px;
  margin: 0 auto;
  border: 2px solid #006dcd69;
  border-radius: 15px;
  background-image: radial-gradient(circle, #006fcd, #008edd, #00a9de, #00c1d3, #00d7c3);
  -webkit-box-shadow: 0px 0px 16px -1px rgba(0,57,107,0.58); 
box-shadow: 0px 0px 16px -1px rgba(0,57,107,0.58);
}

.currentNumDisplay {
  background: none;
  border: none;
  box-shadow: none;
  width: 100%;
  height: 44.53px;
  border-bottom: 2px solid #ffffff69;
  padding-right: 1.3rem;
  text-align: right;
  font-size: 2.25rem;
  color: rgba(0, 0, 0, 0.676);
}
.previousNumDisplay {
  width: 100%;
  height: 23.8px;
  text-align: right;
  font-size: 1.2rem;
  padding-right: 1.6rem;
  padding-top: .45rem;
  color: rgba(0, 0, 0, 0.595);
}

.button-wrapper {
  padding: 1.25rem;
  display: grid;
  grid-template: repeat(5, 1fr) / repeat(4, 1fr);
  grid-gap: .5rem;
}

.calc-button {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #006dcd69;
  padding: 1.25rem;
  border-radius: 5px;
  font-size: 1.25rem;
  cursor: pointer;
  color: black;
}
.calc-button:hover {
  background: #ffffff94;
}
.calc-button:active {
  background: #ffffffac;
}

.clear-button {
  grid-column: span 2;
}
.zero-button {
  grid-column: 1/3;
}

.decimal-button, .clear-button, .delete-button, .operator-button, .equals-button {
  background: #89fff38e;
}

.decimal-button:hover , .clear-button:hover , .delete-button:hover , .operator-button:hover , .equals-button:hover {
  background: #89fff3a7;
}

.decimal-button:active , .clear-button:active , .delete-button:active , .operator-button:active , .equals-button:active {
  background: #95fff4c5;
}

/* Attribution */

.attribution {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.2rem;
}

p {
  font-size: 1.5rem;
  padding: .45rem;
  color: #00aade5d;
  border-radius: 6px;
  font-weight: 500;
}

.flip {
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  margin-left: .25rem;
}
.flip:hover{
  animation: flip 1s linear;
  animation-iteration-count: infinite;
  transform: scaleX(-1) scale(1.3);
  margin-left: .25rem;
}