/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  background: #1f1f1f;
  color: #fafafa;
  -webkit-font-smoothing: antialiased;
}
body * {
  max-height: 10000px;
}

svg use {
  pointer-events: none;
}

button {
  border: none;
  outline: none;
}
button:hover {
  cursor: pointer;
}

.container {
  width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}

.invisible {
  opacity: 0;
  pointer-events: none;
}

.dark-button {
  font-size: 16px;
  padding: 8px 20px;
  border: 0;
  border-radius: 3px;
  background: black;
  color: white;
  display: inline-block;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.dark-button:hover {
  background: #51B7FF;
  cursor: pointer;
}
.dark-button.small {
  font-size: 12px;
  padding: 4px 10px;
  line-height: 16px;
}

.main-header {
  height: 40px;
  background: #121212;
  width: 100%;
  text-transform: uppercase;
}
.main-header .container {
  align-items: center;
  display: flex;
  height: 100%;
}
.main-header .logo {
  color: #6D6D6D;
  font-size: 12px;
  font-weight: bold;
  font-family: "Orbitron", Arial, sans-serif;
  line-height: 42px;
  letter-spacing: 1.5px;
  margin-right: auto;
}
.main-header .logo:hover {
  color: #ffe800;
}
.main-header .logo i {
  font-size: 15px;
  margin-right: 5px;
}
.main-header .logo svg {
  width: 8px;
  position: relative;
  top: 1px;
  margin-right: 7px;
}
.main-header .logo .large {
  font-size: 16px;
}
.main-header a {
  color: #6D6D6D;
  text-decoration: none;
  font-size: 11px;
  line-height: 40px;
  letter-spacing: 0.5px;
  transition: color 0.15s ease;
}
.main-header a:hover {
  color: #e0e0e0;
}
.main-header .link-right {
  height: 40px;
  line-height: 40px;
  padding: 0 3px;
  margin-left: 22px;
  display: flex;
  align-items: center;
}
.main-header .link-right svg {
  width: 16px;
  height: 16px;
}
.main-header .user-link {
  font-weight: bold;
}
.main-header .sign-in {
  color: rgba(255, 255, 255, 0.75);
}
.main-header .sign-in svg {
  width: 11px;
  margin-right: 6px;
}
.main-header .sign-in span {
  height: 16px;
  line-height: 16px;
}

@media (max-aspect-ratio: 11/16) {
  .container {
    width: 100vw;
    padding: 0;
  }
  .above-board, .under-board {
    width: 100vw !important;
  }
  .board-container {
    display: block !important;
  }
  .board-area {
    width: 100vw !important;
    height: 100vw !important;
  }
  .board-area .chessboard {
    width: 100% !important;
    height: 100% !important;
  }
  .chessground-board {
    width: 100% !important;
    height: 100% !important;
  }
}
.quest-bg {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  min-height: 400px;
  z-index: 1;
}

.quest-bg-2 {
  width: 100%;
  background-image: url("/assets/photo-1445711005973-54fe2a103826.jpg");
  background-size: cover;
  background-position: center center;
  min-height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  min-height: 850px;
  z-index: 1;
}

.quest-above-bg {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.quest-section {
  padding: 3rem 0;
  min-height: 300px;
  overflow: hidden;
  background: black;
}
.quest-section .quest-container {
  display: flex;
  position: relative;
  z-index: 2;
}
.quest-section aside.world-sidebar {
  min-width: 150px;
  margin-right: 3rem;
}
.quest-section aside.world-sidebar .world-name {
  opacity: 0.9;
  margin-bottom: 0.5rem;
}
.quest-section aside.world-sidebar .world-subtitle {
  opacity: 0.8;
}
.quest-section .quest-level {
  display: flex;
  margin-bottom: 1rem;
}
.quest-section .quest-level .board-link {
  display: block;
}
.quest-section .quest-level .level-info {
  margin-left: 1rem;
}
.quest-section .quest-level .level-name {
  margin-bottom: 0.5rem;
}
.quest-section .quest-level .level-task {
  line-height: 1.25rem;
  opacity: 0.8;
}
.quest-section .quest-level .level-best-score {
  margin-top: 2rem;
}
.quest-section .quest-next {
  margin: 3rem 0 1rem;
}
.quest-section .world-status {
  margin-top: 8rem;
}
.quest-section .quest-container-bottom {
  margin-top: 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.game-modes-section {
  position: relative;
  z-index: 2;
  background: #212121;
  padding-top: 1rem;
}

.about.container {
  color: rgba(255, 255, 255, 0.5);
  margin: 45px auto 60px;
  width: 420px;
}
.about.container a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.12s ease;
}
.about.container a:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}
.about.container .question {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}
.about.container .answer {
  margin: 10px 0 60px;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.2px;
}
.about.container .cta {
  margin-top: 55px;
  font-size: 14px;
}

.homepage .container {
  padding: 0 10px;
}
.homepage h2 {
  font-size: 20px;
  opacity: 0.6;
  text-align: center;
  margin: 30px 0 50px;
}
.homepage .game-modes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 0 auto;
  width: 980px;
}
.homepage .mode {
  text-align: center;
  padding: 0 5px;
  margin-bottom: 45px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.homepage .mode h3 {
  font-size: 26px;
  margin-bottom: 15px;
}
.homepage .mode h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.homepage .mode h3 a:hover {
  color: #ffe800;
}
.homepage .mode .game-mode-description {
  opacity: 0.5;
  font-size: 13px;
  line-height: 20px;
  margin-bottom: 25px;
  width: 220px;
}
.homepage .mode .under-mini-board {
  font-size: 16px;
  line-height: 22px;
  margin-top: 20px;
  color: rgba(250, 250, 250, 0.5);
  transition: opacity 0.15s ease;
  width: 220px;
  height: 50px;
}
.homepage .mode .under-mini-board a {
  color: rgba(250, 250, 250, 0.8);
  text-decoration: none;
}
.homepage .mode .under-mini-board a:hover {
  text-decoration: underline;
}
.homepage .mode .under-mini-board .your-best-times {
  margin-bottom: 2px;
}
.homepage .mode .under-mini-board .best-time {
  color: rgba(250, 250, 250, 0.8);
}
.homepage .miniboard-link {
  display: block;
  transition: all 0.15s ease;
}
.homepage .miniboard-link:hover {
  box-shadow: 0 0 11px #ffe800;
}
.homepage .miniboard-link a {
  display: block;
}
.homepage .mini-chessboard {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  transition: border 0.15s ease;
}
.homepage .mini-scoreboard {
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
}
.homepage .mini-scoreboard h6 {
  color: rgba(250, 250, 250, 0.25);
  margin-bottom: 30px;
}
.homepage .mini-scoreboard .top-players {
  margin: 10px 0 30px;
  font-size: 14px;
}
.homepage .mini-scoreboard .top-players h5 {
  color: rgba(250, 250, 250, 0.4);
  margin-bottom: 6px;
}
.homepage .mini-scoreboard .ranking {
  padding: 4px 0;
  display: flex;
  color: rgba(250, 250, 250, 0.8);
}
.homepage .mini-scoreboard .ranking .player-name {
  width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-bottom: 2px;
}
.homepage .mini-scoreboard .ranking .stats {
  width: 50px;
  text-align: right;
}
.homepage .mini-scoreboard .ranking a {
  color: rgba(250, 250, 250, 0.8);
  text-decoration: none;
}
.homepage .mini-scoreboard .ranking a:hover {
  text-decoration: underline;
}
.homepage .bottom {
  background: #171717;
  padding-bottom: 100px;
}
.homepage .updates {
  width: 480px;
  margin: 0 auto;
}
.homepage .updates h6 {
  color: rgba(250, 250, 250, 0.4);
  padding: 40px 0 15px;
}
.homepage .updates .update {
  display: flex;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5em;
}
.homepage .updates .update .timestamp {
  width: 100px;
}
.homepage .updates .update .text {
  width: 380px;
  color: rgba(255, 255, 255, 0.7);
}
.homepage .updates .update a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: bold;
  text-decoration: none;
}
.homepage .updates .update a:hover {
  text-decoration: underline;
  color: white;
}

