#color4 {
    color: #6d148d;
}

.projects {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

figure > img {
    width: 32rem;
    height: 20rem;
    border-radius: 1rem;
    margin: auto;
}

.api_image {
    width: 20rem;
    margin: 0 6rem 0 6rem;
}

.project {
    position: relative;
    margin: 1rem 0;
}

/* projects info and "see more" buttons */

.project figcaption {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    position: absolute;
    top: 0;
    background-color: rgba(46, 3, 46, 0.842);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity .8s;
    cursor: pointer;
    color: #fff;
}

.project figcaption:hover {
    opacity: 1;
}

.pinfo {
    margin: 0;
    font-size: 2.6rem;
    color: #dda9f0;
}

.psubinfo {
    font-size: 1.6rem;
    margin: 0;
    color: #ffffff;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.btn {
    border-radius: 1rem;
    padding: 0.5rem;
    font-size: 1.6rem;
    cursor: pointer;
    background-color: transparent;
    border: solid 1px #fff;
    color: #fff;
    margin: 0 0.2rem;
}

.btn:hover {
    background-color: #825f8f;
    transition-duration: 0.3s;
}

/*    MEDIA QUERIES    */

/* medium mobiles and tablets */
@media (max-width: 768px) {

    figure > img {
        width: 52rem;
        height: 30rem;
    }
}

/* small mobiles */
@media (max-width: 480px) { 
    figure > img {
        width: 36rem;
        height: 22rem;
    }

}

