@font-face {
    font-family: 'Pixeled';
    src: url("/static/fonts/Jersey25-Regular.ttf") format('truetype');
}

:root {
    --text-color-middle: rgba(0, 0, 0, 0.5);
    --color-background: #f5ffb9;
    --color-clickable: #efff88;
    --color-main: #fcffe8;
    --color-main-active: #ffc200;
    --color-inactive: #d3d3d3;
    --color-disabled: #e6e6e6;

    --border-light: 1px solid var(--color-inactive);
}
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #efff88;
  border: 1px solid #d3d3d3;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #ffc200;
}


html, body {
    zoom: 1;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;

    font-family: 'Pixeled', sans-serif;
    letter-spacing: 2px;
    background-color: white;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
}
body:fullscreen,
body::backdrop {
    background-color: white;
}
.body {
    width: 1100px;
}

.hidden {
    display: none !important;
}

.header {
    width: 60vw;
    height: 100px;
    border-bottom: var(--border-light);
    display: flex;
    justify-content: space-between;
}
.header > img {
    margin-top: 10px;
    width: 150px;
    height: 150px;
}
.header .app-name {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.header .app-name > div:first-child {
    font-size: 60px;
    font-weight: 900;
    height: 100%;
}
.header .app-name > div:last-child {
    font-size: 40px;
    font-weight: 900;
    height: 100%;
}
.header .user-account {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.header .user-account > * {
    margin: 0 5px;
}
.header .user-account > div:last-child {
    display: flex;

}
.header .user-account img {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-disabled);
}
.header .user-account #anonymousAvatar {
    width: 50px;
    height: 50px;
    font-size: 40px;
    background-color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-disabled);
}
.header .user-account #anonymousAvatar.hidden,
.header .user-account #authedAvatar.hidden,
.header .user-account #loginButton.hidden,
.header .user-account #logoutButton.hidden
{
    display: none;
}
.header .user-account #coinsAmount {
    text-shadow: -1px 0 gray, 0 1px gray, 1px 0 gray, 0 -1px gray;
    color: var(--color-clickable);
    font-size: 20px;
}
.header .user-account #coinsName {
    text-align: center;
}
.header .user-account #notification-block {
    width: 30px;
    height: 30px;
}
.header #balance-block:hover {
    cursor: pointer;
}
.header .user-block {
    display: flex;
}

.sound-volume-level img {
    width: 40px;
    height: 40px;
    border: unset;
    margin-top: 25px;
}
.header  .sound-volume-level img {
    width: 40px;
    height: 40px;
    border: unset;
    margin-top: 0;
}
.header  .sound-volume-level.muted {
    width: 40px;
    min-width: 40px;
}
.header .sound-volume-level.muted::after {
    top: 5px
}

.sound-volume-level {
    position: relative;
}
.sound-volume-level.muted::after {
    position: absolute;
    top: 30px;
    left: 0;
    width: 40px;
    height: 40px;
    content: "\274c";
    font-size: 20px;
    color: red;
    text-align: center;
}

.tabs {
    margin-top: 100px;
    padding: 10px;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}
.tabs > div.btn {
    margin: 10px;
    text-transform: uppercase;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
}
.container > div {
    margin: 10px;
    box-sizing: border-box;
}

.popup {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: none;
    justify-content: center;
    align-items: center;
}
.popup.opened {
    display: flex;
}
.popup .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    filter: blur(1);
    z-index: 2;
}
.popup .window {
    min-width: 40vw;
    background-color: var(--color-main);
    border: var(--border-light);
    z-index: 3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow:7px 4px 4px var(--color-main-active);
    animation: left-appearance 0.2s linear;
}


.popup .window .title,
.popup .window .actions
{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup .window .title {
    height: 50px;
    box-shadow: 0 2px 3px 0 gray;
    font-size: 24px;
    padding: 0 20px;
}
.popup .window .actions {
    border-top: var(--border-light);
    box-shadow: 0 -2px 3px 0 gray;
    min-height: 70px;
}
.popup .window .actions > * {
    max-width: 100px;
    margin: 10px;
}
.popup .window .content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    overflow-y: scroll;
}
@keyframes left-appearance {
    0% {
        margin-left: 100vw;
    }
    100% {
        margin-left: 0;
    }
}

.btn {
    padding: 0 20px;
    height: 50px;
    border: var(--border-light);

    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-background);
    box-shadow:7px 4px 4px var(--color-main-active);
}
.btn.active,
.btn:hover {
    cursor: pointer;
    background-color: var(--color-clickable);
}
.btn span {
    /*background-color: #ffaf27a6;*/
}
.btn.inactive {
    background-color: var(--color-inactive);
    box-shadow:7px 4px 4px var(--color-inactive);
}
.btn.inactive:hover {
    cursor: not-allowed;
    background-color: var(--color-inactive);
}
.btn.text {
    padding: 0;
    margin: 0;
}

.loader {
    width: 150px;
    height: 150px;
    display: inline-block;
    position: relative;
}
.loader::after,
.loader::before {
    content: '';
    box-sizing: border-box;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #b20404;
    position: absolute;
    left: 0;
    top: 0;
    animation: animloader 2s linear infinite;
}
.loader::after {
    animation-delay: 1s;
}

