@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%;
}

.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;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    margin: 15px 0;
}

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;
}

.card-background {
    width: 100%;
    height: 50%;
    background: rgb(36, 173, 156);
}

header .shadow-block {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 50%;

    background: linear-gradient(180deg, rgb(0, 0, 0), rgb(255, 255, 255) 100%);
    opacity: 0.7;
    z-index: -1;
}

.left-buttons {
    display: flex;
    align-items: center;
}

.button-back, .button-hint, .button-cards, .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;

    /* Style for button hint */
    color: rgb(255, 255, 255);
    font-family: "Futura PT Book";
    font-size: 2rem;
    font-weight: 700;
}

.button-back img, .button-settings img {
    width: 1.5rem;
}

.button-cards img, .button-emoji img {
    width: 2rem;
}

.container-game-result .position-icon-result-game {
    width: 1.4rem;
    margin: 0;
    position: relative;
    top: 0.1rem;
}

header div {
    display: flex;
}

.page-name {
    display: flex;
    position: relative;
    width: 100%;
    justify-content: center;
    font-family: "Futura PT Book";
    font-size: 3cqw;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
}

.button.disabled {
    filter: grayscale(1);
    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;
}

.message-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
    gap: 20px;
}

.contain-message-emoji {
    width: 45%;
}

.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: 25%;
    left: 50%;
    background: #06534E;
    border-radius: 16px 16px 16px 3px;
    padding: 0.5rem 1rem;
    display: none;
    align-items: center;
    justify-content: center;
}


.message-body.my img, .message-body.opponent img {
    width: 3rem;
    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.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;
}

.menu-background {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 50%;
    min-width: 100%;
    min-height: 50%;
    background: linear-gradient(180deg, rgba(33, 166, 150, 1) 70%, rgb(12, 71, 71) 100%);
}

.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);
}

.tower-container {
    width: 100%;
}

.buildings {
    position: absolute;
    bottom: 100%;
    width: 13.5%;
    aspect-ratio: 0.69;
    margin-left: 10%;
    z-index: 2;
}

.buildings.reversed {
    right: 0;
    transform: scaleX(-1);
    z-index: 2;
    margin-right: 10%;
}

.tower {
    transition: opacity ease-in-out 0.4s;
    position: absolute;
    bottom: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
}

.tower-bottom {
    background-image: url("/assets/tower_bottom.png");
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tower-top {
    transition: opacity ease-in-out 0.4s;
    background-image: url("/assets/tower_top.png");
    background-position-y: top;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    width: 100%;
    height: 100%;
}

.tower.ruins .tower-top {
    background-image: url("/assets/tower_ruins.png");
    opacity: 1;
    transform: none !important;
    background-position: bottom;
}

.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/GoldTk.png);
    position: relative;
    height: 15px;
    display: block;
    background-size: contain;
    aspect-ratio: 1;
    background-repeat: no-repeat;
    margin: 0.1rem 0.4rem 0 0;
    border-radius: 50%;
    background-color: #ffffff;
    outline: solid 1px #ffffff;
    outline-offset: 1px;
}

.button-join-lobby.disabled{
    filter: grayscale(1);
    pointer-events: none;
}

.wall {
    transition: opacity ease-in-out 0.4s;
    position: absolute;
    bottom: 0;
    width: 34.5%;
    height: 39%;
    margin-left: 65%;
    overflow: hidden;
}

.wall-bottom {
    background-image: url("/assets/wall_bottom.png");
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    width: 100%;
    height: 100%;
}

.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: 10;
    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: 300px;
    max-width: 440px;
    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;
}

.wall-top {
    transition: transform ease-in-out 0.4s;
    background-image: url("/assets/wall_top.png");
    background-position-y: top;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    width: 100%;
    height: 100%;
}

.opponent-tower {
    position: absolute;
    top: 29%;
    right: 28px;
}

.opponent-wall {
    position: absolute;
    top: 42%;
    right: 160px;
    margin-left: 614px;
}

.resources-container {
    position: relative;
    width: 100%;
    height: 3px;
    z-index: 0;
}

.my-resources,
.opponent-resources {
    position: absolute;
    width: 12%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    row-gap: 6px;
}

.opponent-resources {
    right: 0;
}

.resource-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2.5;
    border-radius: 1.35rem;
    border: none;
    background: rgb(6, 83, 78);
}

.deck {
    position: absolute;
    left: 40%;
    width: 162px;
    height: 237px;
    display: none;
}

.deck-background {
    background-image: url("/assets/deck.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
}

.deck .played-cards,
.deck .opponent-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 3px;
}


