

/*gallery*/
.main_gallery_slider {
    position: relative;
    padding: 5px;
    width: 50%;
    height:250px;
    margin: auto;
    margin-top: 40px;
    background: #ccc;
    padding: 5%;
}
.main_gallery_slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:250px;
    box-shadow: 0px 0px 15px #999;
}
.main_gallery_slider .slide > img{
    width: 100%;
   height:250px;
    cursor: pointer;
}
.main_gallery_slider .arrows {
    position: absolute;
    top: 10px;
    right: 5px;
}
.main_gallery_slider .arrows img {
    height: 32px;
}

.main_gallery_slider .slide.ng-hide-add,
.main_gallery_slider .slide.ng-hide-remove {
    -webkit-transition: all linear 0.5s;
    -moz-transition: all linear 0.5s;
    -o-transition: all linear 0.5s;
    transition: all linear 0.5s;
    display: block!important;
}
.main_gallery_slider .slide.ng-hide-add.ng-hide-add-active,
.main_gallery_slider .slide.ng-hide-remove {
    opacity: 0;
}
.main_gallery_slider .slide.ng-hide-add,
.main_gallery_slider .slide.ng-hide-remove.ng-hide-remove-active {
    opacity: 1;
}

.in_modal{
    position: relative;
}

.in_modal .for_sizing_in_window{
    width: 100%;
}
.in_modal img[src$='prev.png'],.in_modal img[src$='next.png']{
  position: absolute;
  top: 50%;
  cursor: pointer;
}
.in_modal img[src$='prev.png']{
    left: 0;
}
.in_modal img[src$='next.png']{
    right: 0;
}


/*gallery*/


.main_loading{
    opacity: 0.3;
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index: 0;
    position: relative;
}

.main_loading:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    opacity: 1.0 !important;
    background:url("/img/spinner_128_anti_alias.gif") no-repeat 50% 40% / 10%;


}


.page-slide.ng-leave  {
    /*padding: 5px;*/
    /*-webkit-animation:slideOutLeft 0.2s both ease-in;*/
    /*-moz-animation:slideOutLeft 0.2s both ease-in;*/
    /*animation:slideOutLeft 0.2s both ease-in;*/
}
.page-slide.ng-enter,.page-slide.ng-hide-remove{
    -webkit-animation:slideInRight 0.2s both ease-in;
    -moz-animation:slideInRight 0.2s both ease-in;
    animation:slideInRight 0.2s both ease-in;
}
.page-slide{
    /*position:absolute;*/
    /*border: 2px solid #ccc;*/
    padding: 10px !important;
    border-radius: 10px;

}

.hide_title{
    -webkit-animation:scaleUp 1s both ease-in;
    -moz-animation:scaleUp 1s both ease-in;
    animation:scaleUp 1s both ease-in;
}

/*.page-slide-first.ng-leave {*/
    /*position: absolute;*/
    /*-webkit-transition: 0.1s;*/
    /*transition: 0.1s;*/
/*}*/
/*.page-slide-first.ng-leave-active {*/
    /*opacity:0;*/
/*}*/

.page-maines.ng-enter{
    -webkit-animation:scaleUp 0.3s both ease-in;
    -moz-animation:scaleUp 0.3s both ease-in;
    animation:scaleUp 0.3s both ease-in;
}


.page-home.ng-leave        {
    -webkit-transform-origin: 0% 0%;
    -webkit-animation: rotateFall 1s both ease-in;
    -moz-transform-origin: 0% 0%;
    -moz-animation: rotateFall 1s both ease-in;
    transform-origin: 0% 0%;
    animation: rotateFall 1s both ease-in;
}
.page-home.ng-enter 		{
    -webkit-animation:scaleUp 0.5s both ease-in;
    -moz-animation:scaleUp 0.5s both ease-in;
    animation:scaleUp 0.5s both ease-in;
}


