* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
html, input {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}
body {
    font-size: 20px;
    line-height: 1.4;
    color: #333;
    text-align: center;
    margin: 0 auto;
    width: 2048px;
    max-width: 100%;
    background: #fff;
}
html, body {
    height: 100%;
}

a:link, a:visited { 
    color: #41D9DA;
    text-decoration: none;
    display: inline-block;
}

a:hover, a:active {
    color: #F53A59;
}

.input-block, .queue-block, .result-block, .fail-block {
    display: none;
}
.input-page .input-block, .queue-page .queue-block, .result-page .result-block, .fail-page .fail-block {
    display: block;
}

.text-block {
    max-width: 720px;
    padding: 0 10px;
    margin: 0 auto;
    text-align: left;
}

.page-header {
    padding: 159px 0 0;
}
.slogan > p {
    line-height: 1.6;
    margin: 0 auto 0.5em;
    opacity: 1;
}
img {
    max-width: 100%;
    height: auto;
}
.form-inline {
    max-width: 436px;
    margin: 0.5em auto 0;
    height: 226px;
    opacity: 1;
}

h1, h2, h3 {
    color: #333;
}
h2.url {
    font-size: 18px;
    margin-top: 0;
}
.container {
    padding: 0;
    margin: 0;
}
.main {
    min-height: 100%;
    margin-bottom: -150px; /* minus height of .footer */
    padding-bottom: 150px; /* height of .footer */
}
.footer {
    height: 150px;
    padding: 13px 0;
    verflow: hidden;
    margin: 0;
    z-index: 1;
    position: relative;
    font-size: 0.6em;
    background-color: #fff;
}
.header {
    position: relative;
    padding: 0 0 10%;
    overflow: hidden;
    background-image: url('img/background.jpg');
    background-size: 587px auto;
}
.cut-separator {
    position: absolute;
    left: 0;
    right: 0;
    height: 2000px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    -webkit-box-shadow: inset 0 14px 15px -7px #ddd;
            box-shadow: inset 0 14px 15px -7px #ddd;
    -webkit-transform: skewY(-7deg);
            transform: skewY(-7deg);
    -webkit-transform-origin: 50%;
            transform-origin: 50%;
    margin-top: 50px;
}
.inner {
    position: relative;
    height: 71px;
}
.inner > a.img {
    position: absolute;
    top: 0;
    white-space: nowrap;
    line-height: 0;
    left: 50%;
    transform: translateX(-50%);
}
.status-wrapper {
    font-size: 0.7em;
    line-height: 2em;
    height: 7.2em;
    overflow: hidden;
    position: relative;
}
.status-wrapper > .status {
    position: relative;
    -webkit-transition: top 1s;
            transition: top 1s;
}
.status-wrapper > .status-0 {
    top: -0.8em;
}
.status-wrapper > .status-1 {
    top: -2.8em;
}
.status-wrapper > .status-2 {
    top: -4.8em;
}
.status-wrapper > .status-3 {
    top: -6.8em;
}
.status-wrapper > .status-4 {
    top: -8.8em;
}
.status-wrapper > .status-5 {
    top: -10.8em;
}
.status-wrapper > .status-6 {
    top: -12.8em;
}
.status-wrapper > .status-7 {
    top: -14.8em;
}
.status-wrapper > .status > span {
    color: #c6f4f4;
    color: rgba(65, 217, 218, 0.3);
}
.status-wrapper > .status-0 > span.status-0,
.status-wrapper > .status-1 > span.status-1,
.status-wrapper > .status-2 > span.status-2,
.status-wrapper > .status-3 > span.status-3,
.status-wrapper > .status-4 > span.status-4,
.status-wrapper > .status-5 > span.status-5,
.status-wrapper > .status-6 > span.status-6,
.status-wrapper > .status-7 > span.status-7 {
    color: #41d9da;
}
.status-wrapper > .status-0 > span.status-0 + span ~ span,
.status-wrapper > .status-1 > span.status-1 + span ~ span,
.status-wrapper > .status-2 > span.status-2 + span ~ span,
.status-wrapper > .status-3 > span.status-3 + span ~ span,
.status-wrapper > .status-4 > span.status-4 + span ~ span,
.status-wrapper > .status-5 > span.status-5 + span ~ span,
.status-wrapper > .status-6 > span.status-6 + span ~ span,
.status-wrapper > .status-7 > span.status-7 + span ~ span {
    color: #ecfbfb;
    color: rgba(65, 217, 218, 0.1);
}
/* header modifications for results page */
.result-page > .header {
    padding: 0 0 72px;
}
.result-page > .header > .page-header {
    padding: 32px 0 0 32px;
}
.result-page .inner > a.img {
    left: 0;
    -webkit-transform: translateX(0);
            transform: translateX(0);
}
.result-page .inner > a.img > img {
    width: 215px;
}
.queue-page .slogan > p,
.fail-page .slogan > p,
.result-page .slogan > p {
    padding: 0;
    margin: 0;
    line-height: 0;
    opacity: 0;
}
.result-page > .header > .form-inline {
    height: 0;
    opacity: 0;
}
.result-page > .header > .cut-separator {
    margin-top: 16px;
    -webkit-transform-origin: 0%;
            transform-origin: 0%;
}
/* transitions */
.header, .page-header {
    -webkit-transition: padding 1s;
            transition: padding 1s;
}
.slogan > p {
    -webkit-transition: margin 1s, padding 1s, line-height 1s, opacity 1s;
            transition: margin 1s, padding 1s, line-height 1s, opacity 1s;
}
.inner > a.img {
    -webkit-transition: left 1s, -webkit-transform 1s;
            transition: left 1s, -webkit-transform 1s;
            transition: left 1s, transform 1s;
            transition: left 1s, transform 1s, -webkit-transform 1s;
}
.inner > a.img > img {
    -webkit-transition: width 1s;
            transition: width 1s;
}
.form-inline {
    -webkit-transition: height 1s, opacity 1s;
            transition: height 1s, opacity 1s;
}
.cut-separator {
    -webkit-transition: margin-top 1s, -webkit-transform-origin 1s;
            transition: margin-top 1s, -webkit-transform-origin 1s;
            transition: margin-top 1s, transform-origin 1s;
            transition: margin-top 1s, transform-origin 1s, -webkit-transform-origin 1s;
}
.status-wrapper > .status > span {
    -webkit-transition: color 1s;
            transition: color 1s;
}

