/*
 * TerranQuest - Augmented Reality fantasy game
 *
 * Copyright 2016 Netsyms Technologies
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* iOS text-selection hacks */
*:not(input):not(textarea) {
    -webkit-user-select: none; /* disable selection/Copy of UIWebView */
    -webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
}

body {
    color: #eee;
}

.brandlogo {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}

.splashlogo {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
}

.btn-wide {
    width: 98%;
}

.whitetext {
    color: white;
}

body {
    padding: 0;
    margin: 0;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 50000;
    background: #324150;
    color: white;
}

#no-lock {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9000;
    background: rgba(0,0,0,.6);
    color: white;
    display: none;
}

#no-lock p {
    position: absolute;
    top: 40%;
    left: 0px;
    width: 100%;
    text-align: center;
}

#overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 9500;
}

#overlay-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9600;
    background: rgba(0,0,0,.9);
}

#overlay-main #main-content {
    overflow-x: auto;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

#mainCloseBtn {
    z-index: 999999;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    border: 1px solid white;
    background-color: black;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin: 0px;
    padding: 0px;
    font-size: 100%;
    color: white;
}

.badge-img {
    border: 2px solid green;
    margin-bottom: 10px;
}

#terrain-image {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 60px;
    width: 80px;
    border: 3px solid green;
}

.leaflet-control-locate {
    display: none;
}

#topbar {
    color: black;
    position: absolute;
    left: 8px;
    top: 5px;
    right: 8px;
    font-size: 120%;
    font-weight: bold;
}

#namecontainer {
    float: left;
}

#worldinfo {
    float: right;
}

#terrainicon {
    margin-top: -15px;
    height: 20px;
}

#energybar-container {
    position: absolute;
    top: 30px;
    left: 5px;
    height: 10px;
    right: 5px;
    /* width: calc(100% - 5px); */
    background: rgba(0,0,0,.25);
}

#energybar {
    width: 0%;
    background: rgba(0, 128, 0, 1.0);
}

#energybar-label {
    color: black;
    position: absolute;
    left: 8px;
    top: 40px;
    font-size: 75%;
    background: rgba(0,0,0,.2);
    padding: 0px 5px 0px 5px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

#chatbox {
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: auto;
    max-height: 50%;
    width: 100%;
    z-index: 9501;
}

#chatmsgs {
    z-index: 9500;
    top: 0px;
    width: 100%;
    height: calc(100% - 35px) !important;
    display: none;
    position: absolute;
    font-family: monospace;
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
    background: rgba(0,0,0,.8);
}

.chat-username {
    color: white;
    font-weight: bold;
}

#buttons {
    position: absolute;
    right: 0px;
    top: 25%;
    width: 70px;
    padding-top: auto;
    padding-bottom: auto;
    padding-right: 10px;
    display: block;
    z-index: 9000;
}

#buttons .circlebutton {
    border: 1px solid black;
    background: rgba(255,255,255,.8);
    border-radius: 50%;
    box-shadow: 0 0 5px grey;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

#buttons .circlebutton img {
    position: static;
    margin-top: 14px;
    margin-left: 14px;
    width: 30px;
    height: 30px;
}

.scrollable-box {
    overflow-y: auto;
    overflow-x: hidden;
}

#player-name {
    padding-left: 5px;
    border-left: 1px solid white;
}

#player-level {
    font-size: 120%;
    color: #d5d5d5;
    font-style: italic;
    padding-left: 5px;
    padding-top: 10px;
    margin-top: -10px;
    border-left: 1px solid white;
    border-bottom: 1px solid white;
    padding-right: 100px;
    width: fit-content;
}

#privmsg-header {
    padding-top: 5px;
    border-top: 1px solid white;
    border-right: 1px solid white;
}

#privmsgs {
    padding-top: 10px;
    margin-top: -10px;
}

#loading-privmsgs {
    border-right: 1px solid white;
    padding-top: 10px;
    margin-top: -10px;
}

#privmsg-container {
    border-right: 1px solid white;
    padding-top: 10px;
    margin-top: -10px;
}

#sendmsg-header {
    padding-top: 5px;
    border-top: 1px solid white;
    border-right: 1px solid white;
}

#sendmsg-container {
    border-right: 1px solid white;
    padding-top: 10px;
    margin-top: -10px;
}

#badge-header {
    padding-top: 5px;
    border-top: 1px solid white;
    border-right: 1px solid white;
}

#badges {
    border-right: 1px solid white;
    padding-top: 10px;
    margin-top: -10px;
}

