@font-face {
    font-family: "Futura PT Book";
    font-style: normal;
    font-weight: normal;
    src: local("Futura PT Book"), url("/fonts/FuturaCyrillicBook.ttf") format("woff");
}

html {
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    color: #ffffff;
    width: 100vw;
    height: 100vh;
    font-family: "Futura PT Book";
    display: flex;
    flex-direction: column;
    background-image: url("/assets/gameBG.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.player-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.player-template {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    user-select: none;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.player-template::-webkit-scrollbar {
    display: none;
}

.single .game-background-PvP,
.single .game-container-abilities,
.single .main-bar-container,
.single #timer-container,
.single .game-shop,
.single #button-emoji {
    display: none;
}

.multiplayer .game-score, .multiplayer .game-move {
    display: none;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    margin: 1rem;
}

header div {
    display: flex;
}

header .shadow-block {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 50%;

    background: linear-gradient(180deg, rgb(0, 0, 0), rgba(255, 255, 255, 0) 100%);
    opacity: 0.7;
    z-index: -1;
}

button img {
    position: relative;
}

.game-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 55%;
    width: 100%;
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: -1000;
}

.left-buttons {
    display: flex;
    align-items: center;
}

.button-back, .button-hint, .button-characters, .button-emoji, .button-settings {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 0.6rem;
    border: none;
    background: rgb(36, 173, 156);
    cursor: pointer;
    z-index: 1;
    margin: 0 0.5rem;
    padding: 0;

    color: rgb(255, 255, 255);
    font-family: "Futura PT Book";
    font-size: 2rem;
    font-weight: 700;
}

.button-back img, .button-settings img {
    width: 1.2rem;
}

.button-characters img, .button-emoji img {
    width: 2rem;
}

.button.disabled {
    filter: grayscale(1);
    pointer-events: none;
}

.page-name {
    display: flex;
    position: relative;
    width: 100%;
    justify-content: center;
    font-family: "Futura PT Book";
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
}

.modal-body.emoji {
    width: 60vmin;
    height: max-content;
    min-width: 420px;
    max-width: 480px;
    background: #06534E;
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 3px 0 0.02rem rgba(0, 0, 0, 0.8);
    position: absolute;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.emoji-sender img {
    width: 3rem;
    background: #24AD9C;
    border-radius: 50%;
    padding: 1rem;
    cursor: pointer;
}

.emoji-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 20px;
}

.contain-message-emoji {
    width: 45%;
}

.message-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
    gap: 20px;
}


.message-list div div {
    font-size: 1.6rem;
    background: #24AD9C;
    margin: 1rem 0;
    padding: 0.1rem 1rem;
    border-radius: 16px;
    cursor: pointer;
}

