UNPKG

inertialrush-game-test

Version:

This package enables the integration of the Inertial Rush game into any React application, making it easy to showcase the game.

2,100 lines (1,973 loc) 41.4 kB
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"); @font-face { font-family: "Silom", sans-serif; font-style: normal; font-weight: 700; src: url("./fonts/SilomBol.ttf") format("ttf"); } @-webkit-keyframes anim { 0% { -webkit-transform: translateY(10px); } 50% { -webkit-transform: translateY(-10px); } 100% { -webkit-transform: translateY(10px); } } @-moz-keyframes anim { 0% { -moz-transform: translateY(10px); } 50% { -moz-transform: translateY(-10px); } 100% { -moz-transform: translateY(10px); } } @-o-keyframes anim { 0% { -o-transform: translateY(10px); } 50% { -o-transform: translateY(-10px); } 100% { -o-transform: translateY(10px); } } @keyframes anim { 0% { transform: translateY(10px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(10px); } } @-webkit-keyframes animbg { 0% { -webkit-transform: translateY(5px); } 50% { -webkit-transform: translateY(-5px); } 100% { -webkit-transform: translateY(5px); } } @-moz-keyframes animbg { 0% { -moz-transform: translateY(5px); } 50% { -moz-transform: translateY(-5px); } 100% { -moz-transform: translateY(5px); } } @-o-keyframes animbg { 0% { -o-transform: translateY(5px); } 50% { -o-transform: translateY(-5px); } 100% { -o-transform: translateY(5px); } } @keyframes animbg { 0% { transform: translateY(5px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(5px); } } @keyframes changeBg { 0% { opacity: 0; } 100% { opacity: 1; } } * { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } html, body { overflow: hidden; font-family: "BebasNeueRegular", arial, sans-serif; background: white; } /* #global { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; background: url('bg.jpg') no-repeat center center fixed; overflow: hidden; text-align: center; -moz-background-size: cover; -webkit-background-size: cover; -ms-background-size: cover; -o-background-size: cover; background-size: cover; -webkit-transform: translateZ(0); -moz-transform: translateZ(0); -o-transform: translateZ(0); transform: translateZ(0); -webkit-animation: animbg 3s ease-in-out infinite; -moz-animation: animbg 3s ease-in-out infinite; -o-animation: animbg 3s ease-in-out infinite; animation: animbg 3s ease-in-out infinite; } */ /* #title { position: absolute; top: 5%; right: 0; bottom: 5%; left: 0; z-index: 1; background: url('title.png') no-repeat center top; -moz-background-size: auto 50%; -webkit-background-size: auto 50%; -ms-background-size: auto 50%; -o-background-size: auto 50%; background-size: auto 50%; -webkit-transform: translateZ(0); -moz-transform: translateZ(0); -o-transform: translateZ(0); transform: translateZ(0); -webkit-animation: anim 3s ease-in-out infinite; -moz-animation: anim 3s ease-in-out infinite; -o-animation: anim 3s ease-in-out infinite; animation: anim 3s ease-in-out infinite; } */ #menucontainer { position: absolute; top: auto; right: 0; bottom: 10%; left: 0; z-index: 0; } #menu { position: relative; display: block; width: 100%; max-width: 600px; margin: auto; text-align: center; font-size: 2em; font-family: "BebasNeueRegular", arial, sans-serif; text-transform: uppercase; color: #4190bb; } #menu div { padding: 0.1em 0 0 0; margin: 0 0; cursor: pointer; -moz-text-shadow: 0 0 10px rgb(255, 255, 255); -webkit-text-shadow: 0 0 10px rgb(255, 255, 255); text-shadow: 0 0 10px rgb(255, 255, 255); -webkit-transform-origin-y: 50%; -webkit-transition: -webkit-transform 0.2s; -webkit-transform: translateZ(0px) scaleY(0.8); transform-origin-y: 50%; transition: transform 0.2s ease; transform: translateZ(0px) scaleY(0.8); background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwLjUiLz4KICAgIDxzdG9wIG9mZnNldD0iNjAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjAuNSIvPgogICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz4KICA8L2xpbmVhckdyYWRpZW50PgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9InVybCgjZ3JhZC11Y2dnLWdlbmVyYXRlZCkiIC8+Cjwvc3ZnPg==); background: -moz-linear-gradient( left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 100% ); /* FF3.6+ */ background: -webkit-gradient( linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(40%, rgba(255, 255, 255, 0.5)), color-stop(60%, rgba(255, 255, 255, 0.5)), color-stop(100%, rgba(255, 255, 255, 0)) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 100% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 100% ); /* Opera 11.10+ */ background: -ms-linear-gradient( left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 100% ); /* IE10+ */ background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 100% ); /* W3C */ } #menu div:hover { color: #f66439; -webkit-transform: scaleY(1); transform: scaleY(1.1); } #start, #change, #solana, #settings, #back, #play-again { font-size: 16px; font-weight: 500; line-height: 18.75px; color: #fff; font-family: "Roboto"; } #start { display: none; } #name__input input { border: none; outline: none; background: transparent; width: 150px; height: 45px; font-size: 16px; font-weight: 500; color: #fff; font-family: "Roboto"; } .settings { display: flex; flex-direction: row; } .settings .settings-block { display: flex; color: #fff; font-family: "Roboto"; } .settings .settings-block .settings-type { display: flex; flex-direction: column; margin-right: 30px; } .settings .settings-block .type-label { margin-bottom: 4px; } .settings .settings-block .settings-type .type::before { content: ""; display: inline-block; width: 5px; height: 5px; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; background-color: #2f80ed; margin-right: 4px; vertical-align: 10%; } #step-0 { height: 100vh; background-color: #000; background-image: url("bg.png"); background-size: cover; background-repeat: no-repeat; color: #fff; text-align: center; font-size: 2em; } #step-0 .inner-block { height: 100vh; overflow: auto; } #step-0 .border { position: absolute; top: 40px; left: 40px; width: calc(100% - 80px); height: calc(100% - 80px); min-height: 800px; z-index: 0; } .race_settings { display: flex; flex-direction: column; padding: 100px 300px 100px 140px; z-index: 1; height: 100vh; display: flex; flex-direction: column; justify-content: center; min-height: 864px; } .race_settings__block { display: flex; flex-direction: column; margin-bottom: 40px; } .race_settings__block:nth-child(3) { flex-direction: row; } .race_settings_title { font-family: "Silom"; font-size: 24px; text-align: left; } .race_settings__wrapper { display: flex; flex-direction: row; z-index: 0; flex-wrap: wrap; gap: 40px; } .race_settings__type_block { display: flex; flex-direction: column; flex-wrap: wrap; cursor: pointer; pointer-events: auto; z-index: 2; } .race_settings__type_block:hover .race_type_title { color: #fff; } .race_type_img { width: 136px; height: 136px; background-repeat: no-repeat; background-size: contain; } .race_settings__type_block:first-child > .race_type_img { background: url(racetype-01.svg); background-repeat: no-repeat; } .race_settings__type_block:first-child:hover .race_type_img, .race_settings__type_block-active:first-child .race_type_img { background: url(racetypeActive-01.svg); background-repeat: no-repeat; } .race_settings__type_block:nth-child(2) > .race_type_img { background: url(racetype-02.svg); background-repeat: no-repeat; } .race_settings__type_block:nth-child(2):hover .race_type_img, .race_settings__type_block-active:nth-child(2) .race_type_img { background: url(racetypeActive-02.svg); background-repeat: no-repeat; } .race_settings__type_block:nth-child(3) > .race_type_img { background: url(racetype-03.svg); background-repeat: no-repeat; } .race_settings__type_block:nth-child(3):hover .race_type_img, .race_settings__type_block-active:nth-child(3) .race_type_img { background: url(racetypeActive-03.svg); background-repeat: no-repeat; } .race_type_title { font-family: "Roboto"; font-size: 16px; color: #c4c4c4; margin-top: 10px; text-align: center; width: 136px; } .race_settings__type_block-active .race_type_title { color: #fff; } .race_level_wrapper { margin-left: 70px; display: flex; flex-direction: row; z-index: 2; } .race_level_wrapper .race_level { position: relative; top: 5px; color: #bdbdbd; cursor: pointer; font-family: "Roboto"; font-size: 18px; z-index: 2; margin-right: 24px; } .race_level_wrapper .race_level.active { color: #fff; } .race_level_wrapper .race_level.active::before { content: ""; display: inline-block; width: 5px; height: 5px; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; background-color: #2f80ed; margin-right: 4px; vertical-align: 10%; } #step-0 .race_settings__btn { display: flex; flex-direction: row-reverse; } #garge .race_settings__btn { display: flex; flex-direction: row-reverse; } #step-0 #start { z-index: 2; } #step-2 { height: 100vh; background-color: #000; background-image: url("bg.png"); background-size: cover; background-repeat: no-repeat; color: #fff; text-align: center; font-size: 2em; } #step-2 > .inner-block { width: 100%; height: 100%; padding-top: 208px; } #step-2 img { position: absolute; top: 40px; left: 40px; width: calc(100% - 80px); height: calc(100% - 80px); } #step-2 .inner-block > .htp-text { position: relative; left: -260px; font-family: "Silom"; color: #fff; font-size: 32px; margin: 0 auto; text-align: center; font-weight: 400; margin-bottom: 20px; } #step-2 .inner-block > .controls { background-repeat: no-repeat; background-size: contain; background-position: top center; width: auto; max-width: 727px; height: calc(100% + 208px); margin: 0 auto; } #step-3 { height: 100vh; background-color: #000; background-image: url("bg.png"); background-size: cover; background-repeat: no-repeat; } #step-3 > .inner-block { width: 100%; height: 100%; padding-top: 272px; } #step-3 img { position: absolute; top: 40px; left: 40px; width: calc(100% - 80px); height: calc(100% - 80px); } #step-3 .inner-block > .loading-text { font-family: "Silom"; color: #fff; font-size: 32px; margin: 0 auto; text-align: center; } #step-3 .inner-block > .loading-anim { background: url("anim.png") no-repeat; width: 262px; height: 262px; margin: 0 auto; animation: loading 3s linear infinite; } #step-5 { height: 100vh; background-color: #000; background-image: url("bg.png"); background-size: cover; background-repeat: no-repeat; color: #fff; text-align: center; font-size: 2em; } #step-5 .border { position: absolute; top: 40px; left: 40px; width: calc(100% - 80px); height: calc(100% - 80px); } .finish { padding: 100px 150px; height: 100vh; display: flex; flex-wrap: wrap; flex-direction: row; gap: 30px 115px; } .finish_title_block { display: flex; flex-wrap: wrap; flex-direction: row; flex: 100%; } .finish_title { font-family: "Silom"; font-size: 64px; font-weight: 400; text-align: left; text-transform: uppercase; z-index: 1; } .finish_title_img { position: relative; left: -23px; top: 10px; z-index: 0; } .finish_info { display: flex; flex-wrap: wrap; flex-direction: column; width: 360px; background-color: rgba(0, 0, 0, 0.25); padding: 20px; gap: 0.5rem; } .finish_info__position { font-family: "Silom"; font-size: 40px; text-align: left; margin-bottom: -20px; /* line-height: 100px; */ } .finish_info__postion_num { font-size: 80px; letter-spacing: -16px; margin-right: 16px; } .__block { display: flex; flex-direction: row; flex-wrap: wrap; } .finish_info__title { font-family: "Silom"; font-size: 16px; color: #c4c4c4; text-align: left; flex: 40%; } .finish_info__wrapper { position: relative; font-family: "Roboto"; font-size: 16px; font-weight: 400; text-align: left; flex: 50%; } .finish_info__ship .finish_info__wrapper { margin-top: 15px; } .finish_info__spaceship { position: absolute; top: -35px; left: 15px; z-index: 1; } .finish_info__circles { position: relative; top: 20px; z-index: 0; } .finish_stats { display: flex; flex-direction: column; flex-wrap: wrap; gap: 7px; } .finish_stats__box { display: flex; flex-direction: row; flex-wrap: wrap; position: relative; background-image: url(finishBox.png); background-position: center; background-repeat: no-repeat; width: 590px; height: 50px; font-family: "Roboto"; font-size: 16px; align-items: center; padding: 8px 20px; gap: 16px; justify-content: space-between; } .finish_stats__box.me { background-image: url(finishBoxActive.png); } .finish_stats__box.me .finish_stats__box_position { background-image: url(box.svg); background-position: center; background-repeat: no-repeat; background-size: contain; padding: 5px; } .finish_stats__box.me::before { display: block; position: absolute; content: "Your result"; font-family: "Silom"; font-size: 14px; left: -100px; top: 15px; } .finish_stats__box_position { flex: 5.4%; } .finish_stats__box_nickname { flex: 35.3%; text-align: left; } .finish_stats__box_image { flex: 7.3%; } .finish_stats__box_spaceship { text-align: left; flex: 22.2%; font-size: 12px; color: #c4c4c4; } .finish_stats__box_time { flex: 13.07%; } .finish_btns { display: flex; flex: 100%; gap: 20px; z-index: 0; } .connect__btn#back { background-image: url(border.svg); transition: background 0.2s ease-in-out; z-index: 1; } .connect__btn#back:hover { background-image: url(borderFull.svg); transition: 0.2s ease-in-out; } .connect__btn#play-again { background-image: url(borderFull.svg); transition: background 0.2s ease-in-out; z-index: 1; } .connect__btn#play-again:hover { background-image: url(border.svg); transition: 0.2s ease-in-out; } /* #step-5 #time { font-size: 4em } */ #leapinfo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: white; text-align: center; font-size: 3em; padding-top: 200px; z-index: 0; } #credits { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; background: black; overflow-y: auto; text-align: center; color: white; font-size: 1.1em; padding: 40px 20px; } #credits h3 { font-size: 2em; color: #666; } #credits b { font-size: 1.2em; color: #bbb; } #credits h4 { color: #555; font-size: 1.2em; } #global { background: url("./bg.png"); background-color: #000; background-repeat: no-repeat; background-size: cover; background-position: center; height: 100vh; position: relative; padding: 40px 40px 33px 40px; /* min-height: 670px; */ min-height: 521px; } .connect__btn { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; padding-left: 19px; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background-position: 50%; background-repeat: no-repeat; background-size: contain; color: #fff; cursor: pointer; display: -webkit-box; display: -ms-flexbox; display: flex; font-size: 16px; width: 170px; padding-top: 4px; height: 53px; padding-right: 14px; } .connect__btn#start { background-image: url(borderFull.svg); transition: background 0.2s ease-in-out; } .connect__btn#start:hover { background-image: url(border.svg); transition: 0.2s ease-in-out; } .connect__btn#name__input { background-image: url(border.svg); transition: background 0.2s ease-in-out; z-index: 1; } .connect__btn#name__button { background-image: url(borderFull.svg); transition: background 0.2s ease-in-out; z-index: 1; } .connect__btn#name__button:hover { background-image: url(border.svg); transition: 0.2s ease-in-out; } .connect__btn#change_name__button { background-image: url(border.svg); transition: background 0.2s ease-in-out; } .connect__btn#change_name__button:hover { background-image: url(borderFull.svg); transition: 0.2s ease-in-out; } .connect__btn#change_name__button__cancel { background-image: url(border.svg); transition: background 0.2s ease-in-out; } .connect__btn#change_name__button__cancel:hover { background-image: url(borderFull.svg); transition: 0.2s ease-in-out; } .connect__btn#garage_close { background-image: url(borderFull.svg); transition: background 0.2s ease-in-out; } .connect__btn#garage_close:hover { background-image: url(border.svg); transition: 0.2s ease-in-out; } .connect__btn#change { background-image: url(border.svg); transition: background 0.2s ease-in-out; } .connect__btn#change:hover { background-image: url(borderFull.svg); transition: 0.2s ease-in-out; } .connect__btn#solana { position: absolute; top: 50px; right: -30px; background-image: url(border.svg); transition: background 0.2s ease-in-out; z-index: 0; } .connect__btn#solana:hover { background-image: url(borderFull.svg); transition: 0.2s ease-in-out; } .connect__btn#settings { position: absolute; bottom: -10px; background-image: url(settingsBorder.svg); transition: background 0.2s ease-in-out; } .connect__btn#settings:hover { background-image: url(settingsBorderFull.svg); color: #000; transition: background 0.2s ease-in-out; } .connect__btn#settings div { transition: transform 0.2s ease-in-out; } .connect__btn#settings:hover div { transform: translateX(-15px); transition: transform 0.2s ease-in-out; } .connect__btn#save { /* float: right; */ font-family: "Roboto"; background-image: url(border.svg); transition: background 0.2s ease-in-out; } .connect__btn#save:hover { background-image: url(borderFull.svg); transition: background 0.2s ease-in-out; } .connect__btn#save-mode { /* float: right; */ font-family: "Roboto"; z-index: 2; background-image: url(border.svg); transition: background 0.2s ease-in-out; } .connect__btn#save-mode:hover { background-image: url(borderFull.svg); transition: background 0.2s ease-in-out; } .promo__content { height: 100%; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; justify-content: center; position: absolute; top: 0; width: 100%; min-height: 500px; } .promo__content .container { position: relative; display: flex; flex-direction: column; justify-content: space-evenly; height: 100%; } .promo__content h1 { font-family: "Silom", sans-serif; font-weight: 700; font-size: 96px; line-height: 122px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; letter-spacing: -0.05em; color: #ffffff; position: relative; z-index: 0; margin-bottom: 0; } .promo__btns { margin-top: 54px; position: relative; z-index: 0; display: flex; } .promo__btns__first_row { display: flex; margin-bottom: 20px; } #name__button, #change_name__button, #change_name__button__cancel { margin-left: 10px; font-size: 16px; font-weight: 500; color: #fff; font-family: "Roboto"; } #change_name__button, #change_name__button__cancel { display: none; } .connect__btn:hover, .connect__btn:focus, .connect__btn:active { text-decoration: none; color: #fff; } .connect__btn div { padding-left: 8px; } .promo__circles { position: absolute; right: -85px; bottom: 186px; -webkit-animation-delay: 0.3s; animation-delay: 0.3s; } .promo__spaceship { position: absolute; right: 0; bottom: 200px; -webkit-animation: swim 2s ease-in-out infinite 0.3s; animation: swim 2s ease-in-out infinite 0.3s; } .promo__hidden { visibility: hidden; } .promo__container { position: sticky; left: 0; bottom: 55px; left: 0; display: flex; align-items: center; } .promo__container > div { margin-left: 20px; font-weight: 500; font-size: 18px; line-height: 21px; color: #ffffff; } .promo__container div:first-child { margin-left: 0; } .promo__container_info { display: flex; align-items: center; } .info { margin-right: 5px; } .tooltip { position: relative; display: inline-block; } .tooltip .tooltiptext { visibility: hidden; width: 130px; background-color: #555; color: #fff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -67.5px; opacity: 0; transition: opacity 0.3s; } .tooltip .tooltiptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #555 transparent transparent transparent; } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } #menucontainer { z-index: -1; } .promo__slider { position: relative; animation-delay: 0.4s; } .line { position: absolute; top: 20px; left: 30px; width: calc(100% - 60px); height: calc(100% - 40px); } .swiper-slide { width: auto; height: auto; } .swiper-slide img { display: none; } .swiper-slide .swiper-slide-pict { background-repeat: no-repeat; } .swiper-slide_img img { display: none; } .swiper-slide:nth-child(1) .swiper-slide-pict { background-image: url(./spaceShip/ship/1.png); } .swiper-slide:nth-child(2) .swiper-slide-pict { background-image: url(./spaceShip/ship/2.png); } .swiper-slide:nth-child(3) .swiper-slide-pict { background-image: url(./spaceShip/ship/3.png); } .swiper-slide:nth-child(4) .swiper-slide-pict { background-image: url(./spaceShip/ship/4.png); } .swiper-slide:nth-child(5) .swiper-slide-pict { background-image: url(./spaceShip/ship/5.png); } .swiper-slide:nth-child(6) .swiper-slide-pict { background-image: url(./spaceShip/ship/6.png); } .swiper-slide:nth-child(7) .swiper-slide-pict { background-image: url(./spaceShip/ship/7.png); } .swiper-slide:nth-child(8) .swiper-slide-pict { background-image: url(./spaceShip/ship/8.png); } .swiper-slide svg path:last-child { transition: stroke 0.2s ease-in-out; } .swiper-slide_active svg path:last-child { stroke: #2f80ed; transition: stroke 0.2s ease-in-out; } .swiper-slide:after { content: ""; left: 0px; width: 0; height: 3px; background: transparent; position: absolute; bottom: 35px; transition: background 0.2s ease-in-out, width 0.2s ease-in-out; } .swiper-slide_active:after { content: ""; width: calc(100% - 12px); height: 3px; background: #2f80ed; position: absolute; bottom: 35px; transition: background 0.2s ease-in-out, width 0.2s ease-in-out; } .swiper-slide_closed { pointer-events: none; } .swiper-slide_closed .swiper-slide-pict { filter: contrast(0.5); } .swiper-slide_closed.swiper-slide img { display: block; position: absolute; top: 50px; left: 50%; transform: translateX(-50%); } .swiper-slide_closed:after { background: #2f80ed; position: absolute; bottom: 35px; transition: background 0.2s ease-in-out, width 0.2s ease-in-out; } .swiper-button-next img { transform: rotate(180deg); } .swiper-button-next:after, .swiper-button-prev:after { display: none; } .swiper-button-prev { left: -30px; } .swiper-button-next, .swiper-rtl .swiper-button-prev { right: -30px; } .swiper-slide_title { font-weight: 700; font-size: 11px; line-height: 14px; color: #f2f2f2; margin-top: 13px; font-family: "Silom", sans-serif; } .swiper-slide_subtitle { font-weight: 400; font-size: 11px; line-height: 13px; color: #bdbdbd; font-family: "Roboto", sans-serif; } .p1 { position: absolute; right: -150px; top: 150px; } .p2 { width: 500px; position: absolute; right: -50px; top: -80px; animation: swim 2s ease-in-out infinite 0.3s; } .p3 { display: flex; align-items: flex-start; position: relative; } .upLine { position: absolute; top: 0; left: 0px; height: 120px; width: calc(100% - 2px); } .downLine { position: absolute; height: 120px; bottom: -10px; left: 1px; width: calc(100% - 4px); } .leftLine { width: 5px; background: #2f80ed; position: absolute; left: 24px; top: 29px; height: calc(100% - 120px); } .rightLine { width: 5px; background: #2f80ed; position: absolute; right: 23px; top: 92px; height: calc(100% - 146px); } /* Settings Modal */ .wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; } .modal { display: none; width: 100vw; height: 100vh; position: fixed; top: 0px; left: 0px; font-family: "Roboto"; } .modal__inner { max-width: 600px; width: 100%; top: 50vh; left: 50%; position: fixed; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); background: #151515; padding: 28px 43px 29px 60px; } .modal__close { cursor: pointer; position: absolute; top: 10px; right: 10px; } .modal__title { font-family: "Silom"; font-weight: 400; font-size: 24px; line-height: 31px; letter-spacing: -0.05em; color: #ffffff; } .modal__main { margin-top: 38px; margin: 38px 0 19px 0; } .modal__btn { display: flex; flex-direction: row-reverse; } .modal__main_wrapper { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; margin-top: 15px; } .modal__main_wrapper:first-child { margin-top: 0; } .modal__main_wrapper .wrapper .check__label { margin-right: 16px; } .modal__main_wrapper .wrapper:last-child .check__label { margin-right: 16px; } .modal__main_title { font-weight: 500; font-size: 16px; line-height: 19px; letter-spacing: -0.05em; color: #ffffff; width: 60px; margin-right: 43px; } .check__label { display: block; padding-left: 22px; position: relative; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; font-weight: 400; font-size: 16px; line-height: 19px; letter-spacing: -0.05em; color: #c4c4c4; } .check__label input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } .checkmark { position: absolute; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%); left: 0; height: 10px; width: 10px; background: transparent; border-radius: 50%; border: 1px solid #c4c4c4; } .check__label input:checked ~ .checkmark { background-color: #151515; border: 1px solid #2f80ed; } .check__label input:checked ~ .checkbox__name { color: #fff; } .checkmark:after { content: ""; position: absolute; display: none; } .check__label input:checked ~ .checkmark:after { display: block; } .check__label .checkmark:after { top: 50%; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #2f80ed; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } @media screen and (min-width: 2100px) { .upLine, .downLine, .leftLine, .rightLine { display: none; } } @media screen and (max-width: 2099px) { .rightLine { right: 31px; } .leftLine { left: 28px; } } @media screen and (max-width: 1982px) { .rightLine { right: 30px; } } @media screen and (max-width: 1925px) { .rightLine { right: 29px; } } @media screen and (max-width: 1836px) { .rightLine { right: 28px; } } @media screen and (max-width: 1745px) { .rightLine { right: 26px; } .leftLine { left: 25px; } } @media screen and (max-width: 1664px) { .rightLine { right: 25px; } } @media screen and (max-width: 1596px) { .rightLine { right: 24px; } } @media screen and (max-width: 1517px) { .rightLine { right: 23px; } .leftLine { left: 23px; } } @media screen and (max-width: 1440px) { .rightLine { right: 22px; } .leftLine { left: 22px; } } @media screen and (max-width: 1391px) { .rightLine { right: 21px; } } @media screen and (max-width: 1370px) { .connect__btn#solana { right: -10px; } } @media screen and (max-width: 1364px) { .finish { padding: 100px 120px; } } @media screen and (max-width: 1329px) { .leftLine { left: 20px; } .rightLine { right: 20px; } } @media screen and (max-width: 1327px) { .promo__circles { right: -52px; } } @media screen and (max-width: 1308px) { .promo__container { padding-left: 26px; } .connect__btn#solana { right: 10px; } } @media screen and (max-width: 1308px) { .promo__container { padding-left: 37px; } } @media screen and (max-width: 1304px) { .finish { padding: 100px; } } @media screen and (max-width: 1283px) { .upLine, .downLine, .leftLine, .rightLine { display: none; } } @media screen and (max-width: 1264px) { .promo__circles { right: -36px; } .connect__btn#solana { right: 30px; } .finish_stats__box { width: 500px; } .finish_stats__box.me { padding: 8px 15px; border-right: 2px solid #2f80ed; border-left: 2px solid #2f80ed; } } @media screen and (max-width: 1257px) { .promo__container > div { font-size: 16px; } .promo__container { padding-left: 66px; } } @media screen and (max-width: 1220px) { .connect__btn#solana { right: 50px; } .p2 { width: 450px; top: -60px; right: 0px; } .p1 { width: 600px; right: -80px; } .promo__content .container { padding: 0 60px; } } @media screen and (max-width: 1200px) { .promo__spaceship { width: 460px; } .promo__circles { width: 562px; } .p2 { width: 460px; top: -32px; } .p1 { width: 562px; top: 173px; } } @media screen and (max-width: 1199px) { .p2 { width: 350px !important; right: -100px; top: 0px; } .p1 { width: 500px; right: -160px; top: 200px; } } @media screen and (max-width: 1174px) { .finish { padding: 80px; } } @media screen and (max-width: 1137px) { .promo__container > div { margin-left: 10px; } .promo__container { padding-left: 28px; } } @media screen and (max-width: 1134px) { .finish { padding: 80px 70px; } } @media screen and (max-width: 1114px) { #step-5 .border { display: none; } .finish { padding: 60px 50px; } } @media screen and (max-width: 1079px) { .promo__container { padding-left: 40px; } } @media screen and (max-width: 1074px) { .finish_stats__box { width: 590px; } .finish { gap: 30px 20px; } .finish_stats__box.me::before { visibility: hidden; } .finish_stats__box.me { border: none; padding: 8px 20px; } } @media screen and (max-width: 1069px) { .finish { overflow: auto; justify-content: center; } .finish_title_block { justify-content: center; } .finish_stats__box.me::before { visibility: visible; } .finish_btns { justify-content: center; } } @media screen and (max-width: 1052px) { .promo__container { padding-left: 0; } .line { display: none; } .border { display: none; } .race_settings { padding: 100px 140px; } } @media screen and (max-width: 991px) { .promo__circles { bottom: 110px; } .promo__spaceship { bottom: 104px; } .promo__content h1 { font-size: 81px; line-height: 91px; } .promo__btns { margin-top: 30px; } .container { padding: 0 !important; max-width: 900px; } .connect__btn#solana { right: 0; } .p1 { width: 450px; right: -40px; top: 160px; } .p2 { right: 0; top: -50px; } } @media screen and (max-width: 910px) { .container { max-width: 850px; } .p1 { width: 400px; right: -50px; } .p2 { width: 300px !important; } } @media screen and (max-width: 860px) { .container { padding: 0 20px !important; } .connect__btn#solana { margin-right: 10px; } } @media screen and (max-width: 800px) { .finish_stats__box.me::before { visibility: hidden; } } @media screen and (max-width: 811px) { .race_settings { padding: 100px 120px; } /* dsfsd */ .promo__content h1 { z-index: 0; } .connect__btn#change { z-index: 0; } } @media screen and (max-width: 771px) { .race_settings { padding: 100px 100px; } } @media screen and (max-width: 771px) { .race_settings { padding: 100px 80px; } } @media screen and (max-width: 768px) { .promo__content h1 { font-size: 64px; line-height: 130%; } .promo__circles { bottom: 91px; width: 100%; left: 0; } .promo__spaceship { bottom: 96px; } #step-2 .inner-block > .htp-text, #step-3 .inner-block > .htp-text { left: 0; text-align-last: left; width: 80%; } .modal { max-width: 90%; } .race_level_wrapper { margin-left: 40px; } .race_settings_title { width: 45%; } } @media screen and (max-width: 720px) { .p1 { display: none; } .p2 { display: none; } .finish { padding: 40px 20px; } } @media screen and (max-width: 684px) { .race_settings { padding: 80px 50px; } } @media screen and (max-width: 628px) { .race_settings_title { width: 100%; } .race_settings__block:nth-child(3) { flex-direction: column; } .race_level_wrapper { margin-left: 0; } .finish_stats__box { width: 500px; } .finish_stats__box.me { padding: 8px 15px; border-right: 2px solid #2f80ed; border-left: 2px solid #2f80ed; } } @media screen and (max-width: 595px) { .settings { flex-direction: column; gap: 2rem; } } @media screen and (max-width: 583px) { .modal__inner { padding: 28px 31px 29px 20px; } .modal__main_title { margin-right: 16px; } .modal__main_wrapper .wrapper:last-child .check__label { margin-right: 11px; } } @media screen and (max-width: 576px) { .promo { padding: 20px; } .promo__spaceship { width: 100%; bottom: -237px; } .swiper-button-next, .swiper-rtl .swiper-button-prev { right: -15px; } .swiper-button-prev { left: -15px; } .swiper { margin: 0 auto; width: 90%; } .p2, .p1 { display: none; } .promo__content h1 { font-size: 48px; } } @media screen and (max-width: 532px) { .promo__container > div { font-size: 16px; } .finish { padding: 20px 0 40px 0; } } @media screen and (max-width: 520px) { .finish_stats__box_image { flex: 0; } .finish_stats__box_spaceship { display: none; } .finish_stats__box_nickname { flex: 17%; } .finish_stats__box_position { flex: 0; } .finish_stats__box { width: 400px; padding: 10px 20px; } .finish_stats__box.me { padding: 8px 20px 8px 15px; } } @media screen and (max-width: 483px) { .promo__container { flex-direction: column; align-items: flex-start; } .promo__container div { margin-left: 0; margin-bottom: 10px; } .promo__container div.tooltip:first-child { margin-bottom: 0; } #s-hud { margin-bottom: 0; } } @media screen and (max-width: 470px) { .modal__main_wrapper { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; } .modal__main_title { margin-bottom: 12px; } } @media screen and (max-width: 426px) { .settings-block { font-size: 14px; } } @media screen and (max-width: 390px) { .settings .settings-block .settings-type { margin-right: 15px; } } @media screen and (max-width: 380px) { .check__label { font-size: 14px; } .modal__inner { padding: 28px 16px 29px 14px; } } .modal-btn { display: flex; flex-direction: row-reverse; } @media screen and (max-width: 345px) { .settings .settings-block { flex-direction: column; gap: 1rem; } } /* Media height */ @media (max-height: 780px) { #step-2 > .inner-block, #step-3 > .inner-block { padding-top: 160px; } } @media (max-height: 780px) { #step-0 .border { display: none; } } @media (max-height: 765px) { .finish { padding-top: 60px; } #step-5 .border { display: none; } } @media (max-height: 670px) { #step-2 > .inner-block, #step-3 > .inner-block { padding-top: 120px; } } @media (max-height: 632px) { #step-2 > .inner-block, #step-3 > .inner-block { padding-top: 100px; } } @media (max-height: 600px) { #step-2 > .inner-block, #step-3 > .inner-block { padding-top: 100px; } #step-2 .inner-block > .controls { height: 67%; } #step-2 .inner-block > .htp-text { left: 0; width: 700px; text-align: left; } } @media (max-height: 550px) { #step-2 .inner-block > .htp-text { left: 35px; } } @-webkit-keyframes swim { 0% { -webkit-transform: translateY(0); transform: translateY(0); } 50% { -webkit-transform: translateY(-10px); transform: translateY(-10px); } 100% { -webkit-transform: translateY(0); transform: translateY(0); } } @keyframes swim { 0% { -webkit-transform: translateY(0); transform: translateY(0); } 50% { -webkit-transform: translateY(-10px); transform: translateY(-10px); } 100% { -webkit-transform: translateY(0); transform: translateY(0); } } @keyframes loading { 0% { -webkit-transform: rotate(0); transform: rotate(0); } 50% { -webkit-transform: rotate(180deg); transform: rotate(180deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }