.main-container {
    grid-template-columns: 200px 1fr;
    grid-template-areas:
        "left main"
        "left right";
}

.neuroset-similar {
    display: none;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#overlay.active {
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 1;
    pointer-events: auto;
}

.icon-top-container {
    position: fixed;
    bottom: 60px;
    right: 60px;
    z-index: 100;
}

#scroll-button {
    cursor: pointer;
}

#scroll-button:hover, #scroll-button:active {
    scale: 1.2;
    rotate: 360deg;
    transition: 0.5s linear;
}

/*main {*/
/*    margin-bottom: 100px;*/
/*}*/

.main-catalog-container {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line-color);
    min-width: 310px;
}

.start-content {

}

h1 {
    color: white;
    font-size: calc(1.75rem + 0.5vw);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
}

h1 > span {
    font-size: calc(1.5rem + 0.1vw);
    font-weight: 400;
}

.add-tool-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.add-ai {
    cursor: pointer;
    padding: 10px 18px;
    width: 20%;
    min-width: 250px;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px 0 rgba(126, 52, 161, 0.65);
    background-size: 200% 100%;
    background-image: linear-gradient(to right, #9b79ff, #815eff, #653dff);
    box-sizing: border-box;
}

.add-ai:hover {
    background-position: 90% 10%;
    transition: all .4s ease-in-out;
}

.pages-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    column-gap: 15px;
}

.pages-container > a {
    cursor: pointer;
    text-decoration: none;
    padding: 10px 18px;
    min-width: 185px;
    font-size: 1.125rem;
    letter-spacing: 1px;
    text-align: center;
    font-weight: bold;
    color: white;
    border: 2px solid var(--fiolet);
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(126, 52, 161, 0.65);
    box-sizing: border-box;
}

.pages-container > a:hover {
    background-color: var(--fiolet);
    transition: all .4s ease-in-out;
}

.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding-left: 3%;
    padding-right: 3%;
}

.input-container {
    position: relative;
    z-index: 1001;
}

.input-container > img {
    position: absolute;
    left: 11px;
    top: 30%;
    height: 22px;
}

.input-container > label {
    display: none;
}

#search-form {
    width: 100%;
    position: relative;
}

#search-form input {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: solid 2px #7ee787;
    background: none;
    padding: 0 0 0 20px;
    font-size: 1.25rem;
    color: white;
    box-sizing: border-box;
}

#search-form input:focus {
    box-shadow: 0 0 20px #7ee787;
    transition: box-shadow 0.3s ease-in-out;
}

*:focus {
    outline: none;
}

#search-form input::placeholder {
    color: rgba(245,245,245, 0.8);
}

#search-button {
    cursor: pointer;
    position: absolute;
    right: 0;
    height: 50px;
    width: 70px;
    background-color: #7ee787;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-button:hover {
    background-color: #67fe6d;
}

#search-button:active {
    background-color: #7ee787;
}

#search-button > img {
    width: 27px;
}

.search-recommendation-container {
    display: none;
    position: absolute;
    top: 60px;
    width: 100%;
    background-color: #0e0e2a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-top: none;
    font-size: 1.25rem;
    box-sizing: border-box;
    z-index: 1001;
}

.search-recommendation-container.open {
    display: block;
    animation-name: fadeInDown;
    animation-duration: 0.7s;
}

.search-recommendation-container span {
    color: #7ee787;
    padding-left: 12px;
    font-style: italic;
}

.search-recommendation {
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
}

.item-recommendation {
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
}

.item-recommendation:hover {
    background-color: var(--line-color);
}

.item-recommendation a {
    text-decoration: none;
    color: white;
    width: 100%;
    display: block;
    padding: 12px 0 12px 20px;
}

@keyframes fadeInDown {
	0% {
		opacity: 0;
		transform: translateY(-1.25em);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

#filter-form {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

select {
    width: 15%;
    height: 45px;
    border-radius: 8px;
    padding-left: 10px;
    font-size: 1.125rem;
    color: white;
    background: none;
    border: 2px solid var(--site-green);
}

select:hover {
    border-color: var(--fiolet);
}

select:focus option {
    height: 45px;
    font-size: 1.125rem;
    background-color: var(--site-green);
    padding: 10px;
}

select:focus {
    outline: none;
}

option {
    color: black;
    padding: 15px;
}

.neuroseti-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.7vw;
}

#loader-container {
    width: 100%;
    height: 300px;
    display: none;
    align-items: center;
    justify-content: center;
}