.message-body.my, .message-body.opponent {
    width: max-content;
    position: relative;
    top: 0;
    left: 0;
    right: auto;
    background: #06534E;
    border-radius: 16px 16px 3px 16px;
    padding: 0.5rem 1rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.message-body.my {
    transform: translate(-70%, 70%);
    border-radius: 16px 16px 3px 16px;
}

.message-body.opponent {
    transform: translate(-60%, 220%);
    border-radius: 16px 3px 16px 16px;
}

.message-body.my img, .message-body.opponent img {
    width: 2.5rem;
    transform: scaleX(1);
}

.message-body.my span, .message-body.opponent span {
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.message-body.my span {
    transform: scaleX(-1);
}

.message-body.opponent span {
    transform: scaleX(1);
}

footer .shadow-block {
    position: absolute;
    bottom: 0;
    left: 0;
    min-width: 52.7rem;
    min-height: 30.95rem;
    opacity: 0.7;
}

footer {
    position: absolute;
    min-width: 100%;
    bottom: 0;
    left: 0;
}

.menu {
    min-width: 47.1rem;
    min-height: 7.6rem;
    margin: 0 3rem 1.875rem 2.625rem;
    border-radius: 2.1rem;
    box-shadow: 0rem -0.8rem 0rem 0rem rgb(255, 136, 27);
    background: linear-gradient(180deg, rgb(36, 173, 156), rgb(15, 71, 64) 100%);
}

.menu-links {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 4rem 0;
}

.game-menu {
    min-height: 4.25rem;
    min-width: 47.55rem;
    margin: 3.375rem 2.375rem 0 2.75rem;
    border-radius: 1.45rem;
    box-shadow: 0rem -0.7rem 0rem 0rem rgb(255, 136, 27);
    background: linear-gradient(0deg, rgb(24, 114, 102) -7.368%, rgb(45, 216, 193) 100%);
}

.game-menu-links {
    display: flex;
    justify-content: space-evenly;
    padding-top: 0.5rem;
}

.game-menu-link {
    font-family: "Futura PT Book";
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    background: transparent;
}

.game-menu-link-background {
    width: 8.13rem;
    height: 3.13rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-menu-link-background.selected {
    border-radius: 0.56rem;
    background: rgb(6, 83, 78);
}

.bet-amount {
    position: relative;
    display: flex;
    flex-direction: row;
    font-weight: 700;
    justify-content: center;
    margin-top: 0.1rem;
}

.bet-amount::before {
    content: "";
    background-image: url(/assets/coin.png);
    position: relative;
    height: 15px;
    display: block;
    background-size: contain;
    aspect-ratio: 1;
    background-repeat: no-repeat;
    margin: 0.1rem 0.2rem 0 0;
}

.button-join-lobby.disabled{
    filter: grayscale(1);
    pointer-events: none;
}

.range-slider .range-slider__thumb[data-lower] {
    width: 0;
}

.range-slider .range-slider__range {
    border-radius: 6px;
}

.modal {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    background: #00000070;
}

.modal .modal-label {
    text-align: center;
    text-transform: uppercase;
}

.modal-backdrop {
    position: relative;
    width: 100%;
    height: 100vh;
}

.modal-body {
    width: 50vmin;
    height: max-content;
    min-width: 420px;
    max-width: 480px;
    background: #06534E;
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 3px 0 0.02rem rgba(0, 0, 0, 0.8);
    position: absolute;
}

.modal-body .lobby-container-stats {
    margin: 0 0 0 1rem;
}

.modal .modal-field-label {
    text-overflow: ellipsis;
    margin: 0 2rem;
}

.ui-slider {
    border-radius: 20px;
    height: 20px;
    overflow: hidden;
    margin: 0 2rem;
}

.ui-slider-range {
    background-color: #24AD9C;
}

.ui-slider-handle {
    display: none;
    left: 52%;
    width: 17%;
    height: 125%;
    line-height: 35px;
    text-align: center;
    background-color: #24AD9C;
    color: white;
}

.healths-container {
    position: absolute;
    width: 100%;
    height: 56px;
}

.nickname-container,
.nickname-container.reverse {
    display: flex;
    position: absolute;
    width: 100px;
    top: -10%;
    left: 5%;
    /*transform: translate(-50%, -50%);*/
    aspect-ratio: 4.44;
    border-radius: 21.66px;
    background: rgb(6, 83, 78);
    justify-content: center;
}

.nickname-container.my {
    /*transform: scaleX(-1);*/
}

/*.nickname-container.my {*/
/*    transform: translate(-6%, 250%) scaleX(-1);*/
/*}*/

.nickname-container.reverse {
    /*transform: translate(20%, -120%);*/
}

.nickname {
    position: absolute;
    width: 80%;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.result-rating.button-choice p {
    width: 80px;
}

.login-scene {
    position: relative;
    height: 100%;
    width: 100%;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.loading-scene {
    height: 100vh;
    width: 100%;
}

.loading .loading-text {
    background: #06534E;
    padding: 0 0.5rem;
    border-radius: 24px;
    margin-bottom: 1rem;
}

.loading-scene .loading .loading-text {
    background: #06534E;
    padding: 0.5em 2rem;
    border-radius: 36px;
    font-size: 1.5rem;
}

.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: 100vh;
    z-index: -1;
}

.awaiting-lobby,
.lobby-waiting {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-result {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result-rating.button-choice .leave, .result-rating.button-choice .restart {
    height: 30px;
    width: 100px;
    margin: 0 5px;
}

.reason-container {
    margin: 1rem 0;
    font-size: 1.2rem;
    width: 80%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.reason-container .reason {
    outline: 1px solid #24AD9C;
    border-radius: 6px;
    outline-offset: 8px;
    padding: 0 0.5rem;
}

.main-container-game-result {
    display: flex;
    flex-direction: column;
    background: #06534E;
    border-radius: 32px;
    max-width: 400px;
    min-width: 300px;
}

.main-container-game-result .button-back-lobby .lobby-container-stats {
    margin: 1rem 0 0 1rem;
}

.main-container-game-result .back-arrow {
    margin-bottom: 0.128rem;
}

.game-result-win .result-score.count {
    margin-bottom: 0.5rem;
}

.game-result-win .lobby-text {
    text-transform: uppercase;
}

.container-game-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    min-width: 300px;
}

.container-game-result img {
    width: 90%;
    margin-top: 1.3rem;
}

.container-game-result .lobby-text {
    font-size: 2.5rem;
    padding: 0 30px 10px 30px;
    text-transform: uppercase;
}

.container-game-result .result-score,
.result-rating {
    font-size: 1.5rem;
}

.container-game-result .game-result-lose .lobby-text {
}

.container-game-result .lobby-text.dontGiveUp {
    font-size: 1.5rem;
    margin-left: 5rem;
    margin-top: -0.9rem;
}

.loading {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100vh;
    justify-content: center;
}

.container-loading-reconnect {
    display: flex;
    flex-direction: column;
    width: 50vmin;
    max-width: 400px;
    border-radius: 24px;
    background: #06534E;
    box-shadow: 0 3px 0 0.02rem rgba(0, 0, 0, 0.8);
    padding: 0.8rem 0;
}

.awaiting-lobby-container {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0;
    margin-bottom: 1rem;
}

.loading-text {
    display: flex;
    background: #06534E;
    padding: 0.5em 2rem;
    border-radius: 24px;
    min-width: 25%;
    min-height: 1rem;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-align: center;
}

.lobby-text {
    text-align: center;
    font-size: 1.2rem;
    padding: 0 30px 20px 30px;
}

.lobby-list-scene {
    width: 100%;
    overflow-x: hidden;
}

.lobby-list-background {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    height: max-content;
    z-index: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 0 5rem;
}

.lobby-list-background::-webkit-scrollbar {
    display: none;
}

.lobby-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.lobby-player {
    width: min-content;
    min-width: 300px;
    max-width: 460px;
    background: #06534E;
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    margin: 0 1rem;
}

.lobby-name-container {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 3rem;
    margin: 1.8rem 0 0 1em;
}

.lobby-name-container img {
    width: 4rem;
    height: 4rem;
}

.modal-setting-selected {
    display: flex;
    margin: 0 2rem 1.5rem
}

.player-name-profile {
    font-size: 2.2rem;
    margin: 0 0 0.2rem -1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 67%;
    white-space: nowrap;
}

.player-status {
    transform: translate(3px, -3px);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.lobby-name-container img.crown {
    width: 1.3rem;
    height: 1.3rem;
    transform: translate(-75%, -225%);
}

.stat-contain {
    min-height: 30px;
    border-radius: 50px;
    background: #24AD9C;
}

.lobby-container-stats {
    display: flex;
    align-items: center;
    margin: 0.5rem 0 0 1rem;
    justify-content: space-evenly;
}

.player-coin {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    max-width: 91.4%;
    margin: 0.5rem 1rem 0 1rem;
}

.button-back-lobby .lobby-container-stats {
    justify-content: flex-start;
}

.tiny-stat .lobby-container-stats,
.large-stat .lobby-container-stats {
    margin: 0.5rem 0 0 0;
}

.tiny-stat {
    max-width: 49%;
}

.large-stat {
    max-width: 49%;
    display: flex;
    flex-direction: column;
}

.info-profile {
    display: flex;
    width: 53%;
    margin: 0 0 0 0.5rem;
    text-align: start;
    font-size: 1rem;
    align-items: center;
}

.contain-profile-stats-in-positions {
    display: flex;
}

.container-player-profile-info .large-stat {
    width: 60%;
    margin: 0.5rem 0 1rem 1.5rem;
}

.container-player-profile-info .stat-contain {
    height: 30px;
}

.show-modal .lobby-container {
    display: none;
}

.player-position-in-world p {
    padding: 0;
    height: 30px;
    margin: 0;
    display: flex;
    align-items: center;
    text-transform: none;
    font-size: 1.5rem;
}

.button.button-restart-lobby.button-view {
    margin: 0 auto 2rem;
    padding: 0 24px;
}

.player-position-in-world .lobby-container-stats {
    width: 100%;
}

.player-position-in-world .main-stat-title-container {
    width: 100%;
    font-weight: normal;
    display: flex;
    justify-content: flex-start;
}

.player-position-in-world .main-stat-title-container #positionPlayTimeInGame,
.player-position-in-world .main-stat-title-container #positionWinRate,
.player-position-in-world .main-stat-title-container #positionHeightScore {
    padding: 0 0 0 0.3rem;
}

.container-player-profile-info .button-back-lobby .lobby-container-stats {
    margin: 0 0 -0.1rem 1rem;
}

.container-details-info-player-in-game {
    width: 100%;
    margin: 0 0 1.5rem 2rem;
}

.position-details-info {
    display: flex;
    font-size: 1.5rem;
}

.position-details-info .count {
    margin-left: 0.5rem;
}

.container-player-profile-info .stat-value,
.container-player-profile-info .stat-title {
    font-size: 0.9rem;
}


.player-stats .large-stat {
    opacity: 1;
}

.player-position-in-world {
    margin: 0.5rem 1rem 1rem -0.5rem;
}

.player-coin img {
    height: 1rem;
    width: 1rem;
    margin-left: 0.5rem;
}

.coin-count {
    margin:0 0.8rem;
    font-size: 1rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.divider-in-player {
    transform: rotate(180deg);
    aspect-ratio: 11.5;
    width: 1%;
    min-height: 15px;
    max-height: 20px;
    border-radius: 4.5px;
    background: rgba(25, 28, 28, 0.4);
}

.player-lvl {
    justify-content: space-between;
}

.stat-title {
    font-size: 0.8rem;
    letter-spacing: 0.01rem;
}

.stat-value {
    font-size: 0.8rem;
    text-overflow: ellipsis;
}

.main-stat-title-container {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase
}

.divider-for-stats {
    height: 2px;
    background-color: #24AD9C;
    margin: 1rem;
    border: none;
    border-radius: 50rem;
}

.modal-body .divider-for-stats {
    margin: 0 1rem;
}

.player-stats {
    display: flex;
    margin: 0 1rem 0 1rem;
    justify-content: space-between;
}

.buttons-contain-main-lobby {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: visible;
}

.container-button-lobby {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-help-tiny.invisible {
    background: transparent;
    overflow: hidden;
    border: none;
    cursor: unset;
    box-shadow: none;
}

.button-help-tiny.invisible:hover {
    background: transparent;
}

.button-help-tiny {
    border-radius: 50%;
    height: 2rem;
    width: 2rem;
    font-size: 1.2rem;
    margin-right: 0.5rem;
    margin-bottom: 1.4rem;
    text-transform: uppercase
}

.button-lobby {
    border-radius: 50px;
    height: 3rem;
    width: 75%;
    margin-bottom: 1.4rem;
    font-size: 1.2rem;
    text-transform: uppercase
}

.container-button-lobby .button-lobby a {
    color: #ffffff;
    text-decoration: none;
}

.game-result-win,
.game-result-lose,
.game-result-score
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-result-lose .result-score {
    font-size: 3cqw;
    margin: 0.7rem 0 0;
}

.result-rating {
    display: flex;
    align-items: center;
}

.result-rating .counter {
    margin-left: 0.5rem;
}

.result-rating.button-choice {
    margin: 0 1.5rem 1.5rem;
}

.result-rating.button-choice .leave {
    width: 150px;
    background: #24ad9c;
    margin: 1rem;
}

.result-rating.button-choice .restart {
    width: 150px;
    margin: 1rem;
}

.result-rating.button-choice .leave,
.result-rating.button-choice .restart {
    height: 45px;
    border-radius: 12px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.select2-container--classic .select2-selection--single {
    width: 100%;
    background: #24AD9C;
    outline: none;
    border: none;
    color: #ffffff;
    border-radius: 16px;
}

.select2-results__option {
    color: #ffffff;
    outline: none;
    font-size: 1.2rem;
}

.select2-container--classic .select2-dropdown {
    width: 100%;
    background: #24AD9C;
    outline: none;
    border: none;
    color: #ffffff;
    text-align: center;
    margin-top: 0.8rem;
    transition: max-height 0.3s ease;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    background: #24AD9C;
    color: #ffffff;
    text-align: center;
    outline: none;
    border-radius: 10px;
    font-size: 1.3rem;
}

.select2-container--classic .select2-selection--single .select2-selection__rendered {
    line-height: 35px;
}

.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #06534E;
    outline: none;
    font-size: 1.3rem;
}

.select2-container--classic .select2-selection--single .select2-selection__arrow {
    background: none;
    border: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    text-align: center;
    outline: none;
    top: 4px;
    right: 10px;
}

.select2-container--classic .select2-selection--single .select2-selection__arrow b {
    border-color: #ffffff transparent transparent transparent;
}

.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #ffffff transparent;
}

.select2-container {
    margin-bottom: 0.5rem;
    width: 10rem !important;
}

.select2-container--classic.select2-container--open .select2-selection--single {
    border: none;
    border-radius: 16px;
}

.select2-container--classic .select2-selection--single:focus {
    border: none;
}

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
}

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background-color: #06534E !important;
}

.select2-results__options {
    border-radius: 16px;
}

.select2-container--classic.select2-container--open .select2-dropdown {
    border-color: #06534E;
    border-radius: 16px;
    outline: #24AD9C 1px solid;
}

.button-help-tiny,
.button-lobby {
    background: #F17D12;
    color: #fff;
    box-shadow: 0 3px 0 0.02rem rgba(0, 0, 0, 0.5);
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.button-lobby:hover,
.button-help-tiny:hover {
    background: #cd6b10;
}

.back-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    cursor: pointer;
    margin-bottom: 0.1rem;
}

.lobby-container-stats button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase
}

.button-back-lobby .lobby-container-stats {
    margin: 0 0 0 1rem;
}

.modal-body .button-back-lobby .lobby-container-stats {
    margin: 0 0 -1rem 1rem;
}

.modal-body .button-back-lobby .lobby-container-stats .back-arrow {
    margin-bottom: 0.12rem;
}

.rules-modal {
    z-index: 50;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.rules-modal, .characters-info-modal  {
    z-index: 150;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.backdrop-rules, .backdrop-character-info {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    cursor: pointer;
    background: #00000070;
}

.rules-modal .backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    cursor: pointer;
    background: #00000070;
}

.backdrop-rules, .backdrop-character-info {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    cursor: pointer;
    background: #00000070;
}

.rules-body, .character-info-body {
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    height: 80vh;
    min-width: 340px;
    max-width: 400px;
    background: #06534E;
    z-index: 10;
    margin-top: 50px;
    transform: translate(-50%, 10px);
    border-radius: 20px;
    padding: 20px;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 4px 0 0.04rem rgba(0, 0, 0, 0.8);
    text-align: center;
}

.rules-body::-webkit-scrollbar, .character-info-body::-webkit-scrollbar {
    display: none;
}


.rules-modal h3, .characters-info-modal h3,
.rules-modal h2, .characters-info-modal h2,
.rules-modal img, .characters-info-modal img {
    text-align: center;
    width: 100%;
}

.rules-modal p {
    font-size: 1.2rem;
}

.rules-modal img, .characters-info-modal img {
    border-radius: 20px;
    border: 1px solid grey;
    max-width: 80%;
    position: relative;
}

.show-modal-rules .lobby-container, .show-modal-character-info .lobby-container {
    display: none;
}

.main-hero-contain {
    display: flex;
    flex-direction: column;
}


.container-modal {
    position: fixed;
    width: 35vmin;
    z-index: 150;
    background: #24ad9c;
    margin-left: 1.2rem;
    border-radius: 4px 20px 20px 20px;
    display: flex;
    align-items: center;
    cursor: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    margin-top: 2rem;
}

.container-modal div {
    font-size: 1rem;
    text-transform: none;
    font-weight: 200;
    padding: 1rem;
    text-align: start;
}

.lobby-list {
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5vh;
    margin-bottom: 2rem;
}

.container-lobby-setup-rating .lobby-list {
    margin-bottom: 1.5rem;
}

.lobby-opened-list,
.lobby-in-game-list {
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 6px;
}

.lobby-type {
    font-size: 30px;
    margin: 0.5rem 1rem;
}

.container-list-await {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 85%;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 1rem;
}

.container-list-await .divider-in-player {
    height: 15px;
}

.block-await {
    width: 48%;
}

.any {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.block-await {
    background-color: #24AD9C;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin: 0 0 0.5rem 0;
}

.container-time-await {
    outline: #24AD9C 1px solid;
    border-radius: 8px;
}

.container-time-await p {
    padding: 0.5rem;
}

.lobby-rating {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    text-align: center;
}

.lobby {
    position: relative;
    width: 80%;
    height: 50px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    background: none;
    outline: 1px solid rgb(36, 173, 156);
    padding: 0.5rem;
}

.lobby-owner {
    font-size: 25px;
    margin: 0 4%;
    line-height: 50px;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lobby-opponent {
    font-size: 36px;
    margin: 0 2% 0 4%;
    line-height: 100%;
    transform: translateY(25%);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs {
    text-transform: uppercase;
    font-size: 36px;
    line-height: 100%;
    transform: translateY(25%);
}

.button {
    display: block;
    margin: 0 auto;
    height: 50px;
    border-radius: 10px;
    color: white;
    padding: 0 30px;
    font-size: 1.5rem;
    cursor: pointer;
    background: linear-gradient(180deg, rgb(255, 136, 27) 52.292%, rgb(208, 100, 0) 111.852%);
    box-shadow: 0 0.1rem 0 0 rgb(1, 35, 33);
    align-items: center;
}

.button.button-leave-lobby,
.button.button-restart-lobby {
    scale: 1;
}

.button-join-lobby {
    border-radius: 7px;
    color: white;
    padding: 0 16px;
    font-size: 1rem;
    background: linear-gradient(180deg, rgb(255, 136, 27) 52.292%, rgb(208, 100, 0) 111.852%);
    cursor: pointer;
}

.game-results-scene {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 500;
}

.game-results-scene.transparent .main-container-game-result {
    background: none !important;
}

.game-results-scene.transparent .game-result-win {
    opacity: 0;
    pointer-events: none;
}

.game-results-scene.transparent .game-result-lose {
    opacity: 0;
    pointer-events: none;
}

.game-results-scene.transparent .game-result-score {
    opacity: 0;
    pointer-events: none;
}

.game-results-scene.transparent .result-rating {
    opacity: 0;
    pointer-events: none;
}

.game-results-scene.transparent .result-background {
    opacity: 0;
}

.result-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, rgba(33, 166, 150, 0.8) 70%, rgba(12, 71, 71, 0.8) 100%);
    z-index: -1;
}

.joining-player-scene {
    height: 100%;
    width: 100%;
}

.joining-player {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    border-radius: 22px;
    padding: 14px 0;
    margin: 0 auto;
    background-color: rgb(6, 83, 78);
}

.joining-player-text {
    font-size: 1.4rem;
    padding: 0 5px;
}

.joining-player-buttons {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    padding: 0 20px 0 20px;
}

.joining-player-buttons .button {
    box-shadow: 0 3px 0 0.02rem rgba(0, 0, 0, 0.8);
    margin-top: 0.5rem;
}

.button-disapprove,
.button-approve {
    scale: 0.9;
    display: block;
    margin: 0;
    height: 50px;
    border-radius: 10px;
    color: white;
    padding: 0 2rem;
    font-size: 25px;
    line-height: 50px;
    background: linear-gradient(180deg, rgb(255, 136, 27) 52.292%, rgb(208, 100, 0) 111.852%);
    box-shadow: 0rem 0.1rem 0rem 0rem rgb(1, 35, 33);
}

.disabled .card-body {
    pointer-events: none;
    cursor: auto;
    filter: grayscale(1);
}

.discard-disabled .discard-button {
    pointer-events: none;
    cursor: auto;
    filter: grayscale(1);
}

.game-scene.disabled {
    pointer-events: none;
}

.timer-container {
    flex-direction: column;
    display: flex;
    transform-style: preserve-3d;
    width: 100%;
    position: absolute;
    top: -75%;
    align-items: center;
}

.timer-container-prev,
.timer-container-next {
    backface-visibility: hidden;
    position: absolute;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 35px;
    max-width: 220px;
    background-color: rgb(6, 83, 78);
    transition: background-color 0.3s ease;
    border-radius: 21.66px;
    font-size: 0.5rem;
}

.timer-container-prev {
    transform: translateZ(2em);
}

.timer-container-next {
    background-color: rgb(4, 57, 54);
    transform: rotateX(-90deg) translateZ(-2em);
}

.timer-container.rotate {
    transform: rotateX(90deg);
}

.timer-container.rotate .timer-container-prev {
    background: rgb(6, 83, 78);
}

.freeze {
    transition: opacity linear 1s;
}

.hourglass-container {
    transform: scale(0.3);
    margin: -1%;
}

.timer {
    font-size: 1rem;
    text-align: right;
}

.turn-message {
    font-size: 1rem;
}

.turn-selector {
    width: 50%;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    gap: 5%;
}

.turn-selector .label {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.turn-length-select {
    width: 90%;
    height: 2rem;
    text-align: center;
    border-radius: 10px;
    margin-top: 0.5rem;
    background: #24ad9c;
    border: none;
    color: #ffffff;
    font-size: 1.5cqw;
    cursor: pointer;
    outline: none;
}

.button-back-main-lobby {
    display: flex;
}

option {
    margin-top: 2rem !important;
}

.turn-selector .chosen-container .chosen-results li.active-result {
    font-size: 2em;
}

.turn-selector .chosen-container-single .chosen-single {
    font-size: 2em;
}

.turn-selector .chosen-container {
    flex-grow: 1;
}

.btn-concede {
    height: 45px;
    font-size: 1rem;
    background: linear-gradient(180deg, rgba(255, 27, 27, 0.64) 75%, rgba(208, 0, 0, 0.49) 95%);
    display: block;
    border-radius: 10px;
    color: white;
    padding: 0 16px;
    cursor: pointer;
    box-shadow: 0 0.1rem 0 0 rgb(1, 35, 33);
    margin: 0 5rem 1rem;
}

.btn-sound {
    height: 45px;
    font-size: 1rem;
    background: linear-gradient(180deg, rgba(36, 173, 156, 0.64) 75%, rgba(25, 122, 110, 0.69) 95%);
    display: block;
    border-radius: 10px;
    color: white;
    padding: 0 16px;
    cursor: pointer;
    box-shadow: 0 0.1rem 0 0 rgb(1, 35, 33);
    margin: 0 3rem 1rem;
}

.turn-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.bet-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.bet-select {
    font-size: 4cqw;
    width: 120%;
}

.bet-selector .label {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.bet-selector img {
    width: 20px;
    margin: 0.5rem;
}

.tournament-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.tournament-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tournament-item {
    background: rgba(36, 173, 156, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tournament-info {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 1.2em;
}

.buy-in {
    color: #24AD9C;
    font-weight: bold;
}

.time-left {
    color: #24AD9C;
}

.button-join-tournament {
    background: #24AD9C;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.button-join-tournament:hover {
    background: #1c8a7c;
}

.button-join-tournament:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.tournament-bracket {
    width: 100%;
    padding: 20px;
}

.bracket-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.bracket-round {
    display: flex;
    justify-content: space-around;
}

.bracket-match {
    background: rgba(36, 173, 156, 0.1);
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.bracket-player {
    display: flex;
    justify-content: space-between;
    padding: 5px;
}

.bracket-player.winner {
    background: rgba(36, 173, 156, 0.2);
    border-radius: 3px;
}

.tournament-modal {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.tournament-modal-content {
    background: #06534E;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.tournament-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tournament-modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.tournament-modal-button.confirm {
    background: #24AD9C;
    color: white;
}

.tournament-modal-button.cancel {
    background: #d32f2f;
    color: white;
}

.player-health-mana-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin-right: 5rem;
}


.health-mana-container {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: flex-end;
    transform: scaleX(-1);
    width: 100%;
    margin-left: 5rem;
}

.health-mana-container .stat-label {
    transform: scaleX(-1)
}

.health-mana-container .health-bar-point, .health-mana-container .mana-bar-point {
    transform: scaleX(-1);
}

.health-mana-container  .reverse {
    transform: scaleX(-1) translate(20%, -120%);
}

.main-bar-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.bar-container {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    flex-direction: row;
}
.game-background-PvP {
    position: absolute;
    top: 0.5rem;
    width: 95%;
    height: 80vmin;
    /*max-height: 190px;*/
    background-image: url("../assets/bgPVP.png");
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.all-player-container {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
}

.player-one-container, .player-two-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    position: relative;
    /*width: 50%;*/
    height: 95%;
    margin: 0 20px;
}

.player-one-container {
    transform: scaleX(-1);
}

.player-two-container {
    align-items: flex-end;
}

.player-two-container .nickname {
    transform: translateY(-50%) scaleX(-1);
}

.player-one, .player-two, .hero  {
    position: relative;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 115px;
    height: 115px;
    outline: 3px solid #0A6861;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: scaleX(-1);
}

.player-one:hover, .player-two:hover, .hero:hover {
    outline: 3px solid #24AD9C;
}

.player-one {
    transform: scaleX(-1);
}

.game-wrap-container {
    position: relative;
    z-index: 500;
    height: min-content;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.game-wrap {
    position: relative;
    width: 80vmin;
    height: 80vmin;
    max-width: 450px;
    max-height: 450px;
    min-width: 220px;
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 0.7rem;
    justify-content: center;
    border: 0.5rem solid #FF881B;
    padding: 0.8rem;
    border-radius: 1.6rem;
    box-sizing: border-box;
}

.game-score {
    position: relative;
    margin: 0 0 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffe0;
    font-size: 48px;
}

.game-container {
    width: max-content;
    border-radius: 2rem;
    padding: 0.5rem 1rem 1rem 1rem;
    margin: -2.5rem 0 -0.2rem 0;
    background: #06534E;
    z-index: 101;
}

.contain-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    outline: 1px solid #ffffff59;
    border-radius: 12px;
    transition: all 0.1s ease;
}

.tile-container img {
    transition: transform 0.2s ease;
}

/*.highlight img {*/
/*    transform: scale(1.2);*/
/*}*/

.tile {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
}

.game-wrap.disabled .tile{
    pointer-events: none;
}

.stat-hero-template {
    display: flex;
    width: 35px;
    height: 35px;
    background: #0A6861;
    outline: 4px solid #24AD9C;
    z-index: 1;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 0.35rem;
    transform-origin: center center;
}

.shield-container {
    position: absolute;
    display: flex;
    align-items: flex-end;
    height: 80%;
}

.shield-container .stat-hero-template {
    outline-offset: 5px;
}

.my.shield-container {
    left: 45%;
}

.opponent.shield-container {
    right: 45%;
}

.shop-items {
    display: flex;
    width: 85%;
    align-items: flex-start;
    justify-content: flex-start;
}

.shop-item-template {
    position: relative;
    outline: #24AD9C solid 2px;
    border-radius: 50%;
    margin: 0 0.35rem;
}

.shop-item-template.disabled {
    cursor: pointer;
}

.item-img {
    width: 55px;
    height: 55px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transform: scale(1.1);
    transform-origin: center;
    cursor: pointer;
}

.item-count {
    position: absolute;
    width: 2rem;
    height: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #24AD9C;
    border-radius: 5px;
    margin-top: -3.4rem;
    font-size: 1rem;
    font-weight: bold;
    color: black;
}

.item-price {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 3rem;
    height: 30%;
    background-color: #24AD9C;
    border-radius: 5px;
    margin-top: 3rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.item-price:hover {
    background-color: #f7a808 !important;
}

.item-price .price {
    font-size: 0.9rem;
}

.coin-icon {
    width: 30%;
    height: 70%;
    background-image: url("../assets/store/coin.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.item-valuation.bad {
    width: 30%;
    height: 70%;
    background-image: url("../assets/store/bed.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.item-valuation.nice {
    width: 30%;
    height: 70%;
    background-image: url("../assets/store/nice.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.game-move {
    margin: 2% 0 2% 8%;
    display: flex;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffe0;
    font-size: 1rem;
}

.game-shop {
    margin: 2% 1% 0;
    display: flex;
    height: 70px;
}

.coin-income {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 25%;
    padding-bottom: 0.5rem;
}

.coin-img {
    background-image: url("../assets/store/coin.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
}

.coin-counter {
    font-size: 1.3rem;
}

.coin-income-counter {
    font-size: 0.8rem;
}

.container-info-modal-abilities {
    position: absolute;
    width: 95%;
    max-width: 400px;
    height: max-content;
    background-color: rgba(6, 70, 66, 1);
    border: 2px solid #24AD9C;
    border-radius: 18px;
    display: flex;
    justify-content: space-around;
    transition: opacity 0.3s ease;
    flex-direction: column;
    align-items: center;
    z-index: 500;
    bottom: 60%;
    left: 50%;
    transform: translate(-50%, -40px);
}

.game-container-abilities .container-info-modal-abilities {
    width: 100%;
    max-width: 430px;
    transform: translate(-50%, -45px);
}

.container-info-modal-items {
    position: absolute;
    width: max-content;
    background-color: #0A6861;
    border: 2px solid #24AD9C;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    font-size: 24px;
    transform: translateX(-50%);
    bottom: 135%;
    left: 50%;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.all-player-container .my .container-info-modal-items {
    transform: translateX(-85%) scaleX(-1);
    bottom: 135%;
    left: 86%;
    max-width: 200px;
}

.all-player-container .opponent .container-info-modal-items {
    transform: translateX(-85%);
    bottom: 135%;
    left: 86%;
    max-width: 200px;
}

.all-player-container .info-text-item {
    font-size: 1rem;
    max-width: 200px;
}

.abilities-template.selected::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #24AD9C;
    border-bottom: 0;
}

.shop-items .container-info-modal-items::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #24AD9C;
    border-bottom: 0;
}

.game-container-abilities .abilities-template.selected::before {
    bottom: 100%;
    z-index: 500;
}



.stat-hero-template.selected::before {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #24AD9C;
    border-bottom: 0;
}



.info-text-ability, .info-mana-cost, .info-cooldown, .info-text-item {
    text-align: center;
    font-size: 1.2rem;
}

.choice-hero-container .info-text-ability span {
    font-size: 0.9rem
}

.choice-hero-container .info-text-ability div span {
    text-align: left;
    font-size: 0.8rem
}

.info-stat-lobby {
    display: flex;
    align-items: center;
    margin: 1rem 0.2rem 0;
    letter-spacing: 0.5px;
}

.info-text-ability {
    width: 90%;
    margin: 0 0.5rem 0.5rem;
}

.info-text-item {
    margin: 0.3rem 1rem;
}

.info-text-ability p {
    margin: 1rem 0 ;
}

.abilities-hero .info-text-ability img {
    width: 15%;
    margin-right: 0.5rem;
    border-radius: 50%;
    outline: #24AD9C 2px solid;
    outline-offset: 2px;
}

.info-stak {
    display: flex;
    align-items: center;
}

.info-stak p {
    text-align: justify;
    font-size: 0.8rem;
    margin: 0;
}

.info-mana-cooldown-container {
    display: flex;
    width: 60%;
    justify-content: space-around;
    margin: 0 0 0.5rem;
    padding-top: 0.1rem;
    border-top: 1px solid #24AD9C;
    border-radius: 12px;
}

.info-mana-cooldown-container img {
    width: 30px;
    margin: 0 0.3rem;
}

.info-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.5rem 0;
    width: 100%;
}

.info-stat #img-stat {
    width: 2rem;
    outline-offset: 2px;
    margin: 0 0.3rem 0 1rem;
}

.info-stat #info-stat {
    font-size: 0.9rem;
    width: 100%;
}

.info-title-item {
    font-size: 1rem;
    margin: 0.2rem 0.4rem 0;
}

.info-mana-cooldown-container div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0 0;
}

#health-match-three, #mana-match-three {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-size: 0.6rem;
    transition: transform 0.5s ease-out;
    transform-origin: left;
    width: 100%;
    z-index: 1;
}

#health-point-match-three, #mana-point-match-three, #health-point-match-three, #mana-point-match-three {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 1;
    font-size: 1rem;
}

#health-buffer-match-three, #mana-buffer-match-three, #health-buffer-match-three, #mana-buffer-match-three {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 98%;
    background-color: rgba(74, 222, 128, 0.7);
    transform: translateX(0%);
    transition: transform 0.5s ease-out;
    transform-origin: left;
    z-index: -1;
    border-radius: 10px;
}

.health-mana-container {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: flex-end;
    transform: scaleX(1);
    width: 100%;
    margin-left: 5rem;
}

.container-bar {
    position: relative;
    top: 84%;
    left: -1%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 0.5rem;

}

.player-two-container .container-bar .stat-label {
    transform: scaleX(-1);
}

.player-two-container .container-bar #health-point-match-three {
    transform: scaleX(-1);
}

.stat-label {
    font-size: 1rem;
    color: #2b2b2b;
    font-weight: bold;
    margin: 5px;
}

.health-mana-container .stat-label {
    transform: scaleX(-1)
}

.name-hero {
    width: 60%;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    border-right: 3px solid orange;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}

.hero-img {
    width: 100%;
    height: 100px;
    background-image: url("../assets/hero/warrior.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #00000052;
}

.choice-hero-container-template, .choice-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

.choice-hero-container {
    width: 100%;
    margin: 0.5rem 0;
}

.choice-hero-container img {
    filter: grayscale(1);
    padding: 0.5rem 0.85rem;
}

.hero-name {
    position: absolute;
    margin: 0 0.5rem;
    font-size: 1rem;
    z-index: 1;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: -2px 2px 3px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
}


.choice-hero-template {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-end;
    background: #0A6861;
    width: 90%;
    height: 80px;
    border-radius: 16px;
    margin: 0.5rem;
    cursor: pointer;
    overflow: hidden;
    outline: 1px solid #24AD9C;
    outline-offset: 1px;
}

.choice-hero .selected {
    transform: scale(1.02);
    transition: transform 0.3s ease-out;
    outline: 3px solid orange;
    box-shadow:
            0 0 0 transparent,
            0 0 0 transparent,
            0 0 10px 5px #24AD9C;
}

.choice-hero {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 97%;
    justify-items: center;
}

.character-hero {
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 500px;
    outline: 1px solid #24AD9C;
    outline-offset: 2px;
    border-radius: 16px;
    background: rgba(6, 70, 66, 0.7);
    margin-top: 0.2rem;
}

.info-ability-stats-template, .main.stats.container, .main.item.container {
    padding: 0.3rem 1rem;
    background-color: rgb(3 57 53 / 80%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    outline: #24AD9C solid 2px;
    margin: 0 0 2rem;
    position: relative;
    overflow: hidden;
}

.main.stats.container, .main.item.container {
    gap: 1.5rem;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}

.info-ability-stats-template::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 100%;
    height: 100%;
    background-image: var(--hero-image, url("../assets/hero/Naruto.png"));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    scale: 0.9;
    z-index: -1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.info-ability-stats-template .name-hero {
    text-align: left;
    border-right: 3px solid #24AD9C;
    margin-left: 0;
}

.ability-stats, .ability-template {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

#img-ability {
    width: 4.5rem;
    border-radius: 12px;
}

.info-ability-container {
    display: flex;
    align-items: center;
}

#info-ability {
    margin: 0 0.1rem 0 0.5rem;
    padding: 0;
    text-align: left;
    font-size: 1rem;
}

.info-stat-container {
    display: flex;
    flex-direction: column;
}

.stat-container {
    display: flex;
    align-items: center;
    margin: 0.2rem 0.8rem;
}

#img-stat, #img-item {
    width: 1.4rem;
    border: none;
    border-radius: 50%;
    outline: #24AD9C solid 2px;
    outline-offset: 4px;
}

#info-stat, #info-item, #title-stat, #title-item {
    font-size: 1rem;
    margin: 0;
    text-align: left;
}

.characters-info-modal #info-stat, .characters-info-modal #title-stat, .characters-info-modal #info-ability {
    font-size: 1rem;
}

#title-stat, #title-item {
    margin-bottom: 0;
}

.stat-template, .item-template {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.stat-template, .item-template {
    margin: 0;
    width: 100%;
    height: 100%;
    outline: 1px solid #24AD9C;
    outline-offset: 4px;
    border-radius: 6px;
}

.stat-template #img-stat, .item-template #img-item {
    width: 3rem;
    outline-offset: 0;
    outline: none;
}

.stat-template #info-stat, .stat-template #info-item {
    font-size: 0.9rem;
    margin: 0;
}

.stat-container #title-stat, .info-stat #title-stat {
    width: max-content;
    margin-bottom: 0;
}

.stat-container #info-stat {
    margin: 0;
}

.name-health-mana-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.health-hero, .mana-hero {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
}

.health-mana-container {
    width: 50%;
    margin:0 0.5rem 0 0.5rem;;
}

.health, .mana {
    max-width: 113px;
    text-overflow: ellipsis;
    /*overflow: hidden;*/
}

.health-hero {
    margin-top: 0.5rem;
}

.mana-hero {
    margin-bottom: 0.5rem;
}

.description-hero {
    display: flex;
    align-items: center;
    width: 90%;
    font-size: 1rem;
    margin: 0.5rem 1rem 1rem;
}

.abilities-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.abilities-hero img {
    padding: 0;
    border-radius:  12px;
    filter: grayscale(0);
}

.abilities-hero .abilities-template::after {
    outline: none;
}

.abilities-hero .abilities-template .abilities:hover {
    box-shadow:
            0 0 0 transparent,
            0 0 0 transparent,
            0 0 10px 10px #24AD9C;
}

.abilities-hero .cooldown {
    background: none;
}

.choice-hero-container .selected img {
    filter: grayscale(0);
}

.health-bar, .mana-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 200px;
    height: 15px;
    border-radius: 10px;
    background: rgba(125, 125, 125, 0.5);
    overflow: hidden;
    position: relative;
    margin-left: 4%;
    outline: 2px solid #0A6861;
    /*outline-offset: 1px;*/
}