.resource-container {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.start {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.middle {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
}

.end {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 70%;
    height: 100%;
}

.reverse-resource {
    display: flex;
    flex-direction: row-reverse;
}

.reverse-resource .end {
    display: flex;
    justify-content: flex-start;
}

.resource-icon {
    position: absolute;
    left: 5%;
    width: 30%;
    aspect-ratio: 2;
}

.resource-icon.reverse {
    left: auto;
    right: 5%;
    transform: scaleX(-1);
}

.income {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 16px;
}

.resource-name {
    margin-top: 8%;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.income-amount {
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    width: 100%;
    font-weight: 900;
}

.resource {
    display: flex;
    justify-content: space-evenly;
}

.resource-amount {
    font-size: 2cqw;
    font-weight: 900;
    padding: 0 25% 5% 0;
}

.resource-amount.reverse {
    right: auto;
    left: 8%;
    padding: 0 0 5% 25%;
}

.healths-container {
    position: absolute;
    width: 100%;
    height: 56px;
}

.health-armor {
    position: absolute;
    width: 60%;
    transform: translate(-50%, 50%);
    aspect-ratio: 2.86;
    border-radius: 21.66px;
    background-color: rgb(6, 83, 78);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    bottom: 0;
    left: 50%;
}

.health-armor.reverse {
    transform: translate(-50%, 50%) scaleX(-1);
}

.health {
    left: 24px;
}

.armor {
    right: 36px;
}

.health, .armor {
    text-align: center;
    width: 50%;
    top: 12px;
    font-weight: 700;
    font-size: 1.2rem;
}

.divider-container {
    display: flex;
    position: absolute;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.divider {
    transform: rotate(90deg);
    position: absolute;
    aspect-ratio: 11.5;
    width: 26%;

    border-radius: 4.5px;
    background: rgb(36, 173, 156);
}

.divider-reverse {
    transform: rotate(90deg);
    position: absolute;
    aspect-ratio: 11.5;
    width: 26%;

    border-radius: 4.5px;
    background: rgb(36, 173, 156);
}

.nickname-container,
.nickname-container.reverse {
    display: flex;
    position: absolute;
    width: 140px;
    aspect-ratio: 4.44;
    border-radius: 21.66px;
    background: rgb(6, 83, 78);
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.nickname-container {
    left: 21%;
    top: 0;
    transform: translateY(-50%);
    margin-left: 5%;
}

.nickname-container.reverse {
    left: auto;
    right: 21%;
    margin-right: 5%;
}

.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;
}

.cards-container {
    position: absolute;
    display: flex;
    flex-flow: wrap;
    place-content: flex-start center;
    align-items: flex-start;
    width: 100%;
    height: 80%;
    row-gap: 3%;
    column-gap: 3%;
    padding-top: 3%;
    z-index: 1;
}


.card {
    cursor: pointer;
    transition: box-shadow ease 0.1s;
    border-radius: 6.6px;
    -webkit-box-shadow: 2px 11px 41px -8px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 11px 41px -8px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 11px 41px -8px rgba(0, 0, 0, 0.75);
    position: relative;
    width: 11%;
    aspect-ratio: 0.66;
}

.card .discarded {
    position: absolute;
    width: 131%;
    font-size: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.77);
    left: 50%;
    transform: translate(-50%) rotate(0deg);
    display: none;
    bottom: 8%;
    background-color: gray;
}

.card.was-discarded .discarded {
    display: block;
}

.cards .card {
    width: 180px;
    aspect-ratio: 0.68;
    transform-origin: top;
}

.deck .card {
    position: absolute;
    transform: scale(0.7);
    opacity: 0;
}

.cards .card .card-bottom {
    margin: 0 0.5em 0.5em;
}

.card-body {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    border-radius: 3%;
    background: rgb(6, 83, 78);
    overflow: hidden;
    -webkit-transition: 0.5s -webkit-filter linear;
    -moz-transition: 0.5s -moz-filter linear;
    -moz-transition: 0.5s filter linear;
    -ms-transition: 0.5s -ms-filter linear;
    -o-transition: 0.5s -o-filter linear;
    transition: 0.5s filter linear, 0.5s -webkit-filter linear;
}

.cards .card .card-bottom .discard-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0.5em;
    width: 0.5em;
}

.played-cards-container .title {
    font-size: 1.2rem;
}

.played-cards-container .description {
    font-size: 0.8rem;
}

.played-cards-container .discard-button {
    display: none;
}

.played-cards-container .card:hover {
    z-index: 1;
}

.played-cards-container .card {
    position: absolute;
}

.result-rating.button-choice p {
    width: 50px;
}

.greys {
    filter: grayscale(1);
}

.cards .card .card-bottom .discard-button span {
    font-size: 0.8em;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-container .card:not(.disabled):hover {
    transform: scale(1.1);
    z-index: 2;
    -webkit-box-shadow: 2px 11px 55px 3px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 11px 55px 3px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 11px 55px 3px rgba(0, 0, 0, 0.75);
}

.cards-container .card:not(.disabled):active {
    transform: scale(1.2);
    z-index: 2;
    -webkit-box-shadow: 2px 11px 55px 3px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 11px 55px 3px rgba(0, 0, 0, 0.75);
    box-shadow: 2px 11px 55px 3px rgba(0, 0, 0, 0.75);
}

.card.hidden {
    display: none;
}

.image {
    display: block;
    width: 100%;
    height: 46%;
    object-fit: cover;
    margin-top: -3px;
}

.title {
    margin-top: 2%;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.description {
    display: flex;
    text-align: center;
    font-weight: 300;
    flex-grow: 1;
    font-size: 0.7rem;;
    margin: 3% 3%;
    justify-content: center;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px 6px;
}

.discard-button {
    width: 30%;
    aspect-ratio: 1;
    border: none;
    background: rgba(255, 54, 0, 0.8);
    border-radius: 0 50% 0 50%;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    pointer-events: all;
    transition: transform ease 0.4s;
    position: absolute;
    top: 6%;
    right: 10%;
    transform: translate(50%, -50%);
}

.discard-button:not(.disabled):hover {
    transform: translate(50%, -50%) scale(1.05);
}

.discard-button:not(.disabled):active {
    transform: translate(50%, -50%) scale(1.1);
}

.discard-button span {
    position: absolute;
    font-size: 2.5cqw;
    top: 50%;
    transform: translate(-50%, -55%);
    color: white;
    left: 50%;
}

.cost {
    width: 35%;
    aspect-ratio: 2.25;
    position: absolute;
    top: 0%;
    left: 23%;
    transform: translate(-50%, 20%);
    padding: 1.1%;
    background-color: white;
    border-radius: 6%;
}

.cost-amount {
    font-size: 1rem;
    font-weight: 600;
}

.cost .container-resource {
    display: flex;
    border-radius: 6%;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-evenly;
}

.cost .container-resource img {
    height: 80%;
    aspect-ratio: 1;
}

.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;
}

.reason-container {
    margin: 1rem 0 0;
    font-size: 1.2rem;
    width: 85%;
    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;
}

.reason-container .reason {
    font-size: 1.5rem;
}

.main-container-game-result {
    display: flex;
    flex-direction: column;
    background: #06534E;
    border-radius: 48px;
    max-width: 440px;
    min-width: 320px;
}

.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;
}

.container-game-result img {
    width: 80%;
    margin-top: 2.8rem;
}

.container-game-result .lobby-text {
    font-size: 2.8rem;
    padding: 0 30px 10px 30px;
    text-transform: uppercase;
}

.container-game-result .result-score,
.result-rating {
    font-size: 1.5rem;
}

.container-game-result .lobby-text.dontGiveUp {
    font-size: 1.5rem;
    margin-left: 7rem;
    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;
    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;
    align-items: center;
}

.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;
    max-width: 300px;
    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: 440px;
    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: 1.2rem;
    margin-left: 0.5rem;
}

.coin-count {
    margin: 0 0.8rem 0 0.3rem;
    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 {
    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: 0 0.2rem 0 0.5rem;
    position: relative;
    top: 0.1rem;
}

.result-rating.button-choice {
    margin: 2rem 1.5rem;
}

.result-rating.button-choice .leave {
    width: 150px;
    background: #24ad9c;
}

.result-rating.button-choice .restart {
    width: 150px;
}

.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: 1rem;
}

.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: 1rem;
}

