/* COMMON CSS STYLES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #dee8f3;
    background-color: #1f1f1f;
    font-family: 'Open Sans', sans-serif;
}

input,
textarea {
    background-color: #f8fafd;
    border: 2px solid #e7ecf3;
    border-radius: 10px;
    resize: none;
    padding: 20px 20px;
    font-size: 16px;
    width: calc(100% - 44px);
}

a {
    color: inherit;
    text-decoration: unset;
}

.content-wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        max-width: 540px;
    }
}

.disable-selection {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
}

.dropdown-wrapper img,
.dropdown-wrapper svg {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

.dropdown-wrapper {
    max-width: 280px;
    width: 100%;
    margin: 0 auto 30px auto;
    position: relative;
    font-size: 20px;
    z-index: 10;
}

.dropdown-wrapper__header {
    background: linear-gradient(#2c2c2c, #121212);
    color: #d0c0a7;
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 10px;
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.dropdown-wrapper__header.active {
    background: linear-gradient(#4b4a4a, #2b2a2a);
}

.dropdown-wrapper__header.active {
    background: linear-gradient(#4b4a4a, #2b2a2a);
}

@media (hover: hover) {
    .dropdown-wrapper__header:hover {
        background: linear-gradient(#4b4a4a, #2b2a2a);
    }

    .dropdown-wrapper__header:hover .dropdown-wrapper__header--arrow {
        background: linear-gradient(#4e5052, #383a3d);
    }
}

.dropdown-wrapper__header.active .dropdown-wrapper__header--arrow {
    background: linear-gradient(#383a3d, #4e5052);
    transform: rotate(-180deg);
    transform-origin: center 25%;
}

.dropdown-wrapper__header--arrow {
    display: flex;
    background: linear-gradient(#313233, #1b1c1d);
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translate(0, -50%);
    padding: 9px 12px 9px 12px;
    border-radius: 5px;
}

.dropdown-wrapper__header--arrow::before {
    content: '';
    background-color: #8695a2;
    width: 2px;
    height: 10px;
    display: block;
    transform: rotate(-45deg);
    border-radius: 2px;
    margin-right: 2px;
}

.dropdown-wrapper__header--arrow::after {
    content: '';
    background-color: #8695a2;
    width: 2px;
    height: 10px;
    display: block;
    transform: rotate(45deg);
    border-radius: 2px;
    margin-left: 2px;
}

.dropdown-wrapper__items {
    background: linear-gradient(to top, #2c2c2c, #121212);
    color: #d0c0a7;
    padding-top: 10px;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 10px);
    max-height: 140px;
    overflow: auto;
    border-radius: 0 0 10px 10px;
}

.dropdown-wrapper__items.to-top {
    padding-top: unset;
    padding-bottom: 10px;
    bottom: calc(100% - 10px);
    top: unset;
    border-radius: 10px 10px 0 0;
}

.dropdown-wrapper__items::-webkit-scrollbar-track {
    background-color: #393939;
}

.dropdown-wrapper__items::-webkit-scrollbar-thumb {
    background-color: #6f6f6f;
}

.dropdown-wrapper__items::-webkit-scrollbar {
    width: 8px;
}

.dropdown-wrapper__item {
    padding: 10px;
    cursor: pointer;
    position: relative;
    padding-left: 65px;
}

.dropdown-wrapper__item.inactive {
    pointer-events: none;
    color: gray;
}

.dropdown-wrapper__item.done {
    color: #ffc108;
}

.dropdown-wrapper__item.done::before {
    content: "";
    background-image: url(./images/noun-star-115333_1.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 25px;
    height: 25px;
    display: block;
    filter: brightness(0) saturate(100%) invert(83%) sepia(29%) saturate(4261%) hue-rotate(352deg) brightness(104%) contrast(103%);
    margin: 0 10px 0 -35px;
}

.dropdown-wrapper__item.active {
    background: #2c2c2c;
}

@media screen and (max-width: 768px) {
    .dropdown-wrapper {
        font-size: 18px;
    }

}

@media (hover: hover) {
    .dropdown-wrapper__item:hover {
        background: #2c2c2c;
    }
}

.general-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.hidden {
    display: none !important;
}

.text-overflow-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui__background--cover {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.ui__background--contain {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ui__circle-radius {
    border-radius: 50%;
}

.ui__cols {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
}

.ui__display-align-bottom {
    display: flex;
    align-items: flex-end;
}

.ui__display-align-center {
    display: flex;
    align-items: center;
}

.ui__display-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui__display-inline>* {
    display: inline
}

.ui__overflow-hidden {
    overflow: hidden
}

.ui__rows {
    display: flex;
    flex: 0 1 auto;
}

/* STYLES FOR THE HEADER */

