html {
    box-sizing: border-box;
}
@font-face {
    font-family: myFirstFont;
    src: url(editundo.woff);
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    margin: 0;
    background-image: linear-gradient(rgb(0, 0, 0), rgb(0, 102, 255));
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}
canvas + * {
    z-index: 2;
}
.notiRotateMobile{
    display: none;
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background: white;
}

.btnRotateMobile{
    border:0px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.imageRotateMobile{
    width: 160px;
}

#gameContainer {
    width: 100vw;
    height: 100vh;
}

.logo {
    padding: 0px 150px;
    display: block;
    max-width: 100vw;
    max-height: 70vh;
}   

#loader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgb(0, 0, 0), rgb(0, 102, 255));
}
.pos_spinner{
    position: absolute;
    bottom : 15%;
    width: 100%;
}

.spinner,
.spinner:after {
    display: none;
    border-radius: 50%;
    width: 5em;
    height: 5em;
}
.spinner {
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@charset "UTF-8";
:root {
    --box-size: 100px;
    --box-border-radius: 50px;
    --translatey-begin: 15px;
    --translatey-end: 30px;
}

.container {
    margin-top: 50px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#boxloader{
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#box, #box2, #box3 {
    width: var(--box-size);
    height: var(--box-size);
    background-image: url("./image/icon_1.png");
    background-size: var(--box-size) var(--box-size);
    /*animation: animate 2s linear infinite;*/
    border-radius: 3px;
    z-index:100;
}

#box2{ 
    width: 130px;
    height: 100px;
    background-size: 130px 100px;
    background-image: url("./image/ufo_0.png");
    animation: animate2 0.5s linear infinite;
}

#box3{
    background-image: url("./image/Ball_0.png");
}

@keyframes animate2{
    25% { transform: translateY(var(--translatey-begin)); }
    50% {
        transform: translateY( var(--translatey-end)) scale(1,.9);
    }
    75% { transform: translateY( var(--translatey-begin)); }
    100% { transform: translateY(0); 
    }
}



@keyframes animate {
    3% { border-bottom-right-radius: 3px; }
    6.25% { transform: translateY(var(--translatey-begin)) rotate(22.5deg); }
    12.5% {
        transform: translateY( var(--translatey-end)) scale(1,.9) rotate(45deg) ;
        border-bottom-right-radius: var(--box-border-radius);
    }
    18.75% { transform: translateY( var(--translatey-begin)) rotate(67.5deg); }
    25% { transform: translateY(0) rotate(90deg); 
          border-bottom-right-radius: 3px;
    }

    28% { border-top-right-radius: 3px; }
    31.25% { transform: translateY( var(--translatey-begin)) rotate(112.5deg); }
    37.5% {
        transform: translateY( var(--translatey-end)) scale(1,.9) rotate(135deg) ;
        border-top-right-radius: var(--box-border-radius);
    }
    43.75% { transform: translateY( var(--translatey-begin)) rotate(157.5deg); }
    50% { transform: translateY(0) rotate(180deg); 
          border-top-right-radius: 3px;
    }

    53% { border-top-left-radius: 3px; }
    56.25% { transform: translateY( var(--translatey-begin)) rotate(202.5deg); }
    62.5% {
        transform: translateY( var(--translatey-end)) scale(1,.9) rotate(225deg) ;
        border-top-left-radius: var(--box-border-radius);
    }
    68.75% { transform: translateY( var(--translatey-begin)) rotate(247.5deg); }
    75% { transform: translateY(0) rotate(270deg); 
          border-top-left-radius: 3px;
    }

    78% { border-bottom-left-radius: 3px; }
    81.25% { transform: translateY( var(--translatey-begin)) rotate(292.5deg); }
    87.5% {
        transform: translateY( var(--translatey-end)) scale(1,.9) rotate(315deg) ;
        border-bottom-left-radius: var(--box-border-radius);
    }
    93.75% { transform: translateY( var(--translatey-begin)) rotate(337.5deg); }
    100% { transform: translateY(0) rotate(360deg); 
           border-bottom-left-radius: 3px;
    }
} 
#shadow { 
    width: var(--box-size);
    height: 15px;
    margin-top:16px;
    background: #000;
    opacity: 0.1;
    border-radius: 50%;
    animation: shadow .5s linear infinite;
}
@keyframes shadow {
    50% {
        transform: scale(1.2,1);
    }
}

.percentLoading{
    /*margin-top: 20px;*/
    font-family: myFirstFont;
    font-size: 28px;
    color:white;
}

@media only screen and (orientation:portrait){
    .notiRotateMobile{
        display: block;
    }

    .hideNotiRotateMobile{
        display: none;
    }
}

@media only screen and (orientation:landscape) {
    .notiRotateMobile{
        display: none;
    }
}

@media (max-width: 1200px) {
    .container {
        margin-top: 40px;
        height:130px;
    }
    .percentLoading{
        font-size : 26px;		
    }
    :root {
        --box-size: 80px;
    }
    #shadow { 
        height: 13px;
        margin-top:14px;
    }
    #box2{ 
        width: 110px;
        height: 80px;
        background-size: 110px 80px;
    }
}

@media (max-width: 1024px) {
    .container {
        margin-top: 30px;
        height:110px;
    }
    .percentLoading{
        font-size : 24px;		
    }
    :root {
        --box-size: 60px;
    }
    #box2{ 
        width: 80px;
        height: 60px;
        background-size: 80px 60px;
    }
    .logo {
        padding: 0px 50px;
    }
    #shadow { 
        height: 12px;
        margin-top:13px;
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 20px;
        height:90px;
    }

    :root {
        --box-size: 50px;
        --box-border-radius: 40px;
    }

    #box2{ 
        width: 70px;
        height: 50px;
        background-size: 70px 50px;
    }

    #shadow { 
        height: 9px;
        margin-top:16px;
    }
    #boxloader{
        padding: 0 15px;
    }
    .logo{
        padding: 0px 50px;
    }
}

@media (max-width: 480px) {
    .container {
        margin-top: 15px;
        height:70px;
    }
    .percentLoading{
        font-size : 20px;		
    }
    :root {
        --box-size: 40px;
    }
    #box2{ 
        width: 70px;
        height: 40px;
        background-size: 70px 40px;
    }
}