.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;
}

.container-modal {
    position: fixed;
    width: 35vmin;
    z-index: 50;
    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;
}

.rules-modal {
    z-index: 50;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.rules-modal .backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    cursor: pointer;
    background: #00000070;
}

.rules-body {
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    height: 70vh;
    background: #06534E;
    max-width: 445px;
    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 {
    display: none;
}

.cards-modal {
    z-index: 50;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.cards-modal .backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    cursor: pointer;
    background: #00000070;
}

.cards-body {
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    height: 70vh;
    background: #06534E;
    max-width: 445px;
    z-index: 10;
    margin-top: 50px;
    transform: translate(-50%, 10px);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 5%;
    box-shadow: 0 4px 0 0.04rem rgba(0, 0, 0, 0.8);
}

.cards-body::-webkit-scrollbar {
    display: none;
}

.cards-body .card {
    width: 45% !important;
}

#cardBodyTitle {
    width: 100%;
    text-align: center;
    font-size: 1.7rem;
    margin-top: 0.5rem;
}

.cards-modal .discard-button {
    display: none;
}

.rules-modal h3,
.rules-modal h2,
.rules-modal img {
    text-align: center;
    width: 100%;
    font-size: 1.5rem;
}

.rules-modal p {
    font-size: 1.2rem;
}

.rules-modal img {
    border-radius: 30px;
    border: 1px solid grey;
    max-width: 40%;
    position: relative;
}


.buildings .container-modal {
    top: auto;
    bottom: 0;
    border-radius: 20px 20px 20px 4px;
}


.buildings.reversed .container-modal {
    transform: scaleX(-1);
    border-radius: 20px 20px 4px 20px;
}

.reverse-resource .container-modal {
    margin-left: auto;
    margin-right: 100%;
    border-radius: 20px 4px 20px 20px;
    left: 0;
    right: 6%;

}

.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;
}

.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);
}

.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: 10;
}

.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 .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 20px;
}

.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: flex;
    justify-content: center;
    margin: 0.5rem;
    max-width: 25%;
    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);
    transition: filter 0.3s ease;
}

.button-disapprove:hover,
.button-approve:hover {
    filter: brightness(110%);
}

.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;
    transition: transform ease 0.3s, opacity linear 1s;
    transform-style: preserve-3d;
    width: 100%;
    position: absolute;
    margin-top: 0;
    pointer-events: none;
}

.timer-container {
    top: -5%;
}

.timer-container-prev,
.timer-container-next {
    backface-visibility: hidden;
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: rgba(6, 83, 78, 0.8);
    transition: background-color 0.3s ease;
    border-radius: 21.66px;
}

.timer-container-prev,
.timer-container-next {
    width: 22%;
    height: 35px;
}

.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.15);
    margin: -1%;
}

.timer {
    font-size: 1.5cqw;
    text-align: right;
}

.turn-message {
    font-size: 1.5cqw;
}

.played-cards-container {
    position: absolute;
    top: 0;
    left: 30%;
    width: 40%;
    display: flex;
    height: 100%;
}

.played-cards-container .cards {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    height: 26%;
}

.played-card-first {
    max-width: 150px;
    height: 200px;
}

.played-card-first .card.small,
.played-card-second .card.small {
    scale: 0.9;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.played-card-second {
    max-width: 150px;
    height: 218px;
}

.ore {
    background: rgba(115, 29, 76, 1);
}

.mana {
    background: rgba(62, 59, 141, 1);
}

.army {
    background: rgba(5, 102, 2, 1);
}

.resources-container .card .discard-button {
    opacity: 0 !important;
    pointer-events: none !important;
}

.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: 20px;
    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-concede.disabled {
    filter: grayscale(1);
    pointer-events: none;
}

#chances-to-surrender {
    text-align: center;
    font-size: 1.2rem;
    margin: -1rem 0 1rem;
}

