.card
{
    width: 99%;
    height: 350px;
    cursor: pointer;

    /*transition effects */
    -webkit-transition: -webkit-transform 0.6s;
    -moz-transition: -moz-transform 0.6s;
    -o-transition: -o-transform 0.6s;
    transition: transform 0.6s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
}
.cardContainer2 .card {height: 310px;}
.card.flipped
{
    -webkit-transform: rotateY( 180deg );
    -moz-transform: rotateY( 180deg );
    -o-transform: rotateY( 180deg );
    transform: rotateY( 180deg );
}
.card .front h3 {font-weight: bold; font-size: 24px;}

.card .front,
.card .back {
    display: block;
    height: 100%;
    width: 100%;
    line-height: 60px;
    color: white;
    text-align: center;
    font-size: 4em;
    position: absolute;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 3px 5px 20px 2px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 2px 5px rgba(0, 0, 0, 0.26);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 2px 5px rgba(0, 0, 0, 0.26);
}

.card .back {
    width: 100%;
    padding-left: 3%;
    padding-right: 3%;
    font-size: 13px;
    text-align: left;
    line-height: normal;
}

.card .back {
    background: #03446A;
    -webkit-transform: rotateY( 180deg );
    -moz-transform: rotateY( 180deg );
    -o-transform: rotateY( 180deg );
    transform: rotateY( 180deg );
}

/*Colors for front and back applied here*/
.cardContainer:first-child .card .front, .cardContainer:first-child button {
    background: #2aa9e0;
}

.cardContainer:first-child .card .back {
    background: #2aa9e0;
}

.cardContainer:nth-child(2) .card .front, .cardContainer:nth-child(2) button {
    background: #27ae60;
}
.cardContainer:nth-child(2) .card .back {
    background: #27ae60;
}

.cardContainer:nth-child(3) .card .front, .cardContainer:nth-child(3) button {
    background: #f39c12;
}
.cardContainer:nth-child(3) .card .back {
    background: #f39c12;
}



.cardContainer2:nth-child(1) .card .front, .cardContainer2:nth-child(1) button
{
    background: #0D0D9B;
}
.cardContainer2:nth-child(1) .card .back
{
    background: #0D0D9B;
}


.cardContainer2:nth-child(2) .card .front, .cardContainer2:nth-child(2) button
{
    background: #AD103C;
}
.cardContainer2:nth-child(2) .card .back
{
    background: #AD103C;
}

.cardContainer2:nth-child(3) .card .front, .cardContainer2:nth-child(3) button
{
    background: #7E0B80;
}
.cardContainer2:nth-child(3) .card .back {
    background: #7E0B80;
}

.front p {
    font-size: 16px;
}

.airbnb-box div {
    padding: 25px 0;
    color:#FFFFFF;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 2px 5px rgba(0, 0, 0, 0.26);
}

.airbnb-box:nth-child(1) div {
    background-color: #2aa9e0;
}

.airbnb-box:nth-child(2) div {
    background-color: #f39c12;
}

.airbnb-box:nth-child(3) div {
    background-color: #0d0d9b;
}

.airbnb-box:nth-child(4) div {
    background-color: #ad103c;
}




h3.cardTitle {
    line-height: 1.2em;
    margin-top: 8%;
    margin-bottom: 0;
    font-weight: 600;
    border-bottom: none;
}
.content h3.cardTitle
{
    margin-top: 0%;
}

.content {
    padding: 4%;
    font-weight: 100;
    text-align: left;
    font-weight: normal;
}

@media all and (max-width: 1000px){
    h3.cardTitle{
        font-weight: 500;

    }
    .content p
    {


    }

    .card
    {
        height:410px;
    }

}
@media all and (max-width : 991px)
{
    .cardContainer2 .card {height: 350px;}
}

@media all and (max-width : 767px)
{
    .cardContainer2 .card {height: 320px;}
    
}

@media all and (max-width : 767px) {

    .secondRow
    {
        margin-top: -3%;
    }
    .cardContainer:nth-child(1),.cardContainer:nth-child(2),.cardContainer:nth-child(3)
    {
        margin-top: 3%;
    }

}
@media all and (max-width : 390px) {

    .card
    {
        width:100%;
        height:350px;
    }
    .secondRow
    {
        margin-top: -9%;
    }
    .well
    {
        padding: 1%;
    }
    .cardContainer:nth-child(1),.cardContainer:nth-child(2),.cardContainer:nth-child(3)
    {
        margin-top: 5%;
    }
    h3.cardTitle
    {
        font-weight: 500;
    }
    .content p
    {

    }
    .cardWrapper
    {
        margin-left: 4%;
    }

}
@media all and (max-width : 320px) {

    .card
    {
        width:100%;
        height:450px;
    }

}