.form-control {
    display: block;
    width: 100%;
    height: 2.5em;
    padding: 0.25em 0.5em;
    line-height: 1.4;
    color: #333;

}
.form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}
.input {
    text-align: left;
    padding: 0;
    margin: 1.9em 0 0;
    position: relative;
    -webkit-box-shadow: 0 0 20px #ccc;
            box-shadow: 0 0 20px #ccc;
    background-color: #fff;
}
.input:after {
    content: '';
    display: block;
    clear: both;
}
.input > .url {
    width: 100%;
    height: 47px;
    padding: 10px 50px 0 22px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}
.input > .loader {
    position: absolute;
    width: 28px;
    height: 30px;
    background-image: url('img/shuriken.png');
    background-size: 28px 30px;
    right: 12px;
    top: 9px;
    -webkit-animation: spin 12s infinite linear;
    animation: spin 12s infinite linear;
}
@-webkit-keyframes spin {
    0%   {-webkit-transform: rotate(0deg)}
    100% {-webkit-transform: rotate(3600deg)}
}
@keyframes spin {
    0%   {-webkit-transform: rotate(0deg);
                  transform: rotate(0deg)}
    100% {-webkit-transform: rotate(3600deg);
                  transform: rotate(3600deg)}
}

#url, #url:focus {
    width: 325px;
    max-width: 82%;
    border: none;
    outline: none;
    text-align: left;
    height: 47px;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 300;
}
#go {
    float: right;
    background-color: #41d9da;
    color: #fff;
    font-weight: bold;
    font-size: 19px;
    height: 47px;
    padding: 10px 38px;
}
button, html input[type=button], input[type=reset], input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer;
    background-color: #41d9da;
    color: #fff;
    font-weight: 500;
    font-size: 19px;
    padding: 10px 38px;
    border: none;
}
button, select {
    text-transform: none;
}
button {
    overflow: visible;
}
button, input, optgroup, select, textarea {
    margin: 0;
}
.btn {
    display: inline-block;
    padding: 10px 16px;
    margin-bottom: 0;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: none;
}
.screenshots {
    margin: 0 auto 2em;
}
.screenshots > div {
    display: inline-block;
    vertical-align: top;
    margin-bottom: 3em;
}
.screenshots > div > img {
    display: block;
    width: 244px;
    max-width: 100%;
    height: auto;
    margin: 1.5em;
}
.screenshots > div > span {
    display: block;
    margin: 0 auto;
    font-size: 0.7em;
    font-weight: 500;
    line-height: 2.0;
}
.gps {
    font-weight: bold;
    width: 52px;
    height: 52px;
    border-radius: 26px;
    border: 4px solid black;
    line-height: 44px;
    font-size: 18px;
    margin: 12px;
}
.gps-error {/*0-64*/
    color: #d0021b;
    border-color: #d0021b;
}
.gps-warning {/*65-84*/
    color: #f5a623;
    border-color: #f5a623;
}
.gps-excellent {/*85-100*/
    color: #7ed321;
    border-color: #7ed321;
}
.gps-unclear {/*timeout or worse result*/
    color: #c6b6e3;
    border-color: #c6b6e3;
}

