#sub-frame-error {
    display: none;
}

#diagnose-button {
    float: none;
    margin-bottom: 10px;
    margin-inline-start: 0;
    margin-top: 20px;
}

h1 {
    margin-top: 0;
    word-wrap: break-word;
}

h1 span {
    font-weight: 500;
}

h2 {
    color: #666;
    font-size: 1.2em;
    font-weight: normal;
    margin: 10px 0;
}

a {
    color: rgb(17, 85, 204);
    text-decoration: none;
}

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

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

.error-code {
    display: block;
    font-size: 0.8em;
}

#content-top {
    margin: 20px;
}

#help-box-inner {
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    color: #444;
    padding: 20px;
    text-align: start;
}

.hidden {
    display: none;
}

#suggestion {
    margin-top: 15px;
}

#suggestions-list p {
    margin-block-end: 0;
}

#suggestions-list ul {
    margin-top: 0;
}

.single-suggestion {
    list-style-type: none;
    padding-left: 0;
}

#short-suggestion {
    margin-top: 5px;
}

[jscontent='hostName'],
[jscontent='failedUrl'] {
    overflow-wrap: break-word;
}

.suggestions {
    margin-top: 18px;
}

.suggestion-header {
    font-weight: bold;
    margin-bottom: 4px;
}

.suggestion-body {
    color: #777;
}

/* Increase line height at higher resolutions. */

@media (min-width: 641px) and (min-height: 641px) {
    #help-box-inner {
        line-height: 18px;
    }
}

/* Decrease padding at low sizes. */

@media (max-width: 640px),
(max-height: 640px) {
    h1 {
        margin: 0 0 15px;
    }
    #content-top {
        margin: 15px;
    }
    #help-box-inner {
        padding: 20px;
    }
    .suggestions {
        margin-top: 10px;
    }
    .suggestion-header {
        margin-bottom: 0;
    }
}

/* Don't allow overflow when in a subframe. */

html[subframe] body {
    overflow: hidden;
}

/* details-button is special; it's a <button> element that looks like a link. */

#details-button {
    box-shadow: none;
    min-width: 0;
}

/* Styles for platform dependent separation of controls and details button. */

.suggested-left>#control-buttons,
.suggested-left #stale-load-button,
.suggested-right>#details-button {
    float: left;
}

.suggested-right>#control-buttons,
.suggested-right #stale-load-button,
.suggested-left>#details-button {
    float: right;
}

.suggested-left .secondary-button {
    margin-inline-end: 0px;
    margin-inline-start: 16px;
}

#details-button.singular {
    float: none;
}

/* download-button shows both icon and text. */

/* Alternate dino page button styles */

#control-buttons .reload-button-alternate:disabled {
    background: #ccc;
    color: #fff;
    font-size: 14px;
    height: 48px;
}

#buttons::after {
    clear: both;
    content: '';
    display: block;
    width: 100%;
}

/* Offline page */

body {
    transition: -webkit-filter 1.5s cubic-bezier(0.65, 0.05, 0.36, 1), background-color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
    will-change: -webkit-filter, background-color;
    transition: filter 1.5s cubic-bezier(0.65, 0.05, 0.36, 1), background-color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
    will-change: filter, background-color;
    height: 100vh;
    font-family: sans-serif;
    margin: 0;
    /* overflow: hidden; */
}

#game #main-message>p {
    display: none;
}

.inverted {
    filter: invert(100%);
    background-color: #000;
}

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

#game .runner-container {
    direction: ltr;
    height: 600px;
    /* max-width: 600px; */
    overflow: hidden;
    position: absolute;
    top: 35px;
    width: 44px;
}

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

#game .controller {
    background: rgba(247, 247, 247, 0.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: 420px) and (max-width: 736px) and (min-height: 240px) and (max-height: 420px) and (orientation: landscape) {
    .interstitial-wrapper {
        margin-bottom: 100px;
    }
}

@media (max-width: 360px) and (max-height: 480px) {
    #game .interstitial-wrapper {
        padding-top: 60px;
    }
    #game .runner-container {
        top: 8px;
    }
}

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

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

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

@media (max-width: 120px) {
    button {
        width: auto;
    }
}

.arcade-mode,
.arcade-mode .runner-container,
.arcade-mode .runner-canvas {
    image-rendering: pixelated;
    max-width: 100%;
    overflow: hidden;
}

.arcade-mode #buttons,
.arcade-mode #main-content {
    opacity: 0;
    overflow: hidden;
}

.arcade-mode .interstitial-wrapper {
    height: 100vh;
    max-width: 100%;
    overflow: hidden;
}

.arcade-mode .runner-container {
    left: 0;
    margin: auto;
    right: 0;
    transform-origin: top center;
    transition: transform 250ms cubic-bezier(0.4, 0, 1, 1) 0.4s;
    z-index: 2;
}

.bottom {
    position: absolute;
    bottom: 0;
}

.right {
    text-align: left;
    right: 0;
}

#installer {
    position: absolute;
    opacity: 0;
    top: 0;
    right: 0;
    text-align: center;
    transition: opacity 300ms ease-in-out;
}

#installer.available {
    opacity: 1;
}

#installer .button {
    border: rgb(8, 8, 8) 1px solid;
    margin: 10px;
    padding: 10px;
    color: rgb(8, 8, 8);
    background-color: transparent;
}

@font-face {
    font-family: 'Press Start 2P';
    src: url('./fonts/prstart.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 11340000000;
    font-family: 'Press Start 2P', monospace;
}

.splash-screen h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    color: #535353;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.4;
}

.start-button {
    position: relative;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    padding: 1rem 2rem;
    margin: 1rem;
    background: #535353;
    color: #f7f7f7;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
}

.start-button:hover {
    transform: scale(1.05);
    background: #444444;
}

.start-button::before {
    content: '>';
    position: absolute;
    left: -30px;
    animation: blink 1s infinite;
}

.start-hint {
    animation: blink 1.2s infinite;
    font-family: 'Press Start 2P', 'JetBrains Mono', monospace;
    text-transform: uppercase;
    color: #535353;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    text-align: center;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    49% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    99% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.splash-icon {
    margin-bottom: 2rem;
    width: 100px;
    height: 100px;
}

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

.hidden {
    display: none;
}