body {
  background: #202e38;
  font-family: "Poppins", sans-serif;
}

h1 {
  margin: 2em auto 0;
  font: 700 3em "Poppins", sans-serif;
  color: #f1f5f6;
  text-align: center;
}

h5 {
  margin: 0 auto 2em;
  font: 400 1.3em "Poppins", sans-serif;
  color: #f1f5f6;
  text-align: center;
}

a {
  text-decoration: none;
}

aside.context {
  text-align: center;
  color: #fff;
  line-height: 1.7;
}
aside.context a {
  text-decoration: none;
  color: #fff;
  padding: 3px 0;
  border-bottom: 1px dashed;
}
aside.context .explanation {
  max-width: 700px;
  margin: 4em auto 0;
}

footer {
  text-align: center;
  margin: 2em auto;
  width: 100%;
}
footer a {
  text-decoration: none;
  display: inline-block;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: transparent;
  border: 1px dashed #fff;
  color: #fff;
  margin: 5px;
}
footer a:hover {
  background: rgba(255, 255, 255, 0.1);
}
footer a .icons {
  margin-top: 12px;
  display: inline-block;
  font-size: 20px;
}

.periodic-table {
  display: grid;
  grid-template-columns: repeat(9, 100px);
  grid-template-rows: repeat(4, 100px);
  grid-gap: 10px;
  margin: auto;
  max-width: 1200px;
  justify-content: center;
}

.periodic-element {
  padding: 4px;
  position: relative;
  z-index: 1;
  cursor: default;
  transition: all 0.3s ease;
}
.periodic-element .periodic-element-inner {
  background: #202e38;
  padding: 10px 15px;
  width: calc(100% - 30px);
  height: calc(100% - 20px);
  transition: inherit;
}
.periodic-element .title {
  font: 700 34px/1.3 "Poppins", sans-serif;
  margin: 0.3em 0 0;
  transition: 0.8s ease 600ms;
}
.periodic-element .description {
  font: 500 12px "Poppins", sans-serif;
  margin-top: -0.2em;
}
.periodic-element:after {
  z-index: 10;
  content: attr(data-description);
  background: #f9f8f7;
  color: #333;
  width: 180px;
  position: absolute;
  top: 80%;
  opacity: 0;
  transition: opacity 0.3s ease 0.3s, top 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
  height: auto;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px;
  margin: 0 0 0 -50px;
  border-radius: 6px;
  text-align: center;
}
.periodic-element:hover {
  transform: scale(1.12);
  z-index: 10;
}
.periodic-element:hover .periodic-element-inner {
  background: transparent;
}
.periodic-element:hover .title,
.periodic-element:hover .description {
  -webkit-text-fill-color: #222;
}
.periodic-element:hover:after {
  top: 105%;
  opacity: 1;
}

a.periodic-element {
  cursor: pointer;
}

.teaching {
  background: linear-gradient(to bottom right, #d9e9ff 0%, #8facff 100%);
}
.teaching .title,
.teaching .description {
  color: #d8edff;
}

.learning {
  background: linear-gradient(to bottom right, #e3ffe7 0%, #7fd7a2 100%);
}
.learning .title,
.learning .description {
  color: #daffee;
}

.assessment {
  background: linear-gradient(to bottom right, #fff1d1 0%, #ffbc78 100%);
}
.assessment .title,
.assessment .description {
  color: #fff4d7;
}

.accessibility {
  background: linear-gradient(to bottom right, #f4e4ff 0%, #b79bff 100%);
}
.accessibility .title,
.accessibility .description {
  color: #ecd9ff;
}

.ethics {
  background: linear-gradient(to bottom right, #ffd7e1 0%, #ff9ab2 100%);
}
.ethics .title,
.ethics .description {
  color: #ffdce6;
}

.tools {
  background: linear-gradient(to bottom right, #d9f7ff 0%, #6ad8ff 100%);
}
.tools .title,
.tools .description {
  color: #d2f5ff;
}

.leadership {
  background: linear-gradient(to bottom right, #fff4b5 0%, #ffcf5c 100%);
}
.leadership .title,
.leadership .description {
  color: #fff7d2;
}

.curriculum {
  background: linear-gradient(to bottom right, #d5eeff 0%, #7fc4ff 100%);
}
.curriculum .title,
.curriculum .description {
  color: #d9f0ff;
}

.legend-table {
  padding: 15px;
  text-align: center;
  font-size: 15px;
  margin: 2em auto 0;
}
.legend-table__marker {
  width: 25px;
  height: 25px;
  margin: 5px 5px 10px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0.5px 1px rgba(0, 0, 0, 0.15);
}
.legend-table__marker.teaching { background: #8facff; }
.legend-table__marker.learning { background: #7fd7a2; }
.legend-table__marker.assessment { background: #ffbc78; }
.legend-table__marker.accessibility { background: #b79bff; }
.legend-table__marker.ethics { background: #ff9ab2; }
.legend-table__marker.tools { background: #6ad8ff; }
.legend-table__marker.leadership { background: #ffcf5c; }
.legend-table__marker.curriculum { background: #7fc4ff; }
.legend-table__text {
  display: inline-block;
  vertical-align: middle;
  margin: 0 25px 5px 5px;
  background: -webkit-linear-gradient(#ccc, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legend-table__direction {
  display: inline-block;
  margin: 10px 15px 10px 10px;
  background: -webkit-linear-gradient(#ccc, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.empty-spacer-1 {
  grid-column: 3/span 4;
  grid-row: 1;
}
.empty-spacer-2 {
  grid-column: 1;
  grid-row: 4;
}