.btn-sound {
    height: 45px;
    font-size: 20px;
    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;
}

.hidden {
    display: none;
}

.hidden-op {
    opacity: 0;
    transition: opacity 0.5s ease;
}



.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: 25px;
    margin: 0.3rem;
}

.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;
}

@media (min-width: 841px) {
    .timer-container {
        top: -14%;
    }

    .buildings {
        margin-left: 12%;
    }

    .buildings.reversed {
        margin-right: 12%;
    }
}

@media (max-width: 884px) and (max-height: 1200px) and (min-resolution: 1dppx) {
    .title {
        font-size: 0.75rem;
    }

    .description {
        font-size: 0.7rem;
    }

    .card {
        width: 16%;
    }

    .my-resources, .opponent-resources {
        width: 18%;
    }

    .message-body.my, .message-body.opponent {
        top: 25%;
        left: 55%;
    }
}

@media (max-width: 1280px) and (max-height: 840px) and (orientation: landscape) and (min-resolution: 1dppx) {
    .modal-body {
        top: 10%;
    }

    .message-list div div {
        font-size: 1.2rem;
    }

    .emoji-sender img {
        width: 2rem;
    }

    .deck-background {
        top: -3%;
        left: -30%;
    }

    .cards .card {
        width: 175px;
    }

    .played-cards-container .title {
        font-size: 1.3rem;
    }

    .played-cards-container .description {
        font-size: 1rem;
    }

    .played-cards-container {
        top: -50px;
    }

    .cost {
        width: 35%;
    }

    .timer {
        font-size: 20px;
    }

    .turn-message {
        font-size: 20px;
    }

    .timer-container {
        top: -15%;
    }

    .timer-container-prev,
    .timer-container-next {
        width: 20%;
        height: 35px;
        font-size: 6px;
        padding-right: 0;
        background-color: rgb(6, 83, 78);
    }

    .card {
        width: 12%;
    }

    .buildings {
        width: 16.5%;
        z-index: 0;

    }

    .buildings.reversed {
        z-index: 0;
    }

    .cards-modal .title {
        font-size: 1.3rem;
    }

    .cards-modal .description {
        font-size: 1rem;
    }

    .income-amount {
        font-size: 1.1rem;
    }

    .title {
        font-size: 0.9rem;
    }

    .description {
        font-size: 0.8rem;
    }

    .page-name {
        font-size: 3cqw;
    }

    .my-resources,
    .opponent-resources {
        width: 12%;
    }

    .modal-body.emoji {
        top: 6%;
    }

    .resource-name {
        font-size: 1.6cqw;
    }

    .cards-container {
        column-gap: 2%;
    }
}

@media (max-width: 840px) and (max-height: 1285px) and (min-resolution: 1dppx) {
    .rules-body, .cards-body {
        border-radius: 28px;
    }

    .deck-background {
        top: -3%;
        left: -60%;
    }

    .modal-body.emoji {
        width: 60vmin;
        min-width: 400px;
    }

    .emoji-sender img {
        width: 2rem;
    }

    .message-list div div {
        font-size: 1.2rem;
    }

    .message-list div div {
        margin: 1rem 0;
    }

    .message-list {
        justify-content: space-around;
        gap: 0;
    }

    .card {
        width: 19%;
    }

    .cards .card {
        width: 185px;
    }

    .my-resources,
    .opponent-resources {
        width: 22%;
    }

    .message-body.my, .message-body.opponent {
        top: 34%;
        left: 53%;
        padding: 0.2rem 0.5rem;
    }

    .message-body.my span, .message-body.opponent span {
        font-size: 0.9rem;
    }

    .message-body.my img, .message-body.opponent img {
        width: 2rem;
    }

    .resource-amount {
        font-size: 3cqw;
    }

    .timer {
        font-size: 20px;
    }

    .turn-message {
        font-size: 20px;
    }

    .timer-container-prev,
    .timer-container-next {
        width: 30%;
        height: 30px;
        font-size: 8px;
        padding-right: 0;
        background-color: rgba(6, 83, 78, 0.7);
    }

    .nickname-container {
        margin-left: 4%;
    }

    .nickname-container.reverse {
        margin-right: 4%;
    }

    .buildings {
        width: 25.5%;
        margin-left: 0;
    }

    .buildings.reversed {
        margin-right: 0;
    }

    .cost {
        width: 35%;
    }

    .card .discarded {
        font-size: 0.8rem;
    }

    .timer-container {
        top: -15%;
    }

    .cards-container {
        padding-top: 4%;
    }

    .played-cards-container .title {
        font-size: 1.5rem;
    }

    .played-cards-container .description {
        font-size: 1.2rem;
    }

    .lobby-name-container img {
        width: 4rem;
        height: 4rem;
    }

    .large-stat {
        width: 55.5%;
    }

    .container-button-lobby {
        width: 85%;
    }

    .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
    }

    .result-rating.button-choice {
        margin: 2.5rem 1.5rem;
    }

    .container-game-result img {
        margin-top: 3rem;
    }

    .modal-body .tiny-stat {
        margin: 0;
    }

    .modal-body .large-stat {
        margin: 0 0 0 0.5rem;
    }
}

