* { box-sizing: border-box; }

body {
  font-family: sans-serif;
}

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

.button {
    display: inline-block;
    padding: 10px 18px;
    margin-bottom: 10px;
    background: #fff;
    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: #b1b1b1;
}

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

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

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


.button-group:after {
  content: '';
  display: block;
  clear: both;
}
.menu-return{
  margin-left:160px !important;
}

.button-group .button {
  float: left;
  border-radius: 0;
  margin-left: 10px;
  margin-right: 10px;
}
.button-group{
  width: 727px;
  margin: 0px auto;
}


/*.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;*/
  width: 100%;
 

  /*height: 100%!important;*/
  /*border: 1px solid rgba(51, 51, 51, 0);*/
}
.grid2{
  /*height: 1446px;*/
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}
/*10-13option*/
/*.element-item { min-height:20%; }
.grid-item--height2 { height: 23%; }*/
/* isotope element option sizing */


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

.grid-sizer,
.element-item {
  width: 50%;
  float:left;
}
.element-item {
  position: relative;
  cursor: pointer;
  float: left;
  width: 50%;
  /*height:370px;*/
  /*height: 184px;*/
  /*margin: 0px 38px 0px 0px;*/
  padding: 0px;
  background: #888;
  color: #262524;
  border: solid 0px;
  overflow: hidden;
}


@media (max-width: 1412px) {
  .grid{
    width: 100%;
  }
  .element-item {
  /*width: 50%;*/
  /*margin: 0px 2% 0px 2.5%;*/
  }

}@media (max-width: 1160px) {
  .grid{
    /*width: 100%;*/
  }
  .element-item {
  /*width: 50%;*/
  /*margin: 0px 2% 0px 2.5%;*/
  }

}
@media (max-width: 980px) {
  .grid{
    /*width: 100%;*/
  }
  .element-item {
  /*width: 45%;*/
  /*margin: 5px 2% 5px 2%;*/
  }

}
@media (max-width: 680px) {
  .grid{
    /*width: 100%;*/
  }
  .element-item {
  width: 100%;
  /*margin: 5px 3% 5px 3%;*/
  }
  .button-group{
  margin: 0px auto;
  width: 90%;
  font-size: 12px;
  }
  .menu-return{
  margin-left:0px !important;
}

}
/*Victor*/
.element-item>a>img{
  display: block;
  width: 100%;
  /*width: 100%;*/
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}

.element-item:hover img{
  /*-webkit-filter: grayscale(100%);  Safari 6.0 - 9.0 
  filter: grayscale(100%);*/
  -webkit-animation: myfirst 0.6s ; /* Safari 4.0 - 8.0 */
  animation: myfirst 0.6s ;
  -webkit-filter: grayscale(0%); /* Chrome, Safari, Opera */
  filter: grayscale(0%);
  /*-webkit-animation-play-state: running; 
  animation-play-state: running;*/
}
.element-item:hover .item-text{
    /*opacity: 0;*/
    -webkit-animation: textanime 0.6s ; /* Safari 4.0 - 8.0 */
    animation: textanime 0.6s ;
    opacity: 0;
    background-color: #00000000;
}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes myfirst {
    0%   {  -webkit-filter: grayscale(100%);
            filter: grayscale(100%);}
    100% {  -webkit-filter: grayscale(0%); 
            filter: grayscale(0%);}
}

/* Standard syntax */
@keyframes myfirst {
    0%   {  -webkit-filter: grayscale(100%);
            filter: grayscale(100%);}
    100% {  -webkit-filter: grayscale(0%); 
            filter: grayscale(0%);}
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes textanime  {
    0%   {
    opacity: 1;  
    background-color: #0000004d;
          }
    100% {  
      opacity: 0;
      background-color: #00000000;
          }
}

/* Standard syntax */
@keyframes textanime {
    0%   {
    opacity: 1;
    background-color: #0000004d;  
          }
    100% {  
      opacity: 0;
      background-color: #00000000;
          }
}



.element-item>h3{
    text-align: center;
    font-size: 18px;
    line-height: 50px;
    color: #525252;
}

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

.element-item .name {
  position: absolute;

  left: 10px;
  top: 60px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: normal;
}

.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.alkali          { background: #F00; background: hsla(0, 0%, 100%, 0); }
.element-item.alkaline-earth  { background: #F80; background: hsla(0, 0%, 100%, 0); }
.element-item.lanthanoid      { background: #FF0; background: hsla(0, 0%, 100%, 0); }
.element-item.actinoid        { background: #0F0; background: hsla(0, 0%, 100%, 0); }
.element-item.transition      { background: #0F8; background: hsla(0, 0%, 100%, 0); }
.element-item.post-transition { background: #0FF; background: hsla(0, 0%, 100%, 0); }
.element-item.metalloid       { background: #08F; background: hsla(0, 0%, 100%, 0); }
.element-item.diatomic        { background: #00F; background: hsla(0, 0%, 100%, 0); }
.element-item.halogen         { background: #F0F; background: hsla(0, 0%, 100%, 0); }
.element-item.noble-gas       { background: #F08; background: hsla(0, 0%, 100%, 0); }
.element-item.TAIWAN       { background: #F08; background: hsla(0, 0%, 100%, 0); }
.element-item.CHINA       { background: #F08; background: hsla(0, 0%, 100%, 0); }
.element-item.USA       { background: #F08; background: hsla(0, 0%, 100%, 0); }
.element-item.JAPAN       { background: #F08; background: hsla(0, 0%, 100%, 0); }
.element-item.booth       { background: #F08; background: hsla(0, 0%, 100%, 0); }
.element-item.commercial       { background: #F08; background: hsla(0, 0%, 100%, 0); }



