/**** portfolio ****/
#container {
    margin: 0 4%;
}

.centered {
    margin: 0 auto;
}

#clients .box {
	width:31%;
	margin:1%;
}
@media screen and (max-width:479px) {
#clients .box {
	width:47.5%;
	margin:1%;
}
}

#clients .box *{
	box-sizing:border-box;
}
.rtl .box {
    float: right;
    text-align: right;
    direction: rtl;
}

.box img,
#tumblelog img {
    display: block;
    width: 100%;
    border: none;
    opacity: 0.5;
}

.box img:hover,
#tumblelog img:hover {
    opacity: 1.0;
}

.col1 {
    width: 205px;
    margin-bottom: 5px;
}

.col1 img {
    max-width: 205px;
}

.col2 {
    width: 145px;
}

.col2 img {
}



/**** Transitions ****/

.transitions-enabled.masonry,
.transitions-enabled.masonry .masonry-brick {
    -webkit-transition-duration: 0.7s;
    -moz-transition-duration: 0.7s;
    -ms-transition-duration: 0.7s;
    -o-transition-duration: 0.7s;
    transition-duration: 0.7s;
}

.transitions-enabled.masonry {
    -webkit-transition-property: height, width;
    -moz-transition-property: height, width;
    -ms-transition-property: height, width;
    -o-transition-property: height, width;
    transition-property: height, width;
}

.transitions-enabled.masonry  .masonry-brick {
    -webkit-transition-property: left, right, top;
    -moz-transition-property: left, right, top;
    -ms-transition-property: left, right, top;
    -o-transition-property: left, right, top;
    transition-property: left, right, top;
}


/* disable transitions on container */
.transitions-enabled.infinite-scroll.masonry {
    -webkit-transition-property: none;
    -moz-transition-property: none;
    -ms-transition-property: none;
    -o-transition-property: none;
    transition-property: none;
}


/* Infinite Scroll loader */
#infscr-loading {
    z-index: 100;
    position: fixed;
    left: 50%;
	margin-left: -100px;
    bottom: 40px;
    width: 200px;
    padding: 10px;
    background: #005a80;
    opacity: 0.7;
    color: #3ebded;
    font-size: 18px;
    font-weight: bold;
    font-family: 'PT Sans', sans-serif;
    text-align: center;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
}


/**** Clearfix ****/
.clearfix:before, .clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
}


/* drop down */

.wrapper-demo {
    position: relative;
    z-index: 9999;
    font-size: 25px;
    font-weight: bold;
    font-family: 'PT Sans', sans-serif;
    color: #3EBDED;
}

.wrapper-dropdown-5 {
    /* Size & position */
    position: relative;
    width: 84%;
    left:5%;
    padding:2% 3%;
    /* Styles */
    background: #005a80;
    opacity: 1;
    border-radius: 15px;
    box-shadow: 0 5px 0 #00364d;
    cursor: pointer;
    outline: none;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.wrapper-dropdown-5:after {
 /* Little arrow */
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 45%;
    right: 5%;
    border-width: 12px 12px 0 12px;
    border-style: solid;
    border-color: #4cbeff transparent;
}

.wrapper-dropdown-5 .dropdown {
    /* Size & position */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* Styles */
    background: #fff;
    border-radius: 0 0 15px 15px;
    border: 1px solid rgba(0,0,0,0.2);
    border-top: none;
    border-bottom: none;
    list-style: none;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    /* Hiding */
    max-height: 0;
    overflow: hidden;
}

.wrapper-dropdown-5 .dropdown li {
    padding: 0 15px;
}

.wrapper-dropdown-5 .dropdown li a {
    display: block;
    text-decoration: none;
    color: #3EBDED;
    padding: 10px 0;
    transition: all 0.3s ease-out;
    border-bottom: 1px solid #e6e8ea;
}

.wrapper-dropdown-5 .dropdown li:last-of-type a {
    border: none;
}

.wrapper-dropdown-5  img {
    color: inherit;
    margin-right: 20px;
    vertical-align: sub;
}

/* Hover state */

.wrapper-dropdown-5 .dropdown li:hover a {
    color: #57a9d9;
}

/* Active state */

.wrapper-dropdown-5.active {
    border-radius: 15px 15px 0 0;
    background: #005A80;
    box-shadow: none;
    border-bottom: none;
    color: white;
}

.wrapper-dropdown-5.active:after {
    border-color: #82d1ff transparent;
}

.wrapper-dropdown-5.active .dropdown {
    border-bottom: 1px solid rgba(0,0,0,0.2);
    max-height: 400px;
}

/******************************
 SLIDE 5 
*******************************/
.thumb {
    display: block;
    width: 100%;
    position: relative;
    float: left;
}

.thumb-wrapper {
    display: block;
    width: 100%;
}

.thumb img {
    display: block;
}

.thumb .thumb-detail {
    display: block;
    width:100%;
    height:100%;
    padding: 10px;
    position: absolute;
    background: #fff;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px;
    border-radius: 6px;
   /* behavior:url(css/border-radius.htc);
    border-radius: 6px;*/
    color: #ff143f;
	top:0;
}

.thumb .thumb-detail a {
    display: block;
    width: 100%;
    height: 100%;
    font-weight: bold;
    color: #ff143f;
    text-decoration: none;
    font-size: 13px;
    background: #ffffff;
}

.thumb .thumb-detail a:hover {
    background-position: 1px 0px;
    background-image: url(../images/clients/URL_bg.png);
    background-repeat: no-repeat;
    background-color: #eb2c27;
	background-size:cover;
    color: #FFFFFF;
}	

/*
* Without CSS3
*/
.thumb.scroll {
    overflow: hidden;
}

.thumb.scroll .thumb-detail {
    bottom: -280px;
}


/*
* CSS3 Flip
*/	
.thumb.flip {
    -webkit-perspective: 800px;
    -moz-perspective: 800px;
    -ms-perspective: 800px;
    -o-perspective: 800px;
    perspective: 800px;
}

.thumb.flip .thumb-wrapper {
    -webkit-transition: -webkit-transform 1s;
    -moz-transition: -moz-transform 1s;
    -ms-transition: -moz-transform 1s;
    -o-transition: -moz-transform 1s;
    transition: -moz-transform 1s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.thumb.flip .thumb-detail {
    -webkit-transform: rotateY(-180deg);
    -moz-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}

.thumb.flip img,
.thumb.flip .thumb-detail {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
}

.thumb.flip .flipIt {
    -webkit-transform: rotateY(-180deg);
    -moz-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}



/******************************
     news
*******************************/

.news{
}
.news .container{
	width:80%; margin:0 10%;
	margin-bottom: 50px;
	text-align:center;
}
.news img{
	margin:0 auto;
} 
.news .right{
	position: relative;
}
.news .combine{
	text-align:center;
}
.news .combine p{
	text-align:center;
}
.news .three_line{
	margin:10px 0 80px 0;
}
.news .threemore_line{
	margin:10px 0 80px 0;
}
.news .four_line{
	margin:10px 0 80px 0;
}
.news .fourmore_line{
	margin:10px 0 80px 0;
}
.news p{
	font-weight: bold;
}
.news p.year{
	font-size: 72px;
	color: #ff143f;
	font-family: Arial;
}
.news p.title{
	font-size: 22px;
	color: #3ebded;
	margin: 0 0 20px;
}
.news p.detail{
	font-size: 14px;
	color: #fff;
	margin: 10px auto;
}
.news p.detail a{
	text-decoration: underline;
}
.news p.detail a:hover{
	color: #3ebded;
}
