@import url('header.css');
@import url('footer.css');
@import url('frames/art_card.css');

body {
    background: var(--color-gray);
}

.head_frame, main, .more_btn {
    max-width: 1400px;
    margin: 0 auto;
}

.head_frame {
    background: var(--color-gray);
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 20px;
    padding-top: 50px;
}

.head_frame .title {
    font-size: 65px;
    font-style: normal;
    font-weight: 700;
    line-height: 80%;
    letter-spacing: -1.95px;
}

.head_frame > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.head_frame .bubbles {
    display: flex;
    gap: 10px;
}

.head_frame .bubbles:not(:has(div)) {display: none;}

.head_frame .bubbles > div {
    display: flex;
    padding: 10px;
    border: 1px solid var(--color-dark);
    border-radius: 30px;
    opacity: 0.6;
    cursor: pointer;
    flex-shrink: 0;
}

.head_frame .bubbles > div:hover {
    opacity: 1;
}

.head_frame .bubbles > div.active {
    opacity: 1;
    background: var(--color-dark);
    color: var(--color-font-light);
    cursor: default;
}

.head_frame .categories {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.head_frame .bubbles.cat_bbl > div {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 80%;
    letter-spacing: -0.48px;
}

.head_frame .filter_bbl {overflow: auto;}

.head_frame .bubbles.filter_bbl > div {
    padding: 5px 10px;
    gap: 10px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.7px;
}

.head_frame .bubbles.filter_bbl > div:hover {
    opacity: 0.6;
    filter: invert(16%) sepia(71%) saturate(5316%) hue-rotate(330deg) brightness(84%) contrast(104%);
}

.head_frame .bubbles.filter_bbl > img {
    width: 20px;
    height: 20px;
}

.head_frame .filter {
    position: relative;
}

.head_frame .filter_btn {
    display: flex;
    gap: 5px;
    cursor: pointer;
}

.head_frame .filter_btn > span {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 80%;
    letter-spacing: -0.48px;
}
.head_frame .filter_btn > img {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.head_frame .filter.active > .filter_btn > img {
    transform: rotate(180deg);
}

.head_frame .filter:not(.active) > #filter_window {
    display: none;
}

.head_frame #filter_window {
    position: absolute;
    right: 0;
    top: 23px;
    width: 205px;
    padding: 10px 10px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--color-light);
    z-index: 2;
    max-height: 300px;
    overflow-y: auto;
}

.head_frame #filter_window > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.head_frame #filter_window .title {
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 80%;
    letter-spacing: -0.6px;
}

.head_frame #filter_window .choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.head_frame #filter_window .choices > div {
    display: flex;
    gap: 5px;
    align-items: center;
    cursor: pointer;
}

.head_frame #filter_window .choices input {
    border: 1px solid var(--color-dark);
    pointer-events: none;
}

.head_frame #filter_window .choices input:checked {
    background-color: var(--color-dark);
}

.head_frame #filter_window .choices > div > span {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.7px;
}

main {
    background: var(--color-gray);
    padding: 0 20px;
    min-height: calc(100vh - 81px - 207px - 236px)
}

main .collection {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 50px 0;
    border-top: 1px solid var(--color-sep);
}

main .collection .frame_left {
    flex-basis: 25%;
}
main .collection .frame_left #author {
    max-width: 225px;
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -0.75px;
}


main .collection .frame_right {
    flex-basis: 75%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px 10px;
}

.more_btn {
    display: flex;
    flex-direction: row-reverse;
    padding-bottom: 70px;
}
.more_btn > div {
    flex-basis: 75%;
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 10px 0;
    height: 13px;
    border-radius: 30px;

    background: var(--color-dark);
    color: var(--color-font-light);
    cursor: pointer;
}
.more_btn > :first-child:hover {
    background: var(--color-button-dark-hover);
}

.more_btn > .loader {
    display: flex;
    gap: 7px;
    background-color: var(--color-gray-dark);
}

.more_btn > .loader > div {
    background-color: #fff;
	width: 12px;
	height: 12px;
	border-radius: 6px;
    animation: loader 1s infinite normal;
}

.more_btn > .loader > #c1 {
    animation-delay: 200ms;
}
.more_btn > .loader > #c2 {
    animation-delay: 400ms;
}
.more_btn > .loader > #c3 {
    animation-delay: 600ms;
}

@keyframes loader {
	0% {}
	50% {
		background-color: var(--color-gray-dark);
	}
	100% {}
}

.more_btn:not(.loading) > .loader,
.more_btn.loading > :first-child {
    display: none;
}

.more_btn.loading {
    cursor: default;
    pointer-events: none;
}