:root {
    --yellow: #FFE400;
    --light-purple: #8C63B7;
    --purple: #551394;
    --dark-purple: #7742A9;
    --background: #2A1B3F;
    --green: #2AE2A3;
    --dark-green: #228d68;
    --pink: #E20078;
    --light-pink: #FC1AA3;
    --silver: #F8F8F8;
    --border-color: #777B87;
}

h2.title {
    margin-bottom: 40px;
    font-weight: 900;
    font-size: 40px;
    text-align: center;
    font-family: "Akrobat", Sans-Serif;
}

/** ABOUT RATING */
.tabs {
    display: flex;
    justify-content: center;
    margin: 0 -40px;
}

.tab {
    font-family: 'Raleway', Sans-Serif;
    font-weight: bold;
    font-size: 24px;
    padding-bottom: 12px;
    cursor: pointer;
    color: var(--light-purple);
    transition: all .3s;
    margin: 0 40px 40px;
}

.tab:hover {
    color: white;
}

.tab.active {
    color: var(--yellow);
    border-bottom: 6px solid var(--yellow);
}

.about-rating .mobile-tabs {
    padding: 0 20px;
}

.about-rating .tab-content {
    padding-left: 20px;
}

.about-rating .mobile-tab__options {
    width: calc(100% - 40px);
}

.mobile-tabs {
    display: none;
    margin-bottom: 20px;
    position: relative;
}

.mobile-tab__options {
    position: absolute;
    width: 100%;
    z-index: 10;
    top: 48px;
    background: var(--background);
    padding: 0 16px;
}

.mobile-tab {
    cursor: pointer;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-tab:last-of-type {
    border: none;
}

.mobile-tab__input {
    position: relative;
    padding: 13px 16px;
    /*background: var(--purple);*/
    border: 3px solid var(--yellow);
    color: var(--yellow);
    font-weight: bold;
    cursor: pointer;
}

.mobile-tab__input-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-tab__input-arrow.open {
    transform: translateY(-50%) rotate(-180deg);
}

.tab-content .slick-track {
    display: flex !important;
    align-items: stretch;
    justify-content: center;
}

.tab-content .slick-slide {
    height: auto;
}

.tab-content .slick-slide > div {
    height: 100%;
}

.tab-content .slick-arrow,
.tab-content .slick-arrow:hover,
.tab-content .slick-arrow:focus {
    box-shadow: none;
    background: var(--purple);
    border: 3px solid var(--yellow);
}

.tab-content .slick-prev {
    left: -45px;
    transform: rotate(180deg) translateY(50%);
}

.tab-content .slick-next {
    right: -45px;
}

.tab-content .slick-prev,
.tab-content .slick-prev:hover,
.tab-content .slick-prev:focus,
.tab-content .slick-next,
.tab-content .slick-next:hover,
.tab-content .slick-next:focus{
    background-image: url("../images/rating/arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.tab-content .slick-active .rang {
    margin: auto;
}

.tab-content .slick-active .rang:first-of-type {
    margin-right: auto;
}

.tab-content .slick-active .rang:last-of-type {
    margin-left: auto;
}

.rang__wrapper {
    height: 100%;
}

.tab-content .slick-dots li button:before {
    color: var(--dark-purple);
    opacity: 1;
    font-size: 9px;
}

.tab-content .slick-dots li.slick-active button:before {
    color: var(--pink);
}

.rang {
    width: 250px;
    height: calc(100% - 10px);
    background-color: var(--purple);
    border: 6px solid transparent;
    padding: 16px;
    margin: 5px !important;
}

.rang__image {
    height: 50px;
    margin-bottom: 25px;
}

.rang__title {
    font-weight: bold;
    margin-bottom: 12px;
}

.rang__description {
    line-height: 20px;
}

.legends {
    background-image: url("../images/rating/legend-neon.png");
    background-position: -10px -10px;
    background-size: 111% 116%;
    height: 100%;
    background-color: transparent;
    background-repeat: no-repeat;
    margin: 0px !important;
    padding-left: 25px;
    padding-bottom: 22px;
    border-color: transparent !important;
}

.legends__link {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--light-pink);
    margin-top: 12px;
    text-decoration: none;
}

.legends__link img {
    margin-left: 9px;
}

/** FILTERS */

section#filters {
    margin-top: 100px;
}

.mobile-filters, .mobile-filters-btn {
    display: none;
}

.form__fields {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 40px;
}

.form__input {
    width: 100%;
    padding: 18px 24px;
    border: none;
    color: black;
}

.form__button {
    background: var(--green);
    padding: 13px 82px;
    font-family: Akrobat, sans-serif;
    color: black;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 4px solid var(--dark-green);
    transition: all .3s;
}

.form__button:hover {
    background: var(--dark-green);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 32px;
}

.game-filters {
    display: flex;
    margin: -5px;
}

.game-filters__item {
    color: var(--light-purple);
    border: 1px solid var(--light-purple);
    border-radius: 60px;
    padding: 12px 28px;
    margin: 5px;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.game-filters__item:hover {
    text-decoration: none;
    color: white;
    border: 1px solid white;
}

.game-filters__item.active {
    color: var(--yellow);
    border: 1px solid var(--yellow);
}

.time-filter {
    display: flex;
    align-items: center;
}

.time-filter__text {
    color: var(--light-purple);
}

.time-filter__text.active {
    color: white;
}

.time-switcher-wrapper {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0 12px;
}

.time-switcher-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}

.time-switcher {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 36px;
}

.time-switcher:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    left: 2px;
    bottom: 2px;
    background-color: var(--pink);
    border-radius: 50%;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .time-switcher {
    /*background-color: var(--pink);*/
}

input:focus + .time-switcher {
    box-shadow: 0 0 1px var(--pink);
}

input[value="0"] + .time-switcher:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

@media (max-width: 992px) {
    .mobile-tabs {
        display: block;
    }
    .mobile-filters {
        display: none;
    }

    .tabs {
        display: none;
    }

    h2.title {
        font-size: 24px;
    }

    .filters {
        flex-wrap: wrap;
    }

    .game-filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 860px) {
    section#filters {
        margin-top: 70px;
    }
}

@media (max-width: 845px) {
    .tab-content .slick-active .rang:last-of-type {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .game-filters {
        display: none;
    }

    .mobile-filters {
        display: initial;
    }

    .filters {
        flex-direction: column;
    }

    .mobile-filters-btn {
        width: 100%;
        color: white;
        background: var(--background);
        padding: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 13px;
        gap: 10px;
    }

    .form__fields {
        flex-wrap: wrap;
    }

    .form__button {
        width: 100%;
    }

    .slider__container {
        padding: 0 !important;
    }
}

@media (max-width: 425px) {
    .tab-content .slick-active .rang:first-of-type {
        margin-right: auto;
    }

    .tab-content .slick-active .rang:last-of-type {
        margin-left: 0;
    }
}