.header {
    display: flex;
    justify-content: space-evenly;
    background-color: #202125;
    margin-bottom: 20px;
}

.header__logo {
    margin-right: -100px;
}

.header__logo--logo {
    width: 120px;
    margin-right: 30px;
}

.header__logo--title {
    font-size: 25px;
    font-weight: 600;
    text-align: center;
    max-width: 240px;
    color: #fff;
}

.header__nav--item {
    padding-bottom: 5px;
    margin: 0 20px;
    font-size: 20px;
    border-bottom: 2px solid transparent;
    color: #b4bdc2;
    cursor: pointer;
}

@media screen and (max-width: 790px) {
    .header__nav--item {
        margin: 0 10px;
    }

    .header__logo {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .header {
        display: unset;
        margin-bottom: 0;
    }
}

.header__nav--item:hover,
.header__nav--item.active {
    color: #fc9744;
    border-bottom: 2px solid #fc9744;
}

@media screen and (max-width: 430px) {
    .header__logo {
        margin: -10px 20px 10px 20px;
    }

    .header__logo--logo {
        width: 100px;
        margin-right: 5px;
    }

    .header__logo--title {
        font-size: 18px;
    }

    .header__nav--item {
        font-size: 16px;
    }
}

/* STYLES FOR HOME PAGE */

.home-page__info {
    font-size: 18px;
    line-height: 1.6;
    padding: 0 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.home-page__info span {
    margin: 0 2px;
}

.home-page__info .title {
    flex: 1 0 100%;
    font-size: 30px;
    margin-left: -10px;
    margin-bottom: 10px;
}

@media screen and (max-width: 420px) {
    .home-page__info {
        font-size: 16px;
        padding: 0;
    }

    .home-page__info .title {
        font-size: 25px;
        margin-left: 0;
    }
}

.home-page__prize--laptop {
    max-width: 200px;
    margin-right: 120px;
}

@media screen and (max-width: 768px) {
    .home-page__prize--laptop {
        max-width: 170px;
        margin-right: 30px;
    }
}

.home-page__prize {
    justify-content: center;
    background-color: #232323;
    border-radius: 15px;
    padding: 30px 20px 30px 20px;
    margin-bottom: 30px;
}

.home-page__prize--info .title {
    color: #fc9744;
    font-size: 30px;
    margin-bottom: 15px;
}


.home-page__prize--info .info {
    color: #b2c0d2;
    font-size: 18px;
    line-height: 1.6;
    white-space: nowrap;
}

@media screen and (max-width: 500px) {
    .home-page__prize {
        flex-direction: column;
    }

    .home-page__prize--laptop {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .home-page__prize--info .title {
        text-align: center;
    }

    .home-page__prize--info .info {
        font-size: 16px;
    }
}

.home-page__partners {
    padding: 0 20px;
    margin-bottom: 25px;
}

.home-page__partners--title {
    font-size: 30px;
    margin-left: -10px;
    margin-bottom: 30px;
}

@media screen and (max-width: 420px) {
    .home-page__partners--title {
        font-size: 24px;
        margin-left: 0;
    }

    .home-page__partners {
        padding: 0;
    }
}

.home-page__partners--list.mobile .partners-wrapper {
    flex: 1 0 calc(50% - 40px);
}

.home-page__partners--list.mobile .partners-col img {
    max-width: 100%;
    margin-bottom: 30px;
}

.home-page__partners--list.mobile {
    display: none;
    padding: 0 10px;
}

@media screen and (max-width: 768px) {
    .home-page__partners--list.mobile {
        display: flex;
    }
}

.home-page__partners--list.mobile>*+* {
    margin-left: 40px;
}

.home-page__partners--list.mobile .partners-row img {
    flex: 0 0 calc(50% - 50px);
    max-width: calc(50% - 25px);
    margin-bottom: 30px;
}

.home-page__partners--list.mobile .partners-row>*+* {
    margin-left: 50px;
}

.home-page__partners--list.mobile .partners-row-full img {
    width: 140px;
}

@media screen and (max-width: 420px) {
    .home-page__partners--list.mobile {
        flex-direction: column;
    }

    .home-page__partners--list.mobile .partners-row img {
        max-width: 100px;
        flex: 0 0 calc(50% - 30px);
    }

    .home-page__partners--list.mobile .partners-col img {
        max-width: 250px;
    }

    .home-page__partners--list.mobile .partners-row>*+* {
        margin-left: 30px;
    }

    .home-page__partners--list.mobile>*+* {
        margin-left: 0;
    }
}

.home-page__partners--list.desktop {
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .home-page__partners--list.desktop {
        display: none;
    }
}

.home-page__partners--list.desktop img {
    max-width: 150px;
    margin: 0 10px;
}

.home-page__partners--list.desktop img.small-img {
    max-width: 90px;
}

/* STYLES FOR GAME PAGE */

.game-page {
    position: relative;
    z-index: 10;
    height: 700px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background-image: url(https://belot.md/static/images/user-account/minigames-bg/count-cards/table.png);
    background-size: 900px 100%;
    background-repeat: no-repeat;
    background-position: top center;
}

.game-page__swiper--img {
    max-width: 100%;
    border-radius: 10px;
}

.game-page__swiper {
    width: 160px;
    overflow: hidden;
    /* margin: 0 auto; */
    position: relative;
    margin-left: 50%;
    transform: translate(-100%);
}

.game-page__swiper::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.game-page__swiper--wrapper {
    display: flex;
}

.game-page__buttons {
    justify-content: center;
    height: 0;
    width: 90px;
    margin: -150px 0 160px 50%;
    transform: translate(50%);
}

.game-page__buttons--btn {
    width: 90px;
    cursor: pointer;
}

@media screen and (max-width: 430px) {
    .game-page__buttons {
        width: 70px;
    }

    .game-page__buttons--btn {
        width: 70px;
    }

    .game-page__swiper {
        width: 130px;
    }
}

.game-page__buttons--btn.inactive {
    pointer-events: none;
    filter: greyscale(1);
    opacity: .6;
}

@media (hover: hover) {
    .game-page__buttons--btn:not(.inactive):hover {
        filter: brightness(1.2);
    }
}

.game-page__title {
    font-size: 25px;
    text-shadow: 0 3px #0000004a;
    text-align: center;
    margin-bottom: 20px;
}

.game-page__counter {
    font-size: 25px;
    margin-top: 20px;
    text-align: center;
    margin: 20px 0 0 50%;
    width: 160px;
    transform: translate(-100%);
}

@media screen and (max-width: 430px) {
    .game-page__counter {
        width: 130px;
    }
}

.game-page__choose-result {
    margin-top: 10px;
    width: 200px;
}

.game-page__answer {
    transition: opacity .2s linear;
}

@media screen and (max-width: 768px) {
    .game-page__title {
        font-size: 21px;
    }

    .game-page__counter {
        font-size: 22px;
        margin-top: 10px;
        text-align: center;
    }
}

/* STYLES FOR RULES PAGE */

.rules-page__title {
    font-size: 20px;
    font-weight: 500;
    color: #1c96f9;
    margin-bottom: 30px;
}

ul.rules-page__list {
    list-style: none;
}

ul.rules-page__list li {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.rules-page__list--title {
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    ul.rules-page__list li {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.5;
    }
}

.memory-modal {
    background: #18181b;
    position: fixed;
    z-index: 7;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 60px 90px;
    border-radius: 15px;
    box-shadow: 0 0 0px 100vw #000000de;
    max-width: 600px;
    width: calc(100% - 15px);
}

.memory-modal__info {
    font-size: 21px;
    color: #eaeaea;
    text-align: center;
    margin-bottom: 70px;
}

.memory-modal__info svg {
    width: 30px;
    height: 30px;
    margin-bottom: -7px;
    margin-left: 5px;
}

.memory-modal__title {
    font-size: 29px;
    text-align: center;
    margin-bottom: 70px;
}

.memory-modal__button {
    background-image: linear-gradient(#d4aa61, #cc8c39);
    color: #000;
    font-size: 22px;
    font-weight: 600;
    width: fit-content;
    margin: 0 auto 60px auto;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer
}

.memory-modal__button:hover {
    background-image: linear-gradient(#ecbd6b, #e99f40);
}

@media screen and (max-width: 768px) {
    .memory-modal {
        padding: 30px 15px;
    }

    .memory-modal__info {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .memory-modal__title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .memory-modal__button {
        font-size: 21px;
    }
}