@font-face {
  font-family: 'digital-7regular';
  src: url('fonts/digital-7-webfont.woff2') format('woff2'),
       url('fonts/digital-7-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

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

.disable-zoom {
  touch-action: manipulation;
}

html {
  font-size: 62.5%;
}

html, body {
  font-family: sans-serif;
  font-weight: bold;
  height: 100%;
  overflow: hidden;
}

body {
  background: #1d1240;
  background-image: linear-gradient(to bottom, #110c30 10%, #150e3d 60%), 
  repeating-linear-gradient(0deg, #444cf7, #444cf7 1px, #000000 1px, #000000);
  background-size: 7px 7px;
}

a {
  color: #4648a9;
}

#outer-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100vh;
  /* justify-content: center; */
  margin-top: 8rem;
}

h1 {
  background: #180f2d;
  background-image: linear-gradient(to bottom, #2c1637 10%, #180f2d 60%);
  border-color: #0c0716;
  border-radius: 3px 3px 0 0;
  border-style: solid;
  border-width: 4px 4px 0;
  left: 0;
  margin: -4px;
  padding: 1rem 1.2rem 0;
  position: absolute;
  top: -4rem;
}

#inner-wrapper {
  background: #4648a9;
  border: 2px solid #686abd;
  border-radius: 3px;
  padding: .5rem;
}

#main {
  background: #180f2d;
  border: 4px solid #0c0716;
  border-radius: 0 0 3px 3px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1rem 1rem;
  position: relative;
}

#row1 {
  margin-bottom: 1rem;
  position: relative;
}

.operator {
  color: #00efea;
  font-size: 2rem;
  left: 5px;
  line-height: 1;
  padding: 0.5rem;
  position: absolute;
  top: 0;
}

.display {
  background: #0d081a;
  border: 2px solid #322c59;
  color: #00efea;
  font-family: 'digital-7regular', sans-serif;
  font-size: 5.8rem;
  line-height: 1;
  padding: 3px 10px;
  text-align: right;
  width: 100%;
}

.display.egg {
  text-align: center;
}

button {
  background: #23173d;
  border: 2px solid #4d416b;
  border-radius: 5px;
  color: #00efea;
  cursor: pointer;
  font-family: 'Nunito Sans',sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  min-height: 6rem;
  min-width: 6rem;
  transition: border-color 300ms ease-out;
  width: 25%;
  white-space: nowrap;
}

button.all-clear, button.clear, button.posneg, button.percentage {
  font-size: 2.5rem;
}

button:active, button.active, button.equals:active {
  background-color:#33225f;
}

button:hover {
  border-color: #9b8cc5;
}

button.op {
  background: #1b2649;
  border-color: #5e72b3;
  border-radius: 100%;
}

button.op:hover {
  border-color: #00efea;
}

button.op:active, button.op.active {
  background:#283663;
}

.row {
  display: flex;
  gap: 1rem;
}

#row6 button:last-child {
  width: 37.5%;
}

#row6 button:first-child {
  width: 37.5%;
}

.small {
  color: #484281;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  margin-top: 10px;
  padding-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
}