html, body {
    height: 100%;
    margin: 0;
    overflow-x: clip;
    font-family: Arial, sans-serif;
}

.outer-wrapper {
    width: 100vh;
    height: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    overflow-y: auto;
    overflow-x: hidden;
    transform: rotate(-90deg) translateX(-100vh);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 6;
    margin-top: var(--header-height);
    margin-bottom: var(--footer-height);
}

.outer-wrapper::-webkit-scrollbar {
    display: none;
}

.wrapper-background {
    display: flex;
    flex-direction: row;
    transform-origin: top left;
    height: 100vh;
    transform: rotate(90deg) translateY(-100vh);
}

.combined-screen {
    display: flex;
    position: relative;
    height: 100vh;
    flex-shrink: 0;
    background: url("./images/startBackgroundDesktop.png") left center / auto 100% no-repeat,
    url("./images/background.png") calc(100vh * (2309 / 1030)) 0 / auto 100% no-repeat,
    url("./images/background.png") calc(100vh * (2309 / 1030 + 1679 / 1988)) 0 / auto 100% no-repeat,
    url("./images/background.png") calc(100vh * (2309 / 1030 + 1679 / 1988 * 2)) 0 / auto 100% no-repeat,
    url("./images/background.png") calc(100vh * (2309 / 1030 + 1679 / 1988 * 3)) 0 / auto 100% no-repeat;
    padding-left: 5vh;
}

.information-wrapper {
    display: flex;
    position: relative;
    height: 100%;
    width: auto;
    flex-shrink: 0;
    margin-left: 11.5vh;
}

.info-block .information {
    height: 57vh;
}

.info-block {
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    transform: translate(14.5vh, 3vh);
    z-index: 1;
    gap: 3vh;
}