.health-bar-fill {
    height: 100%;
    background: #FF881B;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.mana-bar-fill {
    height: 100%;
    background: lightseagreen;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.change-text-animation {
    position: absolute;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2000;
}

.symbolImg-1, .symbolImg-2, .symbolImg-3, .symbolImg-4, .symbolImg-5 {
    width: 75%;
    height: 75%;
    pointer-events: none;
}

.board-element {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    border-radius: 25%;
    background: #0A6861;
    text-align: center;;
}

.game-container-abilities {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    position: relative;
    width: 80vmin;
    max-width: 430px;
    /*z-index: 101;*/
    transform: translate(30%, 10%);
    top: 10px;
    left: 0;
    cursor: auto;
}

.game-container-abilities:hover {
    outline: none;
}

.abilities {
    display: block;
    width: 4rem;
    height: 4rem;
    border-radius: 12px;
}

.abilities:hover {
    outline: none;
}

.abilities-template {
    position: relative;
    width: max-content;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0.5rem;
    outline: 3px solid #06534e;
    outline-offset: 3px;
    border-radius: 12px;
    cursor: pointer;
    transition: outline 0.2s ease-in-out;
}

.abilities-template:hover {
    outline: 3px solid #24AD9C;
    outline-offset: 3px;
}

.player-one,
.player-two,
.hero {
    outline: 3px solid #0A6861;
    border-radius: 8px;
    cursor: pointer;
}

.player-one:hover,
.player-two:hover,
.hero:hover {
    outline: 3px solid #24AD9C;
}

.player-one:has(.game-container-abilities:hover),
.player-two:has(.game-container-abilities:hover),
.hero:has(.game-container-abilities:hover),
.player-one:has(.abilities-template:hover),
.player-two:has(.abilities-template:hover),
.hero:has(.abilities-template:hover)
{
    outline: 3px solid #0A6861;
}

.highlight {
    box-shadow: 0 0 20px 15px orange;
}

.game-container-abilities .abilities {
    max-height: 4rem;
}

.title-ability {
    margin: 0.5rem 0;
}

.container-info-modal-abilities .title-ability {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    text-align: center;
}

.title-item {
    margin: 0;
}

.abilities-template .abilities img {
    cursor: pointer
}

.abilities-template.disabled .abilities {
    filter: grayscale(1);
}

.abilities-template .abilities {
    transition: box-shadow 0.1s ease-in-out;
}

.abilities-template.active .abilities {
    outline: 4px solid orange;
    outline-offset: 8px;
    box-shadow: 0 0 0 transparent, 0 0 0 transparent, 0 15px 15px 8px #24AD9C;
}

.abilities-template.disabled.active .abilities {
    outline: none;
    box-shadow: none;
}

.abilities-template.disabled .abilities:hover {
    box-shadow: none;
}

.mana-cost {
    position: absolute;
    top: 107%;
    left: 50%;
    z-index: 2;
    color: #ffffff;
    font-weight: bold;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: #0A6861;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0);
    outline: none;
}

.mana-cost div {
    width: 15px;
    height: 15px;
    border-radius: 5px;
    margin: 0 2px;
}

.cooldown {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 9px;
}

.end-turn-button, .exchange-mana-button {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    outline: 2px solid #0A6861;
    background: none;
    color: #0A6861;
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0.5rem 1rem;
    position: relative;
    z-index: 1000;
    transition: 0.3s;
}

.exchange-mana-button {
    width: 95%;
}

.end-turn-button:hover, .exchange-mana-button:hover {
    outline: 2px solid #0A6861;
    font-size: 1rem;
    outline-offset: 2px;
}

.end-turn-button.disabled, .exchange-mana-button:disabled {
    cursor: not-allowed;
    outline: 2px solid #666666;
    color: #666666;
    pointer-events: none;
}

.end-turn-button.disabled:hover, .exchange-mana-button:disabled:hover {
    outline: 2px solid #666666;
    font-size: 0.95rem;
    outline-offset: 0;
}

.modal-end-turn, .modal-exchange-mana {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 1;
    margin-top: 4rem;
    left: -1%;
}

.modal-mana-containers {
    max-width: 525px;
    min-width: 390px;
    width: 50%;
    background: #0A6861;
    outline: solid 3px #24AD9C;
    border-radius: 12px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.modal-end-turn .mana-container, .modal-exchange-mana .mana-container {
    margin: 10px;
}

.modal-exchange-mana .mana-container.exchange {
    border: 2px solid #24AD9C;
    border-radius: 12px;
    padding: 15px;
}

.modal-exchange-mana .mana-container.exchange .mana {
    cursor: pointer;
}

/* По умолчанию иконки выбора маны приглушены */
.modal-exchange-mana .mana-container.exchange .mana.icon {
    filter: grayscale(0.4) brightness(1);
    opacity: 0.8;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

/* Выбранная мана подсвечивается обычным цветом */
.modal-exchange-mana .mana-container.exchange .mana.icon.choice {
    filter: none;
    opacity: 1;
    transform: scale(1.2);
}

.modal-end-turn-button, .modal-exchange-mana-button {
    position: relative;
    width: 94%;
    max-width: 500px;
    height: 40px;
    margin: 0 0 3%;
    border-radius: 6px;
    font-size: 1rem;
    border: none;
    color: white;
    outline: 2px solid #24AD9C;
    background: #0A6861;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    z-index: 1000;
}

.modal-exchange-mana-button {
    margin-top: 2rem;
}

.modal-end-turn-button:hover, .modal-exchange-mana-button:hover {
    background: rgba(13, 131, 122, 0.75);
}

.modal-end-turn-button.disabled, .modal-exchange-mana-button.disabled {
    cursor: not-allowed;
    background: rgba(13, 131, 122, 0.5);
    filter: grayscale(1);
    pointer-events: none;
    transition: background 0.3s ease, transform 0.3s ease, filter 0.3s ease, outline 0.3s ease;
}

.modal-end-turn-button.disabled:hover, .modal-exchange-mana-button.disabled:hover {
    outline: 2px solid #666666;
    font-size: 0.95rem;
    outline-offset: 0;
}

.mana-usage-container {
    display: flex;
    align-items: center;
}

.btn {
    display: flex;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    width: 0;
    height: 100%;
}

.left-mana-container .btn {
    margin: 0 0.8rem 0;
}

.right-mana-container .btn {
    margin: 0 0.8rem 0;
}

.spell-container {
    width: 100%;
}

.spell-container .abilities-template {
    pointer-events: none;
}

.useAbility-container {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    margin: 0.8rem 0;
}

.need-mana-container {
    display: flex;
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem;
}

.modal-exchange-mana .need-mana-container {
    margin: 0.5rem 0;
}

#choose-random-mana {
    margin: 0 0.3rem;
}

.special-stack-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: none;
    top: 50%;
    left: -5%;
    z-index: 500;
}

.mana-containers {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    width: 50%;
    height: max-content;
    top: 0;
    left: 0;
    transform: translate(50%, 5%);
    z-index: 1;
    margin-bottom: 2rem;
}

.mana-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
}

