img::selection {
    background: transparent;
    outline: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    box-shadow: none;
}
img:focus {
    background: transparent;
    outline: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    box-shadow: none;
}

/* Стиль для всего скролл бара */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

/* Стиль для фона скролл бара */
::-webkit-scrollbar-track {
    margin: 10px;
    border-radius: 3px;
    background: #333;
}
.controls_list::-webkit-scrollbar-track {
    margin: 40px !important;
}

/* Стиль для ползунка скролл бара */
::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

/* Стиль для ползунка скролл бара при наведении курсора */
::-webkit-scrollbar-thumb:hover {
    background: #666; /* темнее цвет ползунка */
}

html{
    background: rgba(0, 0, 0, 1);
    background-image: url(https://game.teremok.games/img/bg/bg.jpg);
    background-position: center;
    background-repeat: repeat;
    background-size: cover;
    min-height: 100vh
}
body {
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
    -webkit-tap-highlight-color:transparent;
    margin: 0;
    color: #ffffff;
    font-family: 'Play', sans-serif;
    letter-spacing: 0.5px;
    text-align: center;
    overflow: hidden;
    overflow-y: auto;
    font-size: 16px;

    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
}

h1 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    margin-top: 10px;
    text-shadow: 0 2px 9px #2ea1ee;
    font-weight: normal;
}
h2{
    margin: 0;
    font-weight: normal;
}
h3{
    margin: 0;
    display: inline-block;
}
a{
    text-decoration: none;
    color: #22a0f4;
    font-style: italic;
    transition: opacity .2s, visibility .2s linear .2s;
}
a:hover {
    opacity: .8;
}

dialog{
    color: #ffffff !important;
}
dialog#modal {
    border-style: double;
    border-width: 6px;
    background: #000000cc;
    border-color: #22a0f4;
    border-left: none;
    border-right: none;
    box-shadow: #000000 0 0 20px;
    padding: 20px;
}
dialog#modal *{
    outline:none;
}
dialog#modal p {
    display: inline-grid;
    justify-items: start;
    margin: 0 10px;
}
dialog#modal p>*{
    margin: 5px 0;
}
dialog#modal p>a{
    margin: 0 !important;
}
dialog[open]::backdrop {
    backdrop-filter: blur(3px);
    background: #0000003d;
}
dialog[open] {
    animation: show .5s;
}

dialog.hide {
    animation: hide .5s;
}
#modal div{
    padding: 10px;
}
#modal div:last-child{
    padding: 20px;
}
#modal button{
    transition: 0.4s;
}

@keyframes show {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0%);
    }
}

@keyframes hide {
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

dialog select{
    padding: 5px;
    border-radius: 5px;
    font-family: 'Play', sans-serif !important;
    letter-spacing: 0.5px;
    font-size: 18px;
}

dialog input{
    display: block;
    padding: 5px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    font-size: 18px;
    margin: 5px auto;
    max-width: 150px;
}

button{
    font-family: 'Play', sans-serif !important;
    letter-spacing: 0.5px;

    padding: 5px 15px 7px 15px;
    min-width: 100px;
    margin: 10px;
    border-radius: 5px;
    font-weight: normal;
    font-size: 18px;
    background: #00000063;
    cursor: pointer;

    border: 2px solid #ababab;
    text-shadow: 0 0 8px #ababab;
    box-shadow: #ababab 0 0 10px;
    color: #ababab;
}
button:hover{
    filter: drop-shadow(0 0 10px rgba(171, 171, 171, 0.5));
}
.green_button{
    border: 2px solid #01cc33 !important;
    text-shadow: 0 0 8px #01cc33 !important;
    box-shadow: #01cc33 0 0 10px !important;
    color: #01cc33 !important;
}
.green_button:hover{
    filter: drop-shadow(0 0 10px rgba(1, 204, 51, 0.5)) !important;
}
.blue_button{
    border: 2px solid #22a0f4 !important;
    text-shadow: 0 0 8px #22a0f4 !important;
    box-shadow: #22a0f4 0 0 10px !important;
    color: #22a0f4 !important;
}
.blue_button:hover{
    filter: drop-shadow(0 0 10px rgba(34, 160, 244, 0.5)) !important;
}
.yellow_button{
    border: 2px solid #ffcc00 !important;
    text-shadow: 0 0 8px #ffcc00 !important;
    box-shadow: #ffcc00 0 0 10px !important;
    color: #ffcc00 !important;
}
.yellow_button:hover{
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.5)) !important;
}
.red_button{
    border: 2px solid #ff3300 !important;
    text-shadow: 0 0 8px #ff3300 !important;
    box-shadow: #ff3300 0 0 10px !important;
    color: #ff3300 !important;
}
.red_button:hover{
    filter: drop-shadow(0 0 10px rgba(255, 51, 0, 0.5)) !important;
}
.magenta_button{
    border: 2px solid #9933ff !important;
    text-shadow: 0 0 8px #9933ff !important;
    box-shadow: #9933ff 0 0 10px !important;
    color: #9933ff !important;
}
.magenta_button:hover{
    filter: drop-shadow(0 0 10px rgba(153, 51, 255, 0.5)) !important;
}

#logo{
    display: flex;
    justify-content: center;
}
#logo img{
    width: 100%;
    max-width: 720px;
    min-width: 400px;
}
#mainButtons button{
    max-width: 200px;
    font-weight: normal;
    font-size: 20px;
    padding: 10px 20px 12px 20px;
    width: 100%;
}

#username{
    margin-top: 30px;
    color: #22a0f4;
    font-size: 20px;
}

.inputWithHint::after {
    content: attr(data-hint);
    font-weight: normal;
    color: #909090;
    position: relative;
    top: -5px;
    font-size: 12px;
}