

a.css3dbutton {
    background: #000080; /* default green #c1e75c background color of button */
    color: snow;  /*black */
    text-decoration: none;
    font: bold 18px Arial; /* font size and style */
    position: relative;
    display: inline-block;
    margin-right: 15px; /* spacing between multiple buttons */
    padding: 15px; /* padding inside button */
    border-radius: 60px; /* border 85 radius of button */
    width: 60px; /* dimensions 85 of button */
    height: 60px; /*85 */
    outline: none;
    box-shadow: 0 8px 0 #4682B4, /* depth and color #8dab3b of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
    -moz-transition: all 0.2s ease-in-out; /* transition style and duration */
    -o-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

a.css3dbutton span.outer{ /* outermost text container */
    text-align: center;
    width: 100%;
    display: block;
    position: relative;
    top: 50%; /* center element */
    -webkit-transform: translateY(-50%); /* center element */
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    transform: translateY(-50%);
}

a.css3dbutton span.outer span.top{ /* top line */
    display: block;
    padding-bottom: 4px;
}

a.css3dbutton span.outer span.bottom{ /* bottom line */
    border-top: 1px solid black;
    padding-top: 4px;
    display: block;
    text-transform: uppercase;
    line-height: 12px;
    font-size: 60%;
}


a.css3dbutton:hover {
    background: #4169E1; /* background color #9cc62b when mouse rolls over button */
    box-shadow:  none;
    -ms-transform: translateY(8px); /* shift button downwards by shadow depth amount */
    -webkit-transform: translate3D(0, 8px, 0);
    -moz-transform: translateY(8px);
    transform: translate3D(0, 8px, 0);
}


a.css3dbutton.blue{
    background: #a6e9f7;
    box-shadow: 0 8px 0 #529dad, /* depth and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
}

a.css3dbutton.blue:hover {
    background: #66cbe1; /* background color when mouse rolls over button */
    box-shadow: none;
}

a.css3dbutton.pink{
    background: #fbbaba;
    box-shadow: 0 8px 0 #d74848, /* depth and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
}

a.css3dbutton.pink:hover {
    background: #ea6161; /* background color when mouse rolls over button */
    box-shadow: none;
}

a.css3dbutton.yellow{
    background: #ff6347; /*#f3fa86 */
    box-shadow: 0 8px 0 #dbcd2f, /* depth  #dbcd2f and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
}

a.css3dbutton.yellow:hover {
    background: #ffd700; /* background  color #ecd347 when mouse rolls over button */
    box-shadow: none;
}
a.css3dbutton.aqua{
    background: #2b8ca0; /*#f3fa86 */
    box-shadow: 0 8px 0 #87ceeb, /* depth  #dbcd2f and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
}
a.css3dbutton.aqua:hover {
    background: #00bfff; /* background darkblue color #ecd347 when mouse rolls over button */
    box-shadow: none;
}
a.css3dbutton.wit{
    background: #ffffff; /*#f3fa86 */
    box-shadow: 0 8px 0 #000080, /* depth  #dbcd2f and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
}
a.css3dbutton.wit:hover {
    background: #ecd347; /* background darkblue color #ecd347 when mouse rolls over button */
    box-shadow: none;
}