@media (max-width: 932px) and (max-height: 430px) and (orientation: landscape) and (min-resolution: 1dppx) {
    .turn-selector .label,
    .lobby-type {
        font-size: 3cqw;
    }

    .button {
        transform: scale(0.65);
    }

    .lobby {
        transform: scale(0.8);
    }

    .played-cards-container .title {
        font-size: 0.8rem;
    }

    .lobby-owner {
        margin: 0 -20% 0 4%;
    }

    .lobby-opened-list,
    .lobby-in-game-list {
        margin-top: 0;
    }

    .lobby-text {
        font-size: 5cqw;
    }

    .joining-player {
        top: 25%;
        width: 80%;
    }

    .joining-player-text {
        font-size: 5cqw;
    }

    .joining-player-buttons {
        flex-direction: row;
    }

    .button-disapprove,
    .button-approve {
        font-size: 5cqw;
        display: flex;
        align-items: center;
        margin: 5% auto;
        justify-content: center;
    }

    .page-name {
        font-size: 1rem;
    }

    .timer {
        font-size: 10px;
    }

    .turn-message {
        font-size: 10px;
    }

    .timer-container-prev,
    .timer-container-next {
        width: 20%;
        height: 25px;
        font-size: 4px;
        padding-right: 0;
        background-color: rgb(6, 83, 78);
    }

    .my-resources,
    .opponent-resources {
        width: 12%;

    }

    .resource-container {
        border-radius: 0.8rem;
    }

    .start {
        width: 85%;
    }

    .resource-name {
        font-size: 1.5cqw;
        letter-spacing: 0.6px;
    }

    .income-amount {
        justify-content: center;
        font-size: 1.8cqw;
    }

    .resource-amount {
        font-size: 1.5cqw;
    }

    .deck-background {
        top: -3%;
        width: 60%;
        left: -15%;
    }

    .description {
        margin: 2% 10%;
    }

    .cards-container {
        padding-top: 2%;
    }

    .timer-container {
        top: -10%;
    }

    .buildings {
        width: 15.5%;
        margin-left: 10%;
    }

    .buildings.reversed {
        margin-right: 10%;
    }

    .cards .card {
        width: 105px;
    }

    .played-cards-container {
        top: -50px;
    }

    .cost {
        width: 40%;
        border-radius: 4.66px;
    }

    .cost .container-resource {
        border-radius: 3.66px;
    }

    .nickname-container,
    .nickname-container.reverse {
        width: 13%;
    }

    .nickname-container {
        margin-left: 2%;
    }

    .nickname-container.reverse {
        margin-right: 2%;
    }

    .discard-button span {
        font-size: 2cqw;
    }

    .played-cards-container .card-body {
        border-radius: 6.66px;
    }

    .played-cards-container .title {
        font-size: 1rem;
    }

    .played-cards-container .description {
        font-size: 0.7rem;
    }

    .card {
        width: 12%;
    }
}

@media (max-width: 700px) {

    .button-back, .button-hint, .button-cards, .button-emoji, .button-settings {
        min-width: 2.5rem;
        min-height: 2.5rem;
        border-radius: 0.6rem;
        font-size: 1.5rem;
    }

    .button-back img, .button-settings img {
        width: 1rem;
    }

    .button-cards img, .button-emoji img {
        width: 1.5rem;
    }

    .nickname-container,
    .nickname-container.reverse {
        width: 110px;
    }

    .nickname {
        font-size: 0.6rem;
    }

    .health,
    .armor {
        font-size: 1rem;
    }

    .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-modal {
        width: 70vw;
    }

    .player-name-profile {
        font-size: 1.7rem;
    }

    .joining-player-buttons {
        width: 90%;
        flex-direction: column-reverse;
    }

    .button-disapprove, .button-approve {
        max-width: 100%;
    }

    .lobby-list {
        margin-bottom: 1.5rem;
        transform: scale(1);
    }

    .turn-length-select {
        font-size: 4cqw;
        width: 120%;
    }

    .turn-selector .label {
        font-size: 1.3rem;
    }

    .button-lobby {
        font-size: 1rem;
    }


    .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: 80vmin;
    }

    .reason-container .reason {
        font-size: 1.1rem;
    }

    .container-game-result .lobby-text {
        font-size: 2.5rem;
    }

    .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;
    }

    .container-game-result img {
        margin-top: 2rem;
    }

    .result-rating.button-choice {
        margin: 2rem 1.5rem;
    }

    .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) {
    .card-body {
        border-radius: 5%;
    }

    .cost {
        width: 40%;
        border-radius: 4.66px;
    }

    .cost .container-resource {
        border-radius: 3.66px;
    }

    .timer-container {
        top: -25%;
    }

    .timer-container-prev,
    .timer-container-next {
        width: 50%;
    }

    .title {
        font-size: 0.7rem;
    }

    .description {
        font-size: 0.6rem;
    }

    .cards-modal .title {
        font-size: 1.1rem;
    }

    .cards-modal .description {
        font-size: 0.9rem;
    }

    .deck-background {
        top: -3%;
        width: 70%;
        left: -40%;
    }

    .my-resources,
    .opponent-resources {
        width: 26%;
    }

    .cards .card {
        width: 125px;
    }

    .resource-name,
    .income-amount {
        font-size: 3cqw;
    }

    .played-cards-container .title {
        font-size: 0.9rem;
    }

    .played-cards-container .description {
        font-size: 0.6rem;
    }

}

