/*Стили для главного окна меню http://www.rudebox.org.ua/css3-image-captions/*/
/*Cтили главного дива*/
#mainwrapper {
  font: 10pt normal Arial, sans-serif;
  height: auto;
  margin: 20px auto 0 auto;
  text-align: center;

  width: 1000px
  }
  /* Стили блока с картинкой */
  #mainwrapper .box {
  display:block;
    height: 290px;
    float: left;
	font-family: 'Bebas Neue';
    margin-top:0px;
	margin-bottom: 0px;
	margin-left: 0px;
	margin-right: 0px;
    position: relative;
    overflow: hidden;
    width: 333px;
  
}
#mainwrapper .box h4 {
color: #2f2d2b;

	font-size: 25px;
	font-family: 'Bebas Neue';
	letter-spacing: 3px;
	padding-bottom:10px;

}
#mainwrapper .box2 {
    border: 1px solid #2d2720;
	border-radius: 20px;
    cursor: pointer;
    height: 200px;
	margin:0 auto;
   /* float: left;
	
margin-left: 20px;*/

    position: relative;
    overflow: hidden;
    width: 200px;
    -webkit-box-shadow: 2px 1px 1px 2px #877969;
    -moz-box-shadow: 2px 1px 1px 2px #877969;
    box-shadow: 2px 1px 1px 2px #877969;
}
  
div#page {
 
  text-align: center;
  font-family: 'Bebas Neue';
}

#page a {
  display: inline-block;
  overflow: hidden;
  position: relative;
  text-align: center;
  text-decoration: none;
  font-family: 'Bebas Neue';
}

#page a:before {
  background-color: rgb(0, 0, 0);
  content: "";
  display: block;
  height: 100%;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}

#page a:after {
  color: rgba(255, 255, 255, 0);
  content: attr(data-title);
  display: block;
 font-family: 'Bebas Neue';
  font-size: 18px;
  letter-spacing: 1.5px;
  font-weight: bold;
  padding: 0 3%;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  -webkit-transform-origin: 50% 0%;
  -ms-transform-origin: 50% 0%;
  transform-origin: 50% 0%;
  -webkit-transform: scaleX(3) translateY(-50%);
  -ms-transform: scaleX(3) translateY(-50%);
  transform: scaleX(3) translateY(-50%);
  width: 94%;
  z-index: 3;
}
#page a img {
  border: none;
  display: block;
  z-index: 1;
  width:200;
  height:200;
}

#page a:after {
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
}

#page a:hover:before {
  opacity: 0.6;
}

#page a:hover:after {
  color: rgba(255, 255, 255, 1);
  -webkit-transform: scaleX(1) translateY(-50%);
  -ms-transform: scaleX(1) translateY(-50%);
  transform: scaleX(1) translateY(-50%);
}
