/* ----- CARD STYLING ----- */
body { margin: 0px; }
.container {
    position:absolute;
    margin: auto;
    width: 100%;
    text-align:center;
    height: 100%;
}

.card-wrapper {
    /* Adjust size here*/
    width: 300px;
    height: 300px;
    margin: 10px;

    /* Control the 'depth' of the 3d effect */
    /* Gets wacky at numbers under 100 */
    perspective: 800px;

    display: inline-block;
}

.card {
    /* Pointer on hover */
    cursor: pointer;

    /* Animation timing and easing */
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;
    transform-style: preserve-3d;

    position: relative;
    width: 100%;
    height: 100%;
}
  
.front, .back {
    /* Border styling */
    border: 1px solid #5484fc;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateX(0deg);
}

.front {
    z-index: 2;
}

.back {
    font-size: 24px;
    color: white;
    background: #5484fc;
    overflow-y: auto;
}

.front-title {
    /* Text styling for main card title */
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0px 0px 5px black;

    position: absolute;
}

.back-title {
    /* Text styling for backside header */
    color: white;
    font-size: 20px;
    font-weight: 700;

    position: absolute;
    top: 10px;
}

.back-content {
        /* Text styling for backside text */
        color: white;
        font-size: 16px;
        margin: 10px;
    
        position: absolute;
        top: 30px;
}
  



/* ----- FLIPPING TRANSFORMS ----- */

/* CARD FLIP RIGHT */
.flip-right > .card > .back {transform: rotateY(180deg);}
.flip-right:hover > .card {transform: rotateY(180deg);}

/* CARD FLIP LEFT */
.flip-left > .card > .back {transform: rotateY(-180deg);}
.flip-left:hover > .card {transform: rotateY(-180deg);}

/* CARD FLIP UP */
.flip-up > .card > .back {transform: rotateX(180deg);}
.flip-up:hover > .card {transform: rotateX(180deg);}

/* CARD FLIP DOWN */
.flip-down > .card > .back {transform: rotateX(-180deg);}
.flip-down:hover > .card {transform: rotateX(-180deg);}

/* CARD FLIP DIAGONAL RIGHT */
.flip-diagonal-right > .card > .back {transform: rotate3d(1, 1, 0, 180deg);}
.flip-diagonal-right:hover > .card {transform: rotate3d(1, 1, 0, 180deg);}

/* CARD FLIP DIAGONAL LEFT */
.flip-diagonal-left > .card > .back {transform: rotate3d(1, 1, 0, -180deg);}
.flip-diagonal-left:hover > .card {transform: rotate3d(1, 1, 0, -180deg);}

/* CARD FLIP INVERTED DIAGONAL RIGHT */
.flip-inverted-diagonal-right > .card > .back {transform: rotate3d(-1, 1, 0, 180deg);}
.flip-inverted-diagonal-right:hover > .card {transform: rotate3d(-1, 1, 0, 180deg);}

/* CARD FLIP INVERTED DIAGONAL LEFT */
.flip-inverted-diagonal-left > .card > .back {transform: rotate3d(1, -1, 0, 180deg);}
.flip-inverted-diagonal-left:hover > .card {transform: rotate3d(1, -1, 0, 180deg);}



/* ----- CUSTOM SCROLLBAR ----- */

/* width */
::-webkit-scrollbar {width: 10px;}
  
/* Track */
::-webkit-scrollbar-track {background: #f1f1f100;}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(31, 31, 31, 0.5);
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {background: rgba(31, 31, 31, 0.75);}