@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-Medium.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Medium.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat Bold';
    src: url('../assets/fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-style: normal;
}

:root {
    --grey-10: #F5F5F5;
    --grey-20: #EDEDED;
    --grey-30: #e7e7e7;
    --grey-40: #dedede;
    --grey-50: #d6d6d6;
    --grey-base: #cecece;
    --grey-60: #acacac;
    --grey-70: #898989;
    --grey-80: #676767;
    --grey-90: #454545;
    --grey-100: #292929;

    --red-10: #ffcfcf;
    --red-20: #ffaeae;
    --red-30: #ff8686;
    --red-40: #ff5e5e;
    --red-50: #ff3535;
    --red-base: #ff0d0d;
    --red-60: #d50b0b;
    --red-70: #aa0909;
    --red-80: #800707;
    --red-90: #550404;
    --red-100: #330303;

    --primary-black: #080808;
    --primary-white: #FFFFFF;
    --spacing-1: 1px;
    --spacing-2: 2px;
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-xxl: 112px;
    --wiki-primary: #33FFA7;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
}

html,
body {
    background: #212121;
}

body {
    background: url(../assets/bg_dark.jpg) repeat;
    color: #FFFFFF;
    font-family: 'Montserrat';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    position: relative;
}

button,
input,
textarea,
select {
    font-size: inherit;
    font-family: inherit;
    color: inherit;
}

