* { box-sizing: border-box; }

body {
  font-family: sans-serif;
}

/* ---- input ---- */

input[type="text"] {
  font-size: 20px;
    cursor:pointer;
}

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

.grid {
  border: 1px solid #333;
}

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

/* ---- .coolSong ---- */

.coolSong {
  position: relative;
  float: left;
  width: 100px;
  height: 100px;
  margin: 5px;
  padding: 10px;
  background: #888;
  color: #262524;
}

.coolSong > * {
  margin: 0;
  padding: 0;
}

.coolSong .name {
  position: absolute;

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

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

.coolSong .number {
  position: absolute;
  right: 8px;
  top: 5px;
}

.coolSong .weight {
  position: absolute;
  left: 10px;
  top: 76px;
  font-size: 12px;
}

.coolSong.alkali          { background: #F00; background: hsl(   0, 100%, 50%); }
.coolSong.alkaline-earth  { background: #F80; background: hsl(  36, 100%, 50%); }
.coolSong.lanthanoid      { background: #FF0; background: hsl(  72, 100%, 50%); }
.coolSong.actinoid        { background: #0F0; background: hsl( 108, 100%, 50%); }
.coolSong.transition      { background: #0F8; background: hsl( 144, 100%, 50%); }
.coolSong.post-transition { background: #0FF; background: hsl( 180, 100%, 50%); }
.coolSong.metalloid       { background: #08F; background: hsl( 216, 100%, 50%); }
.coolSong.diatomic        { background: #00F; background: hsl( 252, 100%, 50%); }
.coolSong.halogen         { background: #F0F; background: hsl( 288, 100%, 50%); }
.coolSong.noble-gas       { background: #F08; background: hsl( 324, 100%, 50%); }
