* {
    box-sizing: border-box;
}

.googleMaps {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Set z-index to 0 as it will be on a layer below the contact form */
}

.about ul {
    margin: 10px 0;
}

.hidePanel {
    width: 100%;
    text-align: right;
}

.contactInfo, .contactForm {
    font-family: 'Lora', sans-serif;
    font-size: 12.15pt;
}

.hidePanel, #frontCard {
    cursor: pointer;
}

#frontCard {
    background-color: #404041;
}

#backCard {
    background-color: #FFF;
    transform: rotateY(180deg);
    padding: 10px;
}

#contactForm.flipped {
    transform: rotateY(180deg);
}

.contactForm #frontCard, .contactForm #backCard {
    margin: 0;
    display: block;
    position: absolute;
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#frontCard img {
    width: 100%;
}

.contactForm {
    position: absolute;
    z-index: 1; /* The z-index should be higher than Google Maps */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    height: auto;
    transition: transform 0.75s ease-in-out;
    transform-style: preserve-3d;
}

.gallery {
    display: table;
    table-layout: fixed;
    padding-bottom: 5px;
}

.gallery a {
    display: table-cell;
    padding-right: 10px
}

.gallery a:last-child {
    padding: 0;
}

.gallery a img {
    width: 100%;
    border-radius: 5px;
}

@media only screen and (min-width: 768px) {
    .contactForm {
        position: absolute;
        width: 700px;
        height: 300px;
        top: 50%;
        left: 50%;
        margin: -150px 0 0 -350px;
        -webkit-box-shadow: 0px 0px 17px 8px rgba(0,0,0,0.16);
        -moz-box-shadow: 0px 0px 17px 8px rgba(0,0,0,0.16);
        box-shadow: 0px 0px 17px 8px rgba(0,0,0,0.16);
    }

    .contactForm #frontCard, .contactForm #backCard {
        height: 100%;
    }
}