.text-left,
.text-start {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right,
.text-end {
    text-align: right !important;
}

.text-no-wrap {
    white-space: nowrap;
}

.dot_divider {
    width: 4px;
    height: 4px;
    background-color: #5B5A5A;
    border-radius: 4px;
    margin: 0 16px;
    display: inline-flex;
    vertical-align: middle;
}

.gigants {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gigants::after,
.gigants::before {
    content: '';
    position: fixed;
    width: 320px;
    height: 165%;
    top: 0;
    z-index: 1;
}

.gigants::after {
    background: url(../assets/gigant_l.png) center / contain no-repeat;
    left: 0;
}

.gigants::before {
    background: url(../assets/gigant_r.png) center / contain no-repeat;
    right: 0;
}

.side_bg {
    background: url(../assets/sides.jpg) top center repeat-y;
    background-size: 1656px auto;
    margin: 0 auto;
    max-width: 1656px;
    min-height: calc(100vh - 86px);
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video {
    max-width: 100%;
    margin-bottom: 0;
}

img {
    vertical-align: middle;
}

video {
    display: block;
}

ul,
ol {
	padding: 0 0 16px 24px;
}

ol li,
ul li {
	margin: 4px 0;
}

.block {
    display: block !important;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-direction-row {
    flex-direction: row !important;
}

.flex-direction-col {
    flex-direction: column !important;
}

.modal_container {
    position: fixed;
    z-index: 200;
    width: 100%;
    height: 100%;
    background: #212121e0;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal_container.show {
    opacity: 1;
    pointer-events: all;
}

.modal_container .search_block {
    padding: 0 16px;
    max-width: 1061px;
}

.alert-container {
    position: fixed;
    right: 16px;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 100;
}

.alert {
    display: flex;
    min-height: 55px;
    padding: 8px 10px 8px 16px;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    font-family: 'Montserrat';
    line-height: normal;
    border-radius: 8px;
    margin-left: 16px;
    max-width: 500px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.alert::before {
    content: '';
    width: 24px;
    min-width: 24px;
    height: 24px;
}

.alert-success {
    border: 1px solid #345A3D;
    background: #162219;
    color: #69ED81;
}

.alert-success::before {
    background: url(../assets/success.svg);
}

.alert-warning {
    border: 1px solid #64563D;
    background: #2C2820;
    color: #D2A248;
}

.alert-warning::before {
    background: url(../assets/warning.svg);
}

.alert-danger {
    border: 1px solid #763939;
    background: #261C1C;
    color: #FF4646;
}

.alert-danger::before {
    background: url(../assets/danger.svg);
}

.alert-info {
    border: 1px solid #49646E;
    background: #1E282C;
    color: #A4DDF2;
}

.alert-info::before {
    background: url(../assets/info.svg);
}

.alert button {
    display: flex;
    padding: 10px;
    align-items: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    position: relative;
}

.alert button::after {
    content: '';
    position: absolute;
    width: 17px;
    height: 14px;
    background: url(../assets/close.svg) center / contain no-repeat;
}

.alert button:hover {
    filter: brightness(1.3);
}

.alert-success button {
    background: #162219;
}

.alert-warning button {
    background: #2C2820;
}

.alert-danger button {
    background: #261C1C;
}

.alert-info button {
    background: #1E282C;
}

.alert-success button::after {
    filter: brightness(0) saturate(100%) invert(37%) sepia(10%) saturate(1599%) hue-rotate(80deg) brightness(98%) contrast(93%);
}

.alert-warning button::after {
    filter: brightness(0) saturate(100%) invert(33%) sepia(28%) saturate(524%) hue-rotate(346deg) brightness(95%) contrast(90%);
}

.alert-danger button::after {
    filter: brightness(0) saturate(100%) invert(24%) sepia(15%) saturate(1857%) hue-rotate(314deg) brightness(94%) contrast(76%);
}

.alert-info button::after {
    filter: brightness(0) saturate(100%) invert(41%) sepia(43%) saturate(305%) hue-rotate(145deg) brightness(87%) contrast(90%);
}

@media (max-width: 1660px) {
    .gigants::after,
    .gigants::before {
        display: none;
    }
}

@media (min-width: 1330px) {
    .lg-hidden {
        display: none !important;
    }
}

@media (max-width: 1330px) {
    body {
        font-size: 14px;
    }
}

@media (max-width: 660px) {

    .alert {
        font-size: 12px;
        line-height: normal;
        padding: 8px 6px 8px 12px;
    }

    .modal_container .search_block {
        padding: 80px 16px 0;

    }

    .modal_container {
        align-items: flex-start;
    }
}

.tab-content:not(:has(.tab-pane)) {
    display: none;
}

.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.active {
    display: block;
}

.tab-toggle {
    cursor: pointer;
    border: 1px solid transparent;
}

.tab-toggle:hover {
    background-color: #61e5b31f;
}

.tab-toggle.active {
    background: #61e5b31f;
    border-color: var(--wiki-primary)52;
    backdrop-filter: blur(4px);
    color: var(--wiki-primary);
}

.dropdown,
.dropdown-hover {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    background: #212121;
    border: 1px solid #2D2D2D;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    border-radius: 16px;
    transition: all 0.3s ease;
    left: 0;
    z-index: 20;
}

.dropdown-menu.open {
    opacity: 1;
    pointer-events: all;
}

.dropdown-menu.pos-right {
    left: auto;
    right: 0;
}

.dropdown-menu.pos-bottom {
    top: auto;
    bottom: 0;
}

.dropdown-toggle {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '';
    width: 10px;
    height: 10px;
    display: block;
    background: url(../assets/drop_arrow.svg) center / contain no-repeat;
    filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(21%) hue-rotate(146deg) brightness(105%) contrast(105%);
    transition: all 0.3s ease;
}

.dropdown-toggle__no-arrow::after {
    display: none;
}

.dropdown-item {
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 10px;
    color: #fff;
}

.dropdown-item:hover {
    color: var(--wiki-primary);
}

.table {
    width: 100%;
    color: #FFFFFF;
}

.table thead {
    color: #FFFFFFA3;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: #3C3C3C solid 1px;
    /* text-align: left; */
    vertical-align: middle;
}

.table th:first-child,
.table td:first-child {
    padding-left: 0;
}

.table th:last-child,
.table td:last-child {
    padding-right: 0;
}

.table tr:last-child td {
    border-bottom: none;
}

.table-sm {
    font-size: 14px;
}

.table-sm th,
.table-sm td {
    padding: 8px 0;
}

.flex-table {
    display: table;
    width: 100%;
    color: #FFFFFF;
}

.flex-row {
    display: table-row;
}

.flex-row:last-child {
    border-bottom: none;
}

.header-row {
    color: #FFFFFFA3;
    font-size: 14px;
}

.flex-cell {
    display: table-cell;
    padding: 10px;
    text-align: left;
    border-bottom: #3C3C3C solid 1px;
    width: 100%;
}

.header-row .flex-cell {
    padding: 24px 10px;
    line-height: 100%;
}

.header-row:first-child .flex-cell {
    padding-top: 0;
}

.flex-cell:first-child {
    padding-left: 0;
}

.flex-row:last-child .flex-cell {
    border-bottom: none;
}

hr {
    border-bottom: #3C3C3C solid 1px;
    height: 1px !important;
    margin: 1rem 0;
}

.slick-prev,
.slick-next {
    display: flex;
    width: 36px;
    height: 36px;
    border-radius: 100px;
    border: 1px solid #3C3C3C;
    background: #212121;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.55);
    transition: .2s ease all;
    z-index: 1;
}

.slick-prev:hover,
.slick-next:hover {
    background-color: #2D2D2D;
}

.slick-prev:focus,
.slick-next:focus {
    border-color: #2A2A2A;
    background-color: #2D2D2D;
}

.slick-prev:active,
.slick-next:active {
    border-color: #2A2A2A;
    background-color: #2D2D2D;
}

.slick-prev {
    left: 0;
}

.slick-next {
    right: 0;
}

.slick-prev::before,
.slick-next::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(../assets/slider_arrow.svg) no-repeat center;
    opacity: 1;
}

.slick-next::before {
    transform: rotate(-180deg);
}

@media (max-width: 640px) {
    .flex-table-responsive .flex-row {
        display: flex;
        flex-direction: column;
        border-bottom: #3C3C3C solid 1px;
        padding: 8px 0;
        gap: 4px;
    }

    .flex-table-responsive .flex-cell {
        padding: 0;
        border: none;
        text-align: left !important;
    }

    .flex-table-responsive .flex-cell:not(:first-child) {
        font-size: 11px;
    }

    .flex-table-responsive .flex-cell:not(:first-child) .item-name {
        font-size: 11px;
        gap: 6px;
    }

    .flex-table-responsive .flex-cell:not(:first-child) .item-icon {
        width: 16px;
        min-width: 16px;
        height: 16px;
    }

    .flex-table-responsive .flex-cell:not(:first-child) .item-grade,
    .flex-table-responsive .flex-cell:not(:first-child) .item-class {
        padding: 3px;
        font-size: 8px;
        height: auto;
    }
}