* { box-sizing: border-box; }

body {
  font-family: sans-serif;
}

/* ---- button ---- */

.button {
  display: inline-block;
  padding: 0.5em 2.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;
  margin-left: 25rem;
}

.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: 1.0em 0 1 1.0em; }
.button-group .button:last-child { border-radius: 1.0em 0 1 1.0em; }

/* ---- isotope ---- */

.grid {
  border: 1px solid #333;

}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .element-item ---- */

.element-item {
  position: relative;
  float: ;
  width: 265px;
  height: 350px;
  margin: 5px;
  padding: 10px;
  background: #;
  color: #262524;
  box-shadow: 2px 4px 15px 2px #00000030;
}

.element-item > * {
  margin: 0;
  padding: 0;
}

.element-item .name {
  position: absolute;
  z-index: 20;
  left: 10px;
  bottom: 50px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 22px;
  font-weight: normal;
}

.element-item .mærke {
  position: absolute;
  left: 10px;
  right: 0px;
  top: 0px;
  font-size: 30px;
  font-weight: bold;
  color: #3B3B3B;
  background-color: #3333;
  margin-left: -10px;
  opacity: 0.8;
  padding-left: 8px;
}


.element-item .dato-indlagt {
  position: absolute;
  right: 8px;
  top: 5px;
  font-family: 'Arima Madurai', cursive;
  color: darkslategray;
  font-size: 12px;

}

.element-item .normalpris {
  position: absolute;
  left: 10px;
  bottom: 20px;
  font-size: 18px;
  font-family: 'Arima Madurai', cursive;
}

.element-item.alkali          { background: #F00; background: hsl(   0, 100%, 50%); }
.element-item.alkaline-earth  { background: #F80; background: hsl(  36, 100%, 50%); }
.element-item.lanthanoid      { background: #FF0; background: hsl(  72, 100%, 50%); }
.element-item.actinoid        { background: #0F0; background: hsl( 108, 100%, 50%); }
.element-item.spar            { background: #393; background: hsl( 127, 100%, 100%); }
.element-item.føtex           { background: #393; background: hsl( 44, 49%, 61%); }
.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%); }
