/* SEARCH */
.search-fixed__input,
.search {
    border-radius: 100px;
    height: 56px;
}

.search {
    background-color: var(--gray);
    width: 380px;
}

.search-fixed {
    display: none;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1300;
    width: 688px;
    max-width: calc(100% - 30px);
}

.search-fixed__input {
    background-color: var(--black);
    position: relative;
}

.close-search-fixed {
    right: 24px;
    top: 24px;
}

.search__options {
    max-height: 250px;
    overflow-y: auto;
}

.search-btn {
    content: url(../assets/icons/search.svg);
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: transparent;
    cursor: pointer;
}

.filter-btn svg path {
    transition: fill var(--transition);
}

.filter-btn span {
    transition: color var(--transition);
}

.filter-btn.active svg path,
.filter-btn:hover svg path {
    fill: white;
}

.filter-btn.active span,
.filter-btn:hover span {
    color: white;
}

.search-fixed-input,
.search-input {
    position: relative;
    border-radius: 16px;
    height: 100%;
    left: 50px;
    background-color: transparent;
    color: white;
}

.search-input {
    width: calc(100% - 170px);
}

.search-fixed-input {
    width: 100%;
}

.filter-btn {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
}

.filter-btn span {
    color: #5C5C5C;
}

.search-content {
    background-color: var(--black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    border-radius: 16px;
    padding: 24px;
}

.search-block>span {
    font-size: 12px;
    color: #5C5C5C;
}

.search-games__list.more {
    display: none;
}

.search-games__list.more.active {
    display: flex;
}

.search-fixed.active {
    display: flex;
}

.search-fixed.active .search-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-fixed.active .search-content button:last-of-type {
    background-color: #1B1B1B;
}

.search-games__item {
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #1B1B1B;
    font-size: 14px;
    cursor: pointer;
    transition: color var(--transition);
    color: #AAB2BD;
}

.search-games__item.active {
    color: white;
    background-color: #373636;
}

.search-games__item:hover {
    color: white;
}

.more-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 14px;
    width: 140px;
    height: 48px;
    color: #5C5C5C;
    background: linear-gradient(90deg, rgba(33, 32, 32, 0) 0%, #161616 79.1%);
    text-align: end;
    display: flex;
    align-items: center;
    justify-content: end;
    cursor: pointer;
    padding: 13px;
}

.search-localization-input {
    height: 52px;
    background-color: #1B1B1B;
    border-radius: 12px;
    position: relative;
    padding: 16px;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-localization-input input {
    color: white;
    width: 100%;
    font-size: 14px;
    background-color: transparent;
    cursor: pointer;
}

.search-localization-input::after {
    content: url(../assets/icons/dropdown-arrow.svg);
    position: absolute;
    right: 16px;
    top: calc(50% + 2px);
    transform: translateY(-50%);
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    width: 100%;
    transition: transform var(--transition);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    border-radius: 12px;
    padding: 0 16px 24px 16px;
    background-color: #1B1B1B;
    z-index: 10;
}

.search-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-dropdown__item {
    padding: 20px 0;
    border-bottom: 1px solid #3E3E3E;
    font-size: 14px;
    color: white;
    transition: color var(--transition);
    cursor: pointer;
}

.search-dropdown__item:hover {
    color: #5C5C5CCF;
}

/* SEARCH */

/* modal */
.modal-content {
    border-radius: 24px;
    background-color: #212020E0;
    box-shadow: 0px 32px 56px 0px rgba(22, 22, 22, 0.56);
    backdrop-filter: blur(32px);
    padding: 32px 48px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
}

.auth-info {
    color: #5C5C5C;
}

.auth-info a {
    color: #CCD1D9;
}

.form-input {
    position: relative;
}

.form-input label {
    position: absolute;
    top: calc(50% - 4px);
    left: 16px;
    transform: translateY(-50%);
    color: #5C5C5C;
    transition: 0.2s ease all;
    pointer-events: none;
    font-size: 16px;
}

.form-input input:focus+label,
.form-input input:not(:placeholder-shown)+label {
    top: 12px;
    font-size: 12px;
}

.form-input input {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    transition: 0.2s ease all;
    background-color: #161616;
    padding: 20px 16px 13px 16px;
    color: white;
    border: 1.6px solid #161616;
}

.form-input input:focus {
    border: 1.6px solid #28C3F4;
}

.eye {
    position: absolute;
    content: url(../assets/icons/eye.svg);
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
}

.eye.active {
    content: url(../assets/icons/eye-close.svg);
}

/* modal */

/* custom-tooltip */
.custom-tooltip__text {
    min-width: 310px;
    border-radius: 12px;
    padding: 13px 20px;
    background-color: #1B1B1B;
    color: #F5F7FA;
    font-size: 14px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    transition: transform var(--transition), opacity var(--transition);
    opacity: 0;
    visibility: hidden;
}

.custom-tooltip.bottom .custom-tooltip__text {
    top: calc(100% + 10px);
}

.custom-tooltip.top .custom-tooltip__text {
    bottom: calc(100% + 10px);
}

.custom-tooltip__text::after {
    content: '';
    width: 10px;
    height: 10px;
    position: absolute;
    background-color: #1B1B1B;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.custom-tooltip.bottom .custom-tooltip__text::after {
    top: -5px;
}

.custom-tooltip.top .custom-tooltip__text::after {
    bottom: -5px;
}

.custom-tooltip__icon {
    cursor: pointer;
    height: fit-content;
    width: fit-content;
}

.custom-tooltip__icon:hover~.custom-tooltip__text {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

/* custom-tooltip */

/* custom-checkbox */
.custom-checkbox {
    min-width: 29px;
    min-height: 29px;
    max-width: 29px;
    max-height: 29px;
}

.custom-checkbox label {
    background-color: #161616;
    border-radius: 50%;
    cursor: pointer;
    height: 29px;
    width: 29px;
    left: 0;
    position: absolute;
    top: 0;
}

.custom-checkbox label:after {
    content: '';
    position: absolute;
    top: 0;
    left: 5px;
}

.custom-checkbox input[type="checkbox"] {
    visibility: hidden;
}

.custom-checkbox input[type="checkbox"]:checked+label {
    background-color: #395BE9;
}

.custom-checkbox input[type="checkbox"]:checked+label:after {
    content: url(../assets/icons/Check.svg);
}

/* custom-checkbox */

/* catalog-item */
.catalog-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-item__img {
    height: 256px;
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
}

.catalog-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-item p {
    color: #5C5C5C;
    text-decoration: underline;
}

/* catalog-item */


@media (max-width: 1200px) {
    .search-fixed {
        background-color: #212020E0;
        border-radius: 24px;
        box-shadow: 0px 32px 56px 0px #1616168F;
        backdrop-filter: blur(32px);
        padding: 32px 12px;
    }
    
    .search-content {
        background-color: transparent;
        padding: 0;
    }
    
    .more-btn {
        background: transparent;
    }
}

@media (max-width: 579px) {
    .container {
        overflow-x: hidden;
    }
}