
.webgl2-not-supported {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    font-size: 20px;
    text-align: center;
    z-index: 10000000;
}

.webgl2-not-supported .content {
    margin-right: auto;
    margin-left: auto;
    margin-top: calc( 50% - 400px );
    width: 400px;
    height: 400px;
    background-color: #222;
}

.webgl2-not-supported .content .title {
    color: #fff;
    font-size: 20px;
}

.webgl2-not-supported .content .sad-image {
    width: 300px;
    height: 300px;
    background-image: url(/resources/img/sad.png);
    background-size: 100% 100%;
    margin-right: auto;
    margin-left: auto;
    margin-top: 50px;
}

/*  */

.offscreencanvas-not-supported {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    font-size: 20px;
    text-align: center;
    z-index: 10000000;
}

.offscreencanvas-not-supported .content {
    margin-right: auto;
    margin-left: auto;
    margin-top: calc( 50% - 400px );
    width: 400px;
    height: 400px;
    background-color: #222;
}

.offscreencanvas-not-supported .content .title {
    color: #fff;
    font-size: 20px;
}

.offscreencanvas-not-supported .content .sad-image {
    width: 300px;
    height: 300px;
    background-image: url(/resources/img/sad.png);
    background-size: 100% 100%;
    margin-right: auto;
    margin-left: auto;
    margin-top: 50px;
}

/*  */

