@import url('https://fonts.googleapis.com/css?family=Exo+2:900');

@font-face {
    font-family: "Geometria";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria"), url("../fonts/Geometria.woff") format("woff");
}

@font-face {
    font-family: "Geometria-Italic";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-Italic"),
    url("../fonts/Geometria-Italic.woff") format("woff");
}

@font-face {
    font-family: "Geometria-Thin";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-Thin"),
    url("../fonts/Geometria-Thin.woff") format("woff");
}

@font-face {
    font-family: "Geometria-ThinItalic";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-ThinItalic"),
    url("../fonts/Geometria-ThinItalic.woff") format("woff");
}

@font-face {
    font-family: "Geometria-ExtraLight";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-ExtraLight"),
    url("../fonts/Geometria-ExtraLight.woff") format("woff");
}

@font-face {
    font-family: "Geometria-ExtraLightItalic";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-ExtraLightItalic"),
    url("../fonts/Geometria-ExtraLightItalic.woff") format("woff");
}

@font-face {
    font-family: "Geometria-Light";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-Light"),
    url("../fonts/Geometria-Light.woff") format("woff");
}

@font-face {
    font-family: "Geometria-LightItalic";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-LightItalic"),
    url("../fonts/Geometria-LightItalic.woff") format("woff");
}

@font-face {
    font-family: "Geometria-Medium";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-Medium"),
    url("../fonts/Geometria-Medium.woff") format("woff");
}

@font-face {
    font-family: "Geometria-MediumItalic";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-MediumItalic"),
    url("../fonts/Geometria-MediumItalic.woff") format("woff");
}

@font-face {
    font-family: "Geometria-Bold";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-Bold"),
    url("../fonts/Geometria-Bold.woff") format("woff");
}

@font-face {
    font-family: "Geometria-BoldItalic";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-BoldItalic"),
    url("../fonts/Geometria-BoldItalic.woff") format("woff");
}

@font-face {
    font-family: "Geometria-ExtraBold";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-ExtraBold"),
    url("../fonts/Geometria-ExtraBold.woff") format("woff");
}

@font-face {
    font-family: "Geometria-ExtraBoldItalic";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-ExtraBoldItalic"),
    url("../fonts/Geometria-ExtraBoldItalic.woff") format("woff");
}

@font-face {
    font-family: "Geometria-Heavy";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-Heavy"),
    url("../fonts/Geometria-Heavy.woff") format("woff");
}

@font-face {
    font-family: "Geometria-HeavyItalic";
    font-style: normal;
    font-weight: normal;
    src: local("Geometria-HeavyItalic"),
    url("../fonts/Geometria-HeavyItalic.woff") format("woff");
}

:root {
    --index: calc(1vw + 1vh);
}


* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Geometria";
}

.page {
    background: url("../img/bg.jpg") no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.sub {
    font-size: 3.344vw;
    padding-left: 5px;
}

.logo__wrap {
    display: flex;
    justify-content: center;
    padding-top: 1.563vw;
    background: url(../img/logo-shadow.png) 50% 50% / contain no-repeat;
}

.logo-link {
    width: 6.146vw;
}

.logo-link img {
    width: 100%;
}

.main {
    /* min-height: 80vh; */
    display: flex;
    align-items: center;
    margin-top: 12vh;
}

/*--------------animation-------------- */
@keyframes rotateRays {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(30deg);
    }
    100% {
        transform: rotate(60deg);
    }
}

@keyframes rotateRaysReverse {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-30deg);
    }
    100% {
        transform: rotate(-60deg);
    }
}

.sunrays {
    width: 50%;
    height: 100%;
    perspective: 5px;
    perspective-origin: 50% 0%;
    transform-style: preserve-3d;
    display: flex;
    align-items: flex-start;
    position: absolute;
    top: 0%;
    left: 0%;
    animation: rotateRays 4s linear infinite;
}

/*.sunrays.r1 {
  top: -64%;
  left: 259%;
  opacity: 0.8;
  transform: rotate(68deg);
  animation: rotateRaysReverse 4s linear infinite alternate; /* Додайте alternate тут
}
*/
.sunrays.r2 {
    top: -142%;
    left: 236%;
    opacity: 1;
    transform: rotate(60deg);
    animation: rotateRays 4s linear infinite alternate; /* Додайте alternate тут */
}

