/* Periodic Table - Initial Design from Olivia https://github.com/oliviale https://codepen.io/oliviale/pen/ZmvPPd */
body {
  background: #202e38;
  font-family: "Trebuchet Ms", sans-serif;
}

h1 {
  margin: 0.5em auto 0;
  font: 700 1.5em "Trebuchet Ms", sans-serif;
  color: #f1f5f6;
  text-align: center;
}

h2 {
  margin: 0 auto -1em;
  font: 400 1.3em "Trebuchet Ms", sans-serif;
  color: #f1f5f6;
  text-align: center;
}

.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: pointer;
  transition: all 0.3s ease;
}
.periodic-element .periodic-element-inner {
  background: #202e38;
  padding: 1px 2px 1px 8px;
  width: calc(100% - 10px);
  height: calc(100% - 2px);
  transition: inherit;
}
.periodic-element .title {
  font: 900 34px/1.3 "Trebuchet Ms", sans-serif;
  margin: 0.3em 0 0;
  transition: 0.8s ease 600ms;
}
.periodic-element .description {
  font: 500 12px "Trebuchet Ms", sans-serif;
  margin-top: -0.2em;
}

.desc {
  font-family: Tahoma;
  z-index: 10;
  background: #f9f8f7;
  color: #333;
  width: 240px;
  position: absolute;
  display: none;
  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: 1em;
  line-height: 1.4;
  padding: 14px;
  margin: 10px 0 0 -70px;
  border-radius: 6px;
  text-align: left;
  -webkit-box-shadow: 4px 4px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 4px 4px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 4px 4px 5px 0px rgba(0, 0, 0, 0.75);
}
.large {
width: 360px;
margin: 10px 0 0 -140px;
}

.desc B {
	font-weight: bold;
}
.desc LI {
list-style-type: square;
margin-left: 20px;
}
.desc EM {
	font-style: italic;
}

.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;
}

.yellow {
  background: linear-gradient(to bottom right, #d3a02e 0%, #f0c23b 100%);
}
.yellow .title,
.yellow .description {
  background: -webkit-linear-gradient(#d3a02e, #f0c23b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.red {
  background: linear-gradient(to bottom right, #ac2258 0%, #dc4b89 100%);
}
.red .title,
.red .description {
  background: -webkit-linear-gradient(#ac2258, #dc4b89);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blue {
  background: linear-gradient(to bottom right, #0077b5 0%, #34b3e4 100%);
}
.blue .title,
.blue .description {
  background: -webkit-linear-gradient(#0077b5, #34b3e4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.green {
  background: linear-gradient(to bottom right, #5b912d 0%, #7cb82f 100%);
}
.green .title,
.green .description {
  background: -webkit-linear-gradient(#5b912d, #7cb82f);
  -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: 5;
}