.result {
    margin-top: 35px;
}
table.result.lead {
    margin: 50px auto 0;
}
table.result.lead td{
    font-size: 12px;
    min-width: 50px;
}
table.result.lead td.arrow {
    font-size: 20px;
}
.title {
    text-align: right;
}
.request {
    clear: both;
    margin: 51px auto 99px;
}
.request > a {
    background-color: #41d9da;
    padding: 12px 36px;
    -webkit-box-shadow: 0 0 20px 0 #ccc;
            box-shadow: 0 0 20px 0 #ccc;
    color: #fff;
    text-decoration: none;
}

.hidden {
    display: none !important;
}
#overlay {
    z-index: 2;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
}
#overlay .popup {
    margin: 250px auto 0;
    padding: 0;
    background: #fff;
    width: 300px;
    position: relative;
}

.popup-outer {
    background-color: #fff;
    margin: 0;
    padding: 0;
    overflow: hidden;
    vertical-align: middle;
}
.popup-outer form {
    display: block;
    position: relative;
    padding: 0;
}
.popup-inner {
    padding: 1.6em 1.2em;
}
.popup-outer input {
    -webkit-appearance: none;
    width: 100%;
    display: block;
}
.popup-outer input.email {
    font-size: 80%;
    height: 3em;
    line-height: 3em;
    margin: 0;
    padding: 0 0.8em;
    color: #9b9b9b;
    border: 1px solid #eee;
    -webkit-box-shadow: 0 0 1em #ddd;
            box-shadow: 0 0 1em #ddd;
}
.popup-outer input.email:focus {
    border-color: #333;
}
.popup-outer .button {
    font-size: 100%;
    height: 2.4em;
    line-height: 2.4em;
    margin: 1em 0 0;
    padding:0;
    background-color: #41d9da;
    color: #fff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
    white-space: nowrap;
    -webkit-transition: all 0.3s ease-in-out 0s;
            transition: all 0.3s ease-in-out 0s;
    font-weight: 500;
}
.popup-outer .button:hover {
    background-color: #1e9999;
}
.popup-outer p {
    margin-top: 0;
    font-size: 80%;
}

/* mobile styles (width<640px) */
@media handheld and (max-width: 639px), screen and (max-width: 639px) {
    body {
        font-size: 14px;
    }
    .page-header {
        padding: 65px 0 0;
    }
    .page-header .inner > a.img > img {
        max-width: 256px;
    }
    .slogan > p {
        margin: 3px auto 0;
    }
    .form-inline {
        max-width: 276px;
    }
    .screenshots > div > span {
        font-size: 1em;
    }
    .status-wrapper {
        font-size: 1em;
        line-height: 1.5em;
        height: 5.5em;
    }
    .status-wrapper > .status-0 {
        top: -0.5em;
    }
    .status-wrapper > .status-1 {
        top: -2em;
    }
    .status-wrapper > .status-2 {
        top: -3.5em;
    }
    .status-wrapper > .status-3 {
        top: -5em;
    }
    .status-wrapper > .status-4 {
        top: -6.5em;
    }
    .status-wrapper > .status-5 {
        top: -8em;
    }
    .status-wrapper > .status-6 {
        top: -9.5em;
    }
    .cut-separator {
        margin-top: 0;
    }
    .input > .url {
        padding-top: 15px;
    }
    .result-page > .header {
        padding-bottom: 30px;
    }
    #go {
        font-size: 16px;
        padding: 7px 20px;
    }
    #url, #url:focus {
        max-width: 205px;
        padding: 0 1em;
/*        font-size: 1em;*/
    }
    .popup-outer input {
        font-size: 100%;
    }
}
