html {
    -ms-touch-action: none;
}

body,
canvas,
div {
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

  
  @keyframes float {
    0% {
      transform: translatey(0px);
    }
    50% {
      transform: translatey(-80px);
    }
    100% {
      transform: translatey(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 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    margin: 0;

    cursor: default;
    color: #fff;
    background-color: #fff;

    text-align: center;
    font-family: Helvetica, Verdana, Arial, sans-serif;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#Cocos2dGameContainer {
    position: absolute;
    margin: 0;
    overflow: hidden;
    left: 0px;
    top: 0px;

    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    -webkit-box-pack: center;
}

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

a:link,
a:visited {
    color: #666;
}

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

p.header {
    font-size: small;
}

p.footer {
    font-size: x-small;-
}

#splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: #ffffff url(images/bg_offscreen.jpg) no-repeat center center;
    background-size: cover;
}

#flyingcar {
    animation: float 4.5s ease-in-out infinite;

    position: absolute;
    top: 5%;
    left: 13%;
    width: 80%;
    height: 50%;

    background: url(images/flying_car.png) no-repeat center center;
    background-size: contain;
}

#cloudbottom {
    animation: float_verticle 9s ease-in-out infinite;

    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: url(images/cloud_bottom.png) no-repeat center bottom fixed;
    background-size: contain;
}

.progress-bar {
    background-color: #fff;
    position: absolute;
    left: 25%;
    top: 65%;
    height: 14px;
    padding: 2px;
    width: 50%;
    border: 1px solid #019fe6;
    border-radius: 4px;
}

.progress-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: 4px;
    transition: width 0.1s ease-in-out;
    background-color: #019fe6;
}

.progress-percent {
    position: absolute;
    left: 25%;
    top: 67%;
    padding-top: 15px;
    font-size: 12px;
    font-weight: 100;
    color: #FFFFFF;
    width: 50%;
}

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

@keyframes float {
    0% {
      transform: translatey(0px) rotate(1deg);
    }
    50% {
      transform: translatey(10px) rotate(-1deg);
    }
    100% {
      transform: translatey(0px) rotate(1deg);
    }
  }
  
  @keyframes float_verticle {
    0% {
      transform: translatey(0px);
    }
    50% {
      transform: translatey(10px);
    }
    100% {
      transform: translatey(0px);
    }
  }
  
  @keyframes swing {
    from {
      transform: rotate(1deg);
    }
    to {
      transform: rotate(-1deg);
    }
  }
  
@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);
}

.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;
}

.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 {
    z-index: 9;
    left: 50%;
    bottom: 20%;
    position: absolute;
    width: fit-content;
    height: fit-content;
    transform: translateX(-50%) translateY(50%);
}

.button-copy:active {
    transform: scaleX(0.9) scaleY(0.9) translateX(-55%) translateY(50%);
}

.button-container-img {
    pointer-events: none;
    z-index: 3;
    width: auto;
    height: auto;
}

.button-label {
    pointer-events: none;
    z-index: 2;
    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);
}
