body {
    cursor: default;
    color: #888;
    background-color: #000000;

    display: flex;

    flex-direction: column;

    height: 100%;
    /* for firefox */
    width: 100%;

    position: absolute;
    padding: 0px;
    border: 0px;
    margin: 0px;
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0;
    /* <-- Apparently some margin are still there even though it's hidden */
}

body,
canvas,
div {
    outline: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

canvas {
    background-color: rgba(0, 0, 0, 0);
}

.toolbar.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.content {
    display: -webkit-flex;
    display: flex;

    -webkit-justify-content: center;
    justify-content: center;

    -webkit-align-items: center;
    align-items: center;

    -webkit-flex-direction: column;
    flex-direction: column;

    -webkit-flex: auto;
    flex: auto;
}

.contentWrap {
    width: 100%;
    height: 100%;
    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;
}

#GameDiv {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    /* max-width: 75vh; */
    overflow: hidden;
}

#GameCanvas {
    width: 100%;
    height: 100%;
}

.wrapper {
    position: relative;
    background: transparent;
}

.toolbar {
    /*position: absolute;*/
    /*left: 10px;*/
    /*top: 10px;*/
    min-height: 27px;
    padding: 4px 0px 4px 10px;

    display: -webkit-flex;
    display: flex;

    -webkit-align-items: center;
    align-items: center;

    -webkit-flex-direction: row;
    flex-direction: row;

    z-index: 999;
}

.toolbar * {
    font-size: 12px;
    font-family:
        /* https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/ */
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
        "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
        "SourceHanSansCN-Normal", sans-serif;
}

.toolbar .item {
    display: inline-block;
    margin-right: 10px;
}

.toolbar select {
    height: 25px;
    padding: 0px 8px;

    box-shadow: none;
    background-image: none;

    border: 1px solid #171717;
    background: #444;
    color: #aaa;
}

.toolbar select:focus {
    outline: none;
    /* border: 1px solid #09f; */
}

.toolbar button {
    border: 1px solid #171717;
    border-radius: 2px;
    text-align: center;
    padding: 4px 8px;

    cursor: pointer;
    color: #bdbdbd;
    font-weight: bold;

    background-image: linear-gradient(#5a5a5a, #444);
}

.toolbar button.checked {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #09f;
    background-image: linear-gradient(#333, #222);
}

#btn-pause.checked {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#btn-step {
    display: none;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

#btn-step.show {
    display: inline-block;
}

.toolbar button:focus {
    outline: none;
}

.toolbar button:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #888;
    background-image: linear-gradient(#333, #222);
}

.toolbar input {
    width: 41px;
    height: 24px;
    padding: 4px 4px;
    box-shadow: inset 0px 0px 2px 1px rgba(0, 0, 0, 0.3);
    border: 1px solid #171717;
    background: #444;
    color: #aaa;
}

.footer a {
    color: white;
}

#bulletin {
    position: absolute;
    left: 50%;
    top: 50%;
    display: none;
}

#bulletin .inner {
    position: relative;
    left: -50%;
    top: -50%;
    display: none;
}

#recompiling {
    position: relative;
    /*left: 50%;
    top: 50%;*/
    display: none;
}

.progress-bar {
    background-color: #646f76;
    position: absolute;
    left: 29.75%;
    top: 50%;
    width: 40.5%;
    height: 3px;
    border-radius: 2px;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease-in-out;
    background-color: #3dc5de;
}

.stripes span {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);

    animation: animate-stripes 1s linear infinite;
}

@keyframes animate-stripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 0;
    }
}

.error {
    color: white;
    position: absolute;
    width: 70%;
    max-width: 960px;
    top: 5vh;
    right: 0;
    left: 0;
    margin: auto;
    display: none;
    z-index: 2;
}

.error .title {
    font-size: 35px;
    border-bottom: 1px solid;
    margin-bottom: 15px;
}

.error .title i {
    font-size: 10px;
}

.error .error-main {
    word-break: break-all;
    overflow-y: auto;
    max-height: 50vh;
}

.hide {
    display: none;
}

#tutorial-image {
    height: 25%;
    display: none;
    animation-name: tutorialAnimation;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    position: fixed;
    top: 65%;
    left: 50%;
}

@keyframes tutorialAnimation {
    0% {
        height: 10%;
    }

    25% {
        height: 10%;
    }

    50% {
        height: 10%;
    }

    75% {
        height: 15%;
    }

    100% {
        height: 10%;
    }
}

@font-face {
    font-family: BalsamiqSans-Regular;
    src: url(images/BalsamiqSans-Regular.ttf);
}

.popup-container {
    position: absolute;
    width: 750px;
    height: 1334px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(calc(414 / 750), calc(414 / 750));
    z-index: 999999999;
    box-sizing: border-box;
    overflow: hidden;
}

.title-div {
    padding-left: 50px;
    padding-right: 50px;
}

.popup-title {
    text-align: center;
    font-size: 45px;
    color: rgb(0, 159, 229);
    font-weight: bold;
    font-family: BalsamiqSans-Regular;
}

.popup-description {
    position: absolute;
    text-align: center;
    font-size: 33px;
    width: 600px;
    vertical-align: middle;
    top: 36%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    color: rgb(66, 66, 66);
    font-family: BalsamiqSans-Regular;
}

.popup-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    left: 0px;
    top: 0px;
}

.button-copy {
    left: 50%;
    bottom: 20%;
    position: absolute;
    width: fit-content;
    transform: translateX(-50%) translateY(50%);
}

.button-copy:active {
    transform: scale(90%, 90%) translateX(-55%) translateY(50%);
}

.button-container-img {
    width: auto;
    height: auto;
}

.button-label {
    position: absolute;
    top: 45%;
    left: 50%;
    font-size: 35px;
    margin: 0px;
    transform: translate(-50%, -50%);
    text-shadow: -5px 5px 5px black;
    width: 100%;
    text-align: center;
    color: white;
    font-family: BalsamiqSans-Regular;
}

.deco-img {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%) scale(1);
}

/* #btnSelfie {
    position: absolute;
    transform: translate(-50%) scale(0.5);
    bottom: 1.25%;
    left: 50%;
    visibility: hidden;
}

#btnClose {
    position: absolute;
    top: 15px;
    right: 15px;
    visibility: hidden;
}

#circleFrame {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    visibility: hidden;
} */

.wrapPopup {
    /* display: none; */
    height: 100%;
    width: 100%;
    left: 0;
    min-height: 100%;
    position: fixed;
    right: 0;
    top: 0%;
    /* background: url("images/overlay.png"); */
    z-index: 999999999;
    background-color: black;
}

.popup-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%) scale(calc(414 / 750), calc(414 / 750)); */
    transform: translateX(-50%) translateY(-50%);
    z-index: 999999999;
    box-sizing: border-box;
    overflow: hidden;
}

.title-div {
    position: absolute;
    padding-left: 50px;
    padding-right: 50px;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.popup-title {
    text-align: center;
    font-size: 35px;
    color: rgb(0, 159, 229);
    font-weight: bold;
    font-family: paytoneFont;
}

.popup-description {
    position: absolute;
    text-align: center;
    font-size: 33px;
    width: 600px;
    vertical-align: middle;
    top: 36%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    color: rgb(66, 66, 66);
    font-family: paytoneFont;
}

.popup-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    left: 0px;
    top: 0px;
    background-color: black;
}