/*------------------ General ------------------*/
@font-face { 
	font-family: 'gram';
	src: url('./Gram.ttf');
}

@font-face {
    font-family: 'eurostile';
    src: url('./eurostile.TTF');
}


body{
    background-image: url("classy_fabric.png"); 
    font-family: eurostile;  
        color: white;
    text-shadow: 1px 1px 2px black;  
}

.container{
	width: 95%;
	margin: auto;
    margin-top: 80px;
    margin-bottom: 20px
}

a:visited, a:link, a:hover{
	color: white;
}

a{
	text-decoration: none;
	color: inherit;
}
/*------------------ /General ------------------*/
/*------------------ Media Queries--------------*/
ul{
	border: 0;
	margin: 0;
	padding: 0;
}

li.item{
	-moz-transition: all 0.5s;
}

/* BIG PAGE */
@media all and (min-width: 1101px){
	li.item{
		width: 30%;
		margin-right: 3%;
		float: left;
		margin-bottom: 50px;
	}
	
	li.item:nth-child(3n){
		margin-right: 0px;
	}
	
	h2.client{
	    top: -40px;
	}
	
	#we:nth-child(3n-1){
	text-align: center;
	}
	
	#we:nth-child(3n+1){
		text-align: right;
	}
	
	#we:nth-child(3n){
		text-align: left;
	}
	
	#we:nth-child(3n+1) h2{
		-webkit-transform-origin: 100%;	
		-moz-transform-origin: 100%;	
		-o-transform-origin: 100%;	
		transform-origin: 100%;	

	}
	
	#we:nth-child(3n) h2{
		-webkit-transform-origin: 0%;	
		-moz-transform-origin: 0%;	
		-o-transform-origin: 0%;	
		transform-origin: 0%;	
	}
}

/* MEDIUM PAGE */
@media all and (max-width: 1100px) and (min-width: 550px){

	li.item{
		width: 49%;
		margin-right: 1%;
		float: left;
		margin-bottom: 30px;

	}
	
	li.item:nth-child(2n){
		margin-right: 0px;
	}
	
	h2.client{
	    top: -30px;
		font-size: large;
	}
	
	#we:nth-child(2n){
		text-align: left;
	}
	
	#we:nth-child(2n+1){
		text-align: right;
	}
	
	#we:nth-child(2n) h2{
		-webkit-transform-origin-x: 0%;
		-moz-transform-origin-x: 0%;
		-o-transform-origin-x: 0%;
		transform-origin: 0%;
	}
	
	#we:nth-child(2n+1) h2{
		-webkit-transform-origin-x: 100%;
		-moz-transform-origin-x: 100%;
		-o-transform-origin-x: 100%;
		transform-origin: 100%;
	}
}

/* MOBILE */
@media all and (max-width: 550px) {

    .container{
    	margin-top: 20px; 
    }
    
	li.item{
		width: 99%;
		float: left;
		margin-bottom: 15px;
	}
	
	li.item{
		margin-right: 0px;
	}
	
	#we{
		text-align: center;
		height: auto;
	}
	h2.client{
		top: 0px;
	}

	#frame-container{
		display: none!important;
	}
}
/*------------------ /Media Queries--------------*/
/*------------------ Site ------------------*/

h2.client{
	color: white;
}

li.item{
	list-style: none;
    height: 195px;
    background: rgba(0,0,0,0.25);
    position: relative;
    box-shadow: inset 0 -1px 0 rgba(255,255,255, 0.3);
}

.site-image, .site-info, .site-image-a{
    border-radius: 1px;
    position: absolute;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
}

.site-image-a{
	margin: 5px;
	
}
.site-image, .site-image-a{
	background-position: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
}

/* site info */
div.site-info
{
    padding: 10px 10px;
    opacity: 0.15;
    filter: alpha(opacity = 15);
    -webkit-transition: opacity 0.15s ease-in-out;
    -moz-transition: opacity 0.15s ease-in-out;
    -o-transition: opacity 0.15s ease-in-out;
    transition: opacity 0.15s ease-in-out;
    background: rgba(0,0,0,0.8);
}

