/* Define the charset to interpret this stylesheet in */
@charset "utf-8";

.pageContainer {
    background: transparent url(/static/Gallery_Background.png) no-repeat;
    background-size: 100% auto;
}


.page_body {
    width: 95%;
    margin: 28vw auto 0rem auto;
    padding: 0rem 0rem 2rem 0rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-image: url(/static/gallery_glowingBars.png),
                      linear-gradient(to bottom, rgb(16, 8, 42), rgb(54, 47, 120));
    background-repeat: no-repeat no-repeat;
    background-size: 100% auto;
}
@media (min-width: 1200px) {
    .page_body {
        margin-top: 19rem;
    }
}

.gallery_header_logo {
    display: block;
    margin: -5vw auto 3rem auto;
    width: 700px;
    max-width: 100%;
}
@media (min-width: 1200px) {
    .gallery_header_logo {
        margin-top: -3rem;
    }
}

.gallery_Header {
    max-width: 90%;
    margin: -1rem auto 3rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contentTag_description {
    margin: 0rem auto 1rem auto;
    text-align: justify;
    grid-area: 1 / 1 / 2 / 3;
}
.contentTag_description:not(:has(p)) {
    display: none;
}
@media (min-width: 760px) {
    .contentTag_description {
        max-width: 80%;
    }
}
@media (min-width: 1024px) {
    .contentTag_description {
        margin-top: 1.5rem;
    }
}

.visibilityHint {
    grid-area: 2 / 1 / 3 / 3;
    text-align: center;
    margin: 1rem auto 1.5rem auto;
}
@media (min-width: 1200px) {
    .visibilityHint {
        margin-top: 1.5rem;
    }
}

.searchbar {
    margin: auto auto auto auto;
    grid-area: 3 / 1 / 4 / 3;
}
@media (min-width: 1024px) {
    .searchbar {
        grid-area: 3 / 2 / 4 / 3;
    }
}
.searchbar input {
    max-width: 85%;
    padding-left: 0.8rem;
    height: 45px;
    background: white;
    border-radius: 15px 0px 0px 15px;
    border: none;
    color: black;

}
.searchbar button {
    float: right;
    height: 45px;
    width: 45px;
    cursor: pointer;
    border-radius: 0px 15px 15px 0px;
    border: none;
    background: white;
}
.searchbar button img {
    opacity: 0.7;
    height: 30px;
    width: 30px;
    padding-bottom: 2px;
    padding-right: 2px;
    margin: auto auto auto auto;
}


.sorting_buttons_container {
    margin: 1rem auto 0.5rem auto;
    grid-area: 4 / 1 / 5 / 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.sorting_buttons_container a {
    font-size: 14px;
}
.sorting_buttons_container div {
    font-size: 14px;
}
.sorting_button {
    max-width: 100%;
    margin: 0rem 0.1rem 0rem 0.1rem;
    padding: 0.5rem 0.8rem 0.5rem 0.8rem;
    background-color: hsl(310, 100%, 25%);
    border-radius: 20px;
}
.sorting_button a {
    color: hsl(0, 0%, 50%);
}
.sorting_button_inactive {
    max-width: 100%;
    margin: 0rem 0.1rem 0rem 0.1rem;
    padding: 0.5rem 0.8rem 0.5rem 0.8rem;
    background-color: hsl(310, 100%, 55%);
    color: hsl(0, 0%, 90%);
    border-radius: 20px;
}
@media (min-width: 580px) {
    .sorting_button {
        margin: 0rem 0.3rem 0rem 0.3rem;
        padding: 0.8rem 1.2rem 0.8rem 1.2rem;
    }
    .sorting_button_inactive {
        margin: 0rem 0.3rem 0rem 0.3rem;
        padding: 0.8rem 1.2rem 0.8rem 1.2rem;
    }
    .sorting_buttons_container a {
        font-size: 18px;
    }
    .sorting_buttons_container div {
        font-size: 18px;
    }
}
@media (min-width: 1024px) {
    .sorting_buttons_container {
        margin-top: 0.5rem;
        grid-area: 3 / 1 / 4 / 2;
    }
}
@media (min-width: 1200px) {
    .sorting_buttons_container {
        margin-top: 0.5rem;
    }
}



.gallery_grid {
    position: relative; /*for the animation*/
    max-width: 95%;
    margin: 0rem auto 0rem auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.gallery_grid[data-animated] {
    animation-name: fade_in_upward;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-delay: 0.2s;
}
.gallery_row {
    position: relative; /*for the animation*/
    width: 90%;
    margin: 0rem auto 1.2rem auto;
    display: none;
    flex-direction: row;
    flex-wrap: no-wrap;
    justify-content: space-between;
    gap: 20px;
}
.gallery_row[data-animated] {
    animation-name: fade_in_upward;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-delay: 0.2s;
}
.gallery_row:nth-last-child(3) {
    justify-content: center;
}
@media (min-width: 1024px) {
    .gallery_grid {
        display: none;
    }
    .gallery_row {
        display: flex;
    }
}


.gallery_item {
    position: relative;
    display: block;
}
.gallery_item a {
    color: var(--color-page-text);
}
.gallery_item a:hover {
    color: var(--color-page-text);
}
.gallery_item img {
    max-width: 100%;
    height: 280px;
    display: block;
    margin: 0rem auto 0rem auto;
    border-radius: 30px;
    object-fit: cover;
}
@media (min-width: 1024px) {
    .gallery_item img {
        height: 300px;
    }
}

.gallery_item_title {
    padding: 1rem;
    margin: 0rem auto 0rem auto;
    text-align: center;
    max-width: 13rem;
}


/*pagination*/
.gallery_pagination_mobile {
    margin: 2rem auto 1rem auto;
    padding: 0rem 1rem 0rem 1rem;
    max-width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.gallery_pagination_mobile span {
    display: block;
    margin: 0rem auto 0rem auto;
    text-align: center;
    font-size: 20px;
}
.gallery_pagination_mobile a {
    margin: 0rem 0rem 0rem 0rem;
}
.gallery_pagination_desktop {
    margin: 2rem auto 1rem auto;
    padding: 0rem 1rem 0rem 1rem;
    max-width: 90%;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.gallery_pagination_desktop span {
    display: block;
    margin: 0rem auto 0rem auto;
    text-align: center;
    font-size: 20px;
}
.gallery_pagination_desktop a {
    margin: 0rem 0rem 0rem 0rem;
    font-size: 20px;
}
.gallery_pagination_desktop .span_current {
    display: flex;
    wrap: no-wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
@media (min-width: 760px) {
    .gallery_pagination_mobile {
        display: none;
    }
    .gallery_pagination_desktop {
        display: flex;
    }
}
.pagination_arrow {
    display: inline;
    height: 45px;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}


/* For the artwork detail page */
.artwork_container[data-animated] {
    animation-name: fade_in_static;
    animation-duration: 1.5s;
    animation-delay: 0s;
    animation-fill-mode: forwards;
}

.detail_header {
    max-width: 80%;
    margin: 2vw auto 0rem auto;
    text-align: center;
}
.detail_header h1 {
    font-size: 36px;
}
@media (min-width: 480px) {
    .detail_header h1 {
        font-size: 40px;
    }
}
@media (min-width: 760px) {
    .detail_header h1 {
        font-size: 44px;
    }
}
@media (min-width: 1024px) {
    .detail_header h1 {
        font-size: 48px;
    }
}
@media (min-width: 1200px) {
    .detail_header {
        margin-top: 2rem;
    }
    .detail_header h1 {
        font-size: 50px;
    }
}

.tag_container {
    display: flex;
    flex-direction: row;
    flex-wrap: no-wrap;
    justify-content: center;
    max-width: 60%;
    margin: 1rem auto 2rem auto;
}
.safetyTagLabel {
    margin: 0.1rem 0.15rem 0.1rem 0.15rem;
    padding: 0.2rem 0.4rem 0.2rem 0.4rem;
    border-radius: 0.4rem;
}
.characterTagLabel {
    margin: 0.1rem 0.15rem 0.1rem 0.15rem;
    padding: 0.2rem 0.4rem 0.2rem 0.4rem;
    border-radius: 0.4rem;
}
.contentTagLabel {
    margin: 0.1rem 0.15rem 0.1rem 0.15rem;
    padding: 0.2rem 0.4rem 0.2rem 0.4rem;
    border-radius: 0.4rem;
}


.detail_mainArtwork {
    max-width: 90%;
    display: block;
    margin: 10vw auto 3rem auto;
    border-radius: 20px;
}
@media (min-width: 1024px) {
    .detail_mainArtwork {
        margin-top: 5rem;
    }
}

.description_container {
    max-width: 70%;
    margin: 1rem auto 4rem auto;
}
.description_container p {
    text-align: justify;
    margin-bottom: 1.5rem;
}
.description_container a {
    color: yellow;
}
.description_container img {
    max-height: 180px;
    margin: 0rem 0rem 4rem 2rem;
    float: right;
    border-radius: 10px;
}