@media (max-width: 430px) and (max-height: 930px) and (min-resolution: 1dppx) {
    .lobby-opened-list,
    .lobby-in-game-list {
        margin-top: -2%;
    }

    .turn-selector .label {
        font-size: 6cqw;
    }

    .player-name-profile {
        font-size: 1.7rem;
    }

    .lobby-name-container img {
        width: 3rem;
        height: 3rem;
    }

    .lobby-name-container img.crown {
        width: 1rem;
        height: 1rem;
        transform: translate(-80%, -225%);
    }

    .lobby-name-container {
        height: 2rem;
    }

    .lobby-type {
        font-size: 1.5em;
        margin-top: 0.5rem;
    }

    .lobby {
        transform: scale(0.8);
        width: 100%;
        margin-top: 0.5rem;
    }

    .joining-player {
        top: 25%;
        width: 80%;
    }


    .joining-player-text {
    }

    .joining-player-buttons {
        flex-direction: column-reverse;
    }

    .button-disapprove,
    .button-approve {
        display: flex;
        align-items: center;
        margin: 5% -20%;
        justify-content: center;
    }


    .timer-container-prev,
    .timer-container-next {
        width: 30%;
        height: 25px;
        font-size: 4px;
    }

    .joining-player-buttons .button {
        transform: scale(1);
    }

    .turn-message {
        font-size: 10px;
    }

    .timer {
        font-size: 9px;
    }

    .resource-container {
        border-radius: 0.8rem;
    }

    .deck-background {
        top: -3%;
        left: -37%;
        width: 60%;
    }

    .my-resources,
    .opponent-resources {
        width: 24%;
    }

    .timer-container {
        top: -15%;
    }

    .card {
        width: 22%;
    }

    .cards-container {
        column-gap: 3%;
        padding-top: 5%;
    }

    .resource-icon {
        width: 35%;
    }

    .resource-name {
        font-size: 8px;
        margin-left: 0;
        letter-spacing: 0.5px;
    }

    .btn-sound, .btn-concede {
        font-size: 15px;
    }

    .income-amount {
        font-size: 12px;
    }

    .message-body.my, .message-body.opponent {
        padding: 0.3rem 0.3rem;
        top: 32%;
        left: 53%;
        border-radius: 10px 10px 10px 3px;
    }

    .message-body.my img, .message-body.opponent img {
        width: 1.5rem;
    }

    .message-body.my span, .message-body.opponent span {
        font-size: 0.6rem;
        margin-left: 0.2rem;
        margin-right: 0.1rem;
    }

    .page-name {
        font-size: 1.2rem;
    }

    .resource-amount {
        font-size: 3.5cqw;
    }

    .nickname-container,
    .nickname-container.reverse {
        width: 20%;
    }

    .nickname-container {
        margin-left: 2%;
    }

    .nickname-container.reverse {
        margin-right: 2%;
    }

    .cost {
        width: 40%;
    }

    .wall {
        width: 35.5%;
        height: 40%;
        min-height: 39%;
        max-height: 56%;
        margin-left: 60%;

    }

    .buildings {
        width: 25.5%;
        margin-left: 0;
    }

    .buildings.reversed {
        margin-right: 0;
    }

    .cards .card {
        width: 130px;
    }

    .discard-button span {
        font-size: 3cqw;
    }

    .played-cards-container .title {
        font-size: 2.6cqw;
    }

    .played-cards-container .description {
        font-size: 2.3cqw;
    }

    .modal-body.emoji {
        width: 80vmin;
        min-width: 330px;
        top: 10%;
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }

    .emoji-sender img {
        width: 2rem;
        padding: 0.5rem;
    }

    .message-list div div {
        font-size: 1rem;
        padding: 0.2rem 1rem;
    }
}

@media (max-width: 850px) and (max-height: 390px) and (orientation: landscape) and (min-resolution: 1dppx) {
    .joining-player {
        top: 25%;
        width: 80%;
    }

    .joining-player-text {
        font-size: 5cqw;
    }

    .joining-player-buttons {
        flex-direction: row;
    }

    .button-disapprove,
    .button-approve {
        font-size: 5cqw;
        display: flex;
        align-items: center;
        margin: 5% auto;
        justify-content: center;
    }

    .lobby-text {
        font-size: 1.5em;
    }

    .lobby-list {
        transform: scale(0.85);
        transform-origin: top;
    }

    .button {
        transform: scale(0.6);
    }

    .turn-selector .label {
        font-size: 1em;
    }

    .lobby-type {
        font-size: 1em;
    }

    .lobby {
        transform: scale(0.6);
        width: 120%;
    }

    .page-name {
        font-size: 1rem;
    }

    .played-cards-container {
        top: -50px;
    }

    .timer {
        font-size: 1.5cqw;
    }

    .turn-message {
        font-size: 1.5cqw;
    }

    .timer-container-prev,
    .timer-container-next {
        width: 20%;
        height: 25px;
        font-size: 0.8cqw;
        padding-right: 0;
        background-color: rgb(6, 83, 78);
    }

    .resource-container {
        border-radius: 0.8rem;
    }

    .resource-amount {
        font-size: 2cqw;
    }

    .start {
        width: 80%;
    }

    .resource-icon {
        width: 35%;
    }

    .health-armor {
        border-radius: 12.66px;
    }

    .resource-name {
        font-size: 8px;
        letter-spacing: 0.6px;
    }

    .income-amount {
        justify-content: center;
        font-size: 0.8rem;
    }

    .deck-background {
        top: -3%;
        width: 55%;
        left: -10%;
    }

    .cost-amount {
        font-size: 0.8rem;
    }

    .emoji-list {
        gap: 10px;
    }

    .modal-body.emoji {
        padding: 1rem 1rem 0 1rem;
    }

    .nickname-container,
    .nickname-container.reverse {
        width: 12%;
    }

    .nickname-container {
        margin-left: 38%;
    }

    .result-rating.button-choice {
        margin: 0.5rem 1.5rem;
    }

    .nickname-container.reverse {
        margin-right: 38%;
    }

    .description {
        font-size: 0.6rem;
    }

    .buildings {
        margin-left: 10%;
        width: 15.5%;
    }

    .buildings.reversed {
        margin-right: 10%;
    }

    .played-cards-container .card-body {
        border-radius: 9.66px;
    }

    .played-cards-container .title {
        font-size: 0.8rem;
    }

    .played-cards-container .description {
        font-size: 0.6rem;
    }

    .cards-container {
        padding-top: 3%;
    }
}

