:root { --main-color: #fff; --heading-color: #fff; --bg-color: #393636; --button-color: #393636; --top-image: url(../img/fortune-image.webp); --logo-image: url(../img/fortune-logo.png); --logo-image-height: 70px; --logo-image-height-tablet: 62px; --logo-image-height-mobile: 48px; --wheel-image: url(../img/wheel.webp); --wheel-logo: url(../img/wheel-logo.png); --popup-image-width: 238px; --popup-image-top: 86px; } ol, ul { list-style: none; } h1, h2, h3, h4, h5, h6, ol, ol li, p, ul, ul li { margin: 0; padding: 0; } *, :focus, :hover, :visited { text-decoration: none; outline: 0; } * { -webkit-box-sizing: border-box; box-sizing: border-box; outline: 0; -webkit-tap-highlight-color: transparent; } :after, :before { -webkit-box-sizing: border-box; box-sizing: border-box; } img, picture, video { max-width: 100%; display: block; } svg { display: block; -webkit-transition: 0.2s ease-in-out; -o-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; } a { color: inherit; cursor: pointer; -webkit-transition: 0.2s ease-in-out; -o-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; } table { border-collapse: collapse; border: none; border-spacing: 0; } main { max-width: 2560px; width: 100%; margin-left: auto; margin-right: auto; position: relative; } body { background: var(--bg-color, #fff); color: #0e191f; padding: 0; margin: 0; font-family: SST, "Open Sans", sans-serif; font-weight: 400; width: 100%; position: relative; min-height: 100vh; min-width: 320px; } input, textarea { font-family: SST, "Open Sans", sans-serif; -webkit-appearance: none; border: none; outline: 0; background: 0 0; border-radius: 0; font-weight: 400; } button { font-family: SST, "Open Sans", sans-serif; -webkit-appearance: none; border: none; outline: 0; background: 0 0; border-radius: 0; cursor: pointer; padding: 0; -webkit-transition: 0.2s ease-in-out; -o-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; font-weight: 400; } .fortune { position: relative; background: #fff; } @media (max-width: 1023px) { body { background: var(--bg-color, #fff); } .fortune { background: 0 0; } } .fortune__bg { position: absolute; left: 0; top: 0; width: 50%; height: 100%; background: var(--bg-color, #fff); z-index: 1; } .fortune__bg:before { content: ""; display: block; width: 100%; height: 160px; background: var(--top-image) no-repeat center/cover; } @media (max-width: 1023px) { .fortune__bg { position: static; height: 160px; width: 100%; } .fortune__bg:before { height: 100%; } } .fortune__row { display: grid; grid-template-columns: 1fr 1fr; -webkit-box-align: center; -ms-flex-align: center; align-items: center; position: relative; z-index: 2; min-height: 100vh; } @media (max-width: 1023px) { .fortune__row { display: block; min-height: calc(100vh - 160px); } } .fortune__right { background: #fff; padding: 80px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; overflow: hidden; } @media (max-width: 1439px) { .fortune__right { padding-left: 40px; padding-right: 40px; } } .fortune__wheel { position: relative; max-width: 600px; width: 100%; margin-left: auto; margin-right: auto; } @media (max-width: 1023px) { .fortune__right { background: 0 0; padding-top: 40px; padding-bottom: 40px; } .fortune__wheel { max-width: 640px; } } @media (max-width: 759px) { .fortune__wheel { max-width: 480px; } } .fortune__wheel_button { position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; cursor: pointer; z-index: 3; width: 21.33333%; height: 21.33333%; border-radius: 50%; padding-bottom: 2%; background: var(--button-color, none); } .fortune__wheel_button.clicked { -webkit-box-shadow: none !important; box-shadow: none !important; } .fortune__wheel_button:before { content: ""; display: block; width: calc(100% + 10px); height: calc(100% + 10px); position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background: #fff; border-radius: 50%; z-index: 1; -webkit-animation: 2s ease-in-out infinite glow; animation: 2s ease-in-out infinite glow; } .fortune__wheel_button:after { content: ""; display: block; width: 100%; height: 100%; position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background: var(--button-color, none); border-radius: 50%; z-index: 2; } @-webkit-keyframes glow { 0%, 100% { -webkit-box-shadow: 0 0 0 #ffe70d; box-shadow: 0 0 0 #ffe70d; } 50% { -webkit-box-shadow: 0 0 40px #ffe70d; box-shadow: 0 0 40px #ffe70d; } } @keyframes glow { 0%, 100% { -webkit-box-shadow: 0 0 0 #ffe70d; box-shadow: 0 0 0 #ffe70d; } 50% { -webkit-box-shadow: 0 0 40px #ffe70d; box-shadow: 0 0 40px #ffe70d; } } .fortune__wheel_logo { height: 36%; width: 100%; max-width: 62.5%; background: var(--wheel-logo, url(../img/wheel-logo.png)) no-repeat center/contain; margin-bottom: 7.8125%; position: relative; z-index: 3; } .fortune__wheel_text { display: block; width: 46.875%; height: 13.793%; background: url(../img/wheel-start.svg) center/contain no-repeat; position: relative; z-index: 3; } .fortune__wheel_arrow { display: block; width: 15.66667%; height: 13.5%; background: url(../img/wheel-arrow.png) center/contain no-repeat; position: absolute; right: -2.83333%; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); z-index: 2; } .fortune__wheel_wheel { width: 100%; padding-top: 100%; background: var(--wheel-image, url(../img/wheel.webp)) no-repeat center/contain; z-index: 1; -webkit-transform: rotate(22.5deg); -ms-transform: rotate(22.5deg); transform: rotate(22.5deg); } .fortune__wheel_wheel.rotate { -webkit-animation: 4s forwards rotate1500; animation: 4s forwards rotate1500; } @-webkit-keyframes rotate1500 { 0% { -webkit-transform: rotate(22.5deg); transform: rotate(22.5deg); } 100% { -webkit-transform: rotate(1620deg); transform: rotate(1620deg); } } @keyframes rotate1500 { 0% { -webkit-transform: rotate(22.5deg); transform: rotate(22.5deg); } 100% { -webkit-transform: rotate(1620deg); transform: rotate(1620deg); } } .fortune__left { padding: 190px 120px 90px; } @media (max-width: 1599px) { .fortune__left { padding-left: 80px; padding-right: 80px; } } @media (max-width: 1439px) { .fortune__left { padding-left: 40px; padding-right: 40px; } } @media (max-width: 1023px) { .fortune__left { padding-top: 42px; padding-bottom: 24px; } } .fortune__logo { width: 100%; height: var(--logo-image-height, 70px); background: var(--logo-image) no-repeat left center/auto 100%; margin-bottom: 47px; } .fortune__text { max-width: 720px; color: var(--main-color, #0e191f); } .fortune__text p { font-weight: 900; font-size: 24px; line-height: 1.33333; } .fortune__text p + p { margin-top: 1.3333em; } .fortune__text h2 { font-size: 48px; line-height: 1; color: var(--heading-color, #fff); } @media (max-width: 1279px) { .fortune__logo { height: var(--logo-image-height-tablet, 62px); margin-bottom: 32px; } .fortune__text p { font-size: 22px; line-height: 1.454545; } .fortune__text p + p { margin-top: 1.454545em; } .fortune__text h2 { font-size: 46px; } } .fortune__text.fortune__text-1 { margin-bottom: 30px; } .fortune__text.fortune__text-2 { margin-bottom: 2px; } @media (max-width: 759px) { .fortune__bg { height: 21.05vw; } .fortune__left { padding: 24px 20px; } .fortune__logo { height: var(--logo-image-height-mobile, 48px); margin-bottom: 24px; } .fortune__text.fortune__text-1 { margin-bottom: 16px; } .fortune__text.fortune__text-2 { margin-bottom: 2px; } .fortune__text p { font-size: 18px; } .fortune__text h2 { font-size: 26px; } .fortune__right { padding: 0 20px 40px; } } .modal-content { max-width: 480px; width: 100%; margin-left: auto; margin-right: auto; background: #fff; color: #121314; border-radius: 30px; position: relative; padding: calc(310px - var(--popup-image-top, 86px)) 40px 40px; text-align: center; margin-top: var(--popup-image-top, 86px); } @media (max-width: 479px) { .modal-content { padding-left: 20px; padding-right: 20px; } } @media (max-width: 359px) { .modal-content { padding-left: 10px; padding-right: 10px; } } .modal-content__img { width: 360px; height: 288px; position: absolute; left: 50%; -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%); z-index: 2; top: calc(var(--popup-image-top, 86px) - (var(--popup-image-top, 86px)) * 2); display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; background: url(../img/bg-success.svg) center/100% auto no-repeat; } .modal-content__img img, .modal-content__img picture { width: var(--popup-image-width, 238px); height: auto; -o-object-fit: contain; object-fit: contain; max-height: 100%; } .modal-content__title { font-weight: 900; font-size: 30px; line-height: 32px; margin-bottom: 16px; text-transform: uppercase; } .modal-content__text { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: -0.01em; } .modal-content__button { margin-top: 29px; } .tingle-modal { -webkit-backdrop-filter: none; backdrop-filter: none; cursor: default; background: rgba(0, 0, 0, 0.7); } .tingle-modal .tingle-modal-box { background: 0 0; max-width: 520px; width: 100%; margin-left: auto; margin-right: auto; border-radius: 0; } .tingle-modal .tingle-modal-box__content { padding: 0 20px; } .tingle-modal .tingle-modal__close { display: none; } @media (max-width: 540px) { .tingle-modal { display: -webkit-box; display: -ms-flexbox; display: flex; padding-top: 0; } } .button { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; vertical-align: middle; min-height: 60px; border-radius: 30px; -webkit-transition: 0.2s ease-in-out; -o-transition: 0.2s ease-in-out; transition: 0.2s ease-in-out; text-align: center; font-size: 16px; line-height: 1.5; font-weight: 700; padding: 12px 20px; min-width: 240px; color: inherit; border: 1px solid transparent; text-transform: uppercase; letter-spacing: 0.1em; } .button.button-red { background: #d52b1e; color: #fff; border-color: #d52b1e; } .button.button-red:hover { background: #121314; color: #fff; border-color: #121314; }