@media (min-resolution: 400dpi) {
    #restest {
        display: none;
        width: 500px;
    }
}

@media (min-resolution: 300dpi) {
    #restest {
        display: none;
        width: 400px;
    }
}

@media (min-resolution: 250dpi) {
    #restest {
        display: none;
        width: 300px;
    }
}

@media (min-resolution: 92dpi) {
    #restest {
        display: none;
        width: 200px;
    }
}

@media (max-resolution: 91dpi) {
    #restest {
        display: none;
        width: 100px;
    }
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -ms-touch-action: none;
    touch-action: pan-y;
}
html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

body {
    padding: 0;
    overflow: auto;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    background-color: transparent;
    font-family: Verdana,Geneva,sans-serif;
}

#navbar {
    position: fixed;
    height: 30px;
    margin-left: -10px;
    background: #DDD;
}

#landscapeWarning {
    margin: 0;
    background-size: contain;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 30000;
    display: none;
}

canvas {
    z-index: 2000;
    position: relative;
}

div#sidebar_controls {
    opacity: 0.9;
    overflow: auto;
    position: fixed;
    height: 100%;
    width: 470px;
    top: 0;
    right: 0;
    background: grey;
}

div#show-sidebar-when-mouse-enters-me-left {
    overflow: auto;
    position: absolute;
    top: 0px;
    height: 100%;
    width: 30px;
    z-index: 22000;
}

div#show-sidebar-when-mouse-enters-me-right {
    overflow: auto;
    position: absolute;
    top: 0px;
    height: 100%;
    width: 30px;
    right: 0px;
    z-index: 22000;
}

div#sidebar_config {
    opacity: 1;
    overflow: auto;
    position: fixed;
    height: 100%;
    width: 470px;
    top: 0;
    left: 0;
    background: grey;
    margin-left: -480px;
    z-index: 22000;
    padding-left: 10px;
}

div#sidebar_config {
    background: white;
    font-family: sans-serif;
}

div#sidebar_config ul,
div#sidebar_config li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    margin: 0;
    padding: 0;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-padding-start: 0;
}

div[data-root="true"] div.object {
    padding-top: 1em;
}

div.object > div.property.has_children {
    border: solid #b1b1b1 thin;
    padding: 2px;
    margin: 2px;
}

.array .item > .remove {
    display: none;
    float: right;
}

.array .item:hover {
    background: #ffd;
}

.array .item:hover > .remove {
    display: block;
}

div.object > div.property.has_children:before {
    content: "⇟";
    color: gray;
}

div.object > div.property.has_children.hidden:before {
    content: "⇞";
}

/*div#sidebar-config div.property.has_children>label{*/
.has_children > label {
    font-weight: bolder;
    font-size: 1em;
    cursor: pointer;
}

.leaf > label {
    margin-right: .5em;
    min-width: 120px;
    display: inline-block;
    text-align: right;
}

.json > label {
    vertical-align: top;
}

div[data-root="true"] > div.object > div.property.has_children > label {
    font-size: 1.3em;
}

div[data-root="true"] > div.object > div.property.has_children .has_children > label {
    font-size: 1.15em;
}

div[data-root="true"] > div.object > div.property.has_children .has_children .has_children > label {
    font-size: 1.0em
}


#loading_div {
    -moz-transform:translateY(50%); /* Firefox 3.6 Firefox 4 */
    -webkit-transform:translateY(50%); /* Safari */
    -o-transform:translateY(50%); /* Opera */
    -ms-transform:translateY(50%); /* IE9 */
    transform:translateY(50%); /* W3C */
    margin: 15px;
    position: relative;
}
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f00f20;
    size: 20px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
}
.spinner {
    height: 40px;
    text-align: center;
    font-size: 10px;
}

.spinner > div {
    background-color: #f00f20;
    height: 100%;
    width: 6px;
    display: inline-block;

    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
    20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }  20% {
           transform: scaleY(1.0);
           -webkit-transform: scaleY(1.0);
       }
}


.background {
    position: absolute;
    object-fit: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    opacity: 1.0;
    -webkit-transition: background 1s ease-in-out;
    transition: background 1s ease-in-out;
}

#backgroundParent {
    position: absolute;
    z-index: 5;
    left: -3px;
    bottom: -3px;
}

#fullscreen_window {
    -webkit-transition: background 1s ease-in-out;
    transition: background 1s ease-in-out;
}

#preload {
    position: absolute;
    z-index: 0;
    display: none;
}

#rules_frame {
    min-height: 100%;
    height: 100%;
    width: 100%;
}

:-webkit-full-screen {
    z-index: 20000;
!important;
}

#error-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.7);
    z-index: 999999;
}