.page-contact.ng-leave      {
    -webkit-transform-origin: 50% 50%;
    -webkit-animation: rotateOutNewspaper .5s both ease-in;
    -moz-transform-origin: 50% 50%;
    -moz-animation: rotateOutNewspaper .5s both ease-in;
    transform-origin: 50% 50%;
    animation: rotateOutNewspaper .5s both ease-in;
}
.page-contact.ng-enter 		{
    -webkit-animation:slideInUp 0.5s both ease-in;
    -moz-animation:slideInUp 0.5s both ease-in;
    animation:slideInUp 0.5s both ease-in;
}


@-webkit-keyframes rotateFall {
    0% { -webkit-transform: rotateZ(0deg); }
    20% { -webkit-transform: rotateZ(10deg); -webkit-animation-timing-function: ease-out; }
    40% { -webkit-transform: rotateZ(17deg); }
    60% { -webkit-transform: rotateZ(16deg); }
    100% { -webkit-transform: translateY(100%) rotateZ(17deg); }
}
@-moz-keyframes rotateFall {
    0% { -moz-transform: rotateZ(0deg); }
    20% { -moz-transform: rotateZ(10deg); -moz-animation-timing-function: ease-out; }
    40% { -moz-transform: rotateZ(17deg); }
    60% { -moz-transform: rotateZ(16deg); }
    100% { -moz-transform: translateY(100%) rotateZ(17deg); }
}
@keyframes rotateFall {
    0% { transform: rotateZ(0deg); }
    20% { transform: rotateZ(10deg); animation-timing-function: ease-out; }
    40% { transform: rotateZ(17deg); }
    60% { transform: rotateZ(16deg); }
    100% { transform: translateY(100%) rotateZ(17deg); }
}

/* scale up */
@keyframes scaleUp {
    from 		{ opacity: 0.3; transform: scale(0.8); }
}
@-moz-keyframes scaleUp {
    from 		{ opacity: 0.3; -moz-transform: scale(0.8); }
}
@-webkit-keyframes scaleUp {
    from 		{ opacity: 0.3; -webkit-transform: scale(0.8); }
}

/* slide in from the right */
@keyframes slideInRight {
    from 	{ transform:translateX(100%); }
    to 		{ transform: translateX(0); }
}
@-moz-keyframes slideInRight {
    from 	{ -moz-transform:translateX(100%); }
    to 		{ -moz-transform: translateX(0); }
}
@-webkit-keyframes slideInRight {
    from 	{ -webkit-transform:translateX(100%); }
    to 		{ -webkit-transform: translateX(0); }
}

/* slide in from the bottom */
@keyframes slideInUp {
    from 	{ transform:translateY(100%); }
    to 		{ transform: translateY(0); }
}
@-moz-keyframes slideInUp {
    from 	{ -moz-transform:translateY(100%); }
    to 		{ -moz-transform: translateY(0); }
}
@-webkit-keyframes slideInUp {
    from 	{ -webkit-transform:translateY(100%); }
    to 		{ -webkit-transform: translateY(0); }
}

/* slide in from the bottom */
@keyframes slideOutLeft {
    to 		{ transform: translateX(-100%); }
}
@-moz-keyframes slideOutLeft {
    to 		{ -moz-transform: translateX(-100%); }
}
@-webkit-keyframes slideOutLeft {
    to 		{ -webkit-transform: translateX(-100%); }
}

/* rotate out newspaper */
@-webkit-keyframes rotateOutNewspaper {
    to { -webkit-transform: translateZ(-3000px) rotateZ(360deg); opacity: 0; }
}
@-moz-keyframes rotateOutNewspaper {
    to { -moz-transform: translateZ(-3000px) rotateZ(360deg); opacity: 0; }
}
@keyframes rotateOutNewspaper {
    to { transform: translateZ(-3000px) rotateZ(360deg); opacity: 0; }
}



/*.page-maines,.page-slide{*/
    /*border: 2px solid #ccc;*/
    /*padding: 5px;*/
    /*border-radius: 5px;*/
/*}*/