html{
    overflow: hidden;
}

@font-face {
    font-family: regular;
    src: url(fonts/OpenSans-Regular.ttf);
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: black;
    transition: opacity ease-out 0.5s;
}

#loading #logo {
    position: absolute;
    top: 22%;
    width: 13%;
    transition: all 0.2s;
    animation: logo-animation 1s;
    -moz-animation: logo-animation 1s;
    -webkit-animation: logo-animation 1s;
}

@keyframes logo-animation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes logo-animation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes logo-animation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#loading #bar {
    width: 20%;
    height: 2px;
    border-radius: 5px;
    margin-top: 20px;
    background-color: #4b484575;
}

#loading #bar #progress {
    border-radius: 10px;
    width: 0%;
    height: 100%;
    background-color: #e5373e;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
}

#connectionError{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    transition: opacity ease-out 0.2s;
}

#errorMessage{
    color: white;
    position: fixed;
    left: 0;
    top: 38%;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: center;
    font-size: 1.45rem;
    z-index: 1;
    margin-bottom: 2rem;
    font-family: regular;
}

#reload{
    background-color: rgb(55,164,122);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 15px 30px;
    cursor: pointer;
    transform: scale(0.8);
    font-family: regular;
}

#quit{
    background-color: rgb(210,31,57);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 15px 30px;
    cursor: pointer;
    transform: scale(0.8);
    font-family: regular;
}

@media screen and (max-width: 600px) and (orientation: portrait){
    #errorMessage{
        top:35%;
        font-size: 1.25rem;
    }
    #reload{
        font-size: 1rem;
    }
    #quit{
        font-size: 1rem;
    }
}

@media screen and (max-height: 600px) and (orientation: landscape){
    #errorMessage{
        top:20%;
        font-size: 1.5rem;
    }
    #reload{
        font-size: 1.4rem;
    }
    #quit{
        font-size: 1.4rem;
    }
}

@media (orientation: portrait) {
    #loading #logo {
        width: 25%;
        margin-top: 12%;
    }

    #loading #bar {
        margin-top: 0;
    }

    #errorMessage{
        top: 16%;
    }
}