#error-frame {
    background-color: #F7F7F7;
    font-family: 'Noto Sans Reg', 'Noto Sans', 'Verdana', 'Lucida Sans', 'sans-serif';
    border-radius: 15px;
    padding: 0;
    max-width: 40em;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#error-red {
    border-radius: 15px;
    background-color: #f05a5c;
}

#error-pane {
    background-color: #f7f7f7;
    padding: 12px 12px 12px 20px;
    margin-right: 10px;
}

#error-excl {
    font-weight: 900;
    font-size: 260%;
    color: #c20702;
    width: 10%;
    text-align: center;
    float: left;
    padding-top: 12px;
}

#error-right {
    background-color: #f7f7f7;
    border-radius: 15px;
    margin-left: 10%;
}

#error-header {
    color: #c20702;
    text-align: left;
    margin: 0;
    padding-bottom: 0.75em;
    word-wrap: break-word;
}

#error-message {
    color: #777777;
    text-align: left;
}

#error-message:first-line {
    font-weight: 700;
    color: #4f4f4f;
}

.fullscreen-background {
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    display: block
}

.fullscreen-instructions, .fullscreen-instructions-ios15 {
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 10002;
    top: 0;
    left: 0;
    display: block
}

.fullscreen-overlay {
    width: 100vw;
    height: 120vh;
    position: absolute;
    z-index: 10001;
    top: 0;
    left: 0;
    display: block
}

.fullscreen-background[data-active=false], .fullscreen-instructions[data-active=false], .fullscreen-instructions-ios15[data-active=false], .fullscreen-overlay[data-active=false] {
    opacity: 0;
    z-index: 0
}

.fullscreen-instructions-swipe {
    width: 30vw;
    height: 30vw;
    position: fixed;
    top: 75vh;
    left: 50vw;
    color: #fff;
    fill: #fff;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-name: fullscreen-swipe;
    animation-name: fullscreen-swipe;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite
}

@-webkit-keyframes fullscreen-swipe {
    from {
        top: 90%
    }
    to {
        top: 50%
    }
}

@keyframes fullscreen-swipe {
    from {
        top: 90%
    }
    to {
        top: 50%
    }
}

@media only screen and (orientation: portrait) {
    .fullscreen-instructions-swipe {
        width: 30vw;
        height: 30vw;
        -webkit-animation-duration: 2s;
        animation-duration: 2s
    }
}

@media only screen and (orientation: landscape) {
    .fullscreen-instructions-swipe {
        width: 30vh;
        height: 30vh;
        -webkit-animation-duration: 1.5s;
        animation-duration: 1.5s
    }
}
.hidden {
    display: none;
}

#ios15-fullscreen {
    display: flex;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

#ios15-step1 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}
#ios15-step1-img {
    width: 150px;
    height: 20vh;
    background: url(../assets/ios15/step1.svg) no-repeat center;
}
#ios15-step1-desc-wrapper {
    width: 150px;
}
#ios15-step1-desc {
    position: relative;
    background: #48acef;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    width: 150px;
    transition: opacity 1s linear;
    opacity: 0;
    width: 179px;
    position: absolute;
    top: 53px;
    padding: 10px 10px 10px 29px;
    margin-left: 14px;
    font-size: 12px;
}
#ios15-step1-desc::before {
    content: '';
    position: absolute;
    top: 11px;
    left: -18px;
    z-index: 1;
    border: solid 10px transparent;
    border-right-color: #48acef;
}
#ios15-step1-desc::after {
    background: url(../assets/ios15/one.svg) no-repeat center;
    content: '';
    position: absolute;
    top: 14px;
    left: 4px;
    z-index: 1;
    width: 16px;
    height: 16px;
}

#ios15-step2 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}
#ios15-step2-img {
    width: 150px;
    height: 30vh;
    background: url(../assets/ios15/step2.svg) no-repeat center;
    transition: opacity 1s linear;
    opacity: 0;
}

#ios15-step2-desc-wrapper {
    width: 150px;
}
#ios15-step2-desc {
    position: relative;
    background: #48acef;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    width: 150px;
    transition: opacity 1s linear;
    opacity: 0;
    width: 179px;
    position: absolute;
    top: 207px;
    padding: 10px 10px 10px 29px;
    margin-left: 14px;
    font-size: 12px;
}
#ios15-step2-desc::before {
    content: '';
    position: absolute;
    top: 11px;
    left: -18px;
    z-index: 1;
    border: solid 10px transparent;
    border-right-color: #48acef;
}
#ios15-step2-desc::after {
    background: url(../assets/ios15/two.svg) no-repeat center;
    content: '';
    position: absolute;
    top: 14px;
    left: 4px;
    z-index: 1;
    width: 16px;
    height: 16px;
}
