:root {
  --font: sans-serif;
  --fontSize: 5rem;
}

body {
  text-align: center;
}

.grid,
.num,
.fontVar {
  display: inline-block;
  /*   border:1px solid #ccc; */
}

.grid {
  border: 1px solid #ccc;
  vertical-align: top;
  border-radius: 0.5rem;
}

.fontVar {
  font-family: var(--font);
  font-size: var(--fontSize);
  width: 400px;
  margin: 0 auto;
  text-align: center;
  width: 10rem;
  vertical-align: middle;
}

.num {
  background: #004444;
  height: 5rem;
  color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: monospace;
}

.nav {
  padding: 0.4rem;
}

nav {
  padding: 0.4rem;
  background: #fff;
  position: fixed;
  top: 0.5rem;
  width: 34rem;
  left: 50%;
  margin-left: -17rem;
  background: #004444;
  text-align: center;
  padding: 0.25rem;
  color: #fff;
  font-family: sans-serif;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.1;
  transition: 1s;
}

nav:hover {
  opacity: 1;
}

nav label {
  font-size: 0.75rem;
}

#fontSize {
  width: 3rem;
  text-align: center;
}

.rem {
  color: #000;
  background: #fff;
  padding: 0.1rem;
  border: inset 1px #999;
  font-size: 0.75rem;
  font-weight: bold;
}

.button {
  font-size: 12px;
  border-radius: 0.25rem;
  border: 1px solid #ccc;
  margin: 0.1rem;
  background: #507672;
  color: #ddd;
  transition: 750;
}

button:hover {
  background: #095859;
  color: #fff;
}

.active {
  background: #01826b;
}

option:nth-of-type(odd) {
  background: #095859;
  color: #eee;
  line-height: 1.2;
}

select {
  line-height: 1.2;
  padding: 0.1rem;
}

.spacer {
  height: 40px;
}

.buttons {
  position: fixed;
  background: #f0fcea;
  padding: 0.25rem;
  padding-bottom: 1rem;
  bottom: 0;
  text-align: center;
  width: 90vw;
  left: 50%;
  margin-left: -45vw;
  border-radius: 0.5rem;
  border: 1px solid #aaa;
  opacity: 0.1;
  transition: 1s;
  /* height: 120px; */
}

.buttons:hover {
  opacity: 1;
  transition: 2s;
}

.special {
  background: #800;
}

.active.special {
  background: #f00;
}

.flash {
  background: #f00;
}
.fontname {
  font-family: sans-serif;
  width: 600px;
  height: 30px;
  margin: 0 auto;
  padding: 0.25rem 0.5rem 0.75rem 0.5rem;
  margin-top: 56px;
  text-align: center;
  background: #044;
  color: #fff;
  font-size: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #aaa;
  font-weight: bold;
  text-shadow: 0.05rem 0.05rem 0.05rem #ccc, 0.055rem 0.055rem 0.055rem #999,
    0.06rem 0.06rem 0.06rem #333;
}

footer {
  margin: 1rem 0 8rem 0;
  font-family: sans-serif;
  font-weight: bold;
}