/* Copyright 2013 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

html,
body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

.icon {
    -webkit-user-select: none;
    user-select: none;
    display: inline-block;
}

.icon-offline {
    content: -webkit-image-set( url(assets/default_100_percent/100-error-offline.png) 1x, url(assets/default_200_percent/200-error-offline.png) 2x);
    position: relative;
}

.hidden {
    display: none;
}


/* Offline page */

#t {
    margin-top: 20vh;
    position: relative;
}

.offline .interstitial-wrapper {
    color: #2b2b2b;
    font-size: 1em;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 600px;
    padding-top: 100px;
    width: 90%;
    ;
}

.offline .runner-container {
    height: 150px;
    max-width: 600px;
    overflow: hidden;
    position: absolute;
    top: 35px;
    width: 44px;
}

.offline .runner-canvas {
    height: 150px;
    max-width: 600px;
    opacity: 1;
    overflow: hidden;
    position: absolute;
    top: 0;
    z-index: 2;
}

.offline .controller {
    background: rgba(247, 247, 247, .1);
    height: 100vh;
    left: 0;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 1;
}

#offline-resources {
    display: none;
}

@media (max-width: 420px) {
    .suggested-left>#control-buttons,
    .suggested-right>#control-buttons {
        float: none;
    }
    .snackbar {
        left: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0;
    }
}

@media (max-height: 350px) {
    h1 {
        margin: 0 0 15px;
    }
    .icon-offline {
        margin: 0 0 10px;
    }
    .interstitial-wrapper {
        margin-top: 5%;
    }
    .nav-wrapper {
        margin-top: 30px;
    }
}

@media (min-width: 600px) and (max-width: 736px) and (orientation: landscape) {
    .offline .interstitial-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 420px) and (max-width: 736px) and (min-height: 240px) and (max-height: 420px) and (orientation:landscape) {
    .interstitial-wrapper {
        margin-bottom: 100px;
    }
}

@media (min-height: 240px) and (orientation: landscape) {
    .offline .interstitial-wrapper {
        margin-bottom: 90px;
    }
    .icon-offline {
        margin-bottom: 20px;
    }
}

@media (max-height: 320px) and (orientation: landscape) {
    .icon-offline {
        margin-bottom: 0;
    }
    .offline .runner-container {
        top: 10px;
    }
}

@media (max-width: 240px) {
    .interstitial-wrapper {
        overflow: inherit;
        padding: 0 8px;
    }
}


/* cyrillic-ext */

@font-face {
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Press Start 2P Regular'), local('PressStart2P-Regular'), url(https://fonts.gstatic.com/s/pressstart2p/v8/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}


/* cyrillic */

@font-face {
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Press Start 2P Regular'), local('PressStart2P-Regular'), url(https://fonts.gstatic.com/s/pressstart2p/v8/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2) format('woff2');
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}


/* greek */

@font-face {
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Press Start 2P Regular'), local('PressStart2P-Regular'), url(https://fonts.gstatic.com/s/pressstart2p/v8/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2) format('woff2');
    unicode-range: U+0370-03FF;
}


/* latin-ext */

@font-face {
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Press Start 2P Regular'), local('PressStart2P-Regular'), url(https://fonts.gstatic.com/s/pressstart2p/v8/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* latin */

@font-face {
    font-family: 'Press Start 2P';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Press Start 2P Regular'), local('PressStart2P-Regular'), url(https://fonts.gstatic.com/s/pressstart2p/v8/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    background-color: black;
    overflow-y: hidden;
    overflow-x: hidden;
}

h1 {
    height: 5vh;
    width: 100vw;
    position: initial;
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    display: block;
    color: #008040;
    margin-top: 10vh;
    letter-spacing: 0px;
    font-weight: lighter;
    font-size: x-large;
}

h2 {
    width: 100vw;
    position: initial;
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    display: block;
    color: #008040;
    margin-top: 3vh;
    letter-spacing: 0px;
    font-weight: lighter;
    font-size: large;
}

h3 {
    height: 5vh;
    width: 100%;
    position: fixed;
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    display: block;
    color: #008040;
    font-weight: lighter;
    font-size: small;
    bottom: 30px;
    margin: 5% auto;
}

.command {
    animation: flash 1.5s linear infinite;
}

@keyframes flash {
    0%,
    50% {
        opacity: 0;
    }
    51%,
    100% {
        opacity: 1;
    }
}