@media (min-width: 701px)and (max-width: 839px) {
    .nickname {
        font-size: 0.8rem;
    }

    .health,
    .armor {
        font-size: 1rem;
    }
}

@media (max-width: 813px) and (max-height: 376px) and (orientation: landscape) and (min-resolution: 1dppx) {
    .deck-background {
        top: -3%;
        width: 55%;
        left: -15%;
    }

    .cards .card {
        width: 105px;
    }

    .title {
        font-size: 0.6rem;
    }

    .description {
        font-size: 0.5rem;
    }

    .resource-container {
        border-radius: 0.8rem;
    }

    .timer-container-prev,
    .timer-container-next {
        width: 20%;
    }

    .resource-amount {
        font-size: 2cqw;
    }

    .my-resources,
    .opponent-resources {
        width: 12%;
    }

    .card-body {
        border-radius: 6.66px;
    }

    .played-cards-container .card-body {
        border-radius: 9.66px;
    }

    .played-cards-container .title {
        font-size: 1.5cqw;
    }

    .played-cards-container .description {
        font-size: 1.2cqw;
    }
}

@media (max-width: 376px) and (max-height: 813px) and (min-resolution: 1dppx) {
    .button-back, .button-hint, .button-cards, .button-emoji, .button-settings {
        min-width: 2rem;
        min-height: 2rem;
    }

    .button-back img, .button-settings img {
        width: 1rem;
    }

    .button-cards img, .button-emoji img {
        width: 1.5rem;
    }

    .deck-background {
        top: -3%;
        width: 55%;
        left: -35%;
    }

    .cards .card {
        width: 120px;
    }

    .cards-modal .title {
        font-size: 1rem;
    }

    #cardBodyTitle {
        font-size: 1rem;
        margin-top: 0;
    }

    .cards-modal .description {
        font-size: 0.8rem;
    }

    .played-cards-container {
        top: -3%;
    }

    .rules-modal h3, .rules-modal h2, .rules-modal img {
        font-size: 1.3rem;
    }

    .rules-modal p {
        font-size: 1rem;
    }

    .card-body {
        border-radius: 6.66px;
    }

    .nickname-container,
    .nickname-container.reverse {
        width: 20%;
    }

    .timer-container-prev,
    .timer-container-next {
        width: 40%;
    }

    .my-resources,
    .opponent-resources {
        width: 24%;
    }

    .resource-amount {
        font-size: 3.5cqw;
    }

    .resource-container {
        border-radius: 0.8rem;
    }

    .played-cards-container .title {
        font-size: 1rem;
    }

    .played-cards-container .description {
        font-size: 0.7rem;
    }
}

@media (max-width: 801px) and (max-height: 361px) and (orientation: landscape) and (min-resolution: 1dppx) {
    .card {
        width: 11%;
    }

    .cards-container {
        padding-top: 2%;
    }

    .cards .card {
        width: 90px;
    }

    .buildings {
        width: 13.5%;
    }

    .deck-background {
        top: -3%;
        width: 45%;
        left: 1%;
    }

    .health,
    .armor {
        font-size: 2cqw;
    }

    .nickname-container,
    .nickname-container.reverse {
        width: 9%;
    }

    .nickname-container {
        margin-left: 41%
    }

    .nickname-container.reverse {
        margin-right: 41%
    }

    .timer-container-prev,
    .timer-container-next {
        width: 20%;
        height: 20px;
    }

    .my-resources,
    .opponent-resources {
        width: 10%;
    }

    .discard-button span {
        font-size: 1.8cqw;
    }

    .played-cards-container .title {
        font-size: 0.7rem;
    }

    .played-cards-container .description {
        font-size: 0.5rem;
    }
}

@media (max-width: 361px) and (max-height: 801px) and (min-resolution: 1dppx) {
    .cards .card {
        width: 140px;
    }
}

