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

@font-face {
    font-family: 'Play';
    src: url('../fonts/Play-Bold.ttf');
    font-weight: 600;
    font-style: normal;
}

:root {
    --snow-color: rgb(59, 164, 235);
    --black-color: rgb(6, 5, 6);
    --orange-color: rgb(255, 95, 10);
    --orange-hover: rgb(212, 73, 3);
    --green-color: #44BD32;
    --thumb-color: #000;
    --scrollbar-color: #494949;
    --border-radius: 8px;
}

.block_choose_team {
    scrollbar-color: var(--thumb-color) var(--scrollbar-color);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 7px;
    background-color: var(--scrollbar-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--thumb-color);
    border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #101010;
    min-height: 100vh;
    position: relative;
    min-height: 722px;
    overflow-x: hidden;
    font-family: 'Play', sans-serif;
    font-weight: 400;
    color: #fff;
}

input, select, option {
    font-family: 'Play', sans-serif;
    font-weight: 600;
}

select {
    -moz-appearance: none;
    -webkit-appearance: none; 
}

select::-ms-expand {
    display: none;
}

input::placeholder {
    font-family: 'Play', sans-serif;
    font-weight: 600;
}

a {
    color: #fff;
    font-weight: 600;
}

.container {
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bg {
    width: 100%;
    position: fixed;
    inset: 0;
    z-index: -1; 
}

.bg_shadow {
    z-index: -1;
    position: fixed;
    inset: 0;
    background: radial-gradient(transparent 0, var(--black-color) 90%);
    overflow-y: hidden;
}

.line_snow {
    position: absolute;
    width: 3800px;
    min-height: 720px;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
    background: url('../img/word_bg.jpg') repeat-x;
    background-attachment: fixed;
    animation: animation-world 120s linear infinite;
}

.line_snow span {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--snow-color);
    border-radius: 50%;
    animation: animation-glow 5s linear infinite;
    z-index: 1;
}

@keyframes animation-world {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-1600px, 0, 0);
    }
}

@keyframes animation-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 164, 235, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 164, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 164, 235, 0);
    }
}

/* HEADER */

header {
    width: 100%;
    background-color: rgb(16, 16, 16);
    border-bottom: 1px solid rgb(64, 64, 64);
    padding: 10px 0;
}

header .logo>img {
    width: 120px;
    height: 18px;
}

header .wrapper {
    display: flex;
    justify-content: space-around;
}

header .lang {
    font-size: 1rem;
    width: 45px;
    line-height: 1.2rem;
    font-weight: 600;
    position: relative;
    text-transform: uppercase;
    cursor: pointer;
}

header .lang .block_lang {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 1.8rem;
    opacity: 0;
    pointer-events: none;
}

header .lang:hover .block_lang {
    opacity: 1;
    pointer-events: all;
}

header .lang .block_lang a {
    display: flex;
    width: 45px;
    justify-content: space-between;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* MODAL */

.modal {
    padding-top: 40px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: transform 1s ease, opacity .7s ease;
}

.modal .container {
    max-width: 900px;
    margin: 0 auto;
}

.modal_header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.modal .btn_close {
    text-transform: uppercase;
    color:rgb(160, 160, 160);
    font-weight: 600;
    line-height: 30px;
    cursor: pointer;
}

.modal .logo_modal img {
    width: 130px;
    height: 30px;
}

.modal_body {
    padding: 60px 40px;
    background-color: rgb(24, 24, 24);
}

.modal_body .wrapper {
    max-width: 430px;
    margin: 0 auto;
    color: rgb(149, 154, 162);
}

.modal_body .block_title h2,
.modal_body .block_select>p {
    color: #fff;
}

.modal_body .block_title p {
    margin-top: .9rem;
}

.modal .block_iter_select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.modal_body .block_select>p {
    margin-bottom: .5rem;
}

.modal select {
    padding: .4rem .25rem;
    color: #eee2e6;
    font-weight: 600;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    background-size: 16px 12px;
    width: 100%;
    background-color: rgb(48, 48, 48);
    border: 1px solid #495057;
    border-radius: 3px;
    font-size: 1rem;
    line-height: 1.5rem;
    outline: none;
}

.modal select:focus {
    border: 1px solid var(--orange-color);
}

.modal .block_btn .btn {
    display: block;
    margin: 3rem auto 0;
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    background-color: var(--orange-color);
    font-weight: 600;
    padding: 5px 1.4rem;
    border-radius: 2px;
    outline: none;
    border-width: 0;
    cursor: pointer;
}

.modal .block_sub_text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.modal .block_sub_text a {
    text-decoration: none;
}

.modal .block_sub_text a:hover {
    text-decoration: underline;
}

/* STEP 2 */

.modal .block_choose_team {
    max-height: 350px;
    overflow-y: scroll;
}

.modal .block_team {
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
}

.modal .block_team:has(input:checked) {
    border: 1px solid var(--orange-color);
}

.modal .block_team,
.modal .block_team label {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal .block_team input {
    width: 1rem;
    height: 1rem;
    outline: none;
    border-width: 0;
    -webkit-appearance: none;
    background-color: #fff;
    border: 4px solid #fff;
    border-radius: 50%;
}

.modal .block_team input:checked {
    border: 4px solid var(--green-color);
}

.modal .block_team img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.modal .block_team h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

/* STEP 3 */

.modal .block_warning {
    display: flex;
    gap: 1rem;
}

.modal_body .block_title h2 {
    font-size: 1rem;
}

.modal .block_title ul {
    padding-left: 2rem;
}

.modal .block_x p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-top: .5rem;
    position: relative;
}

.modal .block_x img {
    width: 16px;
    height: 16px;
}

.modal .block_x span.red {
    color: #c6303e;
}

.modal .block_x span.white {
    color: #fff;
}

.modal .block_x span.green {
    color: #65924D;
}

.modal .block_x span.mute {
    color: rgb(160, 160, 160);
}

.modal .animate {
    width: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal span.animate span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--orange-color);
    animation: dots-animate 1.5s linear infinite;
    animation-delay: calc(var(--i) / 3);
}

