﻿.flip-card {
    background-color: transparent;
    width: 250px;
    height: 250px;
    margin: 10px;
    perspective: 1000px;
}

.normal-card {
    background-color: transparent;
    width: 250px;
    height: 250px;
    margin: 10px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.normal-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    vertical-align: central;
    align-content: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
    background-color: transparent;
    color: black;
    vertical-align: central;
    align-content: center;
    text-align: center;
    justify-content: center;
    align-items: center;
}

    .flip-card-front h2 {
        align-items: center;
        vertical-align: central;
    }

/* Style the back side */
.flip-card-back {
    justify-content: center;
    align-items: center;
    background-color: skyblue;
    color: white;
    transform: rotateY(180deg);
}

    .flip-card-back h2 {
        align-items: center;
        vertical-align: central;
    }

.btn-small {
    width: 60%;
    text-align: center;
    text-decoration: none;
}

    /*.flip-card-back a:link, a:visited {*/
        /*background-color: #007BC0;*/
        /*color: white;
        width: 60%;*/
        /*padding: 14px 25px;*/
        /*text-align: center;
        text-decoration: none;
        display: inline-block;
    }

    .flip-card-back a:hover, a:active {
        background-color: #007BC0;
    }*/