.client-link{
    text-align: center;
    position: relative;
    top: 20px;
    overflow: hidden;

}

.more-pics{
    display: none!important;
}

/* /site info */
/*-----moving info in------*/
.job{
	opacity: 0;
	position: absolute;
	bottom: 5px;
	right: 5px;
}

.site:hover .job{
    opacity: 1;
    filter: alpha(opacity = 100);   
    -webkit-transition: opacity 0.15s ease 0.25s;
    -moz-transition: opacity 0.15s ease 0.25s;
    -o-transition: opacity 0.15s ease 0.25s;
    transition: opacity 0.15s ease 0.25s;
}


.site:hover .site-info, .site.show-more .site-info{
    opacity: 1;
    filter: alpha(opacity = 100);   
    -webkit-transition: opacity 0.15s ease;
    -moz-transition: opacity 0.15s ease;
    -o-transition: opacity 0.15s ease;
    transition: opacity 0.15s ease;
}

h2.client{
    position: relative;
    margin-top: 0px;
    -webkit-transition: all 0.3s ease;   
    -moz-transition: all 0.3s ease;   
    -o-transition: all 0.3s ease;   
    transition: all 0.3s ease;   

}

.site:hover .client, .site.show-more .client
{
    top: 0px;
}

.client-link a{
	opacity: 0;
    filter: alpha(opacity = 0);
    width: 48px;
    height: 48px;
    text-indent: -9999px;   
    display: inline-block;
    margin-right: 10px;
    position: relative;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.client-ss{
    background-image: url('http://alfredapp.wdfiles.com/local--files/extensions:web/readinglisticon.png');
    left: -240px;
}

.client-visit{
     background-image: url('http://cdn1.iconfinder.com/data/icons/officeicons/PNG/48/Internet_link_02.png');
     right: -240px;
}

.site:hover .client-ss, .site:hover .client-visit, .site.show-more .client-ss, .site.show-more .client-visit{
	margin:auto;
    opacity: 1;
    filter: alpha(opacity = 100);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;    
}

.site:hover .client-ss{
	left: -5px;
}
.site:hover .client-visit{
	right: -5px;
}
/*-----/moving info in------*/

@-webkit-keyframes tingle
{
    0%{-webkit-transform: rotate(0deg)} 
    25%{-webkit-transform: rotate(-2deg)} 
    75%{-webkit-transform: rotate(2deg)} 
    100%{-webkit-transform: rotate(0deg)} 
}

@-moz-keyframes tingle
{
    0%{-moz-transform: rotate(0deg)} 
    25%{-moz-transform: rotate(-2deg)} 
    75%{-moz-transform: rotate(2deg)} 
    100%{-webkit-transform: rotate(0deg)} 
}

@-o-keyframes tingle
{
    0%{-moz-transform: rotate(0deg)} 
    25%{-moz-transform: rotate(-2deg)} 
    75%{-moz-transform: rotate(2deg)} 
    100%{-moz-transform: rotate(0deg)} 
}

@keyframes tingle
{
    0%{transform: rotate(0deg)} 
    25%{transform: rotate(-2deg)} 
    75%{transform: rotate(2deg)} 
    100%{-webkit-transform: rotate(0deg)} 
}

.client-link a:hover{
	 -webkit-animation: tingle 0.15s ease-in-out 2;  
	 -moz-animation: tingle 0.15s ease-in-out 2;
	 -o-animation: tingle 0.15s ease-in-out 2;
	 animation: tingle 0.15s ease-in-out 2;
}

/*------------------ /Site ------------------*/
/*------------------ We ------------------*/
#we{
  background: rgba(255,255,255,1);
  box-shadow: inset 0 -1px 0 rgba(0,0,0, 0.3), 0px 0px 20px white;
  font-family: gram;
     	
}

