* { box-sizing: border-box; }

body {
  font-family: sans-serif;
}

/* ---- 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: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,
.selection {
  background: #EEE;
  max-width: 800px;
}

.selection {
  min-width: 800px;
  min-height: 100px;
}

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

.pokemon {
  margin: 5px;
  padding: 10px;
  background: yellow;
  border-radius: 15px;
  cursor: pointer;
}

.pokemon:hover {
  transform:scale(1.2);
  transition: all 0.1s;
}

.selection .pokemon{
  display: inline-block;
}


.ui-group {
  display: block;
}

.button-block {
  display: inline-block;
  text-align: center;
  margin: 2px;
}

.button-block h3 {
  margin: 0;
}

input[type="number"] {
  width: 3em;
}

input[type="text"] {
  width: 10em;
}

.tooltip {
  position: absolute;
  background: lightgreen;
  border-radius:6px;
  padding: 6px 12px;
  font-family: arial;
  font-size: 15px;
}
.tooltip:before {
  content : " ";
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid lightgreen;
  position:absolute;
  bottom:-5px;
  left:5px;
}

.hint {
  display:none;
}