#loading-badges {
    border-right: 1px solid white;
    padding-top: 10px;
    margin-top: -10px;
}

#place-name {
    max-width: 90%;
    border-bottom: 1px solid white;
    border-left: 1px solid white;
    padding-left: 5px;
    padding-bottom: 2px;
}

#place-info-div {
    font-size: 120%;
    padding: 5px;
    border-right: 1px solid white;
    border-top: 1px solid white;
}

#team-choice-list {
    color: #000;
    font-size: 120%;
}

#place-log {
    padding: 5px;
    border-left: 1px solid white;
    border-bottom: 1px solid white;
    border-right: 0px;
    border-top: 0px;
    border-radius: 0px;
    height: 100px;
    max-height: 100px;
    min-height: 100px;
    overflow-y: hidden;
}

#place-refresh {
    position: absolute;
    right: 20px;
}

#user-health-place-bar {
    background-color: green;
}

#user-health-place {
    height: 15px;
}

#place-health-place-bar {
    background-color: white;
}

#place-health-place {
    height: 15px;
}

#capturebtn {
    color: black;
}

#refillbtn {
    color: black;
}

#artifactbtn {
    color: black;
}

#artifact-icon {
    float: right;
}

.found-box {
    position: absolute;
    z-index: 9001;
    background: rgba(0, 0, 0, .5);
    border-radius: 10px;
    bottom: 12%;
    left: 10%;
    right: 10%;
    height: fit-content;
    padding: 10px;
    display: none;
}

.found-box-title {
    font-size: 120%;
    color: white;
    border-left: 1px solid white;
    padding-left: 5px;
}

.found-box-text {
    color: white;
    border-top: 1px solid white;
    border-right: 1px solid white;
    padding-right: 5px;
    padding-left: 5px;
    padding-top: 2px;
}

#munzeeoauth {
    position: absolute;
    top: 0px;
    padding-top: 15px;
    left: 0px;
    width: 100%;
    height: 100%;
    border: 0px;
}

#munzeeoauth-header-grad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: -webkit-linear-gradient(to bottom, #009444 0%, #ffffff 100%);
    background: linear-gradient(to bottom, #009444 0%, rgba(255,255,255,0) 100%);
}

.menumessage {
    position: fixed;
    z-index: 99999;
    background: rgba(0, 0, 0, .85);
    border-radius: 10px;
    left: 10%;
    right: 10%;
    top: 25%;
    bottom: 25%;
    height: fit-content;
    max-height: 500px;
    padding: 10px;
    padding-top: 20px;
    padding-bottom: 15px;
    display: none;
}

.hugesymbol {
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

.menumessagecontent {
    font-size: 120%;
    text-align: center;
    margin-bottom: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
}

#shop-balance-bar {
    text-align: right;
    position: fixed;
    right: 10px;
    background: rgba(0, 0, 0, .5);
    border-radius: 5px;
    z-index: 9500;
    padding: 10px;
}

#menutablist {
    z-index: 9999;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, .8);
}

#menutabcontent {
    padding-top: 85px;
}

.splash-version {
    position: fixed;
    bottom: 0px;
    right: 10px;
    color: white;
    z-index: 90000;
}