#loader {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 5px solid #7ee787;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    margin: 0 auto;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
0% {
    transform: rotate(0deg);
    }
100% {
    transform: rotate(360deg);
    }
}

h2 {
    color: white;
    width: 100%;
    font-size: calc(1.375rem + 1.2vw);
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 20px;
    margin-top: 25px;
}

.neuroset-card {
    display: flex;
    flex-direction: column;
    width: 28%;
    max-height: 800px;
    min-width: 300px;
    max-width: 340px;
    border: 2px solid var(--site-green);
    transition: 0.5s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.neuroset-card:hover {
    border: 2px solid var(--fiolet);
}

.hover-effect .neuroset-name {
    border-bottom: 1px solid var(--line-color);
    transition: border-color 0.5s ease-in-out;
}

.hover-effect .when-updated {
    border-top: 1px solid var(--line-color);
    transition: border-color 0.5s ease-in-out;
}

.hover-effect:hover .neuroset-name {
    border-bottom-color: var(--fiolet);
}

.hover-effect:hover .when-updated {
    border-top-color: var(--fiolet);
}

.link-img {
    width: 100%;
}

.neuroset-card .neuroset-image {
    transition: filter 0.5s ease-in-out;
}

.neuroset-card:hover .neuroset-image {
    filter: hue-rotate(120deg);
}

.image-container {
    width: 95%;
    margin-left: 2.5%;
    margin-right: 2.5%;
    margin-top: 10px;
    border-radius: 10px;
    position: relative;
}

.neuroset-image {
    width: 100%;
    aspect-ratio: auto 1 / 1;
    border-radius: 10px;
}

.views-container {
    background-color: #140f2d;
    position: absolute;
    top: 90%;
    z-index: 2;
    display: flex;
    justify-content: start;
    align-items: center;
    height: 35px;
    border-top-right-radius: 6px;
}

.views-image {
    width: 30px;
    aspect-ratio: auto 1 / 1;
    padding-right: 5px;
}

.views {
    color: white;
    padding-right: 8px;
}

.heart-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    background: #0e0c28;
    border-radius: 20% 10% 20% 50%;
    transform: scale(0);
    transition: all 0.5s linear;
}

.neuroset-card:hover .heart-icon {
    transform: scale(1);
    animation: ripple 0.5s linear;
}

@keyframes ripple {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.heart-icon svg {
    width: 35px;
    margin: auto auto;
}

.heart-icon svg {
    transition: fill 0.5s ease-in-out;
}

.heart-icon:hover svg {
    fill: #7ee787; /* Замените на желаемый цвет */
}

.neuroset-name {
    font-size: 1.375rem;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-color);
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.neuroset-name a {
    text-decoration: none;
    color: white;
    width: 100%;
    display: block;
    transition: 0.5s ease-in-out;
}

.neuroset-name a:hover {
    color: #f1e739;
}

.neuroset-details {
    width: 90%;
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 86px;
    justify-content: start;
    gap: 10px;
    margin-top: 12px;
    max-height: 86px;
    overflow: hidden;
}

.task {
    color: var(--task-color);
    border: 1px solid var(--task-color);
    border-radius: 10px;
    padding: 6px 12px;
    margin: 0;
    max-height: 38px;
    box-sizing: border-box;
}

.for-click{
    cursor: pointer;
    transition: 0.5s ease-in-out;
}

.for-click:hover {
    color: #f1e739;
    border-color: #f1e739;
}

.description-container {
    width: 100%;
}

.description {
    color: white;
    font-family: "Georgia", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: normal;
    font-size: 1rem;
}

.when-updated {
    border-top: 1px solid var(--line-color);
}

.updated {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 14px;
    font-size: 1.0625rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    column-gap: 37px;
    row-gap: 37px;
    margin-top: 25px;
    align-items: center;
    justify-content: center;
}

.select-wrapper {
    position: relative;
    width: 18%;
    min-width: 150px;
    height: 45px;
}

.select-selected {
    padding: 10px;
    background: none;
    color: white;
    border: 2px solid var(--fiolet);
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    font-size: 1.125rem;
    border-radius: 8px;
    position: relative;
    box-sizing: border-box;
}

.select-selected:hover {
    box-shadow: 0 0 10px 3px var(--fiolet);
}

.select-selected.picked {
    border-color: #7ee787!important;
}

.select-selected.picked:hover {
    box-shadow: 0 0 10px 3px #7ee787;
}

.select-options {
    position: absolute;
    z-index: 1;
    top: 118%;
    left: -20%;
    right: 0;
    background-color: black;
    color: white;
    border: 2px solid var(--fiolet);
    border-radius: 8px;
    list-style-type: none;
    padding: 10px;
    margin: 0;
    display: none;
    width: 130%;
    font-size: 1.125rem;
    max-height: 280px; /* Добавлено ограничение высоты */
    overflow-y: auto;
}

.select-options.open {
    display: block;
}

.select-options li {
    padding: 10px;
    cursor: pointer;
    position: relative;
}

.select-options li.chosen {
    background-color: rgba(188, 140, 255, 0.7);
}

.select-options li.chosen::after {
    content: "\00D7";
    position: absolute;
    right: 16px;
    top: -1px;
    color: whitesmoke;
    font-size: 28px;
}

.select-options li:hover {
    background-color: rgba(188, 140, 255, 0.8);;
}

.select-selected .selected-text {
    display: inline-block;
}

.select-selected .arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: white transparent transparent transparent;
    pointer-events: none;
}

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

