html,
body {
    height: 100%;
    background-color: #546E8A;
}

body {
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.no-shadow {
    text-shadow: none;
}

/* Wrapper for page content to push down footer */
#wrap {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    /* Negative indent footer by it's height */
    margin: 0 auto -110px;
}

/* Set the fixed height of the footer here */
#push,
#footer {
    min-height: 110px;
}

#footer {
    font-size:12px;
    border-top:1px solid #435972;
    color: #eee;
    font-weight: normal;
    background-color: #3C5066;
    -webkit-box-shadow: 0 0 30px rgba(0,0,0,.3);
    box-shadow: 0 0 30px rgba(0,0,0,.3);
}

#footer > div {
    padding-top:5px;
}

/* Lastly, apply responsive CSS fixes as necessary */
@media (max-width: 767px) {
    #footer {
      margin-left: -20px;
      margin-right: -20px;
      padding-left: 20px;
      padding-right: 20px;
    }
}

.site-wrapper {
    display: table;
    width: 100%;
    height: 100%; /* For at least Firefox */
    min-height: 100%;
/*    -webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5);
    box-shadow: inset 0 0 100px rgba(0,0,0,.5); */
}

.header { margin-top:50px; margin-bottom:50px; font-size:2em;}


#services {
    max-width:600px;
    margin:0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.item {
  overflow: hidden;
  width: 195px;
  margin: 10px auto;
  position:relative;
  -webkit-box-shadow: 0 0 100px rgba(0,0,0,.5);
  box-shadow: 0 0 100px rgba(0,0,0,.5);

    -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 2s; /* Firefox < 16 */
        -ms-animation: fadein 2s; /* Internet Explorer */
         -o-animation: fadein 2s; /* Opera < 12.1 */
            animation: fadein 2s;
}

.item img {
  display: block;
  width: 100%;
  opacity: 1;
  transition: all 0.7s ease-in-out;
  transform: rotate(0deg) translate(0px,0px);
}

.item:hover img {
    z-index:300;
    opacity:0.8;
    transform: rotate(30.5deg) translateX(1px) scale(2);
}


.mask {
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.5s linear;
    opacity: 0;
    position: absolute;
    bottom: 0;
    left:0;
    width:200px;
    z-index: 9999;
}

.mask h4{
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    padding-bottom:5px;
    margin: 10px 20px 0px 20px;
    transform: scale(0);
    color: #fff;
    transition: all 0.5s linear;
    opacity: 0;
}
.mask p {
    color: #fff;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 12px;
    position: relative;
    color: #fff;
    padding: 10px 20px 20px;
    text-align: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s linear;
}

.mask .info {

    display: inline-block;
    text-decoration: none;
    font-size:10px;
    padding: 4px 7px;
    margin-bottom: 10px;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 0 1px #000

    opacity: 0;
    transform: scale(0);
    transition: all 0.5s linear;
}


.item:hover .mask {
    opacity: 1;
}
.item:hover h4,
.item:hover p,
.item:hover a.info{
    transform: scale(1);
    opacity: 1;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
