div {
  background: #eee;
}

body {
  display: grid;
  grid-template-rows: 10fr 100fr 5fr;
}

* {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

button {
  margin: 8px;
  padding: 4px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

#modal-content {
  background-color: lightgray;
  margin: 25% auto;
  padding: 1rem;
  border: 1px solid slategray;
  width: 40%;
  height: 20%;
}

#modal-para {
  display: inline-block;
  height: 100%;
  width: 100%;
  line-height: 100%;
  text-align: center;
  vertical-align: middle;
  font-size: 24px;
  font-weight: bold;
}

#close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
}

#close:hover,
#close:focus {
  color: #333;
  cursor: pointer;
}

.tile {
  box-sizing: border-box;
  border: 1px solid darkgray;
  height: 6vh;
  line-height: 6vh;
  vertical-align: middle;
  font-size: 4vh;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.key {
  border: 1px solid darkgray;
  border-radius: 4px;
  font-size: 2vh;
  font-weight: bold;
  text-align: center;
  height: 5vh;
  line-height: 5vh;
  vertical-align: middle;
}

.key:hover {
  border: 1px solid blue;
}

#keyrow1 {
  gap: 2px;
  display: grid;
  grid-template-columns: repeat(10,1fr);
  width: 50vh;
}

#keyrow2 {
  gap: 2px;
  display: grid;
  grid-template-columns: repeat(9,1fr);
  width: 45vh;
}

#keyrow3 {
  gap: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 2fr 2fr;
  width: 55vh;
}

#header {
  display: grid;
  grid-template-rows: 12fr 7fr;
  justify-content: space-around;
}

#title {
  text-align: center;
  font-family: 'Droid Sans';
  font-weight: bold;
  font-size: 4vh;
  color: green;
}

#strapline {
  font-family: 'Droid Sans';
  font-style: italic;
  text-align: center;
  font-size: 1.5vh;
}

#app {
  display: grid;
  justify-content: center;
  grid-template-rows: 90fr 15fr 80fr;
  justify-items: center;
  align-items: start;
}

#wordgrid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  width: 30vh;
  gap: 4px;
}

#keyboard {
  display: grid;
  grid-template-rows: repeat(3,1fr);
  gap: 2px;
}

#controls {
}

#footer {
  background: #333;
  color: lightgray;
  text-align: center;
  font-size: 12px;
  line-height: 3.5vh;
  vertical-align: middle;
}


