﻿
.rowContainer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2em;
    justify-content: space-evenly;
    align-items: flex-start;
}

.revealCardContainer {
    flex-grow: 1;
    position: relative;
    width: 10%;
    min-height: 250px;
    padding: 50px;
    cursor: pointer;
}

.even {
    margin-top: 50px;
}

.cardcontainer,
.cardOverlayContainer {
    position: absolute;
    display: flex;
    align-items: center;
    border-radius: 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
}

.cardcontainer {
    justify-content: center;
    background-color: var(--bgh-dark-blue);
    z-index: 1;
}

.cardOverlayContainer {
    text-align: left;
    opacity: 0;
    z-index: 0;
    transition: all 0.5s ease-in-out;
}

.revealCardContainer:hover .cardOverlayContainer {
    opacity: 1;
    z-index: 2;
}

.cardContent,
.cardOverlayContent {
    padding: 10%;
}

.cardContent img {
    padding: 0 0 10px 0;
    height: 60%;
    width: auto;
}

.cardOverlayContent p {
    color: var(--bgh-dark-blue);
    text-align: left;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    margin: 0;
}

.cardContent h3 {
    justify-self: center;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 0 0;
}

.pad-tb-20-0 {
    margin: 20px 0 0 0;
}

/* Background Colours */

.purpleBG {
    background-color: var(--bgh-purple);
}

.greenBG {
    background-color: var(--bgh-green);
}

.orangeBG {
    background-color: var(--bgh-orange);
}

.pinkBG {
    background-color: var(--bgh-pink);
}

.yellowBG {
    background-color: var(--bgh-yellow);
}


/* Responsive styles */

@media screen and (max-width: 1200px) {

    .revealCardContainer {
        width: 25%;
    }

    .rowContainer {
        gap: 1em;
    }

    .even {
        margin: 0;
    }
}

@media screen and (max-width: 1100px) {

    .rowContainer h3 {
        font-size: 2vw;
        line-height: 120%;
    }
}

@media screen and (max-width: 768px) {
    .revealCardContainer {
        width: 40%;
    }
}

@media screen and (max-width: 668px) {

    .revealCardContainer {
        width: 100%;
        padding: 0;
    }

    .cardcontainer, .cardOverlayContainer {
        position: relative;
    }

    .cardOverlayContainer {
        opacity: 1;
        z-index: 0;
        border-radius: 0 0 20px 20px;
        margin-top: -20px;
        padding-top: 20px;
    }

    .revealCardContainer:hover .cardOverlayContainer {
        opacity: 1;
        z-index: 0 !important;
    }

    .rowContainer h3 {
        font-size: 4vw;
        line-height: 120%;
    }
}

@media screen and (max-width: 425px) {

    .rowContainer h3 {
        font-size: 9vw;
        line-height: 120%;
    }
}