.rotate-your-phone {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: #000;
    opacity: 0.95;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.rotate-your-phone .animation {
    position: absolute;
    width: 100px;
    height: 100px;
    background-size: 100% 100%;
    background-image: url(/resources/img/rotate-your-phone.gif);
}

.rotate-your-phone .text {
    margin-top: 150px;
    color: #ffffff;
    font-size: 16px;
}

/*  */

.window-too-small {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: #000;
    opacity: 0.95;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.window-too-small .text {
    margin-top: 150px;
    color: #ffffff;
    font-size: 16px;
}

/*  */

.lobby-preloader {
    position: absolute;
    z-index: 100000;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #000;
    transition: opacity 500ms linear;
    transform: translateZ(1px);
    opacity: 0.95;
}

.lobby-preloader .background {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: url(/resources/img/lobby-promo-720.jpg?rnd=1);
    background-size: cover;
    background-position: center center;
}

@media (min-width: 720px) {
    .lobby-preloader .background {
        background-image: url(/resources/img/lobby-promo-1k.jpg?rnd=1);
    }
}

@media (min-width: 1920px) {
    .lobby-preloader .background {
        background-image: url(/resources/img/lobby-promo-2k.jpg?rnd=1);
    }
}

/*  */

.lobby-preloader .load-bar {
    position: fixed;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 8px;
    transition: opacity 1200ms ease;
    transform: translateZ(1px);
}

.lobby-preloader .load-bar .load-bar-progress {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 10px;
    width: 0px;
    transition: width 500ms ease;
    background-color: rgba( 255, 50, 50, 0.8 );
    min-width: 10%;
    transform: translate3d(0, 0, 0);
}

.lobby-preloader .title {
    position: fixed;
    left: 5px;
    bottom: 5px;
    color: #fff;
    font-size: 25px;
    transition: opacity 1200ms ease;
}

/* auth popup */

@keyframes popupOpenAnimation {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popupCloseAnimation {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.auth-popup {
    position: absolute;
    display: none;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba( 0, 0, 0, 0.85 );
    transform: scale(0.5);
    animation: popupOpenAnimation 300ms ease forwards;
    z-index: 100000;
}

.auth-popup.active {
    display: block;
}

.auth-popup .auth-popup-content {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 2px solid #888;
    background-color: #001;
    overflow: hidden;
}

.auth-popup .auth-popup-content .background {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: url(/resources/img/lobby-promo-1k.jpg?rnd=1);
    background-size: cover;
    background-position: center center;
    filter: blur( 20px );
    opacity: 0.2;
}

.auth-popup .auth-popup-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background-image: url(/resources/img/close-btn.png?rnd=1);
    background-size: 100% 100%;
    cursor: pointer;
    transform: scale( 1 );
    opacity: 0.7;
    transition: transform 100ms ease, opacity 100ms ease;
}

.auth-popup .auth-popup-content .close-btn:hover {
    transform: scale( 1.2 );
    opacity: 1;
}

.auth-popup .auth-popup-content .title {
    position: absolute;
    top: calc( 50% - 50px );
    right: 50%;
    width: 50%;
    text-align: center;
    transform: translateY( -50% );
    font-size: 30px;
    color: #fff;
    letter-spacing: 2px;
}

.google-login-btn {
    position: absolute;
    top: calc( 50% - 80px );
    left: calc( 50% + 100px );
    width: 320px;
    height: 70px;
    background-image: url(/resources/img/google-auth-btn.png);
    background-size: 100% 100%;
    cursor: pointer;
    transform: scale( 1 );
    transition: transform 100ms ease;
}

.google-login-btn:hover {
    transform: scale( 1.1 );
}

@media (max-width: 1200px) {
    .auth-popup .auth-popup-content {
        width: 90%;
        height: 90%;
        left: 5%;
        top: 5%;
    }
    .auth-popup .auth-popup-content .title {
        top: 45%;
        font-size: 17px;
    }
    .google-login-btn {
        top: calc( 50% - 50px );
        left: 50%;
        scale: 0.7;
    }
}

/* nickname popup */

.enter-nickname-popup {
    position: absolute;
    display: none;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba( 0, 0, 0, 0.85 );
    transform: scale(0.5);
    animation: popupOpenAnimation 300ms ease forwards;
    z-index: 100000;
}

.enter-nickname-popup.active {
    display: block;
}

.enter-nickname-popup .enter-nickname-popup-content {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 2px solid #888;
    background-color: #001;
    overflow: hidden;
}

.enter-nickname-popup .enter-nickname-popup-content .background {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: url(/resources/img/lobby-promo-1k.jpg);
    background-size: cover;
    background-position: center center;
    filter: blur( 20px );
    opacity: 0.2;
}

.enter-nickname-popup .enter-nickname-popup-content .title {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 18%;
    font-size: 40px;
    color: #fff;
    transform: translateY( -50% );
    text-shadow: -2px 3px 3px #f00;
}

.enter-nickname-popup .enter-nickname-popup-content .nickname-input-wrapper {
    position: relative;
    display: block;
    width: 70%;
    height: 70px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

.enter-nickname-popup .enter-nickname-popup-content .nickname-input {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 20px;
    font-size: 30px;
    color: #fff;
    border: 0px;
    background-color: rgba( 0, 0, 0, 0.5 );
    outline: none;
}

.enter-nickname-popup .enter-nickname-popup-content .error {
    display: none;
    position: absolute;
    top: 50px;
    right: 10px;
    font-weight: bold;
    color: #ff4242;
}

.enter-nickname-popup .enter-nickname-popup-content .lets-go-btn {
    position: relative;
    display: block;
    width: 30%;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 20px;
    font-size: 30px;
    color: #fff;
    border: 0px;
    background-color: #f00;
    outline: none;
    cursor: pointer;
    transition: opacity 100ms ease, transform 100ms ease;
    opacity: 0.7;
    font-weight: bold;
}

.enter-nickname-popup .enter-nickname-popup-content .lets-go-btn:hover {
    opacity: 1;
    transform: scale( 1.1 );
}

.enter-nickname-popup .enter-nickname-popup-content .lets-go-btn:active {
    transform: scale( 1.1 ) translateY( 5px );
}

/* lobby item shop */

.lobby-item-shop {
    position: absolute;
    display: none;
    background-color: rgba( 0, 0, 0, 0.85 );
    width: 460px;
    top: 20%;
    bottom: 25%;
    left: 50%;
    margin-left: -230px;
    z-index: 100000;
    transition: opacity 300ms ease;
}

.lobby-item-shop.large {
    left: calc( 50% + 550px );
    bottom: calc( 25% - 130px );
}

.lobby-item-shop .items-wrapper {
    position: absolute;
    width: 100%;
    height: calc( 100% - 70px );
    margin-top: 10px;
    overflow-x: hidden;
    overflow-y: scroll;
}

.lobby-item-shop .close-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    padding: 10px 20px;
    background-color: #a00;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.1s ease;
    transform: translateX(-50%);
}

.lobby-item-shop .close-btn:hover {
    opacity: 1;
}

.lobby-item-shop .shop-title {
    position: absolute;
    top: -40px;
    line-height: 20px;
    right: 0px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    padding: 10px 20px;
    background-color: rgba( 0, 0, 0, 0.5 );
}

.lobby-item-shop .item {
    position: relative;
    width: calc( 100% - 20px );
    height: 130px;
    background-color: rgba( 255, 255, 255, 0.1 );
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.1s ease;
}

.lobby-item-shop .item:hover {
    opacity: 1;
}

.lobby-item-shop .item .title {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

.lobby-item-shop .item .image {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 440px;
    height: 100px;
    background-repeat: no-repeat;
}

.lobby-item-shop .item .error {
    display: none;
    position: absolute;
    top: 40px;
    right: 10px;
    font-weight: bold;
    color: #ff4242;
}

.lobby-item-shop .item .error.active {
    display: block;
}

.lobby-item-shop .item .buy-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: #FFA500;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.1s ease;
}

.lobby-item-shop .item .sell-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: #a00;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.1s ease;
}

.lobby-item-shop .item .buy-btn:hover {
    opacity: 0.9;
}

.lobby-item-shop .item .buy-btn:active {
    transform: translateY( 2px );
}

.lobby-item-shop .item .buy-btn.disabled {
    background-color: #666;
}

.lobby-item-shop .item .you-have {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    font-size: 12px;
    opacity: 0.7;
}

.lobby-item-shop .item .price-value {
    position: absolute;
    bottom: 23px;
    right: 110px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: right;
}

.lobby-item-shop .item .price-value .gold-icon {
    position: absolute;
    top: -1px;
    left: -30px;
    width: 25px;
    height: 25px;
    background-image: url(/resources/img/gold-icon.png);
    background-size: 100% 100%;
}

.lobby-item-shop .item .price-value.not-enough {
    color: #ff4242;
}

/* lobby get gems popup */

.get-gems-popup {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba( 0, 0, 0, 0.7 );
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

.get-gems-popup.show {
    opacity: 1;
}

.get-gems-popup.show .get-gems-popup-content {
    transform: translateY( 0px );
}

.get-gems-popup .get-gems-popup-content {
    position: absolute;
    top: max( calc( 50% - 25vw ), 25% );
    left: 10%;
    width: 80%;
    height: min( 50vw, 50% );
    background-color: #111;
    border: 2px solid #888;
    box-shadow: 0px 0px 10px #fff;
    transform: translateY( -2000px );
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.get-gems-popup .get-gems-popup-content .get-gems-popup-title {
    position: absolute;
    top: -2vw;
    left: 10px;
    width: 30vw;
    height: 5vw;
    color: #fff;
    font-size: 30px;
    background-image: url(/resources/img/get-gems/gems-title.png?rnd=1);
    background-size: 100% 100%;
    left: 50%;
    transform: translateX( -50% );
}

.get-gems-popup .get-gems-popup-content .get-gems-popup-title .get-gems-popup-title-text {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 2.5vw;
    font-weight: bold;
    color: #fff;
    padding-top: 0.5vw;
}

.get-gems-popup .get-gems-popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 4.5vw;
    height: 4.5vw;
    background-image: url(/resources/img/close-btn.png);
    background-size: 100% 100%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.1s ease;
}

.get-gems-popup .get-gems-popup-close-btn:hover {
    opacity: 0.8;
}

.get-gems-popup .get-gems-popup-close-btn:active {
    transform: scale( 0.9 );
}

.get-gems-popup .get-gems-popup-text {
    position: absolute;
    top: 10%;
    left: 0px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 2.5vw;
    font-weight: bold;
}

.get-gems-popup .get-gems-popup-gems-list {
    position: absolute;
    top: 25%;
    left: 0px;
    height: 60%;
    left: 10%;
    right: 10%;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card {
    position: relative;
    float: left;
    width: 20%;
    height: 100%;
    margin-left: 2.5%;
    margin-right: 2.5%;
    background-color: #333;
    border-radius: 15px;
    box-shadow: 0px 0px 15px #ffd700;
    overflow: hidden;
    transition: transform 0.1s ease;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card:hover {
    transform: scale( 1.05 );
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card:active {
    transform: scale( 1.05 ) translateY( 5px );
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-flare {
    position: absolute;
    top: 0px;
    left: -150%;
    width: 250%;
    height: 100%;
    background-color: #ffffff;
    transform: rotate( 45deg );
    opacity: 0.02;
    box-shadow: 0px 0px 10px #fff;
    pointer-events: none;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 1.5vw;
    right: -3vw;
    width: 80%;
    height: 8%;
    transform: rotate( 45deg );
    box-shadow: 0px 0px 10px #ffd700;
    pointer-events: none;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-badge.best-value {
    background-color: #ffd700;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-badge.best-value .get-gems-popup-gems-card-badge-text {
    font-size: 0.65vw;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-badge.best-deal {
    background-color: #ff4242;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-badge.best-deal .get-gems-popup-gems-card-badge-text {
    font-size: 0.8vw;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-badge-text {
    text-align: center;
    font-weight: bold;
    color: #fff;
    text-shadow: 0px 0px 3px #000;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-title {
    position: absolute;
    top: 15%;
    left: 20px;
    color: #fff;
    font-size: 1.7vw;
    font-weight: bold;
    pointer-events: none;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-price-block {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    color: #fff;
    font-size: 2.2vw;
    font-weight: bold;
    background-color: #109010;
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-price-block::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 20px;
    background-color: #008000;
}

.get-gems-popup .get-gems-popup-gems-list .get-gems-popup-gems-card-image {
    position: absolute;
    top: 25%;
    left: 0px;
    background-repeat: no-repeat;
    width: 100%;
    height: 50%;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.get-gems-popup .get-gems-popup-gems-list .card1 .get-gems-popup-gems-card-image {
    background-image: url(/resources/img/get-gems/gems-pile-1.png?rnd=1);
}

.get-gems-popup .get-gems-popup-gems-list .card2 .get-gems-popup-gems-card-image {
    background-image: url(/resources/img/get-gems/gems-pile-2.png?rnd=1);
}

.get-gems-popup .get-gems-popup-gems-list .card3 .get-gems-popup-gems-card-image {
    background-image: url(/resources/img/get-gems/gems-pile-3.png?rnd=1);
}

.get-gems-popup .get-gems-popup-gems-list .card4 .get-gems-popup-gems-card-image {
    background-image: url(/resources/img/get-gems/gems-pile-4.png?rnd=1);
}

/* error popup */

.error-popup {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba( 0, 0, 0, 0.85 );
    opacity: 0;
    transition: opacity 700ms ease;
    z-index: 100000;
}

.error-popup.active {
    display: block;
}

.error-popup .error-popup-content {
    position: absolute;
    top: calc( 40% - 90px );
    left: calc( 50% - 250px );
    width: 500px;
    height: 180px;
    background-color: #222;
    /* box-shadow: 0px 0px 10px #fff; */
}

.error-popup .error-popup-content .title {
    padding-top: 20px;
    padding-bottom: 10px;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    color: #fff;
}

.error-popup .error-popup-content .error-message {
    padding-top: 10px;
    padding-bottom: 15px;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
    font-size: 20px;
    color: #fff;
}

.error-popup .error-popup-content .okay-btn {
    width: calc( 100% - 20px );
    margin-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
    background-color: #dd0000;
    color: #fff;
    font-size: 20px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 100ms ease;
}

.error-popup .error-popup-content .error-btn:hover {
    opacity: 1;
}

.error-popup .error-popup-content .error-btn:active {
    transform: translateY(2px);
}

/* login popup */

.login-popup {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba( 0, 0, 0, 0.85 );
    opacity: 0;
    transition: opacity 700ms ease;
}

.login-popup .login-popup-content {
    position: absolute;
    top: calc( 40% - 90px );
    left: calc( 50% - 200px );
    width: 400px;
    height: 180px;
    background-color: #222;
    /* box-shadow: 0px 0px 10px #fff; */
}

.login-popup .login-popup-content .title {
    padding-top: 20px;
    padding-bottom: 10px;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
    font-size: 20px;
    color: #fff;
}

.login-popup .login-popup-content .login-input {
    display: block;
    text-align: center;
    font-size: 22px;
    width: calc( 100% - 25px );
    padding-top: 5px;
    padding-bottom: 5px;
    margin-left: 10px;
    outline: none;
    margin-bottom: 10px;
    border: 0px;
    border-radius: 0;
}

.login-popup .login-popup-content .error {
    display: none;
    text-align: right;
    font-size: 15px;
    width: calc( 100% - 10px );
    color: #d00;
}

.login-popup .login-popup-content .login-btn {
    width: calc( 100% - 20px );
    margin-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
    background-color: #dd0000;
    color: #fff;
    font-size: 20px;
    text-align: center;
    transition: transform 100ms ease;
}

.login-popup .login-popup-content .login-btn:hover {
    transform: scale( 1.05 );
}

.login-popup .login-popup-content .login-btn:active {
    transform: translateY(2px);
}

/* mobile not supported */

.mobile-not-supported {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* prevents scrollbars */
}

.mobile-not-supported .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    overflow: hidden;
}

/* scale the content using viewport units */
.mobile-not-supported .content .title {
    font-size: 5vh; /* scales with viewport height */
    color: #fff;
    margin-bottom: 2vh;
    font-weight: bold;
}

.mobile-not-supported .content .sad-image {
    width: 40vh; /* also scales with height to ensure full fit */
    height: 40vh;
    background-image: url(/resources/img/sad-bob.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/*  */

.maintenance-wrapper {
    display: none;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.maintenance-wrapper .bg {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba( 0, 0, 0, 0.8 );
}

.maintenance-info-popup {
    position: absolute;
    width: 500px;
    height: 200px;
    color: #fff;
    top: 20%;
    left: 50%;
    transform: translateX( -50% );
    background-color: #222;
    padding: 15px;
    box-shadow: 0px 0px 40px rgba( 255, 255, 255, 0.3 );
    border: 1px solid #777;
}

.maintenance-info-popup .title {
    margin-top: 40px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 30px;
    color: #f55;
}

.maintenance-info-popup .info {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
}

/*  */

@media (max-width: 1000px) {
    .lobby-page {
        bottom: 5px;
    }
    .lobby-page .title {
        padding-top: 15px !important;
        padding-left: 10px !important;
        font-size: 15px !important;
    }
    .lobby-page.ranks .ranks-header {
        width: 100%;
        margin-left: 0px;
    }
    .lobby-page.ranks .ranks-list {
        margin-left: 0px;
        width: 100%;
    }
    .lobby-page.ranks .ranks-list .item {
        width: 100%;
    }
}

/* HTML PAGES */

.page-wrapper {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
}

.page {
    position: absolute;
    visibility: hidden;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    opacity: 0;
    transition: opacity 300ms ease, visibility 0s linear 300ms;
}

.page .background {
    position: absolute;
    background-color: rgba( 0, 0, 0, 0.5 );
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 0;
}

.page.show {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.page .coming-soon {
    position: absolute;
    top: 30%;
    width: 100%;
    font-size: clamp(0.875rem, 4vmin + 0.5rem, 4rem);
    color: #fff;
    text-align: center;
    z-index: 400;
}

/* LEADERBOARD PAGE */

.leaderboard-page .wrapper {
    position: absolute;
    width: 90%;
    height: 90%;
    left: 5%;
    top: 5%;
    z-index: 400;
}

.leaderboard-page .header {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 1vh;
    padding-bottom: 1vh;
    border-bottom: 1px solid #555;
}

.leaderboard-page .header .title {
    font-size: clamp(0.875rem, 3vmin + 0.5rem, 2rem);
    color: #fff;
    margin-right: 20px;
}

.leaderboard-page .header .searchbar {
    position: relative;
    display: flex;
    align-items: center;
    width: 20%;
    height: 8vh;
    max-height: 40px;
    margin-left: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    margin-right: 20px;
    padding-left: 10px;
    font-size: clamp(0.875rem, 1vmin + 0.5rem, 1.5rem);
    appearance: none;
    border: none;
    box-shadow: none;
    color: #fff;
}

.leaderboard-page .header .prev-page-btn {
    width: 10vh;
    height: 10vh;
    max-width: 50px;
    max-height: 50px;
    background-image: url(/resources/img/arrow-gold-left.png);
    background-size: 100% 100%;
}
.leaderboard-page .header .prev-page-btn:hover {
    transform: scale(1.1);
}
.leaderboard-page .header .prev-page-btn:active {
    transform: scale(1.1) translateY(2px);
}

.leaderboard-page .header .next-page-btn {
    width: 10vh;
    height: 10vh;
    max-width: 50px;
    max-height: 50px;
    background-image: url(/resources/img/arrow-gold-right.png);
    background-size: 100% 100%;
}
.leaderboard-page .header .next-page-btn:hover {
    transform: scale(1.1);
}
.leaderboard-page .header .next-page-btn:active {
    transform: scale(1.1) translateY(2px);
}

.leaderboard-page .header .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 40px;
    font-size: clamp(0.875rem, 3vmin + 0.5rem, 2rem);
    color: #fff;
    text-align: center;
    font-weight: bold;
}

.leaderboard-page .leaderboard-table {
    width: 100%;
    height: calc(100% - 80px);
    overflow-y: scroll;
    color: #fff;
}

.leaderboard-page .leaderboard-table thead tr th {
    padding-top: 2vh;
    padding-bottom: 2vh;
    border-bottom: 1px solid rgba( 255, 255, 255, 0.2 );
    background-color: rgba( 255, 255, 255, 0.05 );
}

.leaderboard-page .leaderboard-table td.rank {
    width: 10%;
    font-weight: bold;
}

.leaderboard-page .leaderboard-table td.username {
    width: 40%;
}

.leaderboard-page .leaderboard-table tr td {
    border-bottom: 1px solid rgba( 255, 255, 255, 0.1 );
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-page .leaderboard-table tr.highlighted {
    background-color: rgba(120, 255, 120, 0.2);
}

.leaderboard-page .leaderboard-table tr:hover:not(.highlighted) {
    background-color: rgba(255, 255, 255, 0.05);
}

.leaderboard-page .leaderboard-table td {
    text-align: center;
}

.leaderboard-page .leaderboard-table td.username {
    text-align: left;
}

/* TERMS PAGE */

.terms-page .content-wrapper {
    position: relative;
    padding-top: 2vh;
    width: 80%;
    height: 90%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    z-index: 400;
}

.terms-page .title {
    font-size: clamp(0.875rem, 2.5vmin + 0.5rem, 2.5rem);
    color: #fff;
    padding-top: 5vh;
    font-weight: bold;
    border-bottom: 1px solid #555;
    padding-bottom: 2vh;
}

.terms-page .text-wrapper {
    padding-top: 5vh;
    font-size: clamp(0.85rem, 1vmin + 0.5rem, 1rem);
    color: #fff;
    overflow-y: scroll;
    height: 80%;
}

.terms-page .text-wrapper .text {
    padding-bottom: 3vh;
}

/* PRIVACY PAGE */

.privacy-page .content-wrapper {
    position: relative;
    padding-top: 2vh;
    width: 80%;
    height: 90%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    z-index: 400;
}

.privacy-page .title {
    font-size: clamp(0.875rem, 2.5vmin + 0.5rem, 2.5rem);
    color: #fff;
    padding-top: 5vh;
    font-weight: bold;
    border-bottom: 1px solid #555;
    padding-bottom: 2vh;
}

.privacy-page .text-wrapper {
    padding-top: 5vh;
    font-size: clamp(0.85rem, 1vmin + 0.5rem, 1rem);
    color: #fff;
    overflow-y: scroll;
    height: 80%;
}

.privacy-page .text-wrapper .text {
    padding-bottom: 3vh;
}
