/* 
https://coolors.co/000000-2f4550-586f7c-b8dbd9-f4f4f9
*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

body {
  margin: 0 auto;
  padding: 2em;
  background: rgb(244, 244, 249);
  color: rgb(47, 69, 80);
}

h1, p {
  margin-bottom: 1em;
}


/*
CSS GRID by DEFAULT
*/
.keys {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

/*
Fallback to Flex if Grid not supported
for example, the old iPad kids use for games has Safari/iOS 9. Grid is only supported 11 upwards
*/
@supports not (display: grid) {
  .keys {
    display: flex;
    flex-wrap: wrap; /* default is `nowrap` */
    justify-content: space-between;
  }
}

.key {
  background: rgb(184, 219, 217);
  border: 4px solid rgb(88, 111, 124);
  border-radius: 5px;
  text-align: center;
  padding: 1em;

  transition: all .1s;
}

/*
Fallback to Flex if Grid not supported
for example, the old iPad kids use for games has Safari/iOS 9. Grid is only supported 11 upwards
*/
@supports not (display: grid) {
  .key {
    flex-basis: 120px;
    margin: 1em;
  }
}

.key:hover {
  cursor: pointer;
}
.playing {
  transform: scale(1.1);
  border-color: #08B2E3;
  box-shadow: 0 1px 10px #08B2E3;
}
.keyTitle {
  display: block;
  font-size: 2.4em;
  font-family: serif;
  font-weight: bold;
  padding-bottom: 10px;
  text-shadow: 1px 2px rgba(0, 0, 0, .1);
}
.keyDesc {
  text-transform: uppercase;
  font-family: sans-serif;
  font-size: .8em;
  opacity: .8;
}