.mana-container .mana.icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 10px;
}

.mana.icon.green {
    background: #2E8B57;
    outline: #3CB371 1px solid;
}
.mana.icon.red {
    background: #B22222;
    outline: #FF6347 1px solid;
}
.mana.icon.blue {
    background: #4169E1;
    outline: #1E90FF 1px solid;
}
.mana.icon.white {
    background: #D3D3D3;
    outline: #FFFFFF 1px solid;
}
.mana.icon.black {
    background: #000000;
    outline: #666666 1px solid;
}

.mana.counter {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
    width: 30px;
}

.modal-mana-containers .mana.counter {
    width: 20px;
}

.left-mana-container, .right-mana-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.left-mana-container {
    align-items: flex-end;
}
.right-mana-container {
    align-items: flex-start;
}

.active-stat {
    width: 30px;
    display: flex;
    position: absolute;
    top: 5%;
    left: 110%;
}

.active-stat img {
    width: 100%;
    height: 100%;
    margin: 0 0.3rem;
    border-radius: 3px;
}

.player-two-container .active-stat img {
    transform: scaleX(-1);
}

.active-stat .abilities-template {
    margin: 0 0.3rem;
    outline: none;
    justify-content: flex-end;
}

.active-stat .abilities-template .abilities {
    width: 30px;
    border-radius: 3px;
}