#we p{
	font-size: x-large;
	margin-bottom: -1em;
}
#we-content{
    opacity: 1;
    filter: alpha(opacity = 100);
    -webkit-transition: opacity 0.15s ease;
    -moz-transition: opacity 0.15s ease;
    -o-transition: opacity 0.15s ease;
    transition: opacity 0.15s ease;
    background: rgba(0,0,0,0.75);
    height: 185px;
    margin: 5px;
    border-radius: 2px;
    padding: 0px 5px;
}


h1.we-title{
   	font-family: gram;
	margin-top: 0px;
	padding-top: 15px;
	font-size: 3em;
	margin-bottom: 10px;
}

#we h2{
   	font-family: gram;
	margin-top: 0px;
	-webkit-transform: scaleX(1.2);
	-moz-transform: scaleX(1.2);
	-o-transform: scaleX(1.2);
	transform: scaleX(1.2);

}


/*------------------ /We ------------------*/


/*------------------ Avgrund ------------------*/
.custom {
	color: #555;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	text-shadow: none;
}

.custom p {
	padding: 10px 20px;
	margin: 30px 0 0;
	font-size: 14px;
	font-weight: 300;
	text-align: justify;
}

.avgrund-close {
	display: block;
	text-transform: uppercase;
	color: #555;
	text-decoration: none;
	position: absolute;
	top: 6px;
	right: 10px;
	font-size: 13px;
}
/*------------------ /Avgrund ------------------*/
/*------------------ Frame ------------------*/
iframe, .frames{
	 -webkit-overflow-scrolling: touch;
}

iframe{
	-webkit-transform: translateZ(0px);
}

iframe:not(.loaded){
	background-image: url('./loading.gif');
}

html, body, #iframe, #frame-container{
	height:100%;
}

#frame-container{
	margin-top: 200px;
	display: inline-block;
	width: 100%;

}

.frame-desc{
	padding-left: 0px;
	float: left;
	width: 100%;
}

.frame-title{
	width: 250px;
	display: inline-block;
	text-align: right;
	padding-right: 15px;
}

.frame-title a{
	text-decoration: underline;
	color: inherit;
}

.frame-title a:hover, #we a:hover{
	text-decoration: overline;
}

.site-container{
	width: 100%;
}

.frame-more{
	margin-top: 15px;
	margin-bottom: 15px;
	font-size: x-large;
	display: inline-block;
	width: 100%;
}

.frame-details{
	font-size: smaller;
}

.frame-type{
	width: 140px;
	border-left: 2px solid white;
	border-right: 2px solid white;
	display: inline-block;
	text-align: center;
}

.frame-location{
	font-size: smaller;
	padding: 0px 15px;
}
.controls{
	position: absolute;
	right: 0px;
	font-size: x-large;
	padding: 0px 25px;
	z-index: 110;
}

.controls .button{
	padding: 0px 5px;
	cursor: pointer;
}

.controls .button:hover{/*, #we a:hover, .frame-more a:hover{*/
	text-shadow: 0px 0px 10px whitesmoke;
	-webkit-transition: all 0.15s ease-in-out;
	-moz-transition: all 0.15s ease-in-out;
	-o-transition: all 0.15s ease-in-out;
	transition: all 0.15s ease-in-out;
}

.frame-close{
	margin-left: 15px;
}

.nav{
	display: inline-block;

}

.nav.spin-prev{
	-webkit-transform: rotateZ(360deg);
	-moz-transform: rotateZ(360deg);				
	-o-transform: rotateZ(360deg);			
	transform: rotateZ(360deg);
	
	-webkit-transition: all 1s ease-in-out;
	-moz-transition: all 1s ease-in-out;
	-o-transition: all 1s ease-in-out;
	transition: all 1s ease-in-out;
}

.nav.spin-next{
	-webkit-transform: rotateZ(-360deg);
	-moz-transform: rotateZ(-360deg);				
	-o-transform: rotateZ(-360deg);			
	transform: rotateZ(-360deg);
	
	-webkit-transition: all 1s ease-in-out;
	-moz-transition: all 1s ease-in-out;
	-o-transition: all 1s ease-in-out;
	transition: all 1s ease-in-out;
}

/*------------------ /Frame ------------------*/


