

.projects-horizontal-align {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    height: calc(100% - var(--title-line-height));
}

.project-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition-duration: 0.7s;
    border: 1px solid var(--header-blue);
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.3);
    background-color: white;
}

/* GROUP OF 2 CARDS */
.project-2-card-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: calc(300px + 20%);
    height: auto;
}

/*CARD CONTENT*/
.project-card-image-front {
    display: block;
    object-fit: contain;
    margin: 0 auto;
    height: 100px;
    max-width: 100%;
}

.project-card {
    display: inline-block;
    width: 300px;
    cursor: pointer;
    background-color: transparent;
}

.project-card-image-back {
    display: block;
    object-fit: contain;
    margin: 0 auto;
    height: 100px;
    max-width: 100%;
}

/* CARD FLIPPING */
.project-card-front, .project-card-back {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 20px;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

.project-card-front {
    transform: rotateX(0deg);
}

.project-card-back {
    transform: rotateX(180deg);
}

.project-card:hover .project-card-content {
    transform: rotateX(180deg);
    box-shadow: 8px 0px 12px 6px rgba(0,0,0,0.4);
}

.vertical-align-div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
}

.project-id {
    display: none;
}

@media (max-width: 1650px) {
    .project-group {
        height: auto;
    }

    .projects-horizontal-align {
        display: block;
        width: 90%;
        height: auto;
        margin: auto;
    }

    .project-2-card-group {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        height: auto;
    }

    .project-card {
        display: inline-block;
        width: 600px;
        height: 150px;
        margin: 15px 0;
        transition: width ease 0.5s;
    }

    .project-group .vertical-align-div {
        display: flex;
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        height: 100%;
    }

    /* Card */
    .project-card-front, .project-card-back {
        padding: 10px 20px;
    }

    .project-card img {
        display: inline-block;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        height: 100%;
        width: 200px;
        object-fit: contain;
        margin: 0;
    }

    .project-card h2, .project-card h3 {
        display: inline-block;
        height: auto;
        width: 300px;
        margin: 0;
    }

    .project-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 1400px) {
    .project-card {
        transition: width ease 0.5s;
        width: 500px;
    }

    .project-card img {
        width: 150px;
    }

    .project-card h2, .project-card h3 {
        width: 250px;
    }
}

@media (max-width: 1200px) {
    .projects-horizontal-align {
        width: 80%;
    }

    .project-2-card-group {
        display: block;
    }

    .project-card {
        display: block;
        width: 100%;
        height: 100px;
    }

    .project-card h2, .project-card h3 {
        display: inline-block;
        height: auto;
        width: 400px;
        margin: 0;
    }
}

@media (max-width: 800px) {

    .project-card h3 {
        font-size: 0.8rem;
        width: 320px;
    }
}

@media (max-width: 500px) {
    .project-card h2 {
        font-size: 1rem;
    }

    .project-card h3 {
        font-size: 0.6rem;
    }
}
