/*-------------------------------------------------*/
/* =  modal.begin
/*-------------------------------------------------*/

.e-modal {
    background: rgba(0, 0, 0, 0.722);
    overflow: auto;
    display: block;
}

.e-modal .e-modal-dialog {
    max-width: 560px;
}

/* .e-modal .e-modal-content {
    background-color: #000;
    background-clip: padding-box;
    border-color: rgba(255, 255, 255, 0.97);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(16, 141, 138, 0.95);
} */
mat-dialog-container {
    background-color: #000 !important;
    background-clip: padding-box !important;
    border-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 0 20px rgba(16, 141, 138, 0.95) !important;
    border-width: 5px !important;
}

.e-modal .e-modal-header {
    border-bottom: none;
    padding-bottom: 5px;
    position: relative;
}

.e-modal .close:focus {
    outline: 0;
}

.e-modal .close {
    font-size: 0;
    position: absolute;
    width: 15px;
    height: 15px;
    right: 15px;
    opacity: 0.75;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.e-modal .close:before,
.e-modal .close:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    margin: -1px 0 0 -10px;
    transform: rotate(45deg);
}

.e-modal .close:after {
    transform: rotate(-45deg);
}

.e-modal .close > span {
    font-size: 0;
}

.e-modal .close:hover,
.e-modal .close:focus,
.e-modal .close:active,
.e-modal .close:not(:disabled):not(.disabled):focus,
.e-modal .close:not(:disabled):not(.disabled):hover {
    opacity: 1;
}
.e-modal .close:hover {
    transform: rotate(90deg);
}

.e-modal .e-modal-body {
    padding-bottom: 25px;
}

.e-modal .e-modal-title {
    font-weight: 400;
    font-size: 25px;
    margin-bottom: 20px;
}

.e-modal .e-modal-title + .btn {
    margin-bottom: 20px;
}

@media screen and (max-width: 576px) {
    .e-modal .e-modal-title {
        font-size: 20px;
    }
}

/* modal-general */

.e-modal-general .e-modal-content {
    padding-left: 15px;
    padding-right: 15px;
}
.e-modal-general .e-modal-header + .e-modal-body,
.e-modal-general .e-modal-body + .e-modal-body,
.e-modal-general .e-modal-body + .e-modal-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

#modalUser.e-modal-general .e-modal-header + .e-modal-body,
#modalUser.e-modal-general .e-modal-body + .e-modal-body,
#modalUser.e-modal-general .e-modal-body + .e-modal-foot {
    border-top: none;
}

.e-modal-general .e-modal-header .e-modal-title {
    font-weight: 700;
    font-size: 23px;
    margin-bottom: 7px;
}
.e-modal-general .e-modal-body {
    padding-top: 24px;
    padding-bottom: 17px;
}
.e-modal-general .e-modal-foot {
    padding: 20px 15px;
}

.e-modal-general h4 {
    font-size: 18px;
}

.e-modal-general .close {
    right: 0;
}

@media screen and (max-width: 576px) {
    .e-modal-general .e-modal-content {
        padding-left: 0;
        padding-right: 0;
    }
    .e-modal-general h4 {
        font-size: 16px;
    }
    .e-modal-general .close {
        right: 15px;
    }
}

/* modalPartySettings */

#modalPartySettings .game-mode {
    margin-bottom: 9px;
}
#modalPartySettings .form-label-game-mode {
    font-size: 26px;
    font-weight: 400;
}

@media screen and (max-width: 576px) {
    #modalPartySettings .form-label-game-mode {
        font-size: 22px;
    }
    #modalPartySettings .game-mode {
        margin-bottom: 25px;
    }
    #modalPartySettings .form-radio + .form-radio {
        margin-top: 25px;
    }
    #modalPartySettings .form-radio .form-check-text {
        margin-bottom: 5px;
    }
}

/* modalUser */

#modalUser .e-modal-user-avatar {
    text-align: center;
    display: block;
    margin: 0 auto;
}

#modalUser .e-modal-user-avatar-picture {
    margin-bottom: 10px;
}

#modalUser .e-modal-user-avatar-picture > img {
    width: 78px;
    height: 78px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

#modalUser .e-modal-user-avatar-title {
    color: #00faf3;
    margin-bottom: 5px;
    font-weight: 700;
}

#modalUser .e-modal-user-avatar-desc {
    font-size: 13px;
    margin-bottom: 5px;
}

#modalUser .e-modal-user-list-inner {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}
#modalUser .e-modal-user-list-inner:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

#modalUser .e-modal-user-list-item {
    padding-top: 20px;
    padding-bottom: 20px;
}
#modalUser .e-modal-user-list-item h5 {
    margin-bottom: 0;
}

#modalUser .e-modal-body {
    padding-bottom: 0;
}

#modalUser .e-modal-foot {
    padding: 20px 15px 15px;
}
#modalUser .e-modal-foot .btn {
    margin-left: 3px;
    margin-right: 3px;
}

@media screen and (max-width: 576px) {
    #modalUser .e-modal-body {
        padding-left: 0;
        padding-right: 0;
    }
    #modalUser .e-modal-user-list-inner:first-of-type {
        border-top: 1px solid rgba(255, 255, 255, 0.5);
    }
    #modalUser .e-modal-user-list-inner {
        border-top: none;
    }
    #modalUser .e-modal-user-list-item {
        padding-bottom: 0;
        padding-left: 15px;
        padding-right: 15px;
    }
    #modalUser .e-modal-user-list-inner:last-of-type {
        padding-bottom: 20px;
    }
    #modalUser .e-modal-user-list-item h5 {
        font-size: 14px;
        font-weight: 600;
    }
}

