body {
    position: fixed;
    margin: 0;
    padding: 0;
    background: var(--wrapper, #E9E9E9);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    min-height: 100%;
    min-width: 100%;
    height: 100%;
    width: 100%;
    overflow: hidden;
    min-height: 100%;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}


@font-face {
    font-family: RobotoBold;
    src: url('./fonts/RobotoBold.ttf');
}

@font-face {
    font-family: RobotoBlack;
    src: url('./fonts/RobotoBlack.ttf');
}

.loading__title {
    font-family: RobotoBlack;
    font-size: 5vh;
}

.loading__progressbar__text {
    font-family: RobotoBold;
    font-weight: bold;
    font-size: 4vh;
    line-height: 45px;
}

.loading_container {
    display: grid;
    grid-template-rows: 1.5fr 5.5fr 1.5fr 2.5fr;
    gap: 1em;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: #FBFAFF;
}

.loading__logo_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading__logo {
    align-self: center;
    justify-self: center;
    width: 78%;
    height: auto;
}

.loading__icon_container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    width: 100%;
}

.loading__icon_circle {
    position: absolute;
    width: 38vh;
    padding-bottom: 38vh;
    border-radius: 50%;
    background: #EDEDED;
}

.loading__icon {
    position: absolute;
    width: 70%;
    height: 70%;
}

.loading__title {
    display: flex;
    align-items: center;
    text-align: center;
    align-self: center;
    justify-self: center;
    color: #555555;
}

.loading__progressbar_container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    justify-self: center;
    text-align: center;
    width: 80%;
    height: 50%;
    margin-top: 1em;
    background: #CDCCFF;
    border-radius: 25px;
    overflow: hidden;
}

.loading__progressbar {
    position: absolute;
    left: 0;
    width: 0;
    height: 100%;
    background: #8583FF;
    z-index: 0;
}

.loading__progressbar__text {
    color: #FFFFFF;
    z-index: 1;
}

.loading_finished {
    -webkit-transition: opacity 200ms ease-in-out;
    -moz-transition: opacity 200ms ease-in-out;
    -ms-transition: opacity 200ms ease-in-out;
    -o-transition: opacity 200ms ease-in-out;
    transition: opacity 200ms ease-in-out;
    opacity: 0;
}


#gameDiv {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--wrapper, #E9E9E9);
}

#appContainer {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    overflow: hidden;
    background: var(--container, #FBFAFF);
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.7);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.squares {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
}

.squares-left {
    left: 0;
}

.squares-right {
    right: 0;
}

.square {
    position: absolute;
    display: none;
    background: var(--square, rgba(200, 199, 204, 0.2));
}

#canvas {
    display: none;
    outline: none;
    border: 0;
    width: 100%;
    height: 100%;
    vertical-align: bottom;
}

canvas:focus,
canvas:active {
    outline: none;
    border: 0;
    outline-style: none;
    -moz-outline-style: none;
}

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

.theme-light {
    --wrapper: #E9E9E9;
    --container: #FBFAFF;
    --title: #555555;
    --logo: invert(35%) sepia(0%) saturate(0%) hue-rotate(59deg) brightness(93%) contrast(94%);
    --icon-bg: #EDEDED;
    --loading-progressbar-filled: #8583FF;
    --loading-progressbar-blank: #CDCCFF;
    --square: rgba(200, 199, 204, 0.2);
}

.theme-dark {
    --wrapper: #3A3D42;
    --container: #27292D;
    --title: #DFDFE0;
    --logo: invert(97%) sepia(2%) saturate(75%) hue-rotate(202deg) brightness(94%) contrast(89%);
    --icon-bg: #3A3D42;
    --loading-progressbar-filled: #8E8CFF;
    --loading-progressbar-blank: rgba(205, 204, 255, 0.5);
    --square: rgba(90, 90, 105, 0.2);
}

.theme-blue {
    --wrapper: #E0ECF6;
    --container: #FBFAFF;
    --title: #454545;
    --logo: invert(25%) sepia(24%) saturate(6%) hue-rotate(314deg) brightness(95%) contrast(93%);
    --icon-bg: #EDEDED;
    --loading-progressbar-filled: #238EEB;
    --loading-progressbar-blank: #AFDAFF;
    --square: rgba(210, 227, 241, 1);
}

.theme-yellow {
    --wrapper: #F9F3E0;
    --container: #FFFFFF;
    --title: #292929;
    --logo: invert(11%) sepia(2%) saturate(0%) hue-rotate(137deg) brightness(83%) contrast(82%);
    --icon-bg: #EDEDED;
    --loading-progressbar-filled: #F6C938;
    --loading-progressbar-blank: #FFE492;
    --square: rgba(212, 209, 227, 0.2);
}

.theme-green {
    --wrapper: #E2E8D9;
    --container: #FBFAFF;
    --title: #555555;
    --logo: invert(34%) sepia(29%) saturate(914%) hue-rotate(81deg) brightness(95%) contrast(92%);
    --icon-bg: #EDEDED;
    --loading-progressbar-filled: #348D47;
    --loading-progressbar-blank: #C8DBCC;
    --square: rgba(219, 225, 208, 1);
}

.loading_container {
    background: var(--container);
}

.loading__title {
    color: var(--title);
}

.loading__logo {
    filter: var(--logo);
}

.loading__icon_circle {
    background: var(--icon-bg);
}

.loading__progressbar {
    background: var(--loading-progressbar-filled);
}

.loading__progressbar_container {
    background: var(--loading-progressbar-blank);
}

.age_rating {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 15%;
    height: auto;
    max-width: 100px;
}