@font-face { font-family: 'Fellowmaiden'; src: url('../fonts/fellowmaiden.woff') format('woff'); font-display: swap; }

* {  -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; }

html, body { background: #000; font-family: Fellowmaiden; font-size: 36px; color: #222; cursor: default; text-shadow: 0 0 3px rgba(0,0,0, 0.5); }
input { caret-color: transparent; border: none; background: transparent; outline: none; color: #fff; }
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-internal-autofill-selected, textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus, select:-webkit-autofill, select:-webkit-autofill:hover, select:-webkit-autofill:focus {
  border: 0;
    background-color: transparent !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: black !important; /* Keep text color visible */
}
audio, embed { position: absolute; top: -200%; left: -200%; }

#canvas, #effects-canvas  { width: 100%; height: 100%; z-index: 9999; pointer-events: none; }
.content { opacity: 0; }
.center { position: absolute; text-align: center; transform: translate(-50%, -50%); top: 50%; left: 50%; }
.invisible { opacity: 0 !important; }
.hidden { display: none !important; }
.zoomIn { -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; }
.sparkle { background-image: url('../images/main-menu/logo-fill.webp'); background-size: cover; color: transparent !important; -moz-background-clip: text; -webkit-background-clip: text; text-shadow: 0 0 0 rgba(200,150,0,0.2), -2px -2px 1px rgba(255,200,0, 0.75) !important; }
.apos { font-size: 0.6rem; font-weight: 600; }

.screen, .fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-size: 100% 100%; }
.loading-image { width: 250px; height: 250px; background: url('../images/loading.png') no-repeat center center; background-size: 100% 100%; }
.loading-message { color: #000; text-shadow: 0 0 30px #fc6; margin-top: 52px; }
.main-menu { background: url('../images/main-menu/background.jpg') no-repeat 0 0; background-size: 100% 100%; }
.heading { position: fixed; top: 0; left: 0; right: 0; font-size: 2rem; text-align: center; text-shadow: 0 0 8px #f5be63, 0 0 8px #7d6565; animation-duration: 5s !important; }
.logo { height: 200px; position: fixed; top: 30%; left: 0; right: 0; text-align: center; }
.title { font-size: 3rem; white-space: pre; }
.button { display: inline-block; cursor: pointer; color: #222; text-shadow: 0 0 8px #f9fad7, 0 0 8px #fff; font-size: 1rem; }
.start-game-button, .continue-button { display: inline-block; position: relative; top: 160px; }
.print-button { color: rgb(0,0,0, 0.6) !important; }
.landscape-mode { display: none; }

.game-options .levels { width: 75%; top: 16%; left: 13%; font-size: 3rem; animation-delay: 0s; animation-duration: 10s; }
.game-options .level { position: relative; width: 25%; float: left; cursor: pointer; }
.game-options .level.level-mixed { width: 30%; max-width: 400px; top: 100px; }
.game-options .level:hover .level-shadow { text-shadow: 0 0 2rem gold, 0 0 2rem goldenrod; }
.game-options .level.active { color: #fff; }
.game-options .level-image { margin: auto; max-width: 250px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-repeat: no-repeat; background-position: center center; background-size: 50% 65%; text-indent: -99999px; z-index: 1; }
.game-options .level-image + .level-image { max-width: 130px; left: 42%; background-size: 100% 65%; }
.game-options .level-shadow { margin: auto; max-width: 250px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; color: transparent; transition: text-shadow 200ms ease; text-shadow: 0 0 2rem rgba(255,255,255, 0.5); }
.game-options .level-text { visibility: hidden; }
.level-image + .level-image + .level-shadow { left: 20%; }
.level-image-0 { background-image: url('../images/0.png'); }
.level-image-1 { background-image: url('../images/1.png'); }
.level-image-2 { background-image: url('../images/2.png'); }
.level-image-3 { background-image: url('../images/3.png'); }
.level-image-4 { background-image: url('../images/4.png'); }
.level-image-5 { background-image: url('../images/5.png'); }
.level-image-6 { background-image: url('../images/6.png'); }
.level-image-7 { background-image: url('../images/7.png'); }
.level-image-8 { background-image: url('../images/8.png'); }
.level-image-9 { background-image: url('../images/9.png'); }
.level-image-mixed { background-image: url('../images/mixed.png'); }
.game-options .level-mixed .level-image-mixed, .game-options .level-mixed .level-shadow { max-width: 350px; background-size: 100% 65%; }
.game-options .level.level-complete:after {
    content: '✓';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    color: #0d0;
    text-shadow: 0 0 25px #0d0, 0 0 25px #0d0;
    font-weight: bold;
}
.game-modes .modes { width: 75%; top: 24%; left: 13%; font-size: 3rem; animation-delay: 0s; animation-duration: 10s; }
.game-modes .mode { position: relative; width: 100%; float: left; cursor: pointer; }
.game-modes .mode-shadow { margin: auto; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; color: transparent; transition: text-shadow 200ms ease; text-shadow: 0 0 2rem rgba(255,255,255, 0.5); }
.game-modes .mode:hover .mode-shadow { text-shadow: 0 0 2rem gold, 0 0 2rem goldenrod; }
.game-modes .mode.active { color: #fff; }
.game-progress { position: absolute; top: 0; right: 20%; font-size: 20%; text-shadow: 0 0 10px rgba(0,0,0, 0.75); color: #b39c3f; }
.game-progress:after { content: '%'; }
.sign-in.screen { background-image: url('../images/login-background.png'); background-size: cover; background-position: center center; filter: blur(8px); animation: unblur 1.2s forwards; }
.sign-in .logo { top: 20%; }
.sign-in-username-input, .sign-in-password-input, .sign-in-button { position: relative; top: -0.5rem; }
.sign-in-username, .sign-in-password { width: 100%; font: normal 48px/1 'Fellowmaiden'; text-align: center; border: 2px solid transparent; }
.sign-in-username:focus, .sign-in-password:focus { border: 2px dashed #362b0a; }

.login-error { color: #600;
    background: url(/images/banner.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: inline-block;
    padding: 0 40px;
    height: 72px;
    line-height: 78px;
    font-size: 0.75rem;
}
.choose-level-heading { text-align: center; font-size: 2em; }
.choose-name-heading { text-align: center; }
.player-name-input { width: 100%; }
.player-name { position: absolute; top: -100%; left: -100%; border: none; background: transparent; outline: none; color: transparent; }
.player-name-text { font-size: 4rem; text-align: center; font-family: 'Sigmar One'; color: transparent; text-shadow: 0 0 60px #fcedce; word-wrap: break-word; }
.game-timer { position: fixed; top: 10px; left: 0; right: 0; font-size: 1rem; text-align: center; text-shadow: 0 0 8px #f5be63, 0 0 8px #7d6565; transition: all 200ms ease; animation-duration: 500ms; }
.top-game-time-bar, .right-game-time-bar { position: fixed; transition: all 1s linear; opacity: 0.8; box-shadow: 0 0 6px #000; }
.top-game-time-bar { left: 0; right: 0; width: 0; top: 2px; height: 10px; background: url('../images/fuse-h.png') repeat-x 10px; background-size: 50px 18px; }
.right-game-time-bar { right: -2px; bottom: 0; height: 0; top: auto; width: 15px; background: url('../images/fuse-v.png') repeat-y; transform: rotate(180deg); background-size: 18px 50px; }
.playing .top-game-time-bar:after { content: ''; display: block; float: right; height: 100%; width: 2px; box-shadow: 0 0 4px 2px #ffd426; background: #fc0; }
.playing .right-game-time-bar:after { content: ''; display: block; height: 2px; position: absolute; bottom: 0; left: 0; right: 0; box-shadow: 0 0 4px 2px #ffd426; background: #fc0; }
.playing .top-game-time-bar.low-time:after, .playing .right-game-time-bar.low-time:after { background: #f00; box-shadow: 0 0 4px 2px #f00; }
.flash { z-index: 99; background: rgba(255,255,255, 0.95); opacity: 0; }
.time-low { font-size: 2rem; color: #fcedce; }
.time-expired { font-size: 4rem; color: #fff; }
.answer { position: absolute; top: -100%; left: -100%; border: none; background: transparent; outline: none; color: transparent; }
.answer-text, .correct-answer-text { width: 20em; font-size: 5rem; text-align: center; font-family: 'Fellowmaiden'; color: transparent; text-shadow: 0 0 60px #fcedce; }
.answer-text:empty:after { content: '♥'; display: block; }
.answer-text-digit { position: relative; display: inline-block; width: 175px; }
.answer-text-image { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-repeat: no-repeat; background-size: 105% 60%; background-position: 0 40%; }
.correct-answer-text { top: 80%; color: rgba(0, 128, 0, 0.6) !important; }
.type-here-text { font-size: 3rem; color: #fcedce; text-shadow: 0 0 40px #000, 0 0 40px #000, 0 0 40px #000, 0 0 40px #000; animation-duration: 2s !important; }
.game .type-here-text { margin-top: 8rem; animation-duration: 0.5s !important; }
.game-question { position: relative; font-size: 7rem; }
.game-results { font-size: 3rem; text-shadow: 0 0 25px #b4ff00, 0 0 15px #fff; }
.game-results.almost { text-shadow: 0 0 25px #ffd400, 0 0 15px #fff; }
.game-results.failed { text-shadow: 0 0 25px #862c2c, 0 0 15px #fff; }
.results-buttons .button { font-size: 2rem; animation-duration: 2s; }
.account-box { position: fixed; top: 10px; left: 16px; color: #f9db8d; }
.account-eol { font-size: 24px; color: #ae6445; text-shadow: 1px 1px 1px #000; }
.ragepoo { height: 200px; background: url('../images/ragepoo.png') no-repeat center center; background-size: contain; margin-top: 150px;}
.rage .continue-button { top: 20px; }

.error.screen { background: #f88; }
.error.screen .heading { font-size: 3rem; }

.trophy { position: relative; top: 30px; width: 583px; height: 612px; background: url('../images/loading.png') no-repeat center center; background-size: 100% 100%; }
.trophy-name-container, .trophy-name { width: 100%; }
.trophy-text-bottom { position: absolute; bottom: 0; left: 0; right: 0; transform: rotate(-2deg); }

.letters, .numbers, .space { color: transparent; font-size: 2rem; }
.letter { display: inline-block; width: 55px; height: 97px; background: url('../images/alphabet.png') no-repeat; margin: 0 -5px; }
.number { display: inline-block; width: 55px; background: url('../images/numbers.png') no-repeat; margin: 0 -5px; }
.space { display: inline-block; width: 55px; margin: 0 -5px; }

.letter-a { background-position: -2px 12px; }
.letter-b { background-position: -63px 12px; }
.letter-c { background-position: -121px 12px; }
.letter-d { background-position: -178px 12px; }
.letter-e { background-position: -237px 12px; }
.letter-f { background-position: -289px 12px; }
.letter-g { background-position: -344px 12px; }
.letter-h { background-position: -406px 12px; }
.letter-i { background-position: -460px 12px; }
.letter-j { background-position: -505px 12px; }
.letter-k { background-position: -561px 12px; }
.letter-l { background-position: -615px 12px; }
.letter-m { background-position: -678px 12px; }
.letter-n { background-position: -751px 12px; }
.letter-o { background-position: -813px 12px; }
.letter-p { background-position: -875px 12px; }
.letter-q { background-position: -939px 12px; }
.letter-r { background-position: -997px 12px; }
.letter-s { background-position: -1057px 12px; }
.letter-t { background-position: -1112px 12px; }
.letter-u { background-position: -1169px 12px; }
.letter-v { background-position: -1233px 12px; }
.letter-w { background-position: -1303px 12px; }
.letter-x { background-position: -1374px 12px; }
.letter-y { background-position: -1436px 12px; }
.letter-z { background-position: -1493px 12px; }

.letter-A { width: 80px; background-position: 0 -82px; }
.letter-B { width: 80px; background-position: -86px -82px; }
.letter-C { width: 80px; background-position: -170px -82px; }
.letter-D { width: 80px; background-position: -252px -82px; }
.letter-E { width: 80px; background-position: -335px -82px; }
.letter-F { width: 80px; background-position: -416px -82px; }
.letter-G { width: 80px; background-position: -502px -82px; }
.letter-H { width: 80px; background-position: -590px -82px; }
.letter-I { width: 80px; background-position: -672px -82px; }
.letter-J { width: 80px; background-position: -745px -82px; }
.letter-K { width: 80px; background-position: -821px -82px; }
.letter-L { width: 80px; background-position: -895px -82px; }
.letter-M { width: 80px; background-position: -974px -82px; }
.letter-N { width: 80px; background-position: -1069px -82px; }
.letter-O { width: 80px; background-position: -1151px -82px; }
.letter-P { width: 80px; background-position: -1236px -82px; }
.letter-Q { width: 80px; background-position: -1325px -82px; }
.letter-R { width: 80px; background-position: -1413px -82px; }
.letter-S { width: 80px; background-position: -1500px -82px; }
.letter-T { width: 80px; background-position: -1579px -82px; }
.letter-U { width: 80px; background-position: -1653px -82px; }
.letter-V { width: 80px; background-position: -1733px -82px; }
.letter-W { width: 80px; background-position: -1826px -82px; }
.letter-X { width: 80px; background-position: -1916px -82px; }
.letter-Y { width: 80px; background-position: -1992px -82px; }
.letter-Z { width: 80px; background-position: -2068px -82px; }

.number-0 { background-position: -9px 10px; }
.number-1 { background-position: -74px 10px; }
.number-2 { background-position: -135px 10px; }
.number-3 { background-position: -201px 10px; }
.number-4 { background-position: -268px 10px; }
.number-5 { background-position: -337px 10px; }
.number-6 { background-position: -406px 10px; }
.number-7 { background-position: -473px 10px; }
.number-8 { background-position: -538px 10px; }
.number-9 { background-position: -608px 10px; }

@media all and (max-width: 480px) {
  .main-menu {
    background-size: cover;
  }

  .title {
    font-size: 1.7rem;
  }

  .type-here-text {
    font-size: 1.7rem;
    margin-top: 1rem;
  }

  .player-name-text {
    font-size: 2rem;
  }

  .choose-level-heading {
    font-size: 1.3rem;
  }

  .game-options .levels {
    width: 100%;
    top: 20%;
    left: 0;
    font-size: 2rem;
  }

  .game-options .level.level-mixed {
    width: 100%;
  }

  .game-options .level.level-complete:after {
    top: -8px;
  }

  .game-question {
    font-size: 4rem;
  }

  .game-results .trophy {
    top: 0;
    width: 400px;
    height: 400px;
  }

  .game-results .trophy .letters {
    font-size: 1.5rem;
  }

  .game-results .time-text {
    font-size: 2rem;
    margin-top: 40px;
  }

  .game-results .results-buttons {
    position: fixed;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
  }

  .game-results .score {
    font-size: 2rem;
  }

  .game-results .questions-correct-text {
    font-size: 1.75rem;
  }

  .game-results.almost > .center {
    width: 100%;
  }
}

@media (orientation: landscape) and (max-width: 980px) {
  .content {
    display: none !important;
  }

  .landscape-mode {
    display: block;
  }

  .landscape-mode .center {
    width: 100%;
  }

  .landscape-mode .sparkle {
    font-size: 2rem;
  }

  .landscape-mode .arrow {
    display: inline-block;
    position: relative;
    top: 20px;
    font-size: 3rem;
    transform: scaleX(-1);
  }
}

/* Animations */
@keyframes unblur {
  from { filter: blur(8px); }
  to { filter: blur(0px); }
}