#reset-filters {
    cursor: pointer;
    height: 49px;
    width: 18%;
    min-width: 150px;
    font-size: 1.0625rem;
    font-family: inherit;
    color: white;
    border: none;
    background-size: 300% 100%;
    background-image: linear-gradient(to right, #6253e1, #852D91, #A3A1FF, #F24645);
    box-shadow: 0 4px 15px 0 rgba(126, 52, 161, 0.75);
}

#reset-filters:hover {
    background-position: 100% 0;
    transition: all .4s ease-in-out;
}

#reset-filters:active {
    transform: translateY(22px);
}

.nothing-wrapper {
    height: 20vw;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nothing {
    color: var(--site-green);
    text-align: center;
    font-size: calc(2rem + 1vw);
    margin-bottom: 20px;
}

.nothing:nth-child(2) {
    font-size: 1.5rem;
}

.load-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.load-more {
    width: 35%;
    min-width: 250px;
    max-width: 500px;
    padding-bottom: 10px;
    padding-top: 10px;
    text-decoration: none;
    font-size: 1.25rem;
    letter-spacing: 1px;
    font-weight: bold;
    text-align: center;
    color: white;
    border: 2px solid var(--fiolet);
}

.load-more:hover {
    background-color: var(--fiolet);
    box-shadow: 0 0 10px 3px var(--fiolet);
    transition: 0.5s linear;
}

.load-more:active {
    transform: translateY(22px);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 1366px) {
    .neuroset-card {
        max-width: 280px;
    }
    .description {
        -webkit-line-clamp: 8;
    }
}

@media screen and (max-width: 1023px) {
    .icon-top-container {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "left"
            "right";
    }
    /*.aside-menu-container {*/
    /*    display: block;*/
    /*}*/
}

@media screen and (max-width: 600px){
    h1 {
        font-size: calc(1.5rem + 0.2vw);
    }
    h1 > span {
        font-size: 1.125rem;
    }
    .filters {
        column-gap: 14px;
    }
    .select-wrapper, #reset-filters{
        width: 48%;
        min-width: 155px;
    }
    .select-options {
        width: 100%;
        left: -5%;
    }
    .neuroseti-container {
        gap: 20px;
    }
}

@media screen and (max-width: 420px){
    .main-catalog-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .filters {
        row-gap: 25px;
    }
    .select-wrapper, #reset-filters{
        width: 100%;
        min-width: 155px;
    }
    .select-options {
        width: 95%;
        left: 0;
    }
    .search-recommendation-container {
        font-size: 1.125rem;
    }
    .pages-container > a {
        font-size: 1.0625rem;
        min-width: 150px;
    }
}