@media (max-width: 575px) and (max-height: 400px) and (orientation: landscape) and (min-resolution: 1dppx) {
    .lobby-text {
        font-size: 1.5em;
    }

    .lobby-list {
        margin-top: 1.5%;
    }

    .button {
        transform: scale(0.5);
    }

    .turn-selector .label {
        font-size: 1em;
    }

    .lobby-type {
        font-size: 1em;
    }

    .joining-player {
        top: 25%;
        width: 80%;
    }

    .joining-player-text {
        font-size: 5cqw;
    }

    .joining-player-buttons {
        flex-direction: row;
    }

    .button-disapprove,
    .button-approve {
        font-size: 5cqw;
        display: flex;
        align-items: center;
        margin: 5% auto;
        justify-content: center;
    }

    .page-name {
        font-size: 1rem;

    }

    .timer {
        font-size: 10px;
    }

    .turn-message {
        font-size: 10px;
    }

    .timer-container {
        top: -10%;
    }

    .timer-container-prev,
    .timer-container-next {
        width: 20%;
        height: 25px;
        font-size: 4px;
        padding-right: 0;
        background-color: rgb(6, 83, 78);
    }

    .my-resources,
    .opponent-resources {
        width: 12%;
    }

    .resource-container {
        border-radius: 0.6rem;
    }

    .start {
        width: 100%;
    }

    .resource-name {
        font-size: 6px;
        letter-spacing: 0.6px;
    }

    .income-amount {
        justify-content: center;
        font-size: 0.6rem;
    }

    .resource-amount {
        font-size: 2cqw;
    }

    .deck-background {
        top: -3%;
        width: 42%;
        left: -10%;
    }

    .cards .card {
        margin-top: 0.2rem;
        width: 80px;
    }

    .title {
        margin-top: 10%;
        font-size: 0.5rem;
    }

    .description {
        font-size: 0.5rem;
    }

    .played-cards-container .card-body {
        border-radius: 6.66px;
    }

    .played-cards-container .title {
        margin-top: 5%;
        font-size: 0.6rem;
    }

    .played-cards-container .description {
        font-size: 0.5rem;
    }

    .nickname-container {
        width: 12%;
        margin-left: 37%;
    }

    .nickname-container.reverse {
        width: 12%;
        margin-right: 37%;
    }

    .buildings {
        width: 16.5%;
        margin-left: 10%;
    }

    .buildings.reversed {
        margin-right: 10%;
    }

    .health,
    .armor {
        font-size: 2.5cqw;
    }

    .cards-container {
        padding-top: 3.5%;
    }

    .discard-button span {
        font-size: 2.5cqw;
    }

    .lobby-player {
        min-width: 400px;
    }

    .container-modal {
        width: 40vw;
    }
}

@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;
    }

    .deck-background {
        width: 40%;
        left: -22%;
    }

    .resource-container {
        border-radius: 0.6rem;
    }

    .my-resources,
    .opponent-resources {
        width: 23%;
    }

    .resource-name {
        font-size: 2.5cqw;
        margin-left: 1px;
        letter-spacing: 1px;
    }

    .btn-sound, .btn-concede {
        height: 35px;
    }

    .btn-sound {
        margin: -1rem 3rem 1rem;
    }

    .resource-icon {
        width: 25%;
    }

    .income-amount {
        bottom: 15%;
        font-size: 10px;
    }

    .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: 1rem;
    }

    .resource-amount {
        font-size: 3.5cqw;
    }

    .start {
        width: 75%;
    }

    .message-body.my, .message-body.opponent {
        padding: 0.3rem 0.3rem;
        top: 35%;
        left: 55%;
        border-radius: 6px 6px 6px 1px;
    }

    .message-body.my img, .message-body.opponent img {
        width: 1rem;
    }

    .message-body.my span, .message-body.opponent span {
        font-size: 0.5rem;
        letter-spacing: 0.5px;
    }

    .message-body.my span, .message-body.opponent span {
        margin-left: 0.2rem;
        margin-right: 0.1rem;
    }

    .title {
        font-size: 0.6rem;
    }

    .description {
        font-size: 0.4rem;
    }

    .cards .card {
        width: 90px;
    }

    .nickname-container,
    .nickname-container.reverse {
        width: 20%;
    }

    .nickname-container {
        margin-left: 5%;
    }

    .nickname-container.reverse {
        margin-right: 5%;
    }

    .health-armor.reverse {
        transform: translate(-50%, 50%) scaleX(-1);
    }

    .buildings {
        bottom: 100%;
        width: 25%;
        margin-left: 1%;
        z-index: 0;
    }

    .cost-amount {
        font-size: 0.7rem;
    }

    .buildings.reversed {
        margin-right: 1%;
        z-index: 0;
    }

    .card {
        width: 21%;
    }

    .cards-container {
        column-gap: 3%;
        padding-top: 5%;
    }

    .joining-player {
        top: 25%;
        width: 80%;
    }

    .joining-player-text {
        font-size: 1.3rem;
    }

    .joining-player-buttons {
        flex-direction: column-reverse;
    }

    .played-cards-container .title {
        font-size: 0.7rem;
    }

    .played-cards-container .description {
        font-size: 0.5rem;
    }

    .played-cards-container .card-body {
        border-radius: 6.66px;
    }

    .lobby-player {
        width: 97vmin;
        border-radius: 28px;
        margin-top: 0;
        min-width: 300px;
        z-index: 1;
    }

    .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: 2rem;

    }

    .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;
    }

    .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;
    }

    .result-rating.button-choice .leave, .result-rating.button-choice .restart {
        height: 30px;
        width: 100px;
        margin: 0 5px;
    }

    .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.25rem 0 0 0.5rem;
    }

    .player-stats {
        margin: 0 0.5rem 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;
    }


    .health, .armor {
        font-size: 0.6rem;
    }

    .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: 1rem 1.5rem;
    }

    .container-game-result img {
        margin-top: 1.5rem;
    }

    .main-container-game-result {
        border-radius: 24px;
    }

    .result-rating.button-choice p {
        width: 0;
    }

    .button.button-restart-lobby.button-view {
        margin: 0 auto 1rem;
    }
}


@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;
    }
}
