@import url(https://fonts.googleapis.com/css?family=Nunito:300,400,700);
.border-box {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}
html,
body {
  background: #fafafa;
  color: #777E8C;
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
}
a {
  color: #94c8c8;
  text-decoration: none;
}
a:hover {
  color: #73b6b6;
}
::selection {
  background: #ffcc66;
  color: #666e80;
}
.header {
  margin: 30px 0;
  text-align: center;
}
.header h1 {
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0;
  text-transform: uppercase;
}
.header h1 .red {
  color: #ff6680;
}
.header h1 .blue {
  color: #66ccff;
}
.header h2 {
  font-weight: 400;
  margin: 0;
}
.header h2 .red {
  color: #ff6680;
}
.header h2 .blue {
  color: #66ccff;
}
.header h2 .yellow {
  color: #ffcc66;
}
.header p {
  font-weight: 300;
  margin: 20px 0 0;
}
.header p a {
  font-weight: 400;
}
/******************** MAIN COMPONENTS ****************************************/
.game {
  margin: 0 auto;
  max-width: 400px;
  position: relative;
}
.game .board {
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  background: #d0e6df;
  overflow: hidden;
  padding: 12px 16px;
}
.game .board .row {
  overflow: hidden;
  text-align: center;
}
.game .board .row .tile-container {
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  background: #b6d9d9;
  box-shadow: 0px 8px #b6d9d9;
  float: left;
  height: 110px;
  margin: 10px 6px;
  width: 80px;
}
.game .next {
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  background: #d0e6df;
  left: -130px;
  padding: 12px 26px 26px 26px;
  position: absolute;
  top: 0px;
}
.game .next .title {
  font-weight: 400;
  margin: 0 0 4px 0;
  text-align: center;
  text-transform: lowercase;
}
.game .next .tile {
  height: 77px;
  position: static !important;
  width: 56px;
  line-height: 77px;
}
.game .next .tile.bonus:before {
  content: '+';
}
.game .control {
  left: 422px;
  position: absolute;
  top: 0px;
  width: 300px;
  text-align: left;
}
.game .new {
  background: #d0e6df;
  box-shadow: 0px 8px #b6d9d9;
  height: 40px;
  line-height: 40px;
  left: -130px;
  position: absolute;
  text-align: center;
  text-transform: lowercase;
  top: 152px;
  width: 108px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.game .new:hover {
  background: #999;
  box-shadow: 0px 8px #777;
  color: #FFF;
  cursor: pointer;
}
.game .hint {
  background: #d0e6df;
  box-shadow: 0px 8px #b6d9d9;
  height: 40px;
  line-height: 40px;
  left: -130px;
  position: absolute;
  text-align: center;
  text-transform: lowercase;
  top: 213px;
  width: 108px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.game .hint:hover {
  background: #999;
  box-shadow: 0px 8px #777;
  color: #FFF;
  cursor: pointer;
}
.game .autorun {
  background: #d0e6df;
  box-shadow: 0px 8px #b6d9d9;
  height: 40px;
  line-height: 40px;
  left: -130px;
  position: absolute;
  text-align: center;
  top: 274px;
  width: 108px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.game .autorun:hover {
  background: #999;
  box-shadow: 0px 8px #777;
  color: #FFF;
  cursor: pointer;
}
.game .scores-container {
  float: right;
  text-align: right;
}
.game .score-container {
  position: absolute;
  display: inline-block;
  background: #b6d9d9;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  float: left;
  top: 340px;
  min-width: 60px;
  right: 420px;
  padding: 20px 10px 5px 10px;
  font-size: 25px;
  line-height: 47px;
  font-weight: bold;
  color: white;
  margin-top: 8px;
  text-align: center;
}
.game .best-container {
  position: absolute;
  display: inline-block;
  background: #b6d9d9;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  float: left;
  top: 440px;
  left: -130px;
  padding: 20px 10px 5px 10px;
  font-size: 25px;
  line-height: 47px;
  font-weight: bold;
  color: white;
  margin-top: 8px;
  text-align: center;
}
.game .score-container:after,
.game .best-container:after {
  position: absolute;
  width: 100%;
  top: 10px;
  left: 0;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 13px;
  text-align: center;
  color: #666e80;
}
.game .score-container:after {
  content: "Score";
}
.game .best-container:after {
  content: "Best";
}
.footer {
  font-weight: 300;
  margin: 30px 0 20px;
  text-align: center;
}
.footer a {
  font-weight: 400;
}
/******************** INDIVIDUAL TILES ***************************************/
.tile {
  font-size: 42px;
  height: 110px;
  line-height: 110px;
  position: absolute;
  text-align: center;
  width: 80px;
  z-index: 1;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.tile.red {
  background: #ff6680;
  box-shadow: 0px 8px #ff002b;
  color: #FFF;
}
.tile.blue {
  background: #66ccff;
  box-shadow: 0px 8px #00aaff;
  color: #FFF;
}
.tile.number,
.tile.bonus {
  background: #FFF;
  box-shadow: 0px 8px #ffcc66;
  color: #000;
}
/******************** ENDGAME ************************************************/
.overlay {
  background: rgba(0, 0, 0, 0.5);
  display: none;
  height: 100%;
  left: 0px;
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 100;
}
.endgame {
  background: #fafafa;
  color: #000;
  height: 220px;
  width: 420px;
  margin-left: -210px;
  margin-top: -110px;
  overflow: hidden;
  padding: 28px;
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  z-index: 1000;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.endgame .score-intro {
  color: #000;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.endgame .score-intro strong {
  color: #ffaa00;
}
.endgame .score {
  font-size: 72px;
}
.endgame .bbtn {
  background: #d0e6df;
  box-shadow: 0px 8px #b6d9d9;
  line-height: 40px;
  position: absolute;
  width: 108px;
  left: 50%;
  transform: translate(-50%, 0);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.endgame .bbtn:hover {
  background: #999;
  box-shadow: 0px 6px #666;
  color: #FFF;
  cursor: pointer;
}
.endgame .btn {
  color: #FFF;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0 6px;
  padding: 12px 16px;
  text-transform: uppercase;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.endgame .btn:hover {
  background: #999;
  box-shadow: 0px 6px #666;
  color: #FFF;
  cursor: pointer;
}
.endgame .twitter-btn {
  background: #55acee;
  box-shadow: 0px 6px #147bc9;
}
.endgame ::selection {
  color: #000;
}