.outline .sunrays,
.outline .sun {
    outline: 1px solid cyan;
}

.sunrays > * {
    flex: 0 0 15%;
}

.light:nth-child(4n + 1) {
    flex: 3 1 auto;
}

.light:nth-child(4n + 2) {
    box-shadow: none;
}

.light:nth-child(4n + 3) {
    flex: 1 1 auto;
}

.light:nth-child(4n) {
    box-shadow: none;
}

.light {
    height: 80%;
    box-shadow: 200px -15px 30px rgb(255, 254, 246);
    transform-origin: 0% 100% 0px;
    transform: rotateZ(0deg) rotateY(0deg) rotateX(90deg) translateZ(0);
}

.outline .light {
    box-sizing: border-box;
    border-left: 1px solid lime;
}

.r1 .light {
    height: 55%;
}

.r2 .light {
    height: 80%;
}


.offer {
    z-index: 2;
    position: relative;
}

.offer__wrap {
    background: url("../img/bg-offer.png") no-repeat;
    background-size: cover;
    background-position: 100% 100%;
    width: 26.042vw;
    height: 22.917vw;
    margin: 0 0 0 8.333vw;
}

.offer__blur {
    width: 26.042vw;
    height: 22.917vw;
    margin: 0 0 0 8.333vw;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: block;
    border-radius: 50px;
    position: absolute;
    top: 0;
    z-index: -1;
}

.offer__under {
    display: flex;
    justify-content: space-evenly;
    width: 26.042vw;
    margin: 20px 0 0 8.333vw;
    font-weight: 700;
    font-family: "Geometria-Bold", sans-serif;
}

.offer__under > p {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-family: "Geometria-Bold", sans-serif;
}

.bg-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.bg-main--tab,
.bg-main--mob {
    display: none;
}

@media screen and (max-width: 1024px) and (orientation: portrait), screen and (max-width: 992px) {
    .bg-main--tab {
        display: block;
    }

    .bg-main--desk,
    .bg-main--mob {
        display: none;
    }

    .sunrays.r2 {
        top: -142%;
        left: 95%;
        opacity: 1;
        transform: rotate(13deg);
        animation: rotateRays 4s linear infinite alternate;
    }

    .offer__under > p {
        font-weight: 700;
        font-size: 12px;
        line-height: 12px;
        color: #FFFFFF;
        text-transform: uppercase;
    }
}

