@import 'vendor/normalize.css';
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,700|Roboto:300,400,700');
/** VARIABLES **/
/** MIXINS **/
/** VARIABLES **/
/** APP **/
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
html {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  background-color: #0d0d0f;
  font-size: 16px;
  font-weight: 400;
}
html:lang(en) *:lang(fr) {
  display: none !important;
}
html:lang(fr) *:lang(en) {
  display: none !important;
}
body {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 960px;
  font-family: 'Open Sans', 'Roboto', sans-serif;
}
[role=main] {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 556.8px;
  z-index: 100;
}
/** MODULES **/
/** APP **/
header {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-top: 25px;
  width: 100%;
  z-index: 100;
}
header .button {
  padding-left: 10px !important;
  padding-right: 10px !important;
  width: 31.5%;
}
header .button#show-leaderboard .players-count {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: -12px;
  margin-right: -6px;
  padding: 2px 5px;
  color: #1a1d25;
  background-color: #a8a8af;
  border-radius: 1px;
  -webkit-box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.2);
  font-size: .55rem;
  letter-spacing: -0.5px;
}
header .button#show-leaderboard .players-count span {
  font-size: .7rem;
}
header .button a {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
/** MEDIA QUERIES **/
/** APP **/
#state {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  margin-top: 30px;
  width: 100%;
}
#timer {
  position: relative;
  width: 31.5%;
  color: #7a7f85;
  background-color: #1a1d25;
  border-radius: 3px;
  font-size: 3.2rem;
  text-align: center;
  letter-spacing: 2px;
}
#timer > span {
  display: inline-block;
  padding-top: 6px;
  padding-bottom: 10px;
  width: 100%;
}
#player > .panel {
  position: relative;
  margin-left: 5px;
  min-width: 135px;
  text-align: center;
  letter-spacing: 0;
}
#player #score .update {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .2px;
  opacity: 1;
  visibility: hidden;
}
#player #score .update.show {
  opacity: 0;
  visibility: visible;
  -webkit-transition: margin-top 400ms, opacity 150ms linear 250ms;
  -o-transition: margin-top 400ms, opacity 150ms linear 250ms;
  transition: margin-top 400ms, opacity 150ms linear 250ms;
}
#player #score .update.add {
  margin-top: 25px;
  color: #207848;
}
#player #score .update.add.show {
  margin-top: 10px;
}
#player #score .update.sub {
  margin-top: 45px;
  color: #683235;
}
#player #score .update.sub.show {
  margin-top: 60px;
}
#player #best .label > .new-best-word {
  display: none;
}
#player #best.new-best .label {
  color: #bbb;
  background-color: #a0803a;
}
#player #best.new-best .label > .new-best-word {
  display: inline-block;
}
#player #best.new-best .value {
  color: #a0803a;
}
#player #best .rank {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: -11px;
  margin-right: -11px;
  -webkit-box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.1);
}
/** MEDIA QUERIES **/
/** APP **/
#game {
  position: relative;
  margin-top: 28px;
  width: 100%;
}
#outputs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  position: absolute;
  top: 0;
  right: 0;
  margin-right: 586.8px;
  text-align: center;
}
#outputs > .panel {
  display: inline-block;
  padding-bottom: 10px;
  width: auto;
  min-width: 135px;
  text-align: center;
}
@-webkit-keyframes blink {
  0% {
    -webkit-filter: brightness(1.5);
    filter: brightness(1.5);
  }
  100% {
    -webkit-filter: brightness(1);
    filter: brightness(1);
  }
}
@keyframes blink {
  0% {
    -webkit-filter: brightness(1.5);
    filter: brightness(1.5);
  }
  100% {
    -webkit-filter: brightness(1);
    filter: brightness(1);
  }
}
#outputs #rights .value {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 10px;
}
#outputs #rights.right .label {
  color: white;
  background-color: #207848;
}
#outputs #rights.right .value {
  color: #207848;
}
#outputs #rights.right .value > .square-thumb {
  background-color: #207848;
  border: 2px solid #207848;
}
#outputs #rights.blink {
  -webkit-animation: blink 200ms linear;
  animation: blink 200ms linear;
}
#grid {
  position: relative;
  top: 0;
  left: 0;
  margin-bottom: 40px;
  width: 100%;
  padding: 1%;
  padding-bottom: .5%;
  background-color: #2a303a;
  border-width: 2px;
  border-style: solid;
  border-width: 0;
  border-radius: 5px;
}
#grid:not(.disabled) .square:not(.active):hover {
  opacity: .9;
}
#grid .square {
  display: inline-block;
  width: 30%;
  margin: 1.467% 1.667%;
  color: #1a1d25;
  background-color: #7a7f85;
  cursor: pointer;
}
#grid .square .square-content {
  font-size: 2.8rem;
  font-weight: 300;
}
#grid .square.active {
  background-color: #a8a8af;
}
#grid .square.right {
  color: #2a303a;
  background-color: #207848;
}
#grid .square.not-found {
  color: #7a7f85;
  background-color: #683235;
}
#grid .square.rotate {
  -webkit-transform: rotateY(360deg);
  transform: rotateY(360deg);
  -webkit-transition: -webkit-transform 500ms;
  transition: -webkit-transform 500ms;
  -o-transition: transform 500ms;
  transition: transform 500ms;
  transition: transform 500ms, -webkit-transform 500ms;
}
#grid .square.back {
  color: #1a1d25;
  background-color: #1a1d25;
}
#how-to {
  margin-bottom: 50px;
  color: #7a7f85;
  font-size: .95rem;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  line-height: 1.4rem;
  letter-spacing: .2px;
  opacity: .9;
}
#how-to > div span:nth-of-type(2) {
  font-weight: normal;
  opacity: .7;
}
.gplay-button {
  display: block;
  position: fixed;
  bottom: -20px;
  right: 20px;
  margin-top: 60px;
  margin-bottom: 40px;
  text-align: center;
}
.gplay-button img {
  width: 160px;
}
/** MEDIA QUERIES **/
/** APP **/
#rules {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  min-width: 360px;
  height: 100%;
  text-align: center;
  opacity: 0;
  overflow: hidden;
  z-index: 10000;
  -webkit-transition: opacity 100ms linear, top 10ms linear 100ms;
  -o-transition: opacity 100ms linear, top 10ms linear 100ms;
  transition: opacity 100ms linear, top 10ms linear 100ms;
}
#rules.show {
  top: 0;
  opacity: 1;
  -webkit-transition: opacity 300ms linear 500ms;
  -o-transition: opacity 300ms linear 500ms;
  transition: opacity 300ms linear 500ms;
}
#rules .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #7a7f85;
  font-size: 30px;
  cursor: pointer;
  z-index: 30000;
}
#rules #rules-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  overflow: auto;
}
#rules #rules-wrapper .settings-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  padding: 25px 30px;
  z-index: 20000;
}
#rules #rules-wrapper .settings-wrapper .settings {
  margin-bottom: 30px;
  text-align: center;
}
#rules #rules-wrapper .settings-wrapper .settings .button {
  display: block;
  margin-bottom: 20px;
  padding-left: 10px !important;
  padding-right: 10px !important;
  min-width: 165px;
  color: #a8a8af !important;
  background-color: #1a1d25 !important;
}
#rules #rules-wrapper .settings-wrapper .settings .button:not(.disabled):hover {
  background-color: #22252c !important;
}
#rules #rules-wrapper .settings-wrapper .settings .button:not(.disabled):active {
  background-color: #25282f !important;
}
#rules #rules-wrapper .settings-wrapper .game-data p {
  margin-top: -5px;
  letter-spacing: -0.2px;
  max-width: 165px;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  color: #a8a8af;
}
#rules #rules-wrapper .settings-wrapper .game-data p span {
  color: #7a7f85;
}
#rules #rules-wrapper .rules-content {
  padding: 10px 130px;
  width: 100%;
  max-width: 1200px;
  font-size: 0.95rem;
}
#rules #rules-wrapper h2 {
  margin-top: 50px;
  margin-bottom: 30px;
  color: #a8a8af;
  font-size: inherit !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#rules #rules-wrapper p {
  margin: 20px 0;
  text-align: left;
  line-height: 22px;
  letter-spacing: .2px;
  color: #7a7f85;
  -webkit-filter: none;
  filter: none;
}
#rules #rules-wrapper p a {
  color: #7a7f85;
}
#rules #rules-wrapper p.tip {
  line-height: 20px !important;
}
#rules #rules-wrapper hr {
  border: none;
  border-width: 1px;
  border-style: solid;
  border-bottom-color: #2a303a;
  opacity: 1;
}
/** MEDIA QUERIES **/
/** APP **/
#leaderboard .modal-box {
  padding: 0;
  width: 650px;
  height: 80%;
  color: #909095;
  background-color: #1a1d25;
}
#leaderboard .modal-box .leaderboard-content .entry.active {
  color: #a8a8af;
  background: rgba(0, 0, 0, 0.2) !important;
  border-bottom-color: #a8a8af;
}
#leaderboard .modal-box .leaderboard-content .entry .rank-wrapper {
  color: #2a303a;
  font-weight: 700;
  -webkit-filter: brightness(1.3);
  filter: brightness(1.3);
}
#leaderboard .modal-box .leaderboard-content {
  position: relative;
  margin-left: 35px;
  padding: 25px 75px 25px 0;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: .9rem;
  overflow: auto !important;
}
#leaderboard .modal-box .leaderboard-content .entry {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  padding: 8px 20px 8px 0;
  width: 100%;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
