/* ----Back Btn---- */
#back{
    aspect-ratio: 1/1;
    font-size: min(7.25vw, 1.5rem);
    width: 2.5em;
    border-radius: 100px;
    padding: 0.25rem;

    margin-left: 2em;
    position: absolute;
    z-index: 1;
    text-decoration: none;
    
    display: flex;
    justify-content: center;
    align-items: center;
}
/* arrows */
svg{
    width: 70%;
    fill: var(--highlight-color);
}

/* ----Search box---- */
/* Box */
#searchBox{
    margin: min(7vw, 2.5rem) auto;
    display: block;
    max-width: 45rem;
    width: 90vw;
    padding: min(3vw, 1.5rem);
}
/* Search Bar */
#searchBar{
    background: transparent;
    border: none;
    outline: none;

    display: block;
    margin-inline: auto;
    width: 75%;


    text-align: center;
    font-size: min(6vw, 1.5rem);
}
#searchBar::placeholder{
    color: var(--sec-highlight-color);
}
#searchBar::-webkit-search-cancel-button{
    display: none;
}
/* Search Filters */
#searchFilters{
    margin-top: min(3vw, 1.5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: min(3vw, 1.5rem);

    border-radius: 100px; /* necessary to make scrolling look nicer */
}
#searchFilters label{
    font-size: min(4vw, 1.1rem);
    padding: 0.4em 1em;
    text-align: center;
}
input:checked + label{
    background-color: var(--light-background);
    --highlight-color: var(--light-highlight);
}
input[type="checkbox"]{
    display: none;
}
/* Scroll Indicator */
#scrollInd{
    display: none;
}
#scrollInd svg{
    width: min(8vw, 2rem);
    fill: var(--sec-highlight-color);
}

/* ----Projects---- */
#projects{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: min(3vw, 1rem);
    position: relative; /*added so that absolutely positioned, cloned projects can use relative sizing units*/
}
/* project box */
.project{
    max-width: 83rem;
    padding: min(5vw, 2.5rem);
}
/* title */
.projectTitle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: min(5vw, 2rem);
}
.projectTitle h1{
    font-size: min(8vw, 4rem);
}
.projectTitle .btn3{
    aspect-ratio: 1/1;
    font-size: min(10vw, 2rem);
    width: 2.25em;

    display: flex;
    justify-content: center;
    align-items: center;

    fill: var(--highlight-color);
}
.expandedBtn{
    transform: rotate(90deg);
}
/* content */
.projectContent{
    margin-top: min(5vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: min(4vw, 2rem);
}
.projectDesc{
    flex: 1 1 0px;
    font-size: min(4.5vw, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.projectDesc .btn1{
    aspect-ratio: 25 / 8;
    width: 9em;
    font-size: min(5vw, 2.25rem);
    text-decoration: none;
    margin: min(4vw, 2rem);
    margin-bottom: 0px;

    display: flex;
    justify-content: center;
    align-items: center;
}
img{
    max-width: 38rem;
    width: 100%;
    border-radius: 15px;
}
/* closed project */
.closedProject{
    border-radius: 100px;
    width: min(100%, 60rem);
}
.closedProject .projectContent{
    display: none;
}
/* class used for displaying search results */
.hide{
    display: none;
}
@media (max-width: 1000px){
    #back{
        position: relative;
        margin: 1em;
        margin-inline: auto;
        padding: 1em;

        aspect-ratio: 2/1;
        height: 2em;
        width: auto;
    }
    #searchFilters{
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px;  /* make room for border shadow */
    }
    #scrollInd{
        display: block;
        text-align: center;
        margin-top: min(3vw, 1.5rem);
    }
    #searchFilters label{
        white-space: nowrap;
    }
}