.player-two-container .abilities {
    transform: scaleX(-1);
    border-radius: 3px;
    margin: 0 0.3rem;
}

.player-one-container .activate-ability {
    width: 64px;
    height: 64px;
    margin: 0.5rem;
    background: #404040;
    outline: solid 4px #2b2b2b;
    border-radius: 8px;
    outline-offset: 1px;
    pointer-events: auto;
    cursor: pointer;
}

.special-stack-counter {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    text-align: center;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    background: rgba(43, 43, 43, 0.30);
    text-shadow: 3px 3px black;
    border-radius: 50%;
    cursor: pointer;
}

.special-img {
    background-image: url("./assets/images/opponent.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
}

.shield-container .special-stack-counter {
    width: 130%;
    height: 130%;
    font-size: 1.2rem;
}

.shield-container .special-img {
    width: 145%;
    height: 145%;
}


.player-one .special-stack-container .special-stack-counter {
    transform: scaleX(-1);

}


.pop-in {
    display: flex;
    animation: scalePop 0.3s ease forwards;
}

.pop-out {
    display: flex;
    animation: scaleFadeOut 0.3s ease forwards;
}

@keyframes scalePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleFadeOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.Empty {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1280px) {
    .button-settings, .button-hint, .button-characters {
        min-width: 3rem;
        min-height: 3rem;
        border-radius: 0.8rem;
        font-size: 2rem;
    }

    .player-one, .player-two {
        margin: 0;
    }

    .my.shield-container {
        left: 44%;
    }

    .opponent.shield-container {
        right: 44%;
    }

    .nickname-container {
        /*transform: translate(-30%, -120%)*/
    }

    .health-mana-container .reverse {
        transform: scaleX(-1) translate(30%, -120%);
    }

    .stat-label {
        font-size: 1rem;
    }
    .health-mana-container {
        margin-left: 4rem;
    }
}

@media (max-width: 840px) and (max-height: 1285px) and (min-resolution: 1dppx) {
    .button-back img, .button-settings img {
        width: 1rem;
    }

    .button-emoji img {
        width: 2rem;
    }

    .abilities-hero {
        margin-bottom: 0;
    }

    .character-hero .abilities-template {
        /*margin: 0 0.5rem 1.5rem;*/
    }

    .mana-cost {
        border-radius: 6px;
        padding: 0 0.7rem;
    }

    .abilities-hero .abilities {
        /*width: 5rem;*/
        /*height: 5rem;*/
    }

    .timer, .turn-message {
        font-size: 1rem;
    }

    .abilities-template.selected::before {
        bottom: 120%;
    }

    .rules-body, .cards-body {
        border-radius: 28px;
    }

    .rules-body, .cards-body {
        border-radius: 28px;
    }

    .modal-body.emoji {
        width: 60vmin;
        min-width: 300px;
    }

    .emoji-list {
        gap: 15px;
    }

    .emoji-sender img {
        /*width: 2rem;*/
        padding: 0.8rem;
    }

    .message-list div div {
        font-size: 1rem;
        padding: 0.3rem 1rem;
    }

    .message-body.opponent {
        transform: translate(-60%, 80%);
    }

    .message-body.my {
        transform: translate(-70%, -50%);
    }

    .message-list div div {
        margin: 1rem 0;
    }

    .message-list {
        justify-content: space-around;
        gap: 0;
    }

    .message-body.my span, .message-body.opponent span {
        font-size: 0.9rem;
    }

    .message-body.my img, .message-body.opponent img {
        width: 2rem;
    }

    .timer-container-prev,
    .timer-container-next {
        width: 30%;
        height: 30px;
    }

    .my.shield-container {
        left: 42%;
    }

    .opponent.shield-container {
        right: 42%;
    }

    .lobby-name-container img {
        width: 4rem;
        height: 4rem;
    }

    .large-stat {
        width: 55.5%;
    }

    .lobby-name-container img.crown {
        width: 1.3rem;
        height: 1.3rem;
        transform: translate(-80%, -225%);
    }

    .back-arrow {
        width: 8px;
        height: 8px;
        border-left: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;
        margin-bottom: 0.1rem;
    }

    .info-profile {
        width: 55.5%;
    }

    .turn-length-select {
        font-size: 2cqw;
    }

    .turn-selector .label {
        font-size: 3cqw;
    }

    .result-rating.button-choice p {
        width: 50px
    }

    .modal-body .tiny-stat {
        margin: 0;
    }

    .modal-body .large-stat {
        margin: 0 0 0 0.5rem;
    }
}

@media (max-width: 700px) {
    .button-back, .button-hint, .button-cards, .button-emoji, .button-settings, .button-characters {
        min-width: 2.5rem;
        min-height: 2.5rem;
        border-radius: 0.6rem;
        font-size: 1.5rem;
    }

    .button-back img, .button-settings img {
        width: 1rem;
    }

    .nickname-container,
    .nickname-container.reverse {
        width: 110px;
    }

    .nickname-container {
        transform: translate(-30%, -120%)
    }

    .nickname-container.reverse {
        transform:scaleX(-1) translate(30%, -120%);
    }

    .nickname {
        font-size: 0.6rem;
    }

    .container-player-profile-info .large-stat {
        width: 58%;
    }

    .contain-profile-stats-in-positions .large-stat {
        margin: 0.5rem 0 1rem 1rem;
        width: 60%;
    }

    .contain-profile-stats-in-positions .large-stat .main-stat-title-container {
        width: 70%;
    }

    .result-rating.button-choice p {
        width: 2rem;
    }

    .container-loading-reconnect,
    .awaiting-lobby-container {
        width: 90vw;
    }

    .lobby-list {
        margin-bottom: 1.5rem;
        transform: scale(1);
    }

    .turn-length-select {
        font-size: 4cqw;
        width: 120%;
    }

    .turn-selector .label {
        font-size: 1.3rem;
    }

    .loading-scene .loading .loading-text {
        padding: 0.5em 4rem;
    }

    .info-profile {
        width: 54%;
    }

    .container-player-profile-info .stat-title {
        font-size: 0.8rem;
    }

    .player-position-in-world p {
        font-size: 1.1rem;
    }

    .main-container-game-result {
        width: 95vmin;
    }

    .container-game-result .lobby-text {
        font-size: 2rem;
    }

    .container-game-result .result-score,
    .result-rating {
        font-size: 1.5rem;
    }

    .result-rating.button-choice .leave {
        width: 125px;
    }

    .result-rating.button-choice .restart {
        width: 125px;
    }

    .result-rating.button-choice {
        margin: 0;
    }

    .container-game-result .game-result-lose .lobby-text {
        font-size: 2rem;
    }

    .container-game-result .lobby-text.dontGiveUp {
        font-size: 1rem;
    }

    .game-result-lose .result-score {
        margin: 0;
    }

    .modal {
        left: 0;
    }

    .modal-body {
        width: 90vmin;
        min-width: 350px;
        max-width: 400px;
        top: 10%;
    }

    .stat-title {
        font-size: 0.75rem;
    }

    .contain-profile-stats-in-positions .stat-value {
        font-size: 0.9rem;
        margin-left: 1rem;
    }

    .position-details-info {
        font-size: 1.1rem;
    }

    .player-template {
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .player-template::-webkit-scrollbar {
        display: none;
    }

}

@media (max-width: 600px) {
    .stat-hero-template {
        outline: 3px solid #24AD9C;
    }

    .coin-counter {
        font-size: 1rem;
    }

    .nickname-container {
        transform: translate(-20%, -120%);
    }

    .nickname-container.reverse {
        transform: scaleX(-1) translate(20%, -120%);
    }

    .coin-income-counter {
        margin-left: 0.4rem;
    }

    .coin-icon {
        height: 50%;
    }

    .coin-income {
        padding-bottom: 0;
    }

    .item-valuation.nice {
        height: 50%;
    }

    .item-count {
        width: 1.5rem;
        margin-top: -3rem;
    }

    .shop-item-template {
        margin: 0.2rem 0.35rem 0;
    }

    .container-modal div {
        font-size: 0.6rem;
        padding: 0.8rem;
    }

    .special-stack-container {
        top: 5%;
    }

    .item-price {
        width: 2.5rem;
        height: 30%;
        margin-top: 2.5rem;
    }

    .item-price .price {
        font-size: 0.8rem;
    }

    .game-shop {
        height: 60px;
        margin: 0 1% 1%;
    }

    .hourglass-container {
        transform: scale(0.3);
    }

    .game-container {
        padding: 0.6rem;
        border-radius: 24px;
    }

    .game-wrap {
        padding: 0.5rem;
        border-radius: 16px;
        gap: 0.6rem
    }

    .game-move {
        font-size: 12px;
    }

    .board-element {
        font-size: 1.2rem;
    }

    .Empty {
        margin-top: 1.1rem;
    }

    .healths-container {
        margin-top: 0;
    }

    #health-point-match-three, #mana-point-match-three, #opponent-point-match-three, #mana-point-match-three {
        font-size: 0.8rem;
    }

    .player-one, .player-two {
        height: 20vh;
        margin-top: -1rem;
    }

    .game-container-abilities {
        border-radius: 0 0 8px 8px;
        margin-top: 0.2rem;
    }

    .shield-container .special-stack-counter {
        font-size: 1rem;
    }

    .mana-cost {
        padding: 0 0.8rem;
        font-size: 0.8rem;
    }

    .special-stack-container .special-stack-counter {
        font-size: 1rem;
    }

    button img {
        width: 1rem;
    }

    .tile-container {
        border-radius: 8px;
    }

    .abilities-template::after {
        outline: 5px solid #06534e;
    }

    .abilities-template.active .abilities {
        outline-offset: 4px;
        outline: 4px solid #FF881B;
    }

    .cooldown {
        font-size: 2rem;
    }

    .contain-game {
        margin-top: -0.5rem;
    }

    .bar-container {
        margin-top: 1.5rem;
    }

    .my.shield-container {
        left: 39%;
    }

    .opponent.shield-container {
        right: 39%;
    }

    .shield-container {
        align-items: center;
    }

    .health-mana-container .stat-label {
        transform: scaleX(-1)
    }

    .container-bar {
        width: 90%;
    }

    .health-bar, .mana-bar {
        width: 100%;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.2);
        overflow: hidden;
        position: relative;
        margin-left: 4%;
    }

    .health-bar-fill {
        height: 100%;
        background: #FF881B;
        border-radius: 10px;
        transition: width 0.5s ease-in-out;
    }

    .mana-bar-fill {
        height: 100%;
        background: lightseagreen;
        border-radius: 10px;
        transition: width 0.5s ease-in-out;
    }

    .stat-label {
        font-size: 0.8rem;
        color: white;
        font-weight: bold;
        margin: 0.1rem 0;
    }
}