@-webkit-keyframes cooldown-fade {
    0%    { background: linear-gradient(to top, rgba(255,255,255,.8) 0%, rgba(0,0,0,.8) 0%);  }
    1%    { background: linear-gradient(to top, rgba(255,255,255,.8) 1%, rgba(0,0,0,.8) 0%);  }
    2%    { background: linear-gradient(to top, rgba(255,255,255,.8) 2%, rgba(0,0,0,.8) 0%);  }
    3%    { background: linear-gradient(to top, rgba(255,255,255,.8) 3%, rgba(0,0,0,.8) 0%);  }
    4%    { background: linear-gradient(to top, rgba(255,255,255,.8) 4%, rgba(0,0,0,.8) 0%);  }
    5%    { background: linear-gradient(to top, rgba(255,255,255,.8) 5%, rgba(0,0,0,.8) 0%);  }
    6%    { background: linear-gradient(to top, rgba(255,255,255,.8) 6%, rgba(0,0,0,.8) 0%);  }
    7%    { background: linear-gradient(to top, rgba(255,255,255,.8) 7%, rgba(0,0,0,.8) 0%);  }
    8%    { background: linear-gradient(to top, rgba(255,255,255,.8) 8%, rgba(0,0,0,.8) 0%);  }
    9%    { background: linear-gradient(to top, rgba(255,255,255,.8) 9%, rgba(0,0,0,.8) 0%);  }
    10%   { background: linear-gradient(to top, rgba(255,255,255,.8) 10%, rgba(0,0,0,.8) 0%);  }
    11%   { background: linear-gradient(to top, rgba(255,255,255,.8) 11%, rgba(0,0,0,.8) 0%);  }
    12%   { background: linear-gradient(to top, rgba(255,255,255,.8) 12%, rgba(0,0,0,.8) 0%);  }
    13%   { background: linear-gradient(to top, rgba(255,255,255,.8) 13%, rgba(0,0,0,.8) 0%);  }
    14%   { background: linear-gradient(to top, rgba(255,255,255,.8) 14%, rgba(0,0,0,.8) 0%);  }
    15%   { background: linear-gradient(to top, rgba(255,255,255,.8) 15%, rgba(0,0,0,.8) 0%);  }
    16%   { background: linear-gradient(to top, rgba(255,255,255,.8) 16%, rgba(0,0,0,.8) 0%);  }
    17%   { background: linear-gradient(to top, rgba(255,255,255,.8) 17%, rgba(0,0,0,.8) 0%);  }
    18%   { background: linear-gradient(to top, rgba(255,255,255,.8) 18%, rgba(0,0,0,.8) 0%);  }
    19%   { background: linear-gradient(to top, rgba(255,255,255,.8) 19%, rgba(0,0,0,.8) 0%);  }
    20%   { background: linear-gradient(to top, rgba(255,255,255,.8) 20%, rgba(0,0,0,.8) 0%);  }
    21%   { background: linear-gradient(to top, rgba(255,255,255,.8) 21%, rgba(0,0,0,.8) 0%);  }
    22%   { background: linear-gradient(to top, rgba(255,255,255,.8) 22%, rgba(0,0,0,.8) 0%);  }
    23%   { background: linear-gradient(to top, rgba(255,255,255,.8) 23%, rgba(0,0,0,.8) 0%);  }
    24%   { background: linear-gradient(to top, rgba(255,255,255,.8) 24%, rgba(0,0,0,.8) 0%);  }
    25%   { background: linear-gradient(to top, rgba(255,255,255,.8) 25%, rgba(0,0,0,.8) 0%);  }
    26%   { background: linear-gradient(to top, rgba(255,255,255,.8) 26%, rgba(0,0,0,.8) 0%);  }
    27%   { background: linear-gradient(to top, rgba(255,255,255,.8) 27%, rgba(0,0,0,.8) 0%);  }
    28%   { background: linear-gradient(to top, rgba(255,255,255,.8) 28%, rgba(0,0,0,.8) 0%);  }
    29%   { background: linear-gradient(to top, rgba(255,255,255,.8) 29%, rgba(0,0,0,.8) 0%);  }
    30%   { background: linear-gradient(to top, rgba(255,255,255,.8) 30%, rgba(0,0,0,.8) 0%);  }
    31%   { background: linear-gradient(to top, rgba(255,255,255,.8) 31%, rgba(0,0,0,.8) 0%);  }
    32%   { background: linear-gradient(to top, rgba(255,255,255,.8) 32%, rgba(0,0,0,.8) 0%);  }
    33%   { background: linear-gradient(to top, rgba(255,255,255,.8) 33%, rgba(0,0,0,.8) 0%);  }
    34%   { background: linear-gradient(to top, rgba(255,255,255,.8) 34%, rgba(0,0,0,.8) 0%);  }
    35%   { background: linear-gradient(to top, rgba(255,255,255,.8) 35%, rgba(0,0,0,.8) 0%);  }
    36%   { background: linear-gradient(to top, rgba(255,255,255,.8) 36%, rgba(0,0,0,.8) 0%);  }
    37%   { background: linear-gradient(to top, rgba(255,255,255,.8) 37%, rgba(0,0,0,.8) 0%);  }
    38%   { background: linear-gradient(to top, rgba(255,255,255,.8) 38%, rgba(0,0,0,.8) 0%);  }
    39%   { background: linear-gradient(to top, rgba(255,255,255,.8) 39%, rgba(0,0,0,.8) 0%);  }
    40%   { background: linear-gradient(to top, rgba(255,255,255,.8) 40%, rgba(0,0,0,.8) 0%);  }
    41%   { background: linear-gradient(to top, rgba(255,255,255,.8) 41%, rgba(0,0,0,.8) 0%);  }
    42%   { background: linear-gradient(to top, rgba(255,255,255,.8) 42%, rgba(0,0,0,.8) 0%);  }
    43%   { background: linear-gradient(to top, rgba(255,255,255,.8) 43%, rgba(0,0,0,.8) 0%);  }
    44%   { background: linear-gradient(to top, rgba(255,255,255,.8) 44%, rgba(0,0,0,.8) 0%);  }
    45%   { background: linear-gradient(to top, rgba(255,255,255,.8) 45%, rgba(0,0,0,.8) 0%);  }
    46%   { background: linear-gradient(to top, rgba(255,255,255,.8) 46%, rgba(0,0,0,.8) 0%);  }
    47%   { background: linear-gradient(to top, rgba(255,255,255,.8) 47%, rgba(0,0,0,.8) 0%);  }
    48%   { background: linear-gradient(to top, rgba(255,255,255,.8) 48%, rgba(0,0,0,.8) 0%);  }
    49%   { background: linear-gradient(to top, rgba(255,255,255,.8) 49%, rgba(0,0,0,.8) 0%);  }
    50%   { background: linear-gradient(to top, rgba(255,255,255,.8) 50%, rgba(0,0,0,.8) 0%);  }
    51%   { background: linear-gradient(to top, rgba(255,255,255,.8) 51%, rgba(0,0,0,.8) 0%);  }
    52%   { background: linear-gradient(to top, rgba(255,255,255,.8) 52%, rgba(0,0,0,.8) 0%);  }
    53%   { background: linear-gradient(to top, rgba(255,255,255,.8) 53%, rgba(0,0,0,.8) 0%);  }
    54%   { background: linear-gradient(to top, rgba(255,255,255,.8) 54%, rgba(0,0,0,.8) 0%);  }
    55%   { background: linear-gradient(to top, rgba(255,255,255,.8) 55%, rgba(0,0,0,.8) 0%);  }
    56%   { background: linear-gradient(to top, rgba(255,255,255,.8) 56%, rgba(0,0,0,.8) 0%);  }
    57%   { background: linear-gradient(to top, rgba(255,255,255,.8) 57%, rgba(0,0,0,.8) 0%);  }
    58%   { background: linear-gradient(to top, rgba(255,255,255,.8) 58%, rgba(0,0,0,.8) 0%);  }
    59%   { background: linear-gradient(to top, rgba(255,255,255,.8) 59%, rgba(0,0,0,.8) 0%);  }
    60%   { background: linear-gradient(to top, rgba(255,255,255,.8) 60%, rgba(0,0,0,.8) 0%);  }
    61%   { background: linear-gradient(to top, rgba(255,255,255,.8) 61%, rgba(0,0,0,.8) 0%);  }
    62%   { background: linear-gradient(to top, rgba(255,255,255,.8) 62%, rgba(0,0,0,.8) 0%);  }
    63%   { background: linear-gradient(to top, rgba(255,255,255,.8) 63%, rgba(0,0,0,.8) 0%);  }
    64%   { background: linear-gradient(to top, rgba(255,255,255,.8) 64%, rgba(0,0,0,.8) 0%);  }
    65%   { background: linear-gradient(to top, rgba(255,255,255,.8) 65%, rgba(0,0,0,.8) 0%);  }
    66%   { background: linear-gradient(to top, rgba(255,255,255,.8) 66%, rgba(0,0,0,.8) 0%);  }
    67%   { background: linear-gradient(to top, rgba(255,255,255,.8) 67%, rgba(0,0,0,.8) 0%);  }
    68%   { background: linear-gradient(to top, rgba(255,255,255,.8) 68%, rgba(0,0,0,.8) 0%);  }
    69%   { background: linear-gradient(to top, rgba(255,255,255,.8) 69%, rgba(0,0,0,.8) 0%);  }
    70%   { background: linear-gradient(to top, rgba(255,255,255,.8) 70%, rgba(0,0,0,.8) 0%);  }
    71%   { background: linear-gradient(to top, rgba(255,255,255,.8) 71%, rgba(0,0,0,.8) 0%);  }
    72%   { background: linear-gradient(to top, rgba(255,255,255,.8) 72%, rgba(0,0,0,.8) 0%);  }
    73%   { background: linear-gradient(to top, rgba(255,255,255,.8) 73%, rgba(0,0,0,.8) 0%);  }
    74%   { background: linear-gradient(to top, rgba(255,255,255,.8) 74%, rgba(0,0,0,.8) 0%);  }
    75%   { background: linear-gradient(to top, rgba(255,255,255,.8) 75%, rgba(0,0,0,.8) 0%);  }
    76%   { background: linear-gradient(to top, rgba(255,255,255,.8) 76%, rgba(0,0,0,.8) 0%);  }
    77%   { background: linear-gradient(to top, rgba(255,255,255,.8) 77%, rgba(0,0,0,.8) 0%);  }
    78%   { background: linear-gradient(to top, rgba(255,255,255,.8) 78%, rgba(0,0,0,.8) 0%);  }
    79%   { background: linear-gradient(to top, rgba(255,255,255,.8) 79%, rgba(0,0,0,.8) 0%);  }
    80%   { background: linear-gradient(to top, rgba(255,255,255,.8) 80%, rgba(0,0,0,.8) 0%);  }
    81%   { background: linear-gradient(to top, rgba(255,255,255,.8) 81%, rgba(0,0,0,.8) 0%);  }
    82%   { background: linear-gradient(to top, rgba(255,255,255,.8) 82%, rgba(0,0,0,.8) 0%);  }
    83%   { background: linear-gradient(to top, rgba(255,255,255,.8) 83%, rgba(0,0,0,.8) 0%);  }
    84%   { background: linear-gradient(to top, rgba(255,255,255,.8) 84%, rgba(0,0,0,.8) 0%);  }
    85%   { background: linear-gradient(to top, rgba(255,255,255,.8) 85%, rgba(0,0,0,.8) 0%);  }
    86%   { background: linear-gradient(to top, rgba(255,255,255,.8) 86%, rgba(0,0,0,.8) 0%);  }
    87%   { background: linear-gradient(to top, rgba(255,255,255,.8) 87%, rgba(0,0,0,.8) 0%);  }
    88%   { background: linear-gradient(to top, rgba(255,255,255,.8) 88%, rgba(0,0,0,.8) 0%);  }
    89%   { background: linear-gradient(to top, rgba(255,255,255,.8) 89%, rgba(0,0,0,.8) 0%);  }
    90%   { background: linear-gradient(to top, rgba(255,255,255,.8) 90%, rgba(0,0,0,.8) 0%);  }
    91%   { background: linear-gradient(to top, rgba(255,255,255,.8) 91%, rgba(0,0,0,.8) 0%);  }
    92%   { background: linear-gradient(to top, rgba(255,255,255,.8) 92%, rgba(0,0,0,.8) 0%);  }
    93%   { background: linear-gradient(to top, rgba(255,255,255,.8) 93%, rgba(0,0,0,.8) 0%);  }
    94%   { background: linear-gradient(to top, rgba(255,255,255,.8) 94%, rgba(0,0,0,.8) 0%);  }
    95%   { background: linear-gradient(to top, rgba(255,255,255,.8) 95%, rgba(0,0,0,.8) 0%);  }
    96%   { background: linear-gradient(to top, rgba(255,255,255,.8) 96%, rgba(0,0,0,.8) 0%);  }
    97%   { background: linear-gradient(to top, rgba(255,255,255,.8) 97%, rgba(0,0,0,.8) 0%);  }
    98%   { background: linear-gradient(to top, rgba(255,255,255,.8) 98%, rgba(0,0,0,.8) 0%);  }
    99%   { background: linear-gradient(to top, rgba(255,255,255,.8) 99%, rgba(0,0,0,.8) 0%);  }
    100%  { background: linear-gradient(to top, rgba(255,255,255,.8) 100%, rgba(0,0,0,.8) 0%);  }
}

