*
{
	text-size-adjust: none;
    touch-action: none;

    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-text-size-adjust: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    user-select: none;
}

body, #game, canvas
{
    overflow: hidden;
} 

@font-face
{
	font-family: 'Balsamiq Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('./font.ttf');
}

body
{
    margin: 0;
    padding: 0;
}
p, b, i, h1, h2, h3, button, input
{
    font-family: 'Balsamiq Sans', sans-serif;
}

#game
{
    position: absolute; 
    
    width: 100%;
    height: 100%;
}

#game #field
{
    position: absolute;

    width: 100%;
    height: 100%;
}

input[type="text"]
{
    width: 100%;
    font-size: 60px;
}

#keyboardTest
{
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;

    user-select: none;
    touch-action: none;
    pointer-events: none;
}

#preloader, #needLogin
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: linear-gradient(to bottom, #54002F, #D8007A);
    display: grid;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}
#needLogin
{
    z-index: 9;
    display: none;
}

.loading
{
    display: grid;
    align-items: center;
    justify-items: center;
    grid-gap: 10px;

    width: 100%;
    padding: 60px;
    padding-bottom: 120px;
    box-sizing: border-box;

    aspect-ratio: 560 / 710;
    width: min(calc(100vh * (560 / 710)), 100vw, 1280px);
    max-width: 560px;
    height: auto; 
}
.loading img
{
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

#progress_text
{
    margin: 0;
    font-size: 2em;
    color: #ffffff;
    text-align: center;

    display: none;
}

progress
{
    height: 20px;
    width: 100%;
    border: none;
    border-radius: 15px;
    background-color: #ffffff;
}
progress::-webkit-progress-bar
{
    background-color: #999999;
    border-radius: 10px;
}
progress::-webkit-progress-value
{
    border-radius: 10px;
    background-color: #ffffff;
    min-width: 10px;
}
progress::-moz-progress-bar
{
    background-color: #ffffff;
    border-radius: 10px;
    min-width: 10px;
}

.login_popup
{
    display: block;
    text-align: center;
}
.login_popup p
{
    color: #fff;
    font-size: 2em;
}
.login_popup .choose
{
    display: grid;
    grid-gap: 1em;
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.login_popup button
{
    background-color: #fff;
    border: none;
    outline: none;

    border: 3px solid #000;
    font-size: 1.5em;
    border-radius: 10px;
    padding: 5px 10px;

    cursor: pointer;
}
.login_popup button:hover
{
    background-color: #999;
}