@keyframes dots-animate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

.modal .block_radio {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal p.passed {
    padding: 0.5rem;
    background-color: #212121;
    border-radius: var(--border-radius);
    color: var(--orange-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* STEPS */

.modal .step_1>div,
.modal .step_2>div,
.modal .step_3>div {
    margin-bottom: 2rem;
}

.modal .step_1,
.modal .step_2,
.modal .step_3 {
    display: none;
}

.modal .step_1.vis,
.modal .step_2.vis,
.modal .step_3.vis {
    display: block;
}

/* MAIN */

section.main .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 110px 0 5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

section.main .img {
    display: flex;
    justify-content: center;
}

section.main .wrapper>div {
    margin-bottom: 1.6rem;
    text-align: center;
}

section.main .img>img {
    width: 70px;
}

section.main h1,
section.about h2 {
    font-size: 2.4rem;
    line-height: 2.6rem;
    color: #fff;
}

section.main .organizator {
    font-size: 1rem;
    line-height: 1.2rem;
}

section.main .organizator span {
    font-size: 1.1em;
    font-weight: 600;
}

section.main .sub_text {
    font-size: 1.1rem;
    line-height: 1.2rem;
    color: rgb(160, 160, 160);
}

section.main .block_btn .btn {
    display: block;
    padding: 12px 55px;
    background-color: var(--orange-color);
    font-size: 16px;
    border-radius: 2px;
    text-align: center;
    margin: 0 auto;
    outline: none;
    border-width: 0;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* MODAL BTN */

.modal .block_btn .btn {
    display: block;
    padding: 12px 55px;
    background-color: #2D2E33;
    font-size: 16px;
    border-radius: 2px;
    text-align: center;
    margin: 0 auto;
    outline: none;
    border-width: 0;
    color: #545764;
    font-weight: 600;
    cursor: not-allowed;
}

.modal .block_btn .btn.activ {
    color: #fff;
    background-color: var(--orange-color);
    cursor: pointer;
}

section.main .block_join {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

section.main .block_join>div {
    text-align: center;
}

section.main .block_join p {
    font-size: 16px;
    font-weight: 400;
    color: rgb(160, 160, 160);
    line-height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

section.main .block_join p svg {
    margin: 0 5px;
}

section.main .block_join .join_title {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* BRANDS */

section.brands {
    margin: 3rem 0;
}

section.brands .wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

section.brands .wrapper a>img {
    display: block;
    width: 100%;
    border-radius: 2px;
    aspect-ratio: 16 / 7;
    object-fit: cover
}


section.brands .wrapper a {
    display: block;
    position: relative;
    border: 2px solid transparent;
}

section.brands .wrapper a:hover {
    border: 2px solid rgb(255, 85, 0);
}

section.brands .wrapper a:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, #000);
    opacity: 0;
}

section.brands .wrapper a:hover:after {
    opacity: 1;
    transition: .4s ease;
}


section.brands .wrapper a>span {
    position: absolute;
    font-size: 1.4rem;
    bottom: 15px;
    text-decoration: none;
    color: rgb(255, 85, 0);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 1;
}

section.brands .wrapper a:hover>span {
    opacity: 1;
    transition: .4s ease;
}

/* ABOUT */

section.about {
    padding-bottom: 4rem;
}

section.about .wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section.about .wrapper>div {
    font-size: 1.2rem;
}

section.about .rulz {
    font-weight: 600;
    color:rgb(255, 85, 0);
}

section.about h2 {
    text-align: center;
    margin-top: 4rem;
    cursor: pointer;
}

section.about h2:hover {
    color:rgb(59, 164, 235);
}

/* ADMIN */

section.admin .container {
    max-width: 1000px;
}

section.admin {
    width: 100%;
    min-height: 100vh;
    padding: 75px 0;
    position: relative;
}

section.admin header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
}

section.admin header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section.admin>.container .wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}


section.admin .block_admin {
    background-color: #363636;
    padding: .8rem;
    border-radius: var(--border-radius);
}

section.admin .block_admin:nth-child(2) {
    grid-row: span 3;
}

section.admin .align-self {
    align-self: start
}

section.admin h5,
section.login h5 {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0.5rem 0;
}

section.admin .block_ban form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem .5rem;
}

section.admin input,
section.login input {
    border-width: 0;
}

section.admin input[type=text],
section.login input[type=password] {
    padding: 0.4rem;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    color:rgb(16, 16, 16);
    border: 2px solid #101010;
    border-radius: var(--border-radius);
}

section.admin input[type=text]:focus,
section.login input[type=password]:focus {
    outline: none;
    border-width: 0;
    border: 2px solid var(--orange-color);
}

section.admin .block_ban input[type=text] {
    grid-column: span 3;
}

section.admin input[type=submit],
section.login input[type=submit] {
    padding: 0.4rem 1rem;
    background-color: var(--orange-color);
    color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 2px 2px 3px rgba(0, 0, 0, .7),
                inset 1px 1px 1px rgba(255, 255, 255, .7);
    cursor: pointer;
}

section.admin input[type=submit]:hover,
section.login input[type=submit]:hover {
    background-color: var(--orange-hover);
}

section.admin .block_del {
    width: 100%;
}

section.admin .block_del p {
    padding: 7px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    border-top: 1px solid rgba(0, 0, 0, .45);
}

section.admin .block_del p:hover {
    background-color: rgba(16, 16, 16, .2);
}

section.admin .block_del p>a {
    color: var(--orange-color);
    text-decoration: none;
    font-weight: 400;
}

section.admin .block_save_title form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem .5rem;
}

section.admin .block_save_title .img_save_title,
section.admin .block_save_title input[type=submit] {
    grid-column: span 2;
}

section.admin .block_url_btn form {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

/* LOGIN */

section.login .wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

section.login .block_login {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .5),
                2px 2px 4px rgba(255, 255, 255, .2);
    border-radius: var(--border-radius);
}

section.login h5 {
    text-align: center;
}

section.login form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

section.login .error {
    font-size: 0.85em;
    text-align: center;
    color: red;
}

/* ADAPTIV */

@media screen and (max-width: 999px) {
    section.admin>.container .wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    section.admin>.container .wrapper>div:not(.block_admin:nth-child(2)) {
        grid-column: span 2;
    }
}

@media screen and (max-width: 799px) {
    section.admin>.container .wrapper>div:not(.block_admin:nth-child(2)) {
        grid-column: span 3;
    }

    section.admin .block_admin:nth-child(2) {
        order: 1;
        grid-column: span 3;
    }
}

@media screen and (max-width: 699px) {
    html {
        font-size: 15px;
    }

    header .wrapper {
        justify-content: space-between;
    }

    .modal .block_iter_select>div {
        grid-column: span 3;
    }

    .modal .step_3 .block_btn .btn {
        padding: 12px 32px;
        font-size: 14px;
    }

    .modal .logo_modal img {
        width: 100px;
        height: 25px;
    }

    section.brands .wrapper a {
        grid-column: span 2;
    }

    section.admin .block_save_title form>input {
        grid-column: span 2;
    }

    section.admin .block_ban form>input {
        grid-column: span 3;
    } 
}

@media screen and (max-width: 399px) {
    html {
        font-size: 14px;
    }

    .modal_body {
        padding: 40px 20px;
    }

    .modal .block_x p,
    section.main .block_join .join_title {
        font-size: 15px;
    }
}