

/*fonts*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@400;700;900&display=swap');

.bebas-neue-bold {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

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

@font-face {
    font-family: 'Bebas Neue';
    src: url('fonts/BebasNeue Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}


/*var*/

:root {
    --color-title: rgba(91, 29, 206, 1);
    --color-grey: rgba(0, 0, 0, 0.6);
    --color-black: rgba(33, 0, 58, 1);
    --color-green: rgba(32, 144, 24, 1);
    --color-footer: #9497A1;

    --bg-wheel: #F5F5F5;

    --font-bebas-neue: "Bebas Neue", sans-serif;
    --font-lato: "Lato", sans-serif;

    --weight-regular: 400;
    --weight-bold: 700;
    /*--weight-black: 900;*/

    --text-size-small: 0.625rem; /*10px*/
    --text-size-medium: 0.75rem; /*12px*/
}


/*reset*/

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-lato);
    font-weight: var(--weight-regular);
    padding: 0;
    margin: 0;
}








/*header*/
.header {
    background: var(--bg-wheel);
    padding: 10px 0;
}

.logo {
    font-size: 26px;
    text-align: center;
    color: var(--color-title);
}

.advantages {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 5cqi;

    color: var(--color-grey);
    font-size: var(--text-size-small);
}

.advantages > div {
    display: flex;
    align-items: flex-end;
    gap: 5px;
}


/*main*/

.main {
    background: var(--bg-wheel);
    /*padding: 0 20px;*/
}

.main_inform {
    display: flex;
    flex-direction: column;
    gap: 10px;

    align-items: center;

    padding: 0 20px;

    margin-bottom: 20px;
}

.title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: var(--weight-bold);
    text-align: center;
    color: var(--color-title);
    margin: 0;
    width: 80%;
    min-width: 325px;
    max-width: 900px;
}

.sub_title {
    font-size: clamp(0.75rem, 0.5968rem + 0.6452vw, 1rem);
    color: var(--color-grey);
    text-align: center;

    width: 60%;
    min-width: 250px;
    max-width: 500px;
}

.warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: max-content;

    font-size: var(--text-size-medium);
    color: var(--color-black);
    text-align: center;
    background: rgba(255, 255, 255, 1);
    padding: 13px 10px;
    border-radius: 10px;
}

.warning > svg {
    rotate: 90deg;
}


/*wheel*/

.wheel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;

    /*padding: 10px 0;*/
}

.wheel_title_mobile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    line-height: 1.1;
    font-size: 20px;
    color: var(--color-title);
    margin: 0;
}

.wheel_title_mobile > div:first-child,
.wheel_title_mobile > div:last-child {
    margin-top: 7px;
}

.wheel_title_mobile > div:first-child {
    text-align: end;
    rotate: -10deg;
}

.wheel_title_mobile > div:last-child {
    rotate: 10deg;
}

.wheel_title_desktop {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.wheel_title_desktop > svg {
    rotate: 90deg;
}

.wheel_title_desktop div {
    font-size: 20px;
}

.wheel_hint {
    position: relative;
}

.wheel_hand {
    position: absolute;
    font-size: 45px;
    rotate: -20deg;
    right: -20px;
    bottom: -28px;
    z-index: 1000;
}

.wheel_wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    /*height: 400px;*/

    /*height: clamp(400px, 36.1vw, 650px);*/
    height: clamp(400px, 50vw, 650px);

    min-height: 400px;
    max-height: 650px;
}

.wheel_wrapper > div {
    width: clamp(1000px, 100vw, 1400px);

    min-width: 1000px;
    max-width: 1400px;
    position: absolute;
    /*top:50%;*/
    left:50%;
    transform:translate(-50%, 0%);
}

/*offers*/
.offer_container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;

    text-align: center;

    position: relative;
    /*z-index: 1 !important;*/
    /*margin-top: -25px;*/
}

.offer_container_active {
    z-index: 10;
    /*background: #ffffff;*/
}

.offer_container_active .offer_btn {
    z-index: 11;
    /*position: absolute;*/
}

.offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    rotate: -90deg;
    /*z-index: 10;*/

    /*justify-content: center;*/

    width: 57%;
}

.offer_logo {
    height: 48px;
}

.offer_logo img {
    height: 100%;
}

.offer_sum {
    font-family: var(--font-bebas-neue);
    font-weight: var(--weight-bold);
    color: var(--color-green);

    margin-bottom: -7px;
    line-height: 1;
    /*font-size: clamp(3.5625rem, 1.9153rem + 6.9355vw, 6.25rem);*/
    font-size: clamp(3.5625rem, -6.2917rem + 14.3333vw, 6.25rem);
}

.offer_sum > span {
    font-size: clamp(1.0625rem, 0.5645rem + 2.0968vw, 1.875rem);
}

.offer_amount_and_term {
    color: var(--color-black);
    font-size: clamp(0.428125rem, 0.2308rem + 0.8306vw, 0.75rem);
}

.offer_term {
    color: var(--color-grey);
    font-size: clamp(0.625rem, 0.3185rem + 1.2903vw, 1.125rem);
}

.offer_commission {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}
.offer_commission_title {
    color: var(--color-black);
    font-weight: var(--weight-bold);
    font-size: clamp(0.58125rem, 0.3246rem + 1.0806vw, 1rem);
}

.offer_commission_description {
    max-width: 80%;
    color: var(--color-grey);
    font-size: clamp(0.356875rem, 0.1925rem + 0.6919vw, 0.625rem);
}

.offer_btn {
    width: 50%;
    height: 46px;

    background: rgba(255, 225, 12, 1);
    border-radius: 12px;
    border: none;

    color: rgba(71, 79, 84, 1);
    font-size: clamp(0.625rem, 0.3185rem + 1.2903vw, 1.125rem);
}

.offer_btn:hover {
    opacity: .8;
}

.offer_ads {
    max-width: 60%;
    font-weight: var(--weight-bold);
    color: var(--color-grey);
    font-size: clamp(0.3125rem, 0.121rem + 0.8065vw, 0.625rem);
}

/*wheel offers*/

.wheel_wrapper > .ui-wheel-of-fortune {
    padding: 15px;
}

.ui-wheel-of-fortune {
    --_items: 8;
    all: unset;
    aspect-ratio: 1 / 1;
    container-type: inline-size;
    direction: ltr;
    display: grid;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ui-wheel-of-fortune > * {
    position: absolute;
}

.wheel_cloud {
    /*position: absolute;*/
    bottom: -50%;

    width: 100% !important;
    max-width: 1600px !important;

}

.wheel_cloud img {
    width: 100%;
}

.desktop_cloud {
    width: 100%;
}


.ui-wheel-of-fortune .wheel_center {
    aspect-ratio: 1 / 1;
    opacity: 1;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 5cqi;
    place-self: center;
}

#wheel {
    background: #ffffff;
}

.ui-wheel-of-fortune ul {
    all: unset;
    clip-path: inset(0 0 0 0 round 50%);
    display: grid;
    inset: 0;
    place-content: center start;
}

.ui-wheel-of-fortune ul li {
    align-content: center;
    /*aspect-ratio: 1 / calc(2 * tan(180deg / var(--_items)));*/
    /*background: #fff;*/
    color: #000;
    /*display: grid;*/
    /*font-size: 5cqi;*/
    grid-area: 1 / -1;
    /*padding-left: 1ch;*/
    /*padding-left: 11ch;*/
    rotate: calc(360deg / var(--_items) * calc(var(--_idx)));
    transform-origin: center right;
    user-select: none;
    width: 50cqi;
    transform: rotate(-45deg);
    /*transform: rotate(-180deg);*/
}

.mask_wheel {
    all: unset;
    clip-path: inset(0 0 0 0 round 50%);
    display: grid;
    inset: 0;
    place-content: center start;
}

.mask_wheel li {
    align-content: center;
    aspect-ratio: 1 / calc(2 * tan(180deg / var(--_items)));
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    display: grid;
    grid-area: 1 / -1;
    rotate: calc(360deg / var(--_items) * calc(var(--_idx)));
    transform-origin: center right;
    width: 50cqi;
}