@media (max-width: 980px) {
  .homepage .game-modes-container {
    width: 600px;
  }
}
.not-found {
  text-align: center;
  margin-top: 40px;
}

.positions-index {
  padding-right: 0;
  margin: 50px auto 100px;
}
.positions-index h2 {
  margin-bottom: 5px;
}
.positions-index a {
  color: inherit;
}
.positions-index a:hover {
  color: white;
}
.positions-index .button {
  font-size: 15px;
  padding: 6px 18px 7px;
  border: 0;
  border-radius: 3px;
  background: #2C9BEA;
  color: white;
  display: inline-block;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  line-height: 20px;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.positions-index .button:hover {
  background: #51B7FF;
  cursor: pointer;
}
.positions-index .description, .positions-index .small-instructions {
  color: #B5B5B5;
}
.positions-index .description {
  line-height: 22px;
  margin-bottom: 30px;
  width: 590px;
}
.positions-index .small-instructions {
  font-size: 12px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.positions-index .positions {
  overflow: hidden;
  margin-bottom: 25px;
}
.positions-index .examples {
  overflow: hidden;
  margin-bottom: 25px;
}
.positions-index .more-button {
  margin: 5px auto 45px;
  margin-left: 200px;
}
.positions-index .miniboard-link {
  float: left;
  text-align: center;
  margin-bottom: 20px;
}
.positions-index .miniboard-link a {
  color: inherit;
  text-decoration: none;
}
.positions-index .miniboard-link a:hover .position-name {
  text-decoration: underline;
}
.positions-index .miniboard-link .position-name {
  line-height: 22px;
  font-size: 15px;
  position: relative;
  top: -2px;
  display: inline-block;
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: normal;
}
.positions-index .mini-chessboard {
  margin: 15px;
}
.positions-index .new-position {
  margin: 50px 0;
}
.positions-index .new-position .text-input {
  font-size: 16px;
  padding: 6px 14px;
  border: 0;
  border-radius: 2px;
}
.positions-index .new-position .fen-input {
  width: 420px;
}
.positions-index .new-position .name-input {
  margin-top: 10px;
  width: 420px;
}
.positions-index .new-position .play-to {
  margin-left: 20px;
}
.positions-index .new-position .position-goal {
  font-size: 14px;
}
.positions-index .new-position .submit {
  margin-top: 12px;
}
.positions-index .new-position .error-message {
  color: #F954AE;
  margin-left: 15px;
  transition: opacity 0.25s ease;
}

section.puzzle-attempts h2 {
  margin: 20px 0 40px;
}
section.puzzle-attempts .puzzle-attempt {
  float: left;
  margin: 20px;
}

.puzzle-reports-list {
  padding-top: 30px;
}

.puzzle-report-summary {
  margin-bottom: 20px;
}

.puzzle-link {
  color: inherit;
  opacity: 0.8;
}

.puzzle-report-message {
  padding: 5px 0;
}

.puzzle-report-timestamp {
  font-size: 14px;
  opacity: 0.6;
}

.puzzle-set-form-page {
  padding-top: 30px;
}
.puzzle-set-form-page h2 {
  font-size: 24px;
  margin-bottom: 30px;
}
.puzzle-set-form-page .blue-button {
  font-size: 15px;
  margin-top: 20px;
}
.puzzle-set-form-page input[type=text], .puzzle-set-form-page textarea {
  display: block;
  margin-bottom: 20px;
  width: 300px;
  padding: 5px 10px;
}
.puzzle-set-form-page .ps-input-puzzle-ids {
  min-height: 100px;
  height: 200px;
}
.puzzle-set-form-page form {
  display: flex;
}
.puzzle-set-form-page .right {
  margin-left: 30px;
  padding-top: 110px;
  line-height: 1.5em;
  font-size: 14px;
  opacity: 0.5;
}

body[data-controller=puzzle_sets][data-action=index] h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
body[data-controller=puzzle_sets][data-action=index] h3 {
  font-size: 18px;
}
body[data-controller=puzzle_sets][data-action=index] .puzzle-sets-index {
  padding-top: 30px;
}
body[data-controller=puzzle_sets][data-action=index] .puzzle-sets-list {
  margin-top: 40px;
}
body[data-controller=puzzle_sets][data-action=index] .blue-button {
  display: inline-block;
  font-size: 18px;
  padding: 9px 20px;
}
body[data-controller=puzzle_sets][data-action=index] .puzzle-set a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 5px 0;
  margin-bottom: 10px;
  opacity: 0.8;
}
body[data-controller=puzzle_sets][data-action=index] .puzzle-set a:hover {
  opacity: 1;
}
body[data-controller=puzzle_sets][data-action=index] .puzzle-set a .puzzle-set-name {
  font-size: 22px;
  text-decoration: underline;
  padding-bottom: 10px;
}
body[data-controller=puzzle_sets][data-action=index] .puzzle-set a .puzzle-set-info {
  font-size: 16px;
}

.registration {
  width: 265px;
}
.registration h2 {
  font-size: 28px;
  margin: 40px 0 25px;
}
.registration h3 {
  font-size: 20px;
  margin: 40px 0 25px;
}
.registration p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 22px;
}
.registration a {
  color: rgba(255, 255, 255, 0.8);
}
.registration a:hover {
  color: rgb(255, 255, 255);
}
.registration form {
  margin: 50px 0 30px;
}
.registration .field {
  margin: 25px 0;
}
.registration .field .optional {
  color: rgba(255, 255, 255, 0.5);
  margin-left: 10px;
}
.registration .field label {
  display: block;
  margin-bottom: 10px;
}
.registration .field input {
  padding: 10px 15px;
  font-size: 14px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
}
.registration .field input:focus {
  background: white;
}
.registration .blue-button {
  font-size: 18px;
}
.registration .registration-links {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-top: 10px;
  line-height: 25px;
}
.registration #error_explanation, .registration .alert {
  width: 500px;
}
.registration #error_explanation h2, .registration .alert h2 {
  display: none;
}
.registration #error_explanation li, .registration .alert li {
  font-size: 15px;
  margin: 10px 0;
  color: #F954AE;
  list-style-type: circle;
  list-style-position: inside;
}
.registration .alert-notice {
  color: #F954AE;
  line-height: 20px;
  margin-top: 10px;
}

