body{
    margin:0px;
    padding:0px;
    position: absolute;
    height:100%;
    width:100%;
    background-size:cover;
    font-style: regular;
    font-family:"Myriad Pro", Myriad,"Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color:#503291;
}
.loading{
    display: inline-flex;
    margin-top: 10px;
    margin-left: 10px;
    text-align: center;
    z-index: 2;
}
.loading span{
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #fff;
    border-radius :0%;
    display: inline-block;
    animation-name: colorChanger;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.loading span:first-child {
    animation-delay: 0s;
}
.loading span:nth-child(2) {
    animation-delay: 1s;
}
.loading span:last-child {
    animation-delay: 2s;
}

@keyframes colorChanger {
    33% {
        background-color: gray;
    }
    66% {
        background-color: white;
    }
0,100% {
    background-color: gray;
}
}

.webgl-content,#loadingBlock,#errorBrowserBlock{
    padding:0px;
    position:absolute;
    align-items: center;
    height:100vh;
    width:100vw;
    background-color:#503291;
}

#prepareGame{
    height:100vh;
    width:100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    /*     background-color:#503291; */
    position: absolute;
    z-index: 2;
}

#prepareGame img {
    top:50%;
    left:50%;
    max-height: 35%;
    max-width: 10%;
}

#text-container {
    display:inline;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3vw;
    font-family: 'Heebo', sans-serif;
}

#animation-container {
    position: absolute;
    top: 77%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: "Hind Siliguri", serif;
}

@media (max-aspect-ratio: 4/3) {
    #text-container {
        font-size: 2.5vw;
    }

    #animation-container {
        font-size: 5vw;
    }
}

#gameContainer,canvas{
    position:absolute;
    height:100%;
    width:100%;
    background-color:#503291;
}

#fullScreenButton{
    height:50px;
    width:50px;
    position:absolute;
    z-index:1;
    bottom:5px;
    right:5px;
    background-color:transparent;
    background-image:url("../img/fullScreen_on.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size:30px 30px;
    border:none;
    cursor: pointer;
}

#errorBrowserBlock{
    background-size:cover;
}

#errorContent{
    height:25vh;
    width:40vw;
    margin:auto;
    text-align: center;
}
.flask-loading{
    image-rendering:smooth;
}

#errorContent{
    margin-top:15vh;
    color:#FFF;
    font-size:2.3vh;
}

.browserIcons{
    display: inline-flex;
    margin-top:2vh;
}

.browserIcons a{
    width:150px;
}

#errorContent{
    font-size:3vh;
    margin-top:5vh;
}

.centered{
    height: 100%;
    max-width:770px;
    margin-left:auto;
    margin-right:auto;
}


/* When aspect-ratio is smaller than 4/3*/

@media (max-aspect-ratio: 4/3){

    .webgl-content{
        -webkit-transform: translate(0%, 0%); transform: translate(0%, 0%);
    }

    .keepRatio{
        width:100%;
        padding-top: 75%;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
    }
    #prepareGame{
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }

    .webgl-content,#errorBrowserBlock{
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        height:100%;
    }


    #errorContent{
        width:80vw;
    }

    #errorContent{
        margin-top:3vw;
        font-size:2vw;
    }

    .browserIcons{
        margin-top:1vw;
    }

    .browserIcons a{
        width:15vw;
    }

    .browserIcons a img{
        width:8vw;
    }
}


/* When aspect-ratio is bigger than 16/9*/

@media (min-aspect-ratio: 16/9){
    body{
        display:flex;
        flex-wrap:wrap;
        justify-content:space-between;
    }

    .keepRatio{
        width:178vh;
        height:100%;
        margin:0 auto;
    }

    .webgl-content,#gameContainer,canvas,#errorBrowserBlock{
        width: inherit;
    }

    #errorContent{
        width:100vh;
    }
}
