﻿
.infographicContainer {
    position: relative;
    overflow: clip;
    height: auto;
    margin: 0 auto;
    width: 100%;
}

.infographicDisplay {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 20px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (max-width:992px) {
    .infographicDisplay {
        gap: 20px;
    }
}

.infographicDisplay .shape {
    display: flex;
}

/*Flip polygon styles start */

.flip-polygon-front, .flip-polygon-back {
    -webkit-clip-path: polygon(50% 0%, 0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%);
    clip-path: polygon(50% 0%, 0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%);
}

.flip-polygon {
    display: flex;
    background-color: transparent;
    width: 166px;
    height: 220px;
    cursor: pointer;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-polygon-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-polygon:hover .flip-polygon-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-polygon-front, .flip-polygon-back {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 10%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-polygon-front {
    /*background: var(--bgh-light-blue);*/
    color: var(--bgh-dark-blue);
}

/* Style the back side */
.flip-polygon-back {
    background-color: white;
    color: var(--bgh-dark-blue);
    transform: rotateY(180deg);
}

/*Flip polygon styles end */

.polygon {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    width: 166px;
    height: 220px;
    padding: 10%;
    text-align: center;
    -webkit-clip-path: polygon(50% 0%, 0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%);
    clip-path: polygon(50% 0%, 0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%);
    transition: all 0.3s ease-in-out;
}

    .polygon::before, .polygonFill::before {
        content: '';
        position: absolute;
        display: block;
        width: 162px;
        height: 216px;
        top: 2px;
        left: 2px;
        -webkit-clip-path: polygon(50% 0%, 0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%);
        clip-path: polygon(50% 0%, 0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%);
        z-index: 0;
        transition: all 0.3s ease-in-out;
    }

    .polygon::before {
        background: var(--bgh-dark-blue);
    }

.polygonFill::before {
    background: var(--bgh-light-blue);
}

.polygon.noFill {
    background: var(--bgh-dark-blue);
}

    .polygon.noFill::before {
        background: transparent;
    }

.polygon p, .flip-polygon-front p, .flip-polygon-back p {
    font-size: 16px;
    font-weight: 800;
    line-height: 22px;
    width: 100%;
    color: var(--bgh-dark-blue);
    margin: 0;
    z-index: 1;
}

.flip-polygon-back p {
    font-weight: 400;
}

    .flip-polygon-back p:nth-child(2) {
        margin: 10px 0 0 0;
    }

.flip-polygon-back button {
    margin: 10px 0 0 0;
    width: 100%;
}

.polygonIcon {
    height: 55px;
    width: auto;
    z-index: 1;
    margin: 0 auto;
    padding: 0 0 10px 0;
}

    .polygonIcon.iconLarge {
        height: 120px;
    }

/*Background Colours*/

.bgColour-light-blue {
    background: var(--bgh-light-blue);
}

.bgColour-purple {
    background: var(--bgh-purple);
}

.bgColour-orange {
    background: var(--bgh-orange);
}

.bgColour-green {
    background: var(--bgh-green);
}

.bgColour-pink {
    background: var(--bgh-pink);
}

.bgColour-yellow {
    background: var(--bgh-yellow);
}

.bgColour-white {
    background: white;
}

.InfoTitle {
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;
}

.InfoBody {
    padding: 15px 0 20px 0;
    font-size: 16px;
    line-height: 24px;
}

.modal-content {
    position: relative;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    -ms-flex-direction: column;
    flex-direction: unset;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: unset;
    border: none;
    border-radius: 0;
    outline: unset;
    min-height: 500px;
    padding: 30% 6%;
    margin: 0 auto;
    -webkit-clip-path: polygon(50% 0%, 0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%);
    clip-path: polygon(50% 0%, 0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%);
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 550px;
    }
}

.modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-start;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: .3rem;
    border-bottom-left-radius: .3rem;
}

.modal-header, .modal-body, .modal-footer {
    width: 100% !important;
}

@media (max-width:1312px) {
    .polyHide_1300 {
        display: none !important;
        visibility: hidden;
    }
}

@media (max-width:1200px) {
    .polyHide_1200 {
        display: none !important;
        visibility: hidden;
    }
}

@media (max-width:1199.98px) {
    .polyHide_1199 {
        display: none !important;
        visibility: hidden;
    }
}

@media (max-width:991.98px) {

    .polyHide_991 {
        display: none !important;
        visibility: hidden;
    }

    .marginBottom {
        margin-bottom: 20px;
    }
}

@media (max-width:768px) {

    .polyHide_768 {
        display: none !important;
        visibility: hidden;
    }
}

@media (max-width:426px) {

    .modal-content {
        padding: 25% 6%;
        -webkit-clip-path: polygon(50% 0%, 0% 15%, 0% 85%, 50% 100%, 100% 85%, 100% 15%);
        clip-path: polygon(50% 0%, 0% 15%, 0% 85%, 50% 100%, 100% 85%, 100% 15%);
    }

    .InfoBody {
        padding: 15px 20% 20px 0;
    }
}

@media (max-width:376px) {
    .modal-content {
        padding: 25% 6%;
    }
}

@media (max-width:321px) {
    .modal-content {
        -webkit-clip-path: polygon(50% 0%, 0% 10%, 0% 90%, 50% 100%, 100% 90%, 100% 10%);
        clip-path: polygon(50% 0%, 0% 10%, 0% 90%, 50% 100%, 100% 90%, 100% 10%);
    }
}



.break {
    flex-basis: 100%;
    height: 0;
}

.break-lg {
    display: none;
}

@media (min-width:1200px) and (max-width:1310px) {
    .break-lg {
        display: block;
        visibility: visible;
        flex-basis: 100%;
        height: 0;
    }
}