@media (max-width: 430px) and (max-height: 930px) and (min-resolution: 1dppx) {
    .nickname-container {
        transform: translate(-20%, -120%);
    }

    .nickname-container.reverse {
        transform: scaleX(-1) translate(20%, -120%)
    }

    .player-health-mana-container {
        margin-right: 2.5rem;
    }

    .item-img {
        width: 35px;
        height: 35px;
    }

    .item-count {
        font-size: 0.7rem;
        height: 0.7rem;
        margin-top: -2.5rem;
    }

    .coin-img {
        width: 30px;
        height: 30px;
    }

    .shop-items {
        align-items: center;
    }

    .coin-income {
        padding-bottom: 0;
        padding-top: 0.5rem;
    }

    .game-shop {
        height: 55px;
        margin: -2% 1% 2%;
    }

    .info-text-ability, .info-mana-cost, .info-cooldown, .info-text-item {
        font-size: 0.8rem;
    }

    .stat-hero-template {
        width: 30px;
        height: 30px;
    }

    .abilities {
        height: 3rem;
    }

    #img-ability {
        width: 3.5rem;
    }

    .health-mana-container {
        width: 50%;
        margin: 0 0.5rem 0 0.5rem;
    }

    .stat-container {
        margin: 0.2rem 0 0 0.5rem;
    }

    .special-stack-container {
        top: 35%
    }

    .all-player-container .info-text-item {
        font-size: 0.7rem;
    }

    .lobby-oppened-list, .lobby-in-game-list {
        margin-top: -2%;
    }

    .loading-text, .lobby-text {
        font-size: 1.5em;
    }

    .turn-selector .label {
        font-size: 1em;
    }

    .lobby-type {
        font-size: 1em;
    }

    .lobby {
        transform: scale(0.5);
        left: -3em;
        width: 100%;
    }

    .joining-player {
        top: 25%;
        width: 80%;
    }

    .joining-player-text {
        font-size: 8cqw;
    }

    .joining-player-buttons {
        flex-direction: column-reverse;
    }

    .button-disapprove, .button-approve {
        font-size: 8cqw;
        display: flex;
        align-items: center;
        margin: 5% auto;
        width: 70%;
        justify-content: center;
    }

    .timer-container-prev,
    .timer-container-next {
        height: 25px;
        width: 35%;
        top: 0.5rem;
    }

    .loading-text, .lobby-text {
        font-size: 1.5em;
    }

    .choice-hero-container {
        width: 100%;
    }

    .choice-hero-container img {
        width: 55%;
        border-radius: 10px;
    }

    .turn-selector .label {
        font-size: 1em;
    }

    .lobby-type {
        font-size: 1em;
    }

    .turn-message {
        font-size: 0.7rem;
    }

    .timer {
        font-size: 0.7rem;
    }

    .timer-container {
        top: -30%;
    }

    header {
        margin: 10px;
    }

    .page-name {
        font-size: 1.2rem;
    }

    #health-point-match-three, #mana-point-match-three, #health-point-match-three, #mana-point-match-three {
        font-size: 0.9rem;
    }
}