/* game-modal */

.game-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url("../img/bg/game-bg.jpg") no-repeat center center;
    background-size: cover;
}

.game-modal {
    background: none;
    font-size: 14px;
}

.game-modal .e-modal-dialog {
    max-width: 500px;
}
.game-modal-lost .e-modal-dialog {
    max-width: 400px;
}
.game-modal-new-challenge .e-modal-dialog {
    max-width: 700px;
}

.game-modal .e-modal-dialog,
.game-modal.show .e-modal-dialog {
    left: 2% !important;
    margin: 1.75rem 0;
}

.game-modal .e-modal-header {
    padding-bottom: 1rem;
}

.game-modal-inner {
    width: 100%;
}

.game-modal-avatar-picture,
.game-modal-avatar-picture > img {
    height: 32px;
    width: 32px;
    display: block;
}
.game-modal-avatar,
.game-modal-avatar-picture {
    margin-right: 12px;
}

.game-modal-link {
    color: #00fbf4;
}
.game-modal-link:hover,
.game-modal-link:focus,
.game-modal-link:active {
    color: #00fbf4;
    text-decoration: none;
}
.game-modal-link img {
    max-height: 24px;
}

.game-modal-time {
    padding-left: 25px;
    padding-right: 25px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.game-modal-time-i {
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.game-modal .close {
    margin-top: -16px;
    margin-bottom: 0;
    top: 50%;
}

.game-modal-text h2,
.game-modal-text h3 {
    font-weight: 600;
    margin-bottom: 0;
}

.game-modal-text h2 {
    font-size: 22px;
}
.game-modal-text h2 .game-modal-link {
    font-size: 18px;
}

.game-modal-text h3 {
    font-size: 14px;
    color: #00fbf4;
}

.game-modal-text h2 + h3 {
    margin-top: 5px;
}

.game-modal-new-challenge .game-modal-text h2 {
    font-size: 15px;
    color: #e84818;
}
.game-modal-new-challenge .game-modal-text h3 {
    font-size: 12px;
    color: #fff;
}

.game-modal-new-challenge .range-container {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.game-modal-new-challenge .range-item {
    padding-right: 8px;
    padding-left: 8px;
    position: relative;
}

.game-modal-new-challenge .range-item-max {
    font-size: 18px;
    position: absolute;
    top: -24px;
    right: 0;
    color: #fff;
    opacity: 0.6;
    font-weight: 600;
}

.game-modal-new-challenge .range-item-max-i {
    height: 16px;
    margin-left: 7px;
}

.game-modal-new-challenge .range-item-max.d-none {
    opacity: 0;
}

.game-modal-new-challenge .range-item-result {
    background: #393f44;
    padding: 5px;
    border-radius: 5px;
    color: #00f7f1;
    font-weight: 600;
    font-size: 20px;
    width: 40px;
    text-align: center;
}

.game-modal-new-challenge .range-item-result-i {
    position: absolute;
    bottom: -15px;
    right: -10px;
    height: 24px;
}

.game-modal-new-challenge .range-item .btn {
    min-width: 155px;
    font-size: 18px;
    border-radius: 25px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

@media screen and (max-width: 767px) {
    .game-modal-new-challenge .e-modal-dialog {
        max-width: 100%;
    }
    .game-modal-new-challenge .e-modal-dialog,
    .game-modal-new-challenge.show .e-modal-dialog {
        left: 0 !important;
        margin: 0;
    }
    .game-modal-new-challenge .e-modal-content {
        border-radius: 0;
    }

    .game-modal-new-challenge .range-item:last-of-type {
        width: 100%;
        margin-top: 10px;
    }
}

@media screen and (max-width: 576px) {
    .game-modal {
        font-size: 12px;
    }

    .game-modal .e-modal-dialog {
        max-width: 100%;
    }

    .game-modal .e-modal-content {
        border-radius: 0;
    }

    .game-modal .e-modal-dialog,
    .game-modal.show .e-modal-dialog {
        left: 0 !important;
        margin: 0;
    }

    .game-modal-inner,
    .game-modal-text h2 .game-modal-link {
        display: block !important;
    }

    .game-modal-time {
        padding-left: 44px;
    }

    .game-modal-text h2 {
        font-size: 18px;
    }
    .game-modal-text h3,
    .game-modal-text h2 .game-modal-link {
        font-size: 12px;
    }

    .game-modal-lost .game-modal-time,
    .game-modal-victory .game-modal-time,
    .game-modal-new-challenge .game-modal-time {
        padding-left: 0;
    }
    .game-modal-new-challenge .game-modal-time {
        margin-top: 15px;
    }

    .game-modal-new-challenge .range-item {
        padding-left: 0;
        padding-right: 0;
    }
    .game-modal-new-challenge .range-item:nth-of-type(1) {
        width: 100%;
        margin-bottom: 25px;
    }
    .game-modal-new-challenge .range-item:nth-of-type(3) {
        width: 100%;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    .game-modal-new-challenge .range-item:nth-of-type(4) {
        margin-bottom: 15px;
    }
    .game-modal-new-challenge .range-item:nth-of-type(4) .range-item-result-i {
        bottom: -5px;
        right: -5px;
        height: 14px;
    }
}

/*-------------------------------------------------*/
/* =  modal.begin
/*-------------------------------------------------*/