#leaderboard .modal-box .leaderboard-content .entry:first-child {
  border-radius: 3px 3px 0 0;
}
#leaderboard .modal-box .leaderboard-content .entry:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.012);
  background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(10%, rgba(255, 255, 255, 0.012)), color-stop(95%, rgba(255, 255, 255, 0.012)), to(transparent));
  background: -o-linear-gradient(left, transparent 0%, rgba(255, 255, 255, 0.012) 10%, rgba(255, 255, 255, 0.012) 95%, transparent 100%);
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.012) 10%, rgba(255, 255, 255, 0.012) 95%, transparent 100%);
}
#leaderboard .modal-box .leaderboard-content .entry.active .rank-wrapper {
  color: #7a7f85;
}
#leaderboard .modal-box .leaderboard-content .entry.active .rank-wrapper .rank {
  opacity: 1;
}
#leaderboard .modal-box .leaderboard-content .entry > div {
  display: inline-block;
  min-height: 2rem;
  line-height: 2rem;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
}
#leaderboard .modal-box .leaderboard-content .entry > div.rank-wrapper {
  width: 12%;
  text-align: center;
  letter-spacing: -1px;
}
#leaderboard .modal-box .leaderboard-content .entry > div.rank-wrapper .rank {
  margin-top: 4px;
  padding-left: 2px !important;
  -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  font-weight: 300 !important;
  line-height: 1rem !important;
  opacity: .6;
}
#leaderboard .modal-box .leaderboard-content .entry > div.username {
  padding-left: 5px;
  width: 68%;
  text-align: left;
}
#leaderboard .modal-box .leaderboard-content .entry > div.score {
  padding-top: .1rem;
  padding-right: 2px;
  width: 20%;
  text-align: right;
  line-height: .9rem;
  letter-spacing: -0.2px;
}
#leaderboard .modal-box .leaderboard-content .entry > div.score span {
  display: block;
  font-size: .8rem;
  text-align: right;
  opacity: .5;
}
#leaderboard .modal-box .loader {
  display: none;
}
#leaderboard .modal-box.loading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
#leaderboard .modal-box.loading .leaderboard-content {
  position: absolute;
}
#leaderboard .modal-box.loading .loader {
  display: block;
  width: 100%;
  text-align: center;
}
/** MEDIA QUERIES **/
/** APP **/
.modal-box h3 {
  margin-top: 5px;
  margin-bottom: 28px;
  font-size: 1rem;
}
.modal-box p {
  margin-top: -5px !important;
  font-size: .9rem;
  line-height: 1.2rem;
}
.modal-box input.username,
.modal-box input.gamekey {
  display: block;
  margin-top: 20px;
  padding: 8px;
  width: 100%;
  color: inherit;
  background-color: transparent;
  border: none;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: #777;
  font-size: 1.1rem;
  font-family: 'Roboto', sans-serif;
  letter-spacing: .5px;
  outline: none;
}
.modal-box input.username::-webkit-input-placeholder,
.modal-box input.gamekey::-webkit-input-placeholder {
  color: inherit;
  opacity: .6;
}
.modal-box input.username:-ms-input-placeholder,
.modal-box input.gamekey:-ms-input-placeholder {
  color: inherit;
  opacity: .6;
}
.modal-box input.username::placeholder,
.modal-box input.gamekey::placeholder {
  color: inherit;
  opacity: .6;
}
.modal-box input.username:focus,
.modal-box input.gamekey:focus {
  border-bottom-color: #27f;
}
.modal-box input.username.error,
.modal-box input.gamekey.error {
  border-bottom-color: #c55;
}
.modal-box input.username.gamekey,
.modal-box input.gamekey.gamekey {
  text-transform: uppercase;
}
.modal-box .alert {
  margin-top: 20px !important;
  font-size: .8rem;
  line-height: 1rem;
  letter-spacing: -0.2px;
}
.modal-box .alert.error {
  color: #c55;
}
.modal-box .alert.info {
  color: #27f;
}
.modal-box .alert.success {
  color: #0a6;
}
.modal-box .form-buttons {
  margin-top: 25px;
  text-align: right;
}
.modal-box .form-buttons .button {
  margin-left: 5px;
  padding: 13px 30px 12px 30px;
}
.modal-box .form-buttons .button:not(.later) {
  color: white;
  background-color: #27f;
}
.modal-box .form-buttons .button:not(.later):not(.disabled):hover {
  background-color: #4f8fff;
}
.modal-box .form-buttons .button:not(.later):not(.disabled):active {
  background-color: #59f;
}
.modal-box .form-buttons .button.later {
  color: #555;
  background-color: #ccc;
}
.modal-box .form-buttons .button.later:not(.disabled):hover {
  background-color: #d5d5d5;
}
.modal-box .form-buttons .button.later:not(.disabled):active {
  background-color: #dadada;
}
/** MEDIA QUERIES **/
/** APP **/
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top-width: 3px;
  border-top-style: solid;
  background-color: rgba(0, 0, 0, 0.15);
  border-top-color: #7a7f85;
  z-index: 10;
}
#overlay {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  text-align: center;
  opacity: 0;
  z-index: 1000;
  -webkit-transition: top 400ms ease 100ms, opacity 100ms linear 400ms;
  -o-transition: top 400ms ease 100ms, opacity 100ms linear 400ms;
  transition: top 400ms ease 100ms, opacity 100ms linear 400ms;
}
#overlay.show {
  top: 0;
  opacity: .9;
  -webkit-transition: top 500ms, opacity 300ms;
  -o-transition: top 500ms, opacity 300ms;
  transition: top 500ms, opacity 300ms;
}
#overlay.lower-opacity.show {
  opacity: .75;
}
#overlay > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: white !important;
}
#overlay > div img {
  margin: 0 35px;
}
#overlay .button {
  display: block;
  margin-top: 50px;
  padding-top: 15px;
  padding-bottom: 14px;
  color: #333;
  background-color: white !important;
}
a {
  color: inherit;
}
/** MEDIA QUERIES **/
/** APP **/
.panel {
  display: inline-block;
  border-radius: 3px;
  text-align: center;
}
.panel > span {
  display: block;
  padding: 7px 2px 5px 2px;
}
.panel > span.label {
  color: #7a7f85;
  background-color: #1a1d25;
  border-radius: 3px;
  font-size: 0.8rem;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.panel > span.value {
  color: #7a7f85;
  font-size: 1.9rem;
}
.square {
  position: relative;
  border-radius: 5px;
}
.square:before {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.square .square-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.square .square-content > div {
  display: table;
  width: 100%;
  height: 100%;
}
.square .square-content > div span {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
.modal-box-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: fixed;
  top: -100%;
  margin-top: -20px;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 8000;
  -webkit-transition: opacity 200ms linear, margin-top 300ms ease, top 10ms linear 200ms;
  -o-transition: opacity 200ms linear, margin-top 300ms ease, top 10ms linear 200ms;
  transition: opacity 200ms linear, margin-top 300ms ease, top 10ms linear 200ms;
}
.modal-box-wrapper.show {
  top: 0;
  margin-top: 0;
  opacity: 1;
  -webkit-transition: opacity 200ms linear 500ms, margin-top 200ms ease 500ms;
  -o-transition: opacity 200ms linear 500ms, margin-top 200ms ease 500ms;
  transition: opacity 200ms linear 500ms, margin-top 200ms ease 500ms;
}
.modal-box-wrapper .modal-box {
  position: absolute;
  padding: 25px 30px;
  width: 550px;
  border-radius: 3px;
  overflow: hidden;
  color: #909095;
  background-color: #1a1d25;
}
.modal-box-wrapper .modal-box .close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 12px;
  font-size: 20px;
  cursor: pointer;
  z-index: 9000;
}
.button {
  position: relative;
  padding: 8px 30px 9px 30px;
  color: #1a1d25;
  border: none;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  text-align: center !important;
  line-height: .9rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
  background-color: #a8a8af;
}
.button:not(.disabled):hover {
  background-color: #b2b2b5;
}
.button:not(.disabled):active {
  background-color: #bcbcbf;
}
.button.disabled {
  color: #2a303a;
  opacity: .7;
  cursor: default;
}
.button i {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.button .value {
  font-weight: 400;
}
.rank {
  display: inline-block;
  padding-top: 3px;
  padding-right: 2.5px;
  width: 22px;
  height: 22px;
  color: #bbb;
  border-radius: 3px;
  text-align: center;
  font-size: 14px;
  letter-spacing: -1px;
}
.rank.rank-1 {
  background-color: #a0803a;
}
.rank.rank-2 {
  background-color: #828295;
}
.rank.rank-3 {
  background-color: #65483c;
}
.square-thumb {
  display: inline-block;
  float: left;
  position: relative;
  margin: 2px;
  padding: 0;
  width: 14px;
  height: 14px;
  color: #a8a8af;
  border-width: 2px;
  border-style: solid;
  border-radius: 2px;
  text-align: center;
  background-color: #7a7f85;
  border-color: #7a7f85;
}
.square-thumb.null {
  background-color: transparent;
}
.loader {
  color: white;
  font-size: 30px;
}
.invisible {
  visibility: hidden !important;
  opacity: 0 !important;
}
.hide {
  display: none !important;
}
/** MEDIA QUERIES **/
/** MEDIA QUERIES **/
@media screen and (max-width: 1440px) {
  #rules #rules-wrapper .settings-wrapper {
    position: relative;
    margin-top: 10px;
    margin-bottom: -15px;
    width: 100%;
  }
  #rules #rules-wrapper .settings-wrapper .settings {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  #rules #rules-wrapper .settings-wrapper .settings .button {
    display: inline-block;
    margin: 0 10px;
    min-width: 180px;
  }
  #rules #rules-wrapper .settings-wrapper .game-data {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  #rules #rules-wrapper .settings-wrapper .game-data p {
    margin: 0 10px;
    min-width: 180px;
    text-align: center;
  }
}
@media screen and (max-width: 1080px) {
  #timer {
    font-size: 3rem;
    letter-spacing: 0;
  }
  #timer > span {
    padding-top: 4px;
    padding-bottom: 7px;
  }
  #game {
    margin-top: 22px;
  }
  #outputs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    position: relative;
    margin-right: 0;
    margin-bottom: 10px;
    width: 100%;
  }
  #outputs > .panel {
    width: 31.5%;
  }
  #grid {
    top: auto !important;
    margin-top: -10px;
  }
  .gplay-button {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 60px;
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
  }
}
@media screen and (max-width: 960px) {
  body {
    width: 100%;
  }
  [role=main] {
    width: 58%;
  }
  #rules #rules-wrapper .rules-content {
    padding-left: 100px;
    padding-right: 100px;
  }
  #rules #rules-wrapper p {
    text-align: justify;
  }
}
@media screen and (max-width: 840px) {
  [role=main] {
    width: 65%;
  }
  header {
    margin-top: 25px;
  }
  #state {
    display: block;
    margin-top: 25px;
  }
  #timer {
    width: 100%;
    background-color: transparent;
    border-width: 2px;
    border-style: solid;
    color: #7a7f85;
    border-color: #7a7f85;
  }
  #player {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 30px;
  }
  #player > .panel {
    width: 100%;
  }
  #player > .panel:first-child {
    margin-left: 0;
    margin-right: 10px;
  }
  #player > .panel:last-child {
    margin-left: 10px;
  }
  #game {
    margin-top: 15px;
  }
  #outputs > .panel {
    width: 32%;
  }
  #rules #rules-wrapper > .rules-content {
    padding-left: 50px;
    padding-right: 50px;
  }
}
@media screen and (max-width: 720px) {
  [role=main] {
    width: 80%;
  }
  header {
    margin-top: 15px;
  }
  #state {
    margin-top: 18px;
  }
  #player {
    margin-top: 18px;
  }
  #game {
    margin-top: 8px;
  }
  #outputs > .panel {
    min-width: 80px;
  }
  #grid {
    margin-top: -10px;
    margin-bottom: 20px;
  }
  #how-to {
    margin-bottom: 20px;
    text-align: justify;
    font-size: .9rem;
    line-height: 1.1rem;
  }
  #rules #rules-wrapper .settings .button {
    margin: 0 5px;
    min-width: 150px;
  }
  #leaderboard .modal-box {
    width: 85%;
    height: 85%;
  }
  #leaderboard .modal-box .leaderboard-content {
    margin-left: 20px;
    padding: 15px 55px 15px 0;
    font-size: .8rem;
  }
  #leaderboard .modal-box .leaderboard-content .entry > div.score {
    padding-top: .2rem;
  }
  #leaderboard .modal-box .leaderboard-content .entry > div.score span {
    font-size: .7rem;
    line-height: .8rem;
  }
  #progress-bar {
    display: none !important;
  }
  .modal-box-wrapper .modal-box {
    width: 80% !important;
  }
}
@media screen and (max-width: 480px) {
  [role=main] {
    width: 90%;
  }
  #player > .panel .label {
    letter-spacing: 0;
  }
  #outputs {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  #outputs > .panel {
    width: 33.33%;
  }
  #outputs > .panel .label {
    border-radius: 0;
    letter-spacing: -0.2px;
  }
  #outputs > .panel:first-child .label {
    border-radius: 3px 0 0 3px;
  }
  #outputs > .panel:last-child .label {
    border-radius: 0 3px 3px 0;
  }
  #grid .square .square-content {
    font-size: 2.2rem;
  }
  #how-to {
    font-size: .8rem;
  }
  #rules .close {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    font-size: 1.25rem;
  }
  #rules #rules-wrapper .settings-wrapper .settings {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: -15px;
  }
  #rules #rules-wrapper .settings-wrapper .settings .button {
    margin: 8px auto;
  }
  #rules #rules-wrapper .settings-wrapper .game-data {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: -15px;
  }
  #rules #rules-wrapper .settings-wrapper .game-data p {
    margin: 8px auto;
    font-size: 0.9rem;
  }
  #rules #rules-wrapper .rules-content {
    padding-left: 35px;
    padding-right: 35px;
    font-size: 0.8rem;
  }
  #rules #rules-wrapper h2 {
    margin-top: 35px;
    margin-bottom: 20px;
  }
  #rules #rules-wrapper p {
    margin: 15px 0;
    line-height: 16px;
    letter-spacing: .2px;
  }
  #leaderboard .modal-box {
    width: 90%;
    height: 90%;
    min-width: 324px;
  }
  #leaderboard .modal-box .leaderboard-content {
    padding-right: 60px;
  }
  #leaderboard .modal-box .leaderboard-content .entry {
    padding: 5px 10px 5px 0;
  }
  #leaderboard .modal-box .leaderboard-content .entry > div.rank-wrapper {
    width: 15%;
  }
  #leaderboard .modal-box .leaderboard-content .entry > div.username {
    width: 63%;
  }
  #leaderboard .modal-box .leaderboard-content .entry > div.score {
    width: 22%;
  }
  .modal-box h3 {
    font-size: .9rem;
  }
  .modal-box p {
    font-size: .8rem;
    line-height: 1rem;
  }
  .modal-box input.username,
  .modal-box input.gamekey {
    margin-top: 15px;
    padding: 5px;
    font-size: 1rem;
  }
  .modal-box .form-buttons {
    margin-top: 18px;
  }
  .panel > span.label {
    font-size: 0.74rem;
  }
  .modal-box-wrapper .modal-box {
    padding: 15px 20px;
    width: 90% !important;
    min-width: 324px;
  }
}
@media screen and (max-width: 360px) {
  body {
    width: 360px;
  }
  #grid {
    border: 0;
    padding: 1.2%;
    padding-bottom: .6%;
  }
  #rules #rules-wrapper .rules-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}