@media screen and (max-width: 992px) and (orientation: landscape) {
    .bg-main--tab {
        display: block;
    }

    .bg-main--desk,
    .bg-main--mob {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .bg-main--mob {
        display: block;
    }

    .bg-main--desk,
    .bg-main--tab {
        display: none;
    }
}

.offer__title,
.offer__sub-title {
    color: #00095b;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.04em;
    line-height: 0.9;
    font-family: "Geometria-Bold";
}

.offer__title {
    font-size: 5.365vw;
    padding: 5vw 0 0.521vw 0;
}

.offer__sub-title {
    font-size: 3.021vw;
}

.offer__game {
    font-family: "Geometria-Bold";
    font-weight: 700;
    font-size: 0.938vw;
    line-height: 1;
    color: #2d3685;
    text-align: center;
    padding: 1.146vw 0 2.344vw 0;
}

.offer__buttons {
    display: flex;
    justify-content: center;
}

.offer__code {
    width: 9.531vw;
    height: 3.125vw;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.521vw 0 0;
    cursor: pointer;
}

.offer__code--text {
    color: #00095b;
    font-family: "Geometria-Bold";
    font-weight: bold;
    font-size: 0.833vw;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copy-color {
    color: #29b613;
}

.offer__link {
    background: #f15330;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    border-radius: 10px;
    font-family: "Geometria-Bold";
    font-weight: bold;
    font-size: 0.833vw;
    color: #ffffff;
    width: 7.396vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.termsBtn {
    color: #262d6d;
    font-family: "Geometria-Medium";
    font-weight: 500;
    font-size: 0.833vw;
    position: absolute;
    z-index: 10;
    right: 4.083vw;
    bottom: 4.083vw;
    background: #f4f4f4;
    box-shadow: 0px 16px 24px #00000033;
    width: 3.281vw;
    height: 3.281vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s;
}

.terms p {
    margin: 0;
}

.terms {
    max-width: 21vw;
    position: absolute;
    right: 4.083vw;
    bottom: 8.25vw;
    display: none;
    padding: 1.563vw 1.875vw 1.563vw 1.875vw;
    color: #00095b;
    font-family: "Geometria-Medium";
    line-height: 1.042vw;
    background: #ffffff;
    font-size: 0.729vw;
    font-weight: 400;
    backdrop-filter: blur(5px);
    border-radius: 1.563vw;
}

.terms b {
    font-weight: bold;
}

.princess,
.art-t {
    display: none;
}

@media (max-width: 1024px) and (orientation: portrait), (max-width: 1023px) {
    .art-t {
        display: flex;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 47%;
        height: 60%;
    }

    .art-t div {
        width: 100%;
    }

    .sunrays.r2 {
        top: -186%;
        left: 69%;
        opacity: 1;
        transform: rotate(-45deg);
        animation: rotateRays 4s linear infinite alternate;
    }

    .art-t img {
        width: 100%;
        height: 100%;
    }

    .sub {
        font-size: 35px;
        padding-left: 5px;
    }

    .page {

        background: url("../img/bg-t.jpg") no-repeat;
        background-position: center;
        background-size: cover;

    }


    .offer__wrap {
        background: url("../img/bg-offer-t.png") no-repeat;
        background-size: 100% 100%;
        background-position: 100% 100%;
    }

    .logo__wrap {
        min-height: 160px;
        padding-top: 30px;
        background-image: url("../img/logo-shadow-t.png");
        background-size: auto 100%;
    }

    .logo-link {
        width: 86px;
    }

    .main {
        /* min-height: 50vh; */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 3vh;
    }

    .offer__wrap {
        background-size: 100% 100%;
        background-position: 100% 100%;
        width: 300px;
        height: 290px;
        margin: 0;
        transform: scale(1.3);
    }

    .offer__blur {
        width: 300px;
        height: 290px;
        margin: 0;
        transform: scale(1.3);
    }

    .offer__under {
        width: 100%;
        margin-left: 0;
        margin-top: 65px;
    }

    .offer__title {
        font-size: 55px;
        padding: 75px 0 6px 0;
    }

    .offer__sub-title {
        font-size: 32px;
    }

    .offer__game {
        font-size: 14px;
        padding: 15px 0 20px 0;
    }

    .offer__code {
        width: 130px;
        height: 40px;
        margin: 0 10px 0 0;
    }

    .offer__code--text {
        font-size: 13px;
    }

    .offer__link {
        font-size: 14px;
        width: 110px;
    }

    .termsBtn {
        font-size: 16px;
        position: absolute;
        right: 50%;
        transform: translateX(50%);
        bottom: 3%;
        background: #f4f4f4;
        box-shadow: 0px 16px 24px #00000033;
        width: 54px;
        height: 54px;
    }

    .terms {
        max-width: 320px;
        position: absolute;
        right: 50%;
        transform: translateX(50%);
        bottom: 0;
        padding: 20px 20px 20px 20px;
        line-height: 20px;
        font-size: 14px;
        backdrop-filter: blur(5px);
        border-radius: 30px 30px 0 0;
        z-index: 3;
    }

    .termsBtn.active {
        bottom: 11%;
    }
}

@media (max-width: 900px) and (orientation: portrait), (max-width: 900px) {
    .termsBtn.active {
        bottom: 16%;
    }

    .witch-t {
        width: 55%;
        height: 55%;
    }

    .offer__wrap {
        transform: scale(1.2);
    }

    .offer__blur {
        transform: scale(1.2);
    }

}

@media (max-width: 769px) and (orientation: portrait), (max-width: 768px) {
    .termsBtn.active {
        bottom: 15%;
    }

    .offer__wrap {
        transform: scale(1);
    }

    .offer__blur {
        transform: scale(1);
    }

    .witch-t {
        width: 50%;
        height: 50%;
    }

    .offer__under {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 600px) and (orientation: portrait), (max-width: 599px) {
    .page {
        background: url("../img/bg-m.jpg") center / cover no-repeat;
        min-height: 100vh;
    }

    .art-t {
        display: none;
    }

    .sub {
        font-size: 35px;
    }

    .offer__title {
        font-size: 55px;
        padding: 75px 0 6px 0;
    }

    .logo-link {
        width: 68px;
    }

    .logo__wrap {
        padding: 14px 0 14px 0;
        min-height: 50px;
    }

    .main {
        min-height: calc(100vh - 40px);
        flex-direction: column;
        justify-content: space-between;
        margin-top: 0;
    }

    .offer__wrap {
        /* background: url("../img/bg-offer-m.png") no-repeat;
            background-size: 100% 100%;
            background-position: 100% 100%; */
        height: 280px;
        padding: 0 15px;
        width: 280px;
        /* margin: 0 0 480px 0; */
        transform: scale(1);
    }

    .offer__blur {
        height: 280px;
        padding: 0 15px;
        width: 280px;
        transform: scale(1);
    }

    .offer__under {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .offer__under > p {
        font-size: 10px;
        line-height: 12px;
    }

    .termsBtn {
        position: fixed;
    }

    .terms {
        max-width: 100%;
        position: fixed;
        right: auto;
        transform: translateX(0);
        bottom: 0;
        padding: 20px 20px 20px 20px;
        line-height: 20px;
        font-size: 14px;
        backdrop-filter: blur(5px);
        border-radius: 20px 20px 0 0;
    }

    .termsBtn.active {
        bottom: 22%;
    }

    .princess {
        display: flex;
        margin: 20px 0 0 0;
    }

    .sunrays.r2 {
        top: -114%;
        left: 42%;
        opacity: 1;
        transform: rotate(12deg);
        animation: rotateRays 4s linear infinite alternate;
    }
}

@media (max-width: 600px) and (max-device-height: 815px) and (min-device-height: 700px) {
    .termsBtn.active {
        bottom: 20%;
    }
}

@media (max-width: 321px) and (orientation: portrait), (max-width: 320px) {
    .termsBtn.active {
        bottom: 33%;
    }
}

@media (orientation: landscape) and (max-height: 602px) and (max-width: 1000px) {
    .witch-t {
        display: none;
    }

    .page {
        /* background: url("../img/bg-t.jpg") no-repeat;
            background-size: cover;
            background-position: 100% 45%; */
        min-height: 600px;
        position: relative;
    }

    .logo-link {
        width: 68px;
    }

    .offer__title {
        padding: 80px 0 6px 0;
    }

    .logo__wrap {
        min-height: auto;
        padding: 14px 0 14px 0;
    }

    .main {
        min-height: auto;
        flex-direction: column;
        justify-content: space-between;
        margin-top: 0;
    }

    .offer__wrap {
        background: url("../img/bg-offer-m.png") no-repeat;
        background-size: 100% 100%;
        background-position: 100% 100%;
        height: 275px;
        padding: 0 15px;
        margin: 25px 0 0 0;
    }

    .offer__under {
        margin-bottom: 500px;
    }

    .offer__blur {
        height: 275px;
        padding: 0 15px;
        margin: 25px 0 500px 0;
    }

    .termsBtn {
        position: absolute;
    }

    .terms {
        position: absolute;
        width: 500px;
        max-width: 100%;
        right: 50%;
        transform: translateX(50%);
        bottom: 0;
        padding: 20px 20px 20px 20px;
        line-height: 20px;
        font-size: 14px;
        backdrop-filter: blur(5px);
        border-radius: 20px 20px 0 0;
    }

    .termsBtn.active {
        bottom: 17.5%;
    }

    .princess {
        display: flex;
        margin: 20px 0 0 0;
    }

    .art-t {
        width: 39%;
        height: 51%;
    }
}

@supports (-webkit-touch-callout: none) {
    .page {
        min-height: -webkit-fill-available;
    }
}

@media screen and (device-width: 1024px) and (device-height: 768px) and (orientation: landscape) {
    .logo__wrap {
        min-height: 65px;
    }

    .sunrays.r2 {
        top: -199%;
        left: 217%;
        opacity: 1;
        transform: rotate(60deg);
        animation: rotateRays 4s linear infinite alternate;
    }

    .page {
        /* background: url("../img/bg.jpg") no-repeat;
            background-position: 75% 50%;
            background-size: cover; */
    }

    .main {
        margin-top: 20vh;
    }
}


/*bubbles animation*/

h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 8.5vw;
    color: white;
    padding: 5rem 0;
    text-shadow: 0 4px 48px rgba(255, 255, 255, 0.2);
}

.container {
    position: relative;
    display: flex;
    align-content: center;
    justify-content: center;
}

.bubbles-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    max-width: 15rem;
    transform: translateX(-50%);
    opacity: 0.75;
    overflow: visible;
}

.bubbles {
    width: 100%;
    height: auto;

    circle {
        stroke: white;
        fill: none;
    }

    > g > g:nth-of-type(3n) circle {
        stroke: #87f5fb;
    }

    > g > g:nth-of-type(4n) circle {
        stroke: #8be8cb;
    }

}

.bubbles-large {
    overflow: visible;

    > g {
        transform: translateY(2048px);
        opacity: 0;
        will-change: transform, opacity;
    }

    g:nth-of-type(1) {
        animation: up 6.5s infinite;

        g {
            transform: translateX(350px);
        }

        circle {
            animation: wobble 3s infinite ease-in-out;
        }

    }

    g:nth-of-type(2) {
        animation: up 5.25s 250ms infinite;

        g {
            transform: translateX(450px);
        }

        circle {
            animation: wobble 3s infinite ease-in-out;
        }

    }

    g:nth-of-type(3) {
        animation: up 6s 750ms infinite;

        g {
            transform: translateX(700px);
        }

        circle {
            animation: wobble 3s infinite ease-in-out;
        }

    }

    g:nth-of-type(4) {
        animation: up 5.5s 1.5s infinite;

        g {
            transform: translateX(500px);
        }

        circle {
            animation: wobble 3s infinite ease-in-out;
        }

    }

    g:nth-of-type(5) {
        animation: up 6.5s 4s infinite;

        g {
            transform: translateX(675px);
        }

        circle {
            animation: wobble 3s infinite ease-in-out;
        }

    }

}

.bubbles-small {
    overflow: visible;

    > g {
        transform: translateY(2048px);
        opacity: 0;
        will-change: transform, opacity;
    }

    g circle {
        transform: scale(0);
    }

    g:nth-of-type(1) {
        animation: up 5.25s infinite;

        g {
            transform: translateX(350px);
        }

        circle {
            animation: wobble 3s infinite ease-in-out;
        }

    }

    g:nth-of-type(2) {
        animation: up 5.75s infinite;

        g {
            transform: translateX(750px);
        }

        circle {
            animation: wobble 3s infinite ease-in-out;
        }

    }

    g:nth-of-type(3) {
        animation: up 5.25s 250ms infinite;

        g {
            transform: translateX(350px);
        }

        circle {
            animation: wobble 3s 250ms infinite ease-in-out;
        }

    }

    g:nth-of-type(4) {
        animation: up 5.75s 325ms infinite;

        g {
            transform: translateX(180px);
        }

        circle {
            animation: wobble 3s 325ms infinite ease-in-out;
        }

    }

    g:nth-of-type(5) {
        animation: up 6s 125ms infinite;

        g {
            transform: translateX(350px);
        }

        circle {
            animation: wobble 3s 250ms infinite ease-in-out;
        }

    }

    g:nth-of-type(6) {
        animation: up 5.13s 250ms infinite;

        g {
            transform: translateX(650px);
        }

        circle {
            animation: wobble 3s 125ms infinite ease-in-out;
        }

    }

    g:nth-of-type(7) {
        animation: up 6.25s 350ms infinite;

        g {
            transform: translateX(480px);
        }

        circle {
            animation: wobble 3s 325ms infinite ease-in-out;
        }

    }

    g:nth-of-type(8) {
        animation: up 7s 200ms infinite;

        g {
            transform: translateX(330px);
        }

        circle {
            animation: wobble 3s 325ms infinite ease-in-out;
        }

    }

    g:nth-of-type(9) {
        animation: up 6.25s 233ms infinite;

        g {
            transform: translateX(230px);
        }

        circle {
            animation: wobble 3s 275ms infinite ease-in-out;
        }

    }

    g:nth-of-type(10) {
        animation: up 6s 900ms infinite;

        g {
            transform: translateX(730px);
        }

        circle {
            animation: wobble 2s 905ms infinite ease-in-out;
        }

    }

}

@keyframes wobble {

    33% {
        transform: translateX(-50px);
    }

    66% {
        transform: translateX(50px);
    }

}

@keyframes up {

    0% {
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-1024px);
    }

}
