* {
    box-sizing: border-box;
    font-family: sans-serif;
}

#projects {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 5vw;
    width: 70vw;
    margin: auto;
    margin-top: 8rem;
    padding-bottom: 4rem;
}

#projects img {
    width: 20vw;
    height: 25vw;
    object-fit: cover;
    box-shadow: 0 0 0.5rem 0 black;
}

#projects div {
    width: 20vw;
    background-color: #6A6BA4;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: -0.3rem;
    box-shadow: 0 0 0.5rem 0 black;
}

#projects a {
    text-decoration: none;
    color: #2A2B4A;
    text-align: center;
}

#filters {
    margin-top: 8rem;
    float: right;
    margin-bottom: 4rem;
    margin-right: 4rem;
    text-align: center;
}

#search {
    font-size: 1.5rem;
    background-color: #6A6BA4;
    color: #2A2B4A;
    padding: 0.2rem;
    border: 0.2rem solid #2A2B4A;
    border-radius: 0.5rem;
    text-align: center;
}

#search::placeholder {
    color: #2A2B4A;
}

#projects-per-page {
    font-size: 1.5rem;
    background-color: #6A6BA4;
    color: #2A2B4A;
    padding: 0.2rem;
    border: 0.2rem solid #2A2B4A;
    border-radius: 0.5rem;
}

#projects-per-page:hover {
    cursor: pointer;
}

#apply-btn {
    font-size: 1.5rem;
    background-color: #6A6BA4;
    color: #2A2B4A;
    padding: 0.2rem;
    border: 0.2rem solid #2A2B4A;
    border-radius: 0.5rem;
    display: block;
    margin: auto;
}

#apply-btn:hover {
    cursor: pointer;
}

#projects-per-page-label {
    font-size: 1.5rem;
    background-color: #6A6BA4;
    color: #2A2B4A;
    padding: 0.2rem;
    border: 0.2rem solid #2A2B4A;
    border-radius: 0.5rem;
    white-space: nowrap;
}

#pages {
    margin: auto;
    padding-bottom: 4rem;
    width: 8rem;
}

#back, #forward {
    font-size: 1.5rem;
    background-color: #6A6BA4;
    color: #2A2B4A;
    padding: 0.2rem;
    border: 0.2rem solid #2A2B4A;
    border-radius: 0.5rem;
}

#back:hover, #forward:hover {
    cursor: pointer;
}

#current {
    font-size: 1.5rem;
    background-color: #6A6BA4;
    color: #2A2B4A;
    padding: 0.2rem;
    border: 0.2rem solid #2A2B4A;
    border-radius: 0.5rem;
}

@media only screen and (max-width: 1200px) {

    #projects {
        grid-template-columns: repeat(2, 40vw);
        gap: 5vw;
        width: 85vw;
    }

    #projects img {
        width: 40vw;
        height: 45vw;
        object-fit: cover;
    }

    #projects div {
        width: 40vw;
    }

}

@media only screen and (max-width: 800px) {

    #projects {
        grid-template-columns: repeat(1, 80vw);
        gap: 0;
        row-gap: 5vw;
        width: 80vw;
    }

    #projects img {
        width: 80vw;
        height: 96vw;
        object-fit: cover;
    }

    #projects div {
        width: 80vw;
    }

}