.wheel_center.full_wheel {
    background: #ffffff00;
    width: 100%;
    box-shadow: 0px 0px 60px 0px rgba(117, 152, 239, 0.25);
    box-shadow: 0px 0px 20px 0px rgba(117, 152, 239, 0.35);
}

.wheel_center.small_wheel {
    background: #D8E3F1;
    width: 40%;
    align-content: center;
}

.wheel_center.small_wheel_internal {
    background: #282F43;
    width: 80%;
    position: relative;
    z-index: 1;
}


.small_wheel_internal::after {
    aspect-ratio: 1/cos(30deg);
    background-color: #5E29D1;
    clip-path: polygon(50% 100%,100% 0,0 0);
    content: "";
    height: 20px;
    position: absolute;
    place-self: start center;
    scale: 1.4;
    rotate: 180deg;

    transform: translate(50%, 0);
    left: 50%;
    top: -22px;

    z-index: 2;
}

.wheel_center .ui-wheel-of-fortune ul li {
    transform: rotate(90deg) !important;
}


/*timer*/

.timer_offer {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    font-size: 20px;
    color: var(--color-black);
    z-index: 1000;
    padding: 15px;
}

.timer_offer_time {
    font-weight: var(--weight-bold);
    color: rgba(104, 84, 246, 1);
}

/*footer*/

.footer {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}

.footer_inform {
    color: var(--color-footer);
    padding: 100px 20px;
    font-size: 12px;
}

.footer_space {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.footer_inform_main {
    justify-content: space-between;
    flex-direction: row-reverse;
}

.footer_inform_main > div,
.footer_inform_text {
    max-width: 572px;
}


.footer_inform_contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer_inform_email {
    font-size: 30px;
    color: var(--color-title);
}

.footer_section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer_section_title {
    font-size: 16px;
    color: var(--color-title);
}

.footer_subscribe {
    color: var(--color-title);
}

.footer_bottom {
    display: flex;
    /*flex-direction: column;*/
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.footer_bottom_legal {
    display: flex;
    /*flex-direction: column;*/
    text-align: center;
    gap: 5px;

    color: var(--color-title);
    opacity: 50%;
    font-size: 10px;
}


.mobile {
    display: none;
}



/*progress*/

.progress {
    position: absolute;
    left: 20px;
}

#progress-bar--container {
    display: flex;
    justify-content: center;
}

#progress-bar--container svg {
    width: 176px;
}

#progress--circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    /*stroke-linecap: round;*/
}

#progress--text {
    fill: var(--color-title);
    font-weight: var(--weight-regular);
    font-size: 18px;
    transform-origin: center;
    transform: rotate(90deg);
}
#super_wheel{
    overflow: hidden;
    margin-top: -40px;
    width: 100%;
    min-height:350px;
    position: relative;
    z-index: 9;
}
#super_wheel:after{
    position: absolute;
    background: url("./img/cloud.png") no-repeat center top;
    content:'';
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 250px;
    z-index: 500;
}
#super_wheel:before{
    position: absolute;
    background: url("./img/desktop_cloud.png") no-repeat center bottom;
    background-size: cover;
    content:'';
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#app{
    width: 200%!important;
    position: relative;
    z-index: 10;
    transform: translate(-25%, 50px);
}

@media (max-width: 768px) {
    .title {
        font-size: 26px;
        line-height: 1;
    }
    .desktop {
        display: none !important;
    }

    .mobile {
        display: flex;
    }

    .footer_inform_main {
        flex-direction: column;
    }

    .footer_inform {
        padding: 50px 20px;
    }

    .footer_bottom {
        flex-direction: column;
        padding-bottom: 55px;
    }

    .footer_bottom_legal {
        flex-direction: column;
    }

}
@media screen and (min-width:768px){
    #app{
        width: 100% !important;
        transform: translate(0%, 50px);
    }
}
@media screen and (min-width:1500px){
    #app{
        display: flex;
        justify-content: center;
    }
}
@media screen and (min-width:1700px){
    #super_wheel:before{
        height: 150%;
    }
}
@media screen and (min-width:2600px){
    #super_wheel:before{
        height: 180%;
    }
}