.scoreboard {
  margin: 0 auto 100px;
}
.scoreboard h1 {
  text-align: center;
  margin: 50px 0;
  font-size: 22px;
  font-family: Orbitron, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
}
.scoreboard h2 {
  margin-bottom: 16px;
  opacity: 0.2;
}
.scoreboard h3 {
  font-size: 15px;
  opacity: 0.5;
  margin-bottom: 8px;
}
.scoreboard .username {
  color: inherit;
  text-decoration: none;
  padding: 7px 0;
  float: left;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scoreboard .username:hover {
  opacity: 1;
}
.scoreboard .scores {
  margin-bottom: 30px;
}
.scoreboard .recent-scores {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.scoreboard .recent-scores .game-mode-scores {
  width: 200px;
  margin-bottom: 30px;
}
.scoreboard .recent-scores .user-score {
  display: flex;
  align-items: center;
  font-size: 15px;
}
.scoreboard .recent-scores .user-score .score {
  margin-left: auto;
}
.scoreboard .hall-of-fame {
  overflow: hidden;
}
.scoreboard .hall-of-fame .username {
  width: 33%;
}

.user-profile {
  margin: 50px 0 80px;
}
.user-profile header.player-info {
  padding-bottom: 30px;
}
.user-profile header.player-info .username {
  font-size: 36px;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  margin-bottom: 25px;
}
.user-profile header.player-info .tagline {
  font-size: 18px;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  opacity: 0.6;
}
.user-profile a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.user-profile a:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}
.user-profile form {
  display: flex;
}
.user-profile form input[type=text] {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  border: 0;
  width: 380px;
  padding: 8px 16px;
  display: block;
}
.user-profile form .blue-button {
  font-size: 16px;
}
.user-profile .right-side {
  float: right;
}
.user-profile .sign-out button[type=submit] {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  padding: 0;
}
.user-profile .sign-out button[type=submit]:hover {
  text-decoration: underline;
  cursor: pointer;
}
.user-profile .preferences-link {
  margin-top: 16px;
}
.user-profile .achievements {
  margin: 30px 0 20px;
}
.user-profile .achievements h4 {
  margin-bottom: 10px;
  opacity: 0.5;
}
.user-profile .stats {
  display: flex;
  justify-content: space-between;
  margin: 60px auto;
}
.user-profile .stats h2 {
  opacity: 0.2;
}
.user-profile .recent-high-scores {
  margin-right: 100px;
}
.user-profile .game-mode-stats {
  margin: 20px 0;
}
.user-profile .training-mode-stats {
  margin: 20px 0;
  display: flex;
}
.user-profile .game-mode-name {
  width: 100px;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.3);
}
.user-profile .stats-row {
  display: flex;
  padding: 5px 0;
}
.user-profile .stats-row .long-label {
  color: rgba(255, 255, 255, 0.4);
  width: 240px;
}
.user-profile .stats-row .label {
  color: rgba(255, 255, 255, 0.4);
  width: 140px;
}
.user-profile .stats-row .count {
  width: 70px;
  text-align: right;
}

.preferences-page {
  width: 600px;
}
.preferences-page h2 {
  font-size: 28px;
  margin: 40px 0 25px;
}
.preferences-page h3 {
  font-size: 20px;
  margin: 30px 0 15px;
}
.preferences-page p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 22px;
  margin: 0 0 15px;
}
.preferences-page hr {
  margin: 30px 0;
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}
.preferences-page .section {
  margin-bottom: 30px;
}
.preferences-page .customize-board-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.preferences-page .customize-board-row .customize-copy {
  flex: 1 1 auto;
}
.preferences-page .customize-board-row .board-preview {
  flex: 0 0 auto;
  margin-left: 30px;
}
.preferences-page .customize-board-row .board-preview .mini-chessboard {
  transform: scale(0.9);
  transform-origin: top right;
}
.preferences-page form {
  margin-top: 15px;
}
.preferences-page .field {
  margin: 15px 0 20px;
}
.preferences-page .field label {
  display: block;
  margin-bottom: 8px;
}
.preferences-page .field input {
  padding: 10px 15px;
  font-size: 14px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  width: 100%;
}
.preferences-page .field input:focus {
  background: white;
}
.preferences-page .alert {
  color: #F954AE;
  margin: 10px 0 20px;
  line-height: 20px;
}
