
:root { /* adjusts everything */
  box-sizing: border-box;
  font-size: 150%;
  background-image: linear-gradient(40deg, #58c2ec9d, #ff9564be); /* sick way to make gradient background */
  background-position: center;
  background-attachment: fixed;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  font-family: Helvetica, "Book Antiqua", Palatino, serif;
  margin: 0;
}

.topBar {
  overflow: hidden;
  background-color: rgb(59, 59, 59);
}
.topBar a {
  float: left;
  font-size: 120%;
  text-align: center;
  padding: 25px 30px;
  text-decoration: none;
  color: rgb(248, 248, 248);
}
.topBar a:hover {
  background-color: rgb(250, 164, 154);
}

p {
  font-family:inherit;
  font-size: 100%;
  text-align: center;
}

h1 {
  font-family:inherit;
  font-size: 200%;
  text-align: center;
}
h2 {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 100%;
  text-align: left;
  padding: 2% 2%;
}

a{
  font-family: inherit;
  color: rgb(57, 77, 255);
  padding: 2% 2%;
}

button {
  border: 0;
  border-radius: 0;
  outline: none;
}

.calculator {
  background-color: #999;
  border-radius: 5px;
  /* border-radius makes rounded corners for the calculator */
  margin: auto;
  max-width: 16em;
  overflow: visible;
  font-family: inherit;
}

.calc_display {
  background-color: #e9e9e9;
  border: 0.04em solid #999;
  color: #000000;
  font-size: 1.1em;
  height: 3.2em;
  letter-spacing: 0.1em;
  padding: 0.2em 0.3em;
  /* padding with two values is padding: (top/bottom) (left/right) */
  text-align: right;
}

.calc_keys {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 2px;
  background-color: rgb(33, 33, 33);
  padding: 0.2em;
}

.calc_keys > * {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: inherit;
  font-family: inherit;
  padding: 0.8em 0em;
}

.calc_keys > *:active {
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.30);
}

.operator {
  background-color: rgba(76, 155, 245, 0.959);
}

.ans_key {
  background-color: rgb(255, 142, 108);
}

.equal_key {
  background-color: rgb(139, 243, 98);
  grid-column: 2 / 5;
  grid-row: 5;
}