@keyframes cooldown-fade {
    /* Apparently gradients don't animate.  We'll see about that! */
    /* SyMAT code (gradient-animate.syjs):
    for (var i = 0; i <= 100; i++) {
        print(i+"%   { background: linear-gradient(to top, rgba(255,255,255,.8) " + i + "%, rgba(0,0,0,.8) 0%);  }");
    }
    */
    0%    { background: linear-gradient(to top, rgba(255,255,255,.8) 0%, rgba(0,0,0,.8) 0%);  }
    1%    { background: linear-gradient(to top, rgba(255,255,255,.8) 1%, rgba(0,0,0,.8) 0%);  }
    2%    { background: linear-gradient(to top, rgba(255,255,255,.8) 2%, rgba(0,0,0,.8) 0%);  }
    3%    { background: linear-gradient(to top, rgba(255,255,255,.8) 3%, rgba(0,0,0,.8) 0%);  }
    4%    { background: linear-gradient(to top, rgba(255,255,255,.8) 4%, rgba(0,0,0,.8) 0%);  }
    5%    { background: linear-gradient(to top, rgba(255,255,255,.8) 5%, rgba(0,0,0,.8) 0%);  }
    6%    { background: linear-gradient(to top, rgba(255,255,255,.8) 6%, rgba(0,0,0,.8) 0%);  }
    7%    { background: linear-gradient(to top, rgba(255,255,255,.8) 7%, rgba(0,0,0,.8) 0%);  }
    8%    { background: linear-gradient(to top, rgba(255,255,255,.8) 8%, rgba(0,0,0,.8) 0%);  }
    9%    { background: linear-gradient(to top, rgba(255,255,255,.8) 9%, rgba(0,0,0,.8) 0%);  }
    10%   { background: linear-gradient(to top, rgba(255,255,255,.8) 10%, rgba(0,0,0,.8) 0%);  }
    11%   { background: linear-gradient(to top, rgba(255,255,255,.8) 11%, rgba(0,0,0,.8) 0%);  }
    12%   { background: linear-gradient(to top, rgba(255,255,255,.8) 12%, rgba(0,0,0,.8) 0%);  }
    13%   { background: linear-gradient(to top, rgba(255,255,255,.8) 13%, rgba(0,0,0,.8) 0%);  }
    14%   { background: linear-gradient(to top, rgba(255,255,255,.8) 14%, rgba(0,0,0,.8) 0%);  }
    15%   { background: linear-gradient(to top, rgba(255,255,255,.8) 15%, rgba(0,0,0,.8) 0%);  }
    16%   { background: linear-gradient(to top, rgba(255,255,255,.8) 16%, rgba(0,0,0,.8) 0%);  }
    17%   { background: linear-gradient(to top, rgba(255,255,255,.8) 17%, rgba(0,0,0,.8) 0%);  }
    18%   { background: linear-gradient(to top, rgba(255,255,255,.8) 18%, rgba(0,0,0,.8) 0%);  }
    19%   { background: linear-gradient(to top, rgba(255,255,255,.8) 19%, rgba(0,0,0,.8) 0%);  }
    20%   { background: linear-gradient(to top, rgba(255,255,255,.8) 20%, rgba(0,0,0,.8) 0%);  }
    21%   { background: linear-gradient(to top, rgba(255,255,255,.8) 21%, rgba(0,0,0,.8) 0%);  }
    22%   { background: linear-gradient(to top, rgba(255,255,255,.8) 22%, rgba(0,0,0,.8) 0%);  }
    23%   { background: linear-gradient(to top, rgba(255,255,255,.8) 23%, rgba(0,0,0,.8) 0%);  }
    24%   { background: linear-gradient(to top, rgba(255,255,255,.8) 24%, rgba(0,0,0,.8) 0%);  }
    25%   { background: linear-gradient(to top, rgba(255,255,255,.8) 25%, rgba(0,0,0,.8) 0%);  }
    26%   { background: linear-gradient(to top, rgba(255,255,255,.8) 26%, rgba(0,0,0,.8) 0%);  }
    27%   { background: linear-gradient(to top, rgba(255,255,255,.8) 27%, rgba(0,0,0,.8) 0%);  }
    28%   { background: linear-gradient(to top, rgba(255,255,255,.8) 28%, rgba(0,0,0,.8) 0%);  }
    29%   { background: linear-gradient(to top, rgba(255,255,255,.8) 29%, rgba(0,0,0,.8) 0%);  }
    30%   { background: linear-gradient(to top, rgba(255,255,255,.8) 30%, rgba(0,0,0,.8) 0%);  }
    31%   { background: linear-gradient(to top, rgba(255,255,255,.8) 31%, rgba(0,0,0,.8) 0%);  }
    32%   { background: linear-gradient(to top, rgba(255,255,255,.8) 32%, rgba(0,0,0,.8) 0%);  }
    33%   { background: linear-gradient(to top, rgba(255,255,255,.8) 33%, rgba(0,0,0,.8) 0%);  }
    34%   { background: linear-gradient(to top, rgba(255,255,255,.8) 34%, rgba(0,0,0,.8) 0%);  }
    35%   { background: linear-gradient(to top, rgba(255,255,255,.8) 35%, rgba(0,0,0,.8) 0%);  }
    36%   { background: linear-gradient(to top, rgba(255,255,255,.8) 36%, rgba(0,0,0,.8) 0%);  }
    37%   { background: linear-gradient(to top, rgba(255,255,255,.8) 37%, rgba(0,0,0,.8) 0%);  }
    38%   { background: linear-gradient(to top, rgba(255,255,255,.8) 38%, rgba(0,0,0,.8) 0%);  }
    39%   { background: linear-gradient(to top, rgba(255,255,255,.8) 39%, rgba(0,0,0,.8) 0%);  }
    40%   { background: linear-gradient(to top, rgba(255,255,255,.8) 40%, rgba(0,0,0,.8) 0%);  }
    41%   { background: linear-gradient(to top, rgba(255,255,255,.8) 41%, rgba(0,0,0,.8) 0%);  }
    42%   { background: linear-gradient(to top, rgba(255,255,255,.8) 42%, rgba(0,0,0,.8) 0%);  }
    43%   { background: linear-gradient(to top, rgba(255,255,255,.8) 43%, rgba(0,0,0,.8) 0%);  }
    44%   { background: linear-gradient(to top, rgba(255,255,255,.8) 44%, rgba(0,0,0,.8) 0%);  }
    45%   { background: linear-gradient(to top, rgba(255,255,255,.8) 45%, rgba(0,0,0,.8) 0%);  }
    46%   { background: linear-gradient(to top, rgba(255,255,255,.8) 46%, rgba(0,0,0,.8) 0%);  }
    47%   { background: linear-gradient(to top, rgba(255,255,255,.8) 47%, rgba(0,0,0,.8) 0%);  }
    48%   { background: linear-gradient(to top, rgba(255,255,255,.8) 48%, rgba(0,0,0,.8) 0%);  }
    49%   { background: linear-gradient(to top, rgba(255,255,255,.8) 49%, rgba(0,0,0,.8) 0%);  }
    50%   { background: linear-gradient(to top, rgba(255,255,255,.8) 50%, rgba(0,0,0,.8) 0%);  }
    51%   { background: linear-gradient(to top, rgba(255,255,255,.8) 51%, rgba(0,0,0,.8) 0%);  }
    52%   { background: linear-gradient(to top, rgba(255,255,255,.8) 52%, rgba(0,0,0,.8) 0%);  }
    53%   { background: linear-gradient(to top, rgba(255,255,255,.8) 53%, rgba(0,0,0,.8) 0%);  }
    54%   { background: linear-gradient(to top, rgba(255,255,255,.8) 54%, rgba(0,0,0,.8) 0%);  }
    55%   { background: linear-gradient(to top, rgba(255,255,255,.8) 55%, rgba(0,0,0,.8) 0%);  }
    56%   { background: linear-gradient(to top, rgba(255,255,255,.8) 56%, rgba(0,0,0,.8) 0%);  }
    57%   { background: linear-gradient(to top, rgba(255,255,255,.8) 57%, rgba(0,0,0,.8) 0%);  }
    58%   { background: linear-gradient(to top, rgba(255,255,255,.8) 58%, rgba(0,0,0,.8) 0%);  }
    59%   { background: linear-gradient(to top, rgba(255,255,255,.8) 59%, rgba(0,0,0,.8) 0%);  }
    60%   { background: linear-gradient(to top, rgba(255,255,255,.8) 60%, rgba(0,0,0,.8) 0%);  }
    61%   { background: linear-gradient(to top, rgba(255,255,255,.8) 61%, rgba(0,0,0,.8) 0%);  }
    62%   { background: linear-gradient(to top, rgba(255,255,255,.8) 62%, rgba(0,0,0,.8) 0%);  }
    63%   { background: linear-gradient(to top, rgba(255,255,255,.8) 63%, rgba(0,0,0,.8) 0%);  }
    64%   { background: linear-gradient(to top, rgba(255,255,255,.8) 64%, rgba(0,0,0,.8) 0%);  }
    65%   { background: linear-gradient(to top, rgba(255,255,255,.8) 65%, rgba(0,0,0,.8) 0%);  }
    66%   { background: linear-gradient(to top, rgba(255,255,255,.8) 66%, rgba(0,0,0,.8) 0%);  }
    67%   { background: linear-gradient(to top, rgba(255,255,255,.8) 67%, rgba(0,0,0,.8) 0%);  }
    68%   { background: linear-gradient(to top, rgba(255,255,255,.8) 68%, rgba(0,0,0,.8) 0%);  }
    69%   { background: linear-gradient(to top, rgba(255,255,255,.8) 69%, rgba(0,0,0,.8) 0%);  }
    70%   { background: linear-gradient(to top, rgba(255,255,255,.8) 70%, rgba(0,0,0,.8) 0%);  }
    71%   { background: linear-gradient(to top, rgba(255,255,255,.8) 71%, rgba(0,0,0,.8) 0%);  }
    72%   { background: linear-gradient(to top, rgba(255,255,255,.8) 72%, rgba(0,0,0,.8) 0%);  }
    73%   { background: linear-gradient(to top, rgba(255,255,255,.8) 73%, rgba(0,0,0,.8) 0%);  }
    74%   { background: linear-gradient(to top, rgba(255,255,255,.8) 74%, rgba(0,0,0,.8) 0%);  }
    75%   { background: linear-gradient(to top, rgba(255,255,255,.8) 75%, rgba(0,0,0,.8) 0%);  }
    76%   { background: linear-gradient(to top, rgba(255,255,255,.8) 76%, rgba(0,0,0,.8) 0%);  }
    77%   { background: linear-gradient(to top, rgba(255,255,255,.8) 77%, rgba(0,0,0,.8) 0%);  }
    78%   { background: linear-gradient(to top, rgba(255,255,255,.8) 78%, rgba(0,0,0,.8) 0%);  }
    79%   { background: linear-gradient(to top, rgba(255,255,255,.8) 79%, rgba(0,0,0,.8) 0%);  }
    80%   { background: linear-gradient(to top, rgba(255,255,255,.8) 80%, rgba(0,0,0,.8) 0%);  }
    81%   { background: linear-gradient(to top, rgba(255,255,255,.8) 81%, rgba(0,0,0,.8) 0%);  }
    82%   { background: linear-gradient(to top, rgba(255,255,255,.8) 82%, rgba(0,0,0,.8) 0%);  }
    83%   { background: linear-gradient(to top, rgba(255,255,255,.8) 83%, rgba(0,0,0,.8) 0%);  }
    84%   { background: linear-gradient(to top, rgba(255,255,255,.8) 84%, rgba(0,0,0,.8) 0%);  }
    85%   { background: linear-gradient(to top, rgba(255,255,255,.8) 85%, rgba(0,0,0,.8) 0%);  }
    86%   { background: linear-gradient(to top, rgba(255,255,255,.8) 86%, rgba(0,0,0,.8) 0%);  }
    87%   { background: linear-gradient(to top, rgba(255,255,255,.8) 87%, rgba(0,0,0,.8) 0%);  }
    88%   { background: linear-gradient(to top, rgba(255,255,255,.8) 88%, rgba(0,0,0,.8) 0%);  }
    89%   { background: linear-gradient(to top, rgba(255,255,255,.8) 89%, rgba(0,0,0,.8) 0%);  }
    90%   { background: linear-gradient(to top, rgba(255,255,255,.8) 90%, rgba(0,0,0,.8) 0%);  }
    91%   { background: linear-gradient(to top, rgba(255,255,255,.8) 91%, rgba(0,0,0,.8) 0%);  }
    92%   { background: linear-gradient(to top, rgba(255,255,255,.8) 92%, rgba(0,0,0,.8) 0%);  }
    93%   { background: linear-gradient(to top, rgba(255,255,255,.8) 93%, rgba(0,0,0,.8) 0%);  }
    94%   { background: linear-gradient(to top, rgba(255,255,255,.8) 94%, rgba(0,0,0,.8) 0%);  }
    95%   { background: linear-gradient(to top, rgba(255,255,255,.8) 95%, rgba(0,0,0,.8) 0%);  }
    96%   { background: linear-gradient(to top, rgba(255,255,255,.8) 96%, rgba(0,0,0,.8) 0%);  }
    97%   { background: linear-gradient(to top, rgba(255,255,255,.8) 97%, rgba(0,0,0,.8) 0%);  }
    98%   { background: linear-gradient(to top, rgba(255,255,255,.8) 98%, rgba(0,0,0,.8) 0%);  }
    99%   { background: linear-gradient(to top, rgba(255,255,255,.8) 99%, rgba(0,0,0,.8) 0%);  }
    100%  { background: linear-gradient(to top, rgba(255,255,255,.8) 100%, rgba(0,0,0,.8) 0%);  }
}

/* To change cooldown time, also change CODE_SCAN_COOLDOWN_SECONDS in main.js */
.cooldown-fade-anim {
    -webkit-animation: cooldown-fade 15s ease-in-out;
    animation: cooldown-fade 15s ease-in-out;
}