* { box-sizing: border-box; }

body {
  font-family: sans-serif;
  background-color: rgba(25, 25, 25, 1);
  color: rgba(225, 225, 225, 1);
}

/* ---- button ---- */

.button {
  display: inline-block;
  padding: 0.5em 1.0em;
  background: #EEE;
  border: none;
  border-radius: 7px;
  background-image: linear-gradient( to bottom, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.2) );
  color: #222;
  font-family: sans-serif;
  font-size: 16px;
  text-shadow: 0 1px white;
  cursor: pointer;
}

.button:hover {
  background-color: #8CF;
  text-shadow: 0 1px hsla(0, 0%, 100%, 0.5);
  color: #222;
}

.button:active,
.button.is-checked {
  background-color: #28F;
}

.button.is-checked {
  color: white;
  text-shadow: 0 -1px hsla(0, 0%, 0%, 0.8);
}

.button:active {
  box-shadow: inset 0 1px 10px hsla(0, 0%, 0%, 0.8);
}

/* ---- button-group ---- */

.button-group {
  margin-bottom: 20px;
}

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

.button-group .button {
  float: left;
  border-radius: 0;
  margin-left: 0;
  margin-right: 1px;
}

.button-group .button:first-child { border-radius: 0.5em 0 0 0.5em; }
.button-group .button:last-child { border-radius: 0 0.5em 0.5em 0; }

/* ---- isotope ---- */

.grid {
  /*border: 1px solid #333;*/
  margin: auto;
  width: 900px;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .element-item ---- */

.element-item {
  position: relative;
  float: left;
  width: 250px;
  height: 250px;
  margin: 20px;
  padding: 16px;
  padding-top: 30px;
  background-image: url("public/img/dark_fish_skin.png")
  background: #888;
  /*color: #262524;*/
  border-radius: 50px;
  -moz-box-shadow:inset 9px 14px 15px #cccccc;
  -webkit-box-shadow:inset 9px 14px 15px #cccccc;
  box-shadow:inset 9px 14px 15px #cccccc;
  /*z-index: -60;*/
  }

.face {
  background: rgb(25, 25, 25);
  /*background: hsl(115, 57%, 28%);*/
  transition: all .5s ease-in-out;
  height: 200px;
  border-radius: 20px;
  border: 1px solid grey;
  padding: 5px;
  position: relative;
  z-index: 20;
  /*-moz-box-shadow:inset 9px 14px 15px #cccccc;
  -webkit-box-shadow:inset 9px 14px 15px #cccccc;
  box-shadow:inset 9px 14px 15px #cccccc;*/

}

.overlay {
  opacity: 1;
  margin: 20px;
  transition: all .0s ease-in-out;
  position: absolute;
  bottom: 40px;
  z-index: 10;
  font-size: 10px;

}

.overlay p {
  /*opacity: 1;
  margin: 20px;
  transition: all .0s ease-in-out;
  position: absolute;
  bottom: 40px;
  z-index: 10;*/
  font-size: 10px;

}

.grid.element-item:hover .grid. {
  display: none;
}

.element-item {
  transition: background .5s ease-in-out;
}

.element-item:hover {

  /*background: #43853D; background: hsl(115, 57%, 28%);*/
  background: #2c3e50;
  transition: all .5s ease-in-out;
  z-index: 100;
  /*-moz-box-shadow: 9px 14px 15px #000000;
  -webkit-box-shadow: 9px 14px 15px #000000;
  box-shadow: 9px 14px 15px #000000;*/

  /*-ms-transform: rotateY(95deg) rotateZ(9deg) scale(1.00);*/


}

.element-item:hover .face {
  -webkit-transform-origin: 100% 100%;

  transform: rotateY(0deg) scale(1.00) translate(220px);
	-webkit-transform: rotateY(0deg) scale(1.00) translate(220px);
	-moz-transform: rotateY(0deg) scale(1.00) translate(220px);
	-o-transform: rotateY(0deg) scale(1.00) translate(220px);
	-ms-transform: rotateY(0deg) scale(1.00) translate(220px);
  /*background: #43853D; background: hsl(115, 57%, 28%);*/
  background: #2c3e50;
  transition: all .5s ease-in-out;
  z-index: 100;
  -moz-box-shadow: 9px 14px 15px #000000;
  -webkit-box-shadow: 9px 14px 15px #000000;
  box-shadow: 9px 14px 15px #000000;

  /*-ms-transform: rotateY(95deg) rotateZ(9deg) scale(1.00);*/


}

.element-item:hover .overlay {
  opacity: 1;
  transition: all .75s ease-in-out;
}


/*.element-item:hover img {
  display: none;
}*/

img {
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  display: block;
}

/*.element-item > * {
  margin: 0;
  padding: 0;
}*/

.element-item .name {
  margin-left: auto;
  margin-right: auto;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: normal;
  text-align: center;
}

.projlink {
  text-align: center;
  display: inline-block;
  padding: 0.5em 1.0em;
  background: #EEE;
  border: none;
  border-radius: 7px;
  background-image: linear-gradient( to bottom, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.2) );
  color: #222;
  font-family: sans-serif;
  font-size: 16px;
  text-shadow: 0 1px white;
  cursor: pointer;
}

/*.element-item .symbol {
  position: absolute;
  left: 10px;
  top: 0px;
  font-size: 42px;
  font-weight: bold;
  color: white;
}

.element-item .number {
  position: absolute;
  right: 8px;
  top: 5px;
}

.element-item .weight {
  position: absolute;
  left: 10px;
  top: 76px;
  font-size: 12px;
}*/

/*.element-item.ruby            { background: #F00; background: hsl(   0, 50%, 35%); }*/
/*.element-item.Node            { background: #43853D; background: hsl(115, 57%, 28%); }*/
/*.element-item.front           { background: #3d6a85; background: hsl(202, 37%, 38%); }*/
.element-item.actinoid        { background: #0F0; background: hsl( 108, 100%, 50%); }
.element-item.transition      { background: #0F8; background: hsl( 144, 100%, 50%); }
.element-item.post-transition { background: #0FF; background: hsl( 180, 100%, 50%); }
.element-item.metalloid       { background: #08F; background: hsl( 216, 100%, 50%); }
.element-item.diatomic        { background: #00F; background: hsl( 252, 100%, 50%); }
.element-item.halogen         { background: #F0F; background: hsl( 288, 100%, 50%); }
.element-item.noble-gas       { background: #F08; background: hsl( 324, 100%, 50%); }
