

<style>
.wrap {
  margin-left:auto;
margin-right:auto;

}
ul.flatflipbuttons{
margin:auto;
  position: relative;
  width: 800px; /*full width of the button set: width must be width of all of the buttons together plus space inbetween, before and after the buttons*/
padding:0;
list-style:none;
-webkit-perspective: 10000px; /* larger the value, the less pronounced the 3D effect */
-moz-perspective: 10000px;
perspective: 10000px;
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400&subset=latin,latin-ext);
}

ul.flatflipbuttons li{
margin:0 auto;

display: inline-block;

width: 100px; /* dimensions of buttons. */
height: 100px;
margin-right: 55px; /* spacing between buttons */
background: #3B9DD5);
text-transform: uppercase;
text-align: center;
}

ul.flatflipbuttons li a{
display:table;
font-family: "Open Sans Bold", Arial, Helvetica sans-serif;
font-size: 16pt; /* font size, pertains to icon fonts specifically */
width: 100%;
height: 100%;
margin-bottom: 4px;
color: black;
background: #3B9DD5;
text-decoration: none;
outline: none;
-webkit-transition:all 300ms ease-out; /* CSS3 transition. Last value is pause before transition play */
-moz-transition:all 300ms ease-out;
transition:all 300ms ease-out;
}

ul.flatflipbuttons li:nth-of-type(1) a{
color: #3B9DD5;
background: #3B9DD5;
}

ul.flatflipbuttons li:nth-of-type(2) a{
background: #3B9DD5;
}

ul.flatflipbuttons li:nth-of-type(3) a{
background: #3B9DD5;
}

ul.flatflipbuttons li:nth-of-type(4) a{
color: #3B9DD5;
background: #3B9DD5;
}

ul.flatflipbuttons li:nth-of-type(5) a{
background: #3B9DD5;
}

ul.flatflipbuttons li a span{
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: table-cell;
vertical-align: middle;
width: 100%;
height: 100%;
-webkit-transition: all 300ms ease-out; /* CSS3 transition. */
-moz-transition: all 300ms ease-out;
transition: all 300ms ease-out;
}

ul.flatflipbuttons li b{ /* CSS for text beneath button */
display: block;
position: center;
padding-top: 15px;
width: 100%;
font-family: "Open Sans Bold", Arial, Helvetica sans-serif;
font-size: 16pt;
color: #3B9DD5;
opacity: 0;
-webkit-transition: all 300ms ease-out 0.2s; /* CSS3 transition. 0.2s delay */
-moz-transition: all 300ms ease-out 0.2s;
transition: all 300ms ease-out 0.2s;

}


ul.flatflipbuttons li a img{ /* CSS for image if defined inside button */
border-width: 0;
vertical-align: middle;
}


ul.flatflipbuttons li:hover a{
-webkit-transform: rotateY(180deg); /* flip horizontally 180deg*/
-moz-transform: rotateY(180deg);
transform: rotateY(180deg);
background: #c1e4ec; /* bgcolor of button onMouseover*/
-webkit-transition-delay: 0.2s;
-moz-transition-delay: 0.2s;
transition-delay: 0.2s;
}

ul.flatflipbuttons li:hover a span{
color: black; /* color of icon font onMouseover */
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg); /* flip horizontally 180deg*/
transform: rotateY(180deg);
-webkit-transition-delay: 0.2s;
-moz-transition-delay: 0.2s;
transition-delay: 0.2s;
}


ul.flatflipbuttons li:hover b{
opacity: 1;
}

/* CSS for 2nd menu below specifically */

ul.second li a{
background: rgb (95, 108, 109) !important;

  -webkit-box-shadow: 2px 8px 25px -2px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 2px 8px 25px -2px rgba(0, 0, 0, 0.3);
  box-shadow: 2px 8px 25px -2px rgba(0, 0, 0, 0.3);
  -webkit-border-bottom-right-radius: 8px;
  -webkit-border-bottom-left-radius: 8px;
  -moz-border-radius-bottomright: 8px;
  -moz-border-radius-bottomleft: 8px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}
}

ul.second li a:hover{
background: #5f6c6d !important;


</style>
