
:root {
    --default-scale: 1;
    font-size: 16px;
}

html,
body {
    height: 100%;
    margin: 0;
    background-color: #404040;
    font-family: sans-serif;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
    overflow: hidden;
    user-drag: none; /* Non-standard, but supported in some browsers */
}

img {
    user-drag: none; /* Non-standard, but supported in some browsers */
    user-select: none; /* Prevents text selection */
    pointer-events: none; /* Prevents interaction */
}

#game {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#mask-background {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    background-color: #000;
    opacity: 0;
    z-index: 1;
}

canvas {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    pointer-events: initial;
    z-index: 10;
    position: absolute;
}

#logo-bottom {
    width: 100%;
    display: none;
    position: relative;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 100%;
}

#logo-bottom img {
    width: 100%
}

@media (max-aspect-ratio: 750/1160) {
    canvas {
        top: calc(50% - 5.2vw / 2 - (100vh - 154.6vw ) / 6);
    }

    #logo-bottom {
        width: 100%;
        display: block;
        top: calc(50% + 146.6vw / 2 + (100vh - 154.6vw ) / 6);
    }
}

.backdrop {
    width: 100%;
    height: 100%;
    background-color: #00000077;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    position: absolute;
    top: 0;
    color: white;
    flex-direction: column;
    gap: 0.625rem;
    font-size: 2em;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

.loading-screen {
    gap: 6rem;
}

.socket{
    width: 200px;
    height: 200px;
    position: absolute;
    left: 50%;
    margin-left: -100px;
    top: 50%;
    margin-top: -100px;
}

.hex-brick{
  background: white;
  width: 30px;
  height: 17px;
  position: absolute;
  top: 5px;
animation-name: fade;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.4s;
    -webkit-animation-iteration-count: infinite;
}

.h2{
    transform: rotate(60deg);
    -webkit-transform: rotate(60deg);
}

.h3{
    transform: rotate(-60deg);
    -webkit-transform: rotate(-60deg);
}

.gel{
    height: 30px;
    width: 30px;	
    transition: all .3s;
    -webkit-transition: all .3s;
    position: absolute;
    top: 50%;
    left: 50%;
}

.center-gel{
    margin-left: -15px;
    margin-top: -15px;
    transform: scale(0.01);
    
    animation-name: pulse;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 1.4s;
    -webkit-animation-iteration-count: infinite;
}

.c1{
    margin-left: -47px;
    margin-top: -15px;
}

.c2{
    margin-left: -31px;
    margin-top: -43px;
}

.c3{
    margin-left: 1px;
    margin-top: -43px;
}

.c4{
    margin-left: 17px;
    margin-top: -15px;
}
.c5{
    margin-left: -31px;
    margin-top: 13px;
}

.c6{
    margin-left: 1px;
    margin-top: 13px;
}

.c7{
    margin-left: -63px;
    margin-top: -43px;
}

.c8{
    margin-left: 33px;
    margin-top: -43px;
}

.c9{
    margin-left: -15px;
    margin-top: 41px;
}

.c10{
    margin-left: -63px;
    margin-top: 13px;
}

.c11{
    margin-left: 33px;
    margin-top: 13px;
}

.c12{
    margin-left: -15px;
    margin-top: -71px;
}

.c13{
    margin-left: -47px;
    margin-top: -71px;
}

.c14{
    margin-left: 17px;
    margin-top: -71px;
}

.c15{
    margin-left: -47px;
    margin-top: 41px;
}

.c16{
    margin-left: 17px;
    margin-top: 41px;
}

.c17{
    margin-left: -79px;
    margin-top: -15px;
}

.c18{
    margin-left: 49px;
    margin-top: -15px;
}

.c19{
    margin-left: -63px;
    margin-top: -99px;
}

.c20{
    margin-left: 33px;
    margin-top: -99px;
}

.c21{
    margin-left: 1px;
    margin-top: -99px;
}

.c22{
    margin-left: -31px;
    margin-top: -99px;
}

.c23{
    margin-left: -63px;
    margin-top: 69px;
}

.c24{
    margin-left: 33px;
    margin-top: 69px;
}

.c25{
    margin-left: 1px;
    margin-top: 69px;
}

.c26{
    margin-left: -31px;
    margin-top: 69px;
}

.c27{
    margin-left: -79px;
    margin-top: -15px;
}

.c28{
    margin-left: -95px;
    margin-top: -43px;
}

.c29{
    margin-left: -95px;
    margin-top: 13px;
}

.c30{
    margin-left: 49px;
    margin-top: 41px;
}

.c31{
    margin-left: -79px;
    margin-top: -71px;
}

.c32{
    margin-left: -111px;
    margin-top: -15px;
}

.c33{
    margin-left: 65px;
    margin-top: -43px;
}

.c34{
    margin-left: 65px;
    margin-top: 13px;
}

.c35{
    margin-left: -79px;
    margin-top: 41px;
}

.c36{
    margin-left: 49px;
    margin-top: -71px;
}

.c37{
    margin-left: 81px;
    margin-top: -15px;
}

.r1{
    transform: scale(0.01);
    animation-name: pulse;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-delay: .2s;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 1.4s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .2s;
}

.r2{
    transform: scale(0.01);
    animation-name: pulse;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-delay: .4s;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 1.4s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .4s;
}

.r3{
    transform: scale(0.01);
    animation-name: pulse;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-delay: .6s;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 1.4s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .6s;
}

.r1 > .hex-brick{
    animation-name: fade;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-delay: .2s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.4s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .2s;
}

.r2 > .hex-brick{
    animation-name: fade;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-delay: .4s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.4s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .4s;
}

.r3 > .hex-brick{
    animation-name: fade;
    animation-duration: 1.4s;
    animation-iteration-count: infinite;
    animation-delay: .6s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.4s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .6s;
}


@keyframes pulse{
    0%{
        -webkit-transform: scale(0.01);
        transform: scale(0.01);
    }

    50%{
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    
    100%{
        -webkit-transform: scale(0.01);
        transform: scale(0.01);
    }
}

@keyframes fade{
    0%{
        background: white;
    }
    
    50%{
        background: white;
    }
    
    100%{
        background: white;
    }
}

@-webkit-keyframes pulse{
    0%{
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    
    50%{
        -webkit-transform: scale(0.01);
        transform: scale(0.01);
    }
    
    100%{
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@-webkit-keyframes fade{
    0%{
        background: white;
    }
    
    50%{
        background: white;
    }
    
    100%{
        background: white;
    }
}           

@keyframes fadeInKeyFrames {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOutKeyFrames {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.fadeIn {
    animation: fadeInKeyFrames 0.2s ease-out;
}

.fadeOut {
    animation: fadeOutKeyFrames 0.2s ease-in;
}


.button {
    border-radius: 0.6rem;
    background-color: #ffffffdd;
}

.button:hover {
    background-color: #f7f7f7dd;
}

.button:active {
    background-color: #eeeeeedd;
}

.leaderboard-screen {
    gap: 0;
    overflow: hidden;
}

.backdrop .container {
    width: calc(1px * var(--canvas-width));
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-flow: column;
}

.leaderboard-screen .header {
    width: 100%;
    box-sizing: border-box;
    height: 5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.leaderboard-screen .main {
    width: 100%;
    height: calc(100% - 5rem);
    display: grid;
    align-items: stretch;
    grid-template-rows: auto min-content;
}

.title {
    font-size: 3.4rem;
    display: block;
}

.leaderboard-screen .main .tabs {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 50% 50%;
    grid-template-rows: min-content auto;
    border-radius: 1.5rem 1.5rem 0rem 0rem;
    overflow: hidden;
}

.leaderboard-screen .main .tabs label {
    order: 1;
    display: flex;
    justify-content: center;
    padding: 0.25rem 0rem;
    cursor: pointer;
    background: #00000022;
    font-weight: bold;
    transition: background ease 0.2s;
    width: 100%;
    grid-row: 1;
}

.leaderboard-screen .main .tabs .tab {
    order: 99;
    flex-grow: 1;
    width: 100%;
    height: 100%;
    display: none;
    background: #ffffff22;
    grid-row: 2;
    grid-column: 1/3;

    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */

    grid-template-rows: repeat(25, min-content);
}

.leaderboard-screen .main .tabs .tab.loading {
    align-items: center;
    justify-content: center;
    display: flex;
    cursor: default;
    grid-template-rows: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.leaderboard-screen .main .tabs .tab::-webkit-scrollbar {
    display: none;
}

.tabs input[type='radio'] {
    display: none !important;
}

.tabs input[type='radio']:checked + label {
    background: #ffffff22;
}

.leaderboard-screen .main .tabs input[type='radio'] + label + .tab {
    display: none;
    cursor: default;
    overflow: auto;
}

.leaderboard-screen .main .tabs input[type='radio']:checked + label + .tab {
    display: inherit;
    cursor: grab;
    overflow: auto;
}

.tabs .tab {
    overflow-y: scroll;
}

.leader {
    width: 100%;
    height: 6rem;
    display: flex;
    flex-direction: row;
    padding: 1.5rem;
    box-sizing: border-box;
    align-items: center;
}

.leader.my {
    background-color: #ffffff77;
}

.leader.my {
    background-color: #ffffff77;
    height: calc(6rem + 0.125rem);
}

.leader .avatar {
    width: 4rem;
    height: 4rem;
    margin-right: 1.5rem;
    font-size: 0.8rem;
}

.leader .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
}

.leader .right {
    width: 13rem;
    font-size: 1.5rem;
    text-align: right;
}

.leader .main {
    width: calc(100% - 5.5rem - 13rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leader .main .name {
    font-size: 1.6rem;
}

.leader .main .rank {
    font-size: 1.4rem;
}

.tab .game-leaderboard-spacer {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12.727922061357855' height='9' viewBox='0.7071067811865475 0 12.727922061357855 9' fill='%23ffffff' opacity='0.7'%3E%3Crect x='0' y='8' width='10' height='1' transform='rotate(-45 0 8)'/%3E%3Crect x='7.071067811865475' y = '0.9289321881345254' width='10' height='1' transform='rotate(45 7.071067811865475 0.9289321881345254)' /%3E%3C/svg%3E")
        0 50% repeat-x;
    height: 1rem;
    padding: 0.8rem 0;
    width: 100%;
}

.mock-ad {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mock-ad button {
    font-size: 5rem;
}

.warning-not-login{
    width: 100%;
    height: 6rem;
    display: flex;
    padding: 1.5rem;
    box-sizing: border-box;
    align-items: center;
    background-color: #ffffff77;
    text-align: center;
    vertical-align: middle;
    display: flex;
    justify-content: center;
}

.warning-max-score {
    width: 100%;
    height: 8rem;
    font-size: 1.85rem;
    display: flex;
    padding: 1.5rem;
    box-sizing: border-box;
    align-items: center;
    background-color: #ffffff77;
    text-align: center;
    vertical-align: middle;
    display: flex;
    justify-content: center;
}