@media (min-width: 701px)and (max-width: 839px) {
    .nickname {
        font-size: 1rem;
    }

    .Empty {
        margin-top: 3rem;
    }
}

@media (max-width: 376px) and (max-height: 813px) and (min-resolution: 1dppx) {
    .button-back, .button-hint, .button-cards, .button-emoji, .button-settings, .button-characters {
        min-width: 1.7rem;
        min-height: 1.7rem;
        border-radius: 0.4rem;
        font-size: 1rem;
    }

    .button-back img, .button-settings img {
        width: 1rem;
    }

    .button-emoji img {
        width: 1.3rem;
    }

    .emoji-sender img {
        padding: 0.5rem;
    }

    .emoji-list {
        gap: 10px;
    }

    .message-list div div {
        padding: 0.3rem 0.6rem;
    }

    .modal-body.emoji {
        padding: 1rem;
    }

    .rules-modal h3, .rules-modal h2, .rules-modal img {
        font-size: 1.3rem;
    }

    .rules-modal p {
        font-size: 1rem;
    }

    .nickname-container, .nickname-container.reverse {
        width: 100px;
    }

    .turn-message {
        font-size: 0.5rem;
    }

    .stat-hero-template {
        width: 25px;
        height: 25px;
    }

    .item-img {
        width: 35px;
        height: 35px;
    }

    .game-shop {
        height: 45px;
    }

    .coin-img {
        width: 35px;
        height: 35px;
    }

    .game-container-abilities {
        width: 85vmin;
    }

    .game-wrap {
        width: 85vmin;
        height: 85vmin;
        gap: 0.3rem;
    }

    .shop-items {
        align-items: center;
    }

    .item-price {
        width: 2rem;
        margin-top: 2rem;
    }

    .item-price .price {
        font-size: 0.6rem;
    }

    .item-count {
        margin-top: -2rem;
        height: 0.6rem;
        font-size: 0.6rem;
    }

    .abilities {
        height: 3rem;
    }

    .item-valuation.nice, .item-valuation.bad {
        height: 70%;
    }

    .player-health-mana-container {
        margin-right: 2rem;
    }

    #img-ability {
        width: 3rem;
    }

    .name-hero {
        font-size: 1.5rem;
    }

    .health-hero, .mana-hero {
        font-size: 1rem;
    }

    #info-ability {
        font-size: 0.8rem;
    }

    #img-stat, #img-item {
        width: 1rem;
    }

    #info-stat, #info-item, #title-stat, #title-item {
        font-size: 0.6rem;
    }

    .stat-template #img-stat, .item-template #img-item {
        width: 2rem;
    }

    .stat-template #info-stat, .stat-template #info-item {
        font-size: 0.6rem;
    }
}

@media (max-width: 321px) and (max-height: 568px) and (min-resolution: 1dppx) {
    header {
        margin: 5px 0;
    }

    .turn-selector .label {
        font-size: 1em;
    }

    .lobby-type {
        font-size: 1em;
    }

    .timer-container-prev, .timer-container-next {
        width: 35%;
        height: 15px;
        font-size: 4px;
    }

    .turn-message {
        font-size: 10px;
    }

    .timer {
        font-size: 9px;
    }

    .btn-sound, .btn-concede {
        height: 35px;
    }

    .btn-sound {
        margin: -1rem 3rem 1rem;
    }

    .modal-body.emoji {
        width: 90vmin;
        min-width: 250px;
        top: 10%;
        padding: 1rem 0.5rem 0.5rem 0.5rem;
        border-radius: 18px;
    }

    .title-await {
        font-size: 0.9rem;
    }

    .value {
        margin: 0 1rem 0 0;
    }

    .emoji-list {
        gap: 5px;
    }

    .message-list div div {
        font-size: 0.9rem;
        padding: 0.2rem 0.7rem;
    }

    .message-list {
        justify-content: space-around;
        gap: 0;
    }

    .rules-modal img {
        border-radius: 12px;
    }

    .loading-scene .loading .loading-text {
        font-size: 1rem;
    }

    .page-name {
        font-size: 0.5rem;
    }

    .message-body.my, .message-body.opponent {
        padding: 0.3rem 0.3rem;
    }

    .message-body.my img, .message-body.opponent img {
        width: 1.5rem;
    }

    .message-body.my span, .message-body.opponent span {
        font-size: 0.7rem;
    }

    .message-body.my span, .message-body.opponent span {
        margin-left: 0.2rem;
        margin-right: 0.1rem;
    }

    .nickname-container {
        transform: translate(-20%, -120%);
    }

    .nickname-container.reverse {
        transform: scaleX(-1) translate(20%, -120%)
    }

    .nickname-container, .nickname-container.reverse {
        width: 70px;
    }

    .joining-player {
        top: 25%;
        width: 80%;
    }

    .joining-player-text {
        font-size: 1.3rem;
    }

    .joining-player-buttons {
        flex-direction: column-reverse;
    }

    .button-disapprove,
    .button-approve {
    }

    .lobby-player {
        border-radius: 28px;
    }

    .abilities {
        height: 2.5rem;
    }

    .lobby-name-container {
        margin: 0.5rem 0 0 0.5rem;
    }

    .lobby-name-container img {
        width: 3rem;
        height: 3rem;
    }

    .lobby-name-container img.crown {
        width: 1rem;
        height: 1rem;
        transform: translate(-80%, -225%);
    }

    .stat-contain {
        min-height: 25px;
    }

    .stat-title {
        font-size: 0.65rem;
    }

    .button-help-tiny {
        height: 1.5rem;
        width: 1.5rem;
        font-size: 1rem;
    }

    .lobby-container {
        align-items: flex-start;
        top: 0;
    }

    .button-lobby {
        margin-bottom: 1rem;
        font-size: 1rem;
        height: 2.5rem;
    }

    .abilities-hero .abilities {
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 8px;
    }

    .container-game-result .game-result-lose .lobby-text {
        font-size: 1rem;
    }

    .container-game-result .result-score, .result-rating {
        font-size: 1rem;
    }

    .container-game-result .lobby-text.dontGiveUp {
        font-size: 0.7rem;
        padding: 0;
    }

    .character-hero .abilities-template {
        margin: 0 0.5rem 1rem;
    }

    .container-game-result .lobby-text {
        font-size: 1.5rem;
    }

    .container-game-result .result-score, .result-rating {
        font-size: 1rem;
    }

    .result-rating.button-choice p {
        width: 1rem;
    }

    .button {
        font-size: 1rem;
        height: 35px;
    }

    .result-rating.button-choice {
        margin: 1.5rem;
    }

    .button.button-restart-lobby.button-view {
        margin: 0 auto 2rem;
        padding: 0 3rem;
    }

    .info-profile {
        font-size: 0.7rem;
    }

    .contain-profile-stats-in-positions .stat-value {
        font-size: 0.8rem;
    }

    .container-player-profile-info .stat-title {
        font-size: 0.75rem;
    }

    .container-player-profile-info .stat-contain {
        height: 25px;
    }

    .main-stat-title-container p {
        font-size: 0.9rem;
    }

    .lobby-container-stats {
        margin: 0.5rem 0 0 0.5rem;
    }

    .player-stats {
        margin: 0 0.5rem;
    }

    .position-details-info {
        font-size: 0.8rem;
    }

    .container-modal div {
        font-size: 0.8rem;
    }

    .modal-body {
        gap: 5px;
    }

    .lobby-container-stats button {
        font-size: 0.7rem;
    }

    .bet-selector img {
        width: 15px;
        margin: 0.2rem 0.5rem;
    }

    .bet-selector .label {
        font-size: 1rem;
    }

    .player-name-profile {
        font-size: 1.5rem;
        margin: 0 0 0.2rem -0.5rem;
    }

    .nickname {
        font-size: 0.5rem;
    }

    .modal-body .button-back-lobby .lobby-container-stats .back-arrow {
        margin-bottom: 0.14rem;
    }

    .back-arrow {
        width: 5px;
        height: 5px;
    }

    .ui-slider {
        height: 15px;
    }

    .modal .modal-field-label,
    .modal .modal-label {
        font-size: 0.8rem;
    }

    .player-coin img {
        height: 0.8rem;
        width: 0.8rem;
    }

    .coin-count {
        font-size: 0.8rem;
    }

    .select2-container--classic .select2-dropdown {
        margin-top: 0.6rem;
    }

    .select2-container--classic.select2-container--open .select2-dropdown {
        outline: #06534E 1px solid;
    }

    .select2-results__option {
        font-size: 0.9rem;
        padding: 4px 6px;
    }

    .select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
        font-size: 1rem;
    }

    .select2-container .select2-selection--single .select2-selection__rendered {
        font-size: 1rem;
        height: 30px;
    }

    .select2-container--classic .select2-selection--single .select2-selection__rendered {
        line-height: 30px;
    }

    .select2-container--classic .select2-selection--single .select2-selection__arrow {
        top: 3px;
    }

    .lobby-list .button {
        margin-top: 0;
        font-size: 1rem;
        padding: 0 20px;
    }

    .lobby-list {
        gap: 0;
    }

    .btn-concede {
        height: 35px;
        font-size: 0.9rem;
        margin: -0.5rem 3rem 1rem;
    }

    .modal-setting-selected {
        margin: 0 2rem 1.5rem;
    }

    .modal-body .player-name-profile {
        font-size: 2rem;
        align-items: flex-end;
    }

    .modal-body .lobby-name-container {
        margin: 1rem 0 0 1rem;
    }

    .modal-body {
        top: 10%;
        min-width: 300px;
    }

    .button.button-leave-lobby, .button.button-restart-lobby {
        scale: 1;
    }

    .result-rating.button-choice {
        margin: 0.5rem 0;
    }

    .result-rating.button-choice .restart, .result-rating.button-choice .leave {
        margin: 0 0.5rem;
        height: 35px;
        font-size: 1rem;
    }

    .main-container-game-result {
        border-radius: 24px;
    }

    .result-rating.button-choice p {
        width: 0;
    }

    .button.button-restart-lobby.button-view {
        margin: 0 auto 1rem;
    }

    #health-point-match-three, #mana-point-match-three, #opponent-point-match-three, #mana-point-match-three {
        font-size: 0.7rem;
    }

    #health-point-match-three, #mana-point-match-three, #health-point-match-three, #mana-point-match-three {
        font-size: 0.7rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .health-bar, .mana-bar {
        height: 10px;
    }

    .bar-container {
        margin-top: 0.7rem;
        align-items: center;
    }

    .contain-game {
        margin-top: 0;
    }

    .game-background-PvP {
        top: -4%;
    }

    .game-container-abilities .container-info-modal-abilities {
        transform: translate(-50%, -20px);
    }

    .special-stack-container .special-stack-counter {
        font-size: 0.7rem;
    }

    .info-title-item {
        font-size: 0.7rem;
    }

    .info-text-item {
        margin: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .container-info-modal-items {
        top: -170%;
    }

    #img-ability {
        width: 2.5rem;
    }

    #info-ability {
        font-size: 0.8rem;
    }

    .description-hero {
        font-size: 0.8rem;
    }

    #info-stat, #info-item, #title-stat, #title-item {
        font-size: 0.8rem;
    }

    .shield-container {
        height: 50%;
    }

    .shield-container .stat-hero-template {
        width: 20px;
        height: 20px;
    }

    .shield-container .special-img {
        width: 175%;
        height: 175%;
    }

    .shield-container .special-stack-counter {
        font-size: 0.8rem;
    }

    .stat-hero-template {
        margin: 0.35rem 0;
        width: 25px;
        height: 25px;
    }

    .container-info-modal-abilities .title-ability {
        font-size: 0.8rem;
        margin: 0.2rem 0;
    }

    .info-stat #img-stat {
        width: 1rem;
    }

    .info-stat #info-stat {
        font-size: 0.8rem;
    }

    .info-mana-cooldown-container img {
        width: 20px;
    }

    .mana-cost {
        padding: 0 0.5rem;
        font-size: 0.7rem;
        border-radius: 6px;
    }


    .game-wrap {
        padding: 0.4rem;
        border-radius: 16px;
        gap: 0.4rem
    }

    .cooldown {
        font-size: 1rem;
    }

    .game-container {
        padding: 0.5rem;
        border-radius: 1.4rem;
    }

    .game-container-abilities {
        margin-top: 0;
    }

    .abilities {
        outline: 4px solid #06534e;
    }

    .nickname-container {
        transform: translate(-20%, -120%);
    }

    .nickname-container.reverse {
        transform: scaleX(-1) translate(20%, -120%)
    }

    .nickname-container, .nickname-container.reverse {
        width: 70px;
    }

    .item-img {
        width: 25px;
        height: 25px;
    }

    .item-price {
        width: 1.7rem;
        height: 50%;
        margin-top: 1.5rem;
    }

    .item-price .price {
        font-size: 0.5rem;
    }

    .coin-counter {
        font-size: 0.8rem;
    }

    .coin-img {
        width: 20px;
        height: 20px;
    }

    .coin-income {
        padding-bottom: 0;
        padding-top: 0.4rem;
    }

    .shop-item-template {
        margin: 0 0.5rem;
    }

    .item-count {
        width: 1rem;
        margin-top: -1.4rem;
        font-size: 0.6rem;
        border-radius: 3px;
        height: 0.6rem;
    }

    .game-shop {
        height: 35px;
    }

    .health-armor.reverse {
        transform: translate(-50%, 50%) scaleX(-1);
    }
}

@media (max-width: 768px) {
    .tournament-info {
        flex-direction: column;
        gap: 5px;
        font-size: 1em;
    }
    
    .tournament-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .bracket-match {
        min-width: 150px;
    }
}

.hidden {
    display: none;
}

.hidden-op {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.b-hidden {
    opacity: 0;
}

.disabled {
    filter: grayscale(1);
    pointer-events: none;
}