.menu-wrapper, .scroll-btn-wrapper, .date-btn-wrapper, .subscription-btn-wrapper, .bonus-btn-wrapper {
    display: inline-block;
    padding: 1.7vh;
    border-radius: 4vh;
    background: linear-gradient(to bottom, #F7CD44 0%, #DBE32B 49%, #C2F618 100%);
}

.menu-inner, .scroll-btn-inner, .date-btn-inner, .subscription-btn-inner, .bonus-btn-inner {
    display: flex;
    justify-content: center;
    background: #fff;
    border-radius: 4vh;
    padding: 0.7vh 1.4vh;
}

.scroll-btn-wrapper {
    transform: translateX(20vh);
    height: fit-content;
    position: absolute;
    bottom: 19vh;
    left: 22.5vh;
    z-index: 3;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 2vh;
    font-family: Montserrat-Regular, sans-serif;
    padding: 0.7vh 1.4vh;
    background: #fff;
    border-radius: 4vh;
    text-align: center;
}


.subscription-btn-wrapper {
    transform: translateY(-3.5vh);
}

.bonus-btn-wrapper {
    transform: translateY(-1vh);
}

.menu-btn {
    background: none;
    border: none;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 1.8vh;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-scroll, .date-btn, .subscription-btn, .bonus-btn {
    background: none;
    border: none;
    font-family: Montserrat-ExtraBold, sans-serif;
    font-size: 1.8vh;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5vh;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.menu-btn:hover, .btn-scroll:hover, .date-btn:hover, .subscription-btn:hover, .bonus-btn:hover, .action-btn:hover {
    transform: scale(1.05);
}

.arrow, .arrow-left {
    height: 2vh;
    margin-left: 0.5vh;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.btn-scroll:hover .arrow {
    transform: translateX(0.8vh);
}

.btn-back:hover .arrow-left {
    transform: translateX(-0.8vh);
}

.people-block {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    transform: translateX(-3vh);
    pointer-events: none;
}

.people-block .group-of-people {
    height: 95vh;
    max-width: 100%;
}

.rules-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    height: 100%;
    transform: translate(-16vh, 4vh);
}

.playing {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-20vh) rotate(-3.02deg);
    color: #fff;
    text-shadow: -4.24px 6.78px 4.32px #006555;
    font-family: Oswald-Bold, "sans-serif";
    font-size: 8.5vh;
    line-height: 0.8;
    transform-origin: left center;
    margin: 3vh 3vh 3vh 0;
}

.second-line {
    margin-top: 4vh;
}

.third-line {
    margin-top: 1vh;
    margin-left: 1vh;
}

.play-img {
    height: 11.5vh;
}

.doing-img {
    margin-left: 6vh;
    height: 18vh;
}

.drawing-rules {
    font-family: Montserrat-ExtraBold, sans-serif;
    font-size: 3vh;
    line-height: 1.2;
    color: #fff;
    text-shadow: -2px 4px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 3vh;
    margin-top: 3vh;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 3vh;
}

.step-number {
    height: 6vh;
    flex-shrink: 0;
}

.step-text {
    font-family: Montserrat-Medium, sans-serif;
    font-size: 2vh;
    line-height: 1;
    color: #ffffff;
    text-shadow: -2px 4px 4px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.macaco-block {
    transform: translateX(-39vh);
}

.macaco {
    height: 26vh;
}

.characters-block {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17vh;
    gap: 10.5vh;
    flex-shrink: 0;
    transform: translateX(-21vh);
}

.character {
    position: relative;
}

.character-background {
    width: 28vh;
    height: 46.5vh;
    border-radius: 40px;
    background: linear-gradient(to bottom, #ADF8BF 0%, #5FEBDB 43%, #11DCF5 100%);
    box-shadow: -9.42px 19.57px 41.6px rgba(0, 0, 0, 0.5);
}

.character-name {
    transform: translate(0.5vh, -8vh);
    height: 11.6vh;
}

.character-photo {
    height: 40.5vh;
    transform: translateY(-15vh);
}

.character-card {
    position: absolute;
    bottom: -24vh;
    left: -8.4vh;
    background: url("./images/character-card.png") no-repeat center/contain;
    height: 49vh;
    width: 40vh;
    display: flex;
    justify-content: center;
}

.header-with-duck {
    display: flex;
    justify-content: space-between;
}

.duck {
    height: 6.1vh;
    padding-right: 1vh;
}

.card-content {
    width: 77%;
    height: 80%;
    margin-top: 3vh;
    margin-left: 2vh;
}

.character-card h1 {
    font-family: Oswald-Bold, 'sans-serif';
    margin-left: 2vh;
    margin-top: 1vh;
    margin-bottom: 0;
    font-size: 3.2vh;
}

.card-description {
    margin: 0;
    font-family: Montserrat-SemiBold, 'sans-serif';
    font-size: 1.3vh;
    line-height: 113%;
    padding: 0 1vh 0 2vh;
}

.actions-wrapper {
    display: flex;
    flex-direction: column;
    padding: 1vh 1vh 0 2vh;
    gap: 1vh;
}

.video, .game {
    border-radius: 20px;
    display: flex;
    padding: 1vh;
}

.game {
    background: linear-gradient(to left, #ADF8BF 0%, #5FEBDB 43%, #11DCF5 100%);
}

.video {
    background: linear-gradient(to bottom, #F7CD44 0%, #DBE32B 49%, #C2F618 100%);
}

.game-img, .video-img {
    height: 5.7vh;
    padding-right: 1vh;
}

.game-content, .video-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.game-content-header, .video-content-header {
    font-family: Montserrat-SemiBold, 'sans-serif';
    font-size: 0.85vh;
    line-height: 113%;
    color: #ffffff;
    margin: 0 0 0.2vh;
}

.video-content-description, .game-content-description {
    font-family: Montserrat-SemiBold, 'sans-serif';
    font-size: 1.2vh;
    line-height: 113%;
    margin: 0 0 1vh;
}

.action-btn-wrapper {
    display: flex;
    justify-content: center;
    background: #fff;
    border-radius: 40px;
    padding: 0.7vh 1.4vh;
}

.action-btn {
    background: none;
    border: none;
    font-family: Montserrat-SemiBold, sans-serif;
    font-size: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-subscription-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 70vh;
    margin: 0 -6vh 0 -11vh;
}

.bonus {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 44vh;
    margin: 0 -1vh 0 -3.5vh;
}

.get-points-img {
    height: 28vh;
}

.gift-points-img {
    height: 30vh;
}

.bonus-img {
    height: 19.8vh;
}

.get-points-text, .gift-points-text, .bonus-text {
    font-family: Montserrat-ExtraBold, 'sans-serif';
    text-align: center;
    font-size: 2.12vh;
    line-height: 113%;
    color: #ffffff;
    text-shadow: -2px 4px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(-3vh);
}

.gift-points-text {
    transform: translateY(-5vh);
}

.preview {
    transform: translateY(-1.5vh);
    height: 22vh;
}

.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content-rules {
    background: linear-gradient(to bottom, #DDFFF6 0%, #CEDDFF 100%);
    border-radius: 5vh;
    padding: 2vh;
    margin: 2vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.detailed-conditions-container, .prizes-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.back-btn-wrapper, .detailed-conditions-btn-wrapper, .prizes-btn-wrapper {
    margin-top: 2vh;
    margin-bottom: 2vh;
    padding: 1.7vh;
    border-radius: 4vh;
    background: linear-gradient(to bottom, #F7CD44 0%, #DBE32B 49%, #C2F618 100%);
}

.back-btn-inner, .detailed-conditions-btn-inner, .prizes-btn-inner {
    display: flex;
    justify-content: center;
    background: #fff;
    border-radius: 4vh;
    padding: 0.7vh 1.4vh;
}

.btn-back, .btn-detailed-conditions, .btn-prizes {
    background: none;
    border: none;
    font-family: Montserrat-ExtraBold, sans-serif;
    font-size: 1.8vh;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5vh;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.btn-back:hover, .btn-detailed-conditions:hover, .btn-prizes:hover {
    transform: scale(1.05);
}

.preview-rules {
    width: 100%;
}

.rules-header, .prizes-header {
    font-family: Montserrat-ExtraBold, "sans-serif";
    margin: 1vh 0;
    font-size: 3.2vh;
}

.rules-description {
    font-family: Montserrat-Regular, "sans-serif";
    font-size: 1.92vh;
    padding: 0 2vh;
    margin: 0;
    line-height: 100%;
}

.prizes-description {
    font-family: Montserrat-Regular, "sans-serif";
    font-size: 1.92vh;
    margin: 0;
    line-height: 100%;
}

.modal-content-rating {
    padding: 2vh;
    width: 80vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-content-rating .close {
    top: 3vh !important;
    right: 3vh !important;
    height: 3.2vh;
}

.your-result > h3 {
    font-family: Montserrat-Bold, "sans-serif";
    margin: 1vh 0;
    font-size: 3.2vh;
    text-align: center;
    color: #ffffff;
}

.rating-list > h3 {
    font-family: Montserrat-Bold, "sans-serif";
    margin: 1vh 0;
    font-size: 3.2vh;
    text-align: center;
    color: #02b0c4;
}

.your-result {
    background: #02b0c4;
    border-radius: 1vh;
    padding: 1.5vh;
    margin-bottom: 2vh;
}

.rating-list {
    background: #f7f9fc;
    border-radius: 1vh;
    padding: 1.5vh;
}

.rating-row, .your-rating-row {
    display: grid;
    grid-template-columns: 2fr 7fr 2fr;
    align-items: center;
    padding: 2vh;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 1.8vh;
    background: #E6FEFF;
    border-radius: 15px;
    margin-right: 2vh;
    margin-bottom: 1vh;
}

.your-rating-row {
    padding-top: 0;
}

.your-rating-row {
    background: none;
    font-family: Montserrat-SemiBold, sans-serif;
    color: #ffffff;
    font-size: 2.3vh;
}

.rating-row {
    font-family: Montserrat-SemiBold, sans-serif;
    font-size: 2.3vh;
}

.rating-row > .place > div {
    color: #02b0c4;
}

.rating-row:nth-child(-n+5) > .place > div {
    color: #ffffff;
    background: #02b0c4;
    width: 60%;
    border-radius: 20px;
}

.your-rating-head, .rating-head {
    font-family: Montserrat-Regular, sans-serif;
    font-size: 1.8vh;
}

.place {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-head, .your-rating-head {
    margin: 0 0 1vh;
}

#rating-rows {
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-color: #02B0C4 #E9E9E9;
}

#rating-rows::-webkit-scrollbar {
    width: 6px;
}

#rating-rows::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}

.modal-content-socials, .modal-content-QR {
    background-color: #fff;
    padding: 2vh;
    margin: 2vh;
    border-radius: 2vh;
    width: 66vh;
    height: 24vh;
    text-align: center;
    position: relative;
}

.modal .close {
    position: absolute;
    top: 1vh;
    right: 1vh;
    cursor: pointer;
}

.socials-content, .QR-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-header {
    font-family: Montserrat-Bold, 'sans-serif';
    line-height: 120%;
    font-size: 3.2vh;
    margin: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2vh;
    margin-top: 2vh;
}

.social-icons img {
    width: 6vh;
    height: 6vh;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.QR-header {
    font-family: Montserrat-Bold, sans-serif;
    font-size: 3.3vh;
    margin-bottom: 0;
}

.QR-description {
    font-family: Montserrat-Medium, sans-serif;
    font-size: 2.5vh;
    line-height: 120%;
}

.results-button {
    background: #4CC7D6;
    border: none;
    font-family: Montserrat-Bold, sans-serif;
    font-size: 18px;
    color: #ffffff;
    height: 6vh;
    border-radius: 10px;
    cursor: pointer;
}

:root {
    --header-height: 7.5vh;
    --footer-height: auto;
}

.site-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20.5vh;
    z-index: 15;
    background: #4CC7D6;
}

.site-logo {
    height: calc(var(--header-height) - 2vh);
}

.header-nav {
    display: flex;
    gap: 1.2vh;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1vh;
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.header-search, .live-broadcast, .account {
    background: #70d2de;
    border: none;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 1.5vh;
    display: flex;
    align-items: center;
    gap: 1vh;
    color: #ffffff;
    padding: 1vh 1.5vh;
    border-radius: 1000px;
}

.live-broadcast {
    font-family: Montserrat-Bold, sans-serif;
    font-size: 1.5vh;
}

.account {
    padding: 1vh;
    border-radius: 100px;
}

.header-menu {
    background: none;
    border: none;
    font-family: Montserrat-Bold, sans-serif;
    font-size: 1.5vh;
    cursor: pointer;
    color: #ffffff;
}

.site-footer {
    position: relative;
    top: 93vh;
    height: var(--footer-height);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 14vh;
    z-index: 15;
    background: #4CC7D6;
    border-top-left-radius: 2vh;
    border-top-right-radius: 2vh;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4vh;
    width: 100%;
    color: #ffffff;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand img {
    height: 8vh;
}

.brand p {
    font-family: Montserrat-Regular, "sans-serif";
    font-size: 1.8vh;
    line-height: 1.5;
    margin-top: 0;
}

.copyright {
    font-family: Montserrat-Regular, "sans-serif";
    font-size: 1.8vh;
}

.col {
    color: #ffffff;
    margin-top: 0.7vh;
}

.col h4 {
    font-family: Montserrat-Bold, "sans-serif";
    font-size: 1.8vh;
    margin: 0;
}

.col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Montserrat-Regular, "sans-serif";
    font-size: 1.8vh;
    gap: 1.1vh;
}

.col a {
    color: #ffffff;
    text-decoration: none;
}

.col a:hover {
    text-decoration: underline;
}

.social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

hr {
    width: 100%;
    border: #ffffff solid 0.1px;
}

.icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: Montserrat-Regular, "sans-serif";
    font-size: 1.8vh;
    gap: 1.1vh;
}

.icon-btn {
    display: flex;
    text-decoration: none;
    gap: 1vh;
}

.socials-mobile {
    display: none;
}

@media (max-width: 1230px) {
    .header-nav {
        display: none;
    }

    .header-right {
        display: none;
    }

    .burger-btn {
        display: block;
    }

    .site-footer {
        padding: 0 2vh;
    }

    .site-header {
        padding: 0 2vh;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand social"
            "razdely info";
    }

    .brand {
        grid-area: brand;
    }

    .col:nth-of-type(1) {
        grid-area: razdely;
    }

    .social {
        grid-area: social;
    }

    .col:nth-of-type(2) {
        grid-area: info;
    }
}

@media (max-width: 768px) {
    .combined-screen {
        background: url("./images/startBackgroundTablet.png") left center / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1801 / 910)) 0 / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1801 / 910 + 1679 / 1988)) 0 / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1801 / 910 + 1679 / 1988 * 2)) 0 / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1801 / 910 + 1679 / 1988 * 3)) 0 / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1801 / 910 + 1679 / 1988 * 4)) 0 / auto 100% no-repeat;
        padding-left: 0;
    }

    .people-block {
        transform: translateX(7vh);
    }

    .people-block .group-of-people {
        height: 81vh;
    }

    .information-wrapper {
        margin-left: -8.5vh;
    }

    .rules-block {
        margin-left: 22vh;
    }

    .scroll-btn-wrapper {
        left: -5.5vh;
    }

    .menu-inner {
        display: none;
    }

    .menu-inner.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 375px) {
    .combined-screen {
        background: url("./images/startBackgroundMobile.png") left center / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1338 / 740)) 0 / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1338 / 740 + 1679 / 1988)) 0 / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1338 / 740 + 1679 / 1988 * 2)) 0 / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1338 / 740 + 1679 / 1988 * 3)) 0 / auto 100% no-repeat,
        url("./images/background.png") calc(100vh * (1338 / 740 + 1679 / 1988 * 4)) 0 / auto 100% no-repeat;
        padding-left: 0;
    }

    .people-block {
        transform: translateX(-16vh);
        z-index: 0;
    }

    .people-block .group-of-people {
        height: 84vh;
    }

    .information-wrapper {
        margin-left: -12vh;
    }

    .rules-block {
        margin-left: 0;
    }

    .scroll-btn-wrapper {
        left: -5.5vh;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "razdely"
            "info";
        gap: 3vh;
    }

    .socials-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1.8vh;
        gap: 1vh;
    }

    .socials-mobile img {
        height: 2.5vh;
    }

    .logo {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .brand {
        grid-area: brand;
        text-align: center;
        align-items: flex-start;
    }

    .social {
        display: none;
    }

    .col h4 {
        font-size: 2vh;
    }

    .col ul {
        gap: 1.5vh;
    }

    .brand {
        text-align: start;
    }

    .brand p {
        font-size: 1.6vh;
    }

    .copyright {
        font-size: 1.6vh;
    }

    hr {
        margin: 1vh 0;
    }


}

@font-face {
    font-family: "Montserrat-ExtraBold";
    font-style: normal;
    font-weight: 800;
    src: url("./fonts/Montserrat-ExtraBold.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat-Medium";
    font-style: normal;
    font-weight: 500;
    src: url("./fonts/Montserrat-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat-Regular";
    font-style: normal;
    font-weight: 500;
    src: url("./fonts/Montserrat-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat-SemiBold";
    font-style: normal;
    font-weight: 600;
    src: url("./fonts/Montserrat-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: "Montserrat-Bold";
    font-style: normal;
    font-weight: 700;
    src: url("./fonts/Montserrat-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "Oswald-Bold";
    font-style: normal;
    font-weight: 700;
    src: url("./fonts/Oswald-Bold.ttf") format('truetype');
}

