.filter{
    display: flex;
    gap: 1rem;
    width: 100%;
    -webkit-box-align: center;
    -webkit-align-items: center;
}

.filter__text{
    font-size: 2.5rem;
}

.main__projects{
    margin: 0 15rem;
    width: calc(100% - 30rem);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    -webkit-box-align: center;
    -webkit-align-items: center;
}

.projects{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10rem;
}

.projects__card{
    width: 55rem;
    max-width: 100%;
    height: 60rem;
    background: #78A22D;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    padding: 3rem;
    box-sizing: border-box;
}

.title__div{
    width: 100%;
    display: flex;
    justify-content: space-between;
    -webkit-box-pack: justify;
}

.card__title{
    font-size: 3rem;
    font-family: ronnia-condensed, sans-serif;
}

.card__tags{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 1rem;
}

.tags__div{
    border: 1px solid black;
    border-radius: 1rem;
    min-width: 3rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
    flex-shrink: 0;
    
}

.tags__tag{
    list-style: none;
}

.php{
    background: #4F5B93;
}

.css{
    background: #156aa6;
}

.js{
    background: #f7df1e;
}

.sql{
    background: #F29111;
}

.python{
    background: #4B8BBE;
}

.wordpress{
    background: #444140;
}

.card__div{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card__img{
    width: 100%;
    max-height: 45rem;
    object-fit: cover;
}

.card__text{
    width: 75%;
    font-size: 1.5rem;
    font-family: ronnia-condensed, sans-serif;
}

.card__link{
    text-decoration: none;
}

.project__button{
    width: 15rem;
    height: 4rem;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-size: 1.5rem;
    font-family: ronnia-condensed, sans-serif;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.project__button:hover{
    cursor: pointer;
}

.projects__div{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.projects__text{
    font-size: 2rem;
    font-family: ronnia-condensed, sans-serif;
}

.projects__button{
    width: 15rem;
    height: 4rem;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-size: 1.5rem;
    font-family: ronnia-condensed, sans-serif;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.projects__button:hover{
    cursor: pointer;
    background: linear-gradient(90deg, rgba(120,162,45,1) 25%, rgba(30,120,61,1) 100%);
}

.filter__button{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: solid white 1px;
    color: white;
    background: transparent;
    font-family: ronnia-condensed, sans-serif;
}

.filter__button:hover{
    cursor: pointer;
}

@media screen and (max-width: 1512px) {
    .main__projects{
        align-items: center;
    }
    .filter{
        width: 55rem;
    }
    .projects{
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .filter{
        width: 90%;
        flex-wrap: wrap;
    }

    .main__projects{
        margin: 0;
        width: 100%;
        padding: 0 1rem;
    }

    .projects{
        width: 90%;
        justify-content: center;
    }

    .projects__card{
        height: auto;
        width: 100%;
        max-width: 45rem;
    }

    .title__div{
        flex-direction: column;
    }

    .card__text{
        width: auto;
    }

    .card__img{
        max-height: 30rem;
    }
}