@keyframes animloader {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}


.input-group {
    display: flex;
    flex-direction: column;
}
.input-group > * {
    margin-bottom: 5px;
}
.input-group-msg {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 90%;
}

textarea,
input,
option,
select
{
    box-shadow: inset 0 0 2px 2px var(--color-disabled);
    border: var(--border-light);
    height: 20px;

    font-family: Pixeled, sans-serif;
    letter-spacing: 1px;
    padding: 5px;
}
input:focus {
    outline: none;
    border: var(--border-light);
    padding: 5px;
}
select {
    height: auto;
}
select:hover {
    cursor: pointer;
}
textarea {
    min-height: 80px;
}

textarea:read-only,
input:read-only,
option:read-only,
select:read-only,
input:read-only {
    cursor: default;
}

.sound-toggler {
    position: absolute;
    bottom: 50px;
    right: 50px;
}
.sound-toggler img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
}
.sound-toggler img:hover {
    filter: saturate(10);
}
.sound-toggler img:hover + input {
    display: flex;
}
.sound-toggler input {
    margin: 20px 5px;
    position: absolute;
    width: 100px;
    height: 20px;
    bottom: 60px;
    right: -40px;
    transform: rotate(-90deg);
    box-shadow: none;
    border: none;
    display: none;
}
.sound-toggler input:hover {
    display: flex;
}


.settings {
    position: absolute;
    width: 250px;
    height: 100%;
    top: 0;
    right: 0;
    background-color: var(--color-main);
    border-left: var(--border-light);
    margin-right: -300px;
}
.settings .stick {
    position: absolute;
    top: 0;
    right: 20vw;
    width: 40px;
    height: 40px;
    padding-top: 20px;
}
.settings .stick > * {
    display: flex;
    flex-direction: column;
    height: 5px;
    width: 30px;
    margin-top: 2px;
    background-color: var(--color-clickable);
    border: var(--border-light);
}
.settings .stick > *:last-child {
    margin-top: 10px;
    font-size: 12px;
    background-color: unset;
    border: unset;
}
.settings .stick:hover {
    display: none;
}
.settings .settings-body {
    width: 250px;
    height: 100%;
    background-color: var(--color-main);
    border-left: var(--border-light);
}
.settings .settings-body:hover,
.settings .stick:hover + div.settings-body {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 16vw;
}
.settings .settings-body .title {
    padding: 20px 20px 20px 10px;
    font-size: 24px;
}
.settings .settings-body > * {
    padding: 10px;
    border-bottom: var(--border-light);
}
.settings input[type=range] {
    box-shadow: none;
    border: none;
}


/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.game-entry {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--color-main);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: 70px;
}
.game-entry > div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.game-entry .btn {
    width: 250px;
    height: 150px;
    font-size: 70px;
}
.game-entry .secondary-title {
    font-size: 40px;
}

.shadow-block {
    display: none;
}

.only-mobile {
    display: none;
}

@media screen and (max-width: 1024px) {
    html {
        zoom: unset;
        width: unset;
    }
    .only-mobile {
        display: flex;
    }
    .shadow-block {
        display: flex;
        width: 100%;
        height: 50px;
        background: linear-gradient(180deg, #5e5e5e, transparent);
    }
    .settings
    {
        display: none;
    }

    .header {
        display: flex;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        align-items: center;
        margin-top: 20px;
    }
    .header > img {
        width: 50px;
        height: 50px;
        padding: 0 20px;
        display: flex;
        margin-top: 0;
        flex: 0 0 auto;
    }
    .header .app-name {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        flex-direction: column;
    }
    .header .app-name > div:first-child {
        font-size: 30px;
        font-weight: 900;
        height: 100%;
    }
    .header .app-name > div:last-child {
        font-size: 20px;
        font-weight: 900;
        height: 100%;
    }

    .header .user-account {
        flex: 0 0 100%;
        height: auto;
        border-top: var(--border-light);
        padding-top: 5px;
        justify-content: center;
    }
    .header .user-account #coinsName,
    .header .user-account #coinsAmount {
        font-size: 15px;
    }

    .header .user-account #authedAvatar,
    .header .user-account #anonymousAvatar {
        width: 30px;
        height: 30px;
        font-size: 20px;
        margin-right: 10px;
    }

    .container {
        padding: 10px;
        box-sizing: border-box;
    }
    .body {
        width: 100%;
    }
    .btn {
        width: 100%;
        font-size: 15px;
        height: 50px;
        justify-content: center;
        align-content: center;
        align-items: center;
        box-sizing: border-box;
        padding: 0 10px;
    }

    .popup .window {
        min-width: 80vw !important;
        max-width: 90vw !important;
        /*overflow-y: scroll;*/
        overflow-x: hidden;
        max-height: 95vh;
        box-sizing: border-box;
    }
    .popup .window .title {
        min-height: 50px;
        font-size: 20px
    }

    .popup .window .actions > * {
        min-height: 50px;
    }
    .game-entry .btn {
        width: 200px;
        height: 100px;
        font-size: 30px;
    }
}
@media screen and (min-width: 800px) and (max-width: 1024px) {
    .body {
        zoom: 1.3;
    }
}