body {
  font-family: Arial;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.periodic {
  position: relative;
  height: 200px;
  margin-right: -1px;
  text-shadow: none;
}
.periodic-row {
  clear: both;
  height: 10%;
}
.cell {
  float: left;
  position: relative;
  width: 5.55%;
  height: 100%;
}
.element {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 1px;
  right: 1px;
  box-sizing: border-box;
  box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  cursor: default;
  pointer-events: none;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
  background-color: rgba(0, 128, 128, 0.6);
}
.cell:hover .element {
  border-color: rgba(0, 0, 0, 0.1);
  -webkit-transform: scale(3, 3);
  -ms-transform: scale(3, 3);
  transform: scale(3, 3);
  z-index: 1;
  background-color: rgba(0, 128, 128, 0.9);
}
.at_num,
.at_details {
  position: absolute;
  font-size: 4px;
  color: rgba(0,0,0, 0.5); /* text color details*/
  opacity: 0;
}
.at_num {
  top: 4px;
  right: 5px;
}
.symbol {
  position: absolute;
  top: 50%;
  left: 0px;
  right: 0px;
  margin-top: -4px;
  font-size: 9px;
  line-height: 1;
  height: 9px;
  color: rgba(0,0,0, 0.9); /* text color sign, gets overwritten later*/
}
.at_details {
  bottom: 4px;
  left: 0px;
  right: 0px;
}

.author {
  position: absolute;
  top: 50%;
  left: 0px;
  right: 0px;
  margin-top: -4px;
  font-size: 9px;
  line-height: 1;
  height: 9px;
  color: rgba(0,0,0, 0.9); /* text color sign, gets overwritten later*/
}

/* degree*/
.periodic-row:nth-child(1) .cell:nth-child(1) .element {
  background-color: rgba(255,255,179, 0.8);
}

/* standard */
.periodic-row:nth-child(2) .cell:nth-child(1) .element,
.periodic-row:nth-child(3) .cell:nth-child(1) .element,
.periodic-row:nth-child(4) .cell:nth-child(1) .element,
.periodic-row:nth-child(5) .cell:nth-child(1) .element,
.periodic-row:nth-child(6) .cell:nth-child(1) .element,
.periodic-row:nth-child(7) .cell:nth-child(1) .element {
  background-color: rgba(141,211,199, 0.8);
}

/* bc like */
.cell:nth-child(2) .element,
.cell:nth-child(3) .element,
.periodic-row:nth-child(4) .cell:nth-child(4) .element {
  background-color: rgba(190,186,218, 0.8);
}

/* friedkin */
.periodic-row:nth-child(5) .cell:nth-child(4) .element,
.periodic-row:nth-child(6) .cell:nth-child(4) .element,
.periodic-row:nth-child(7) .cell:nth-child(4) .element {
  background-color: rgba(179,222,105, 0.8);
}

/* misc */
.cell:nth-child(5) .element,
.cell:nth-child(6) .element,
.cell:nth-child(7) .element,
.cell:nth-child(8) .element,
.cell:nth-child(9) .element,
.cell:nth-child(10) .element,
.cell:nth-child(11) .element,
.cell:nth-child(12) .element,
.periodic-row:nth-child(3) .cell:nth-child(13) .element, 
.periodic-row:nth-child(4) .cell:nth-child(13) .element,
.periodic-row:nth-child(5) .cell:nth-child(13) .element,
.periodic-row:nth-child(6) .cell:nth-child(13) .element,
.periodic-row:nth-child(7) .cell:nth-child(13) .element,
.periodic-row:nth-child(5) .cell:nth-child(14) .element,
.periodic-row:nth-child(6) .cell:nth-child(14) .element,
.periodic-row:nth-child(7) .cell:nth-child(14) .element,
.periodic-row:nth-child(6) .cell:nth-child(15) .element,
.periodic-row:nth-child(7) .cell:nth-child(15) .element,
.periodic-row:nth-child(7) .cell:nth-child(16) .element{
  background-color: rgba(251,128,114, 0.8);
}

/*path based*/
.periodic-row:nth-child(2) .cell:nth-child(13) .element, 
.periodic-row:nth-child(3) .cell:nth-child(14) .element,
.periodic-row:nth-child(4) .cell:nth-child(14) .element,
.periodic-row:nth-child(4) .cell:nth-child(15) .element,
.periodic-row:nth-child(5) .cell:nth-child(15) .element,
.periodic-row:nth-child(5) .cell:nth-child(16) .element,
.periodic-row:nth-child(6) .cell:nth-child(16) .element,
.periodic-row:nth-child(7) .cell:nth-child(17) .element{
  background-color: rgba(128,177,211, 0.8);
}

/*net type*/
.periodic-row:nth-child(2) .cell:nth-child(14) .element, 
.periodic-row:nth-child(2) .cell:nth-child(15) .element,
.periodic-row:nth-child(2) .cell:nth-child(16) .element,
.periodic-row:nth-child(3) .cell:nth-child(15) .element,
.periodic-row:nth-child(3) .cell:nth-child(16) .element,
.periodic-row:nth-child(4) .cell:nth-child(16) .element{
  background-color: rgba(253,180,98, 0.8);
}

/* spectral based */
.periodic-row:nth-child(2) .cell:nth-child(17) .element,
.periodic-row:nth-child(3) .cell:nth-child(17) .element,
.periodic-row:nth-child(4) .cell:nth-child(17) .element,
.periodic-row:nth-child(5) .cell:nth-child(17) .element,
.periodic-row:nth-child(6) .cell:nth-child(17) .element{
  background-color: rgba(179,222,105, 0.8);
}

/* cc like */
.cell:nth-child(18) .element{
  background-color: rgba(252,205,229, 0.8);
}



/*extra lines*/
.periodic-row:nth-child(n+9) .element {
  background-color: rgba(217,217,217, 0.8);
}

.cell:nth-child(1) .element {
  -webkit-transform-origin: 0 50%;
  -ms-transform-origin: 0 50%;
  transform-origin: 0 50%;
}
.cell:nth-child(18) .element {
  -webkit-transform-origin: 100% 50%;
  -ms-transform-origin: 100% 50%;
  transform-origin: 100% 50%;
}
.periodic-row:nth-child(10) .cell .element {
  -webkit-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
}
.periodic-row:nth-child(1) .cell:nth-child(1) .element {
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}
.periodic-row:nth-child(1) .cell:nth-child(18) .element {
  -webkit-transform-origin: 100% 0;
  -ms-transform-origin: 100% 0;
  transform-origin: 100% 0;
}
.periodic-row:nth-child(10) .cell:nth-child(18) .element {
  -webkit-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}
@media (min-width: 600px) {
  .periodic {
    height: 460px;
    margin-right: -2px;
  }
  .element {
    right: 2px;
    bottom: 2px;
  }
  .at_num,
  .at_details {
    font-size: 4px;
    opacity: 1;
  }
  .symbol {
    margin-top: -17px;
    font-size: 16px;
    font-weight: bold;
    line-height: 30px;
    height: 30px;
    color: rgba(0, 0, 0, 0.75); /*text color element*/
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  }
  .author {
    font-size: 10px;
  }
}
@media (min-width: 800px) {
  .periodic {
    height: 540px;
  }
  .symbol {
    font-size: 16px;
  }
  .author {
    font-size: 10px;
  }
}
@media (min-width: 992px) {
  .periodic {
    height: 680px;
  }
  .at_num,
  .at_details {
    font-size: 5px;
  }
  .symbol {
    font-size: 20px;
  }
  .author {
    font-size: 10px;
  }
}
@media (min-width: 1200px) {
  .periodic {
    height: 800px;
  }
  .at_num,
  .at_details {
    font-size: 6px;
  }
  .symbol {
    font-size: 26px;
  }
  .author {
    font-size: 10px;
  }

}



div.cell {
    position: relative;
}
 
div.cell a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-decoration: none; /* No underlines on the link */
    z-index: 10; /* Places the link above everything else in the div */
    background-color: #FFF; /* Fix to make div clickable in IE */
    opacity: 0; /* Fix to make div clickable in IE */
    filter: alpha(opacity=1); /* Fix to make div clickable in IE */
}
