@import url('https://fonts.googleapis.com/css?family=Varela+Round&display=swap');
@font-face {
    font-family:'monofur';
    src: url('/fonts/monof55-webfont.eot');
    src: url('/fonts/monof55-webfont.eot?#iefix') format('embedded-opentype'),
         url('/fonts/monof55-webfont.woff') format('woff'),
         url('/fonts/monof55-webfont.ttf') format('truetype'),
         url('/fonts/monof55-webfont.svg#hanskendrick-regular') format('svg');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family:'comicrelief';
    src: url('/fonts/comicrelief-webfont.eot');
    src: url('/fonts/comicrelief-webfont.eot?#iefix') format('embedded-opentype'),
         url('/fonts/comicrelief-webfont.woff') format('woff'),
         url('/fonts/comicrelief-webfont.ttf') format('truetype'),
         url('/fonts/comicrelief-webfont.svg#hanskendrick-regular') format('svg');
    font-weight: normal;
    font-style: normal;

}
/*

    font-family: 'Varela Round', sans-serif;
	font-family: 'Comfortaa', cursive;

*/
html{
	width:100%;
	height:100%;
	margin:0;
	padding:0;
	font-size:24px;
	font-family:'Raleway', cursive;
	font-style:normal;
	font-weight:bold;
	color:black;
	.overflow:hidden;
	z-index:0;
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
	-webkit-tap-highlight-color: transparent;
	.-webkit-touch-callout: none;
	-webkit-user-select: none; /* Disable selection/copy in UIWebView */
    background-image: url('../img/wall.png');
    background-attachment: fixed;
}

body{
	position:relative;
	width: 100%; .height: 100%;
	min-height:100%;
	margin:auto;
	padding-top:100px;
	padding-bottom:80px;
	top:0; left:0; right:0; bottom:0;
	z-index:0;
	.border:1px solid black;
}

body, html, div, span, img, table, td, tr, input, textarea, header, footer, a, main, section, article, h1, h2, h3, h4{
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
}

h1, h2, h3, h4, h5, h6{
	margin:0;
	padding:0;
    line-height:100%;
}

a, a:visited{
	color:black;
	text-decoration:none;
}

/* HEADER */

header{
	position:fixed;
	top:0; left:0;
	width:100%; height:80px;
	border-bottom:none;
    background: #e5e5e5;
	background: -moz-linear-gradient(top,  #e5e5e5 90%, rgba(245, 245, 245, 0) 100%);
	background: -webkit-linear-gradient(top,  #e5e5e5 90%, rgba(245, 245, 245, 0) 100%);
	background: linear-gradient(to bottom,  #e5e5e5 90%, rgba(245, 245, 245, 0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#ffffff',GradientType=0 );
	box-shadow: none;
	-webkit-transition: border 0.2s linear,  box-shadow 0.2s linear;
	transition: border 0.2s linear,  box-shadow 0.2s linear;
	z-index:2;
	.border:1px solid black;
}
.headerFull{
    background-image: none;
    background-color: #e5e5e5;
    box-shadow:none;
    border:none;
}
.headerScrolled{
	height:80px;
	background-image: none;
	background-color: #e5e5e5 !important;
	box-shadow: 0 0 10px gray !important;
	.border-bottom:1px solid lightgray !important;
}

#header{
	position:absolute;
	top:0; left:0; right:0;
	width:100%; height:100%;
	max-width: 1360px;
	margin:auto;
	text-align:center;
}
#plastikas_logo{
    display:none;
	height:80px;
    .border:1px solid black;
}
#scrollDiv{
    position:absolute;
    bottom: 10px; left:50%;
    width:40px;
    height:40px;
    -o-transform:translateX(-50%);
    -ms-transform:translateX(-50%);
    -moz-transform:translateX(-50%);
    -webkit-transform:translateX(-50%);
    transform:translateX(-50%);
    background-image: url("../img/arrow_down.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity:0;
    animation-name: scrollPlease;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

@keyframes scrollPlease {
    0% {
        background-position: top;
        opacity:0;
    }
    40% {
        background-position: top;
        opacity:0;
    }
    80% {
        opacity:1;
    }
    100% {
        background-position: bottom;
        opacity:0;
    }
}

.scrollNoDisplay{
    display:none;
}

.categoria_tit{
    height:80px;
}

.logo_izq{
    opacity:0.4;
}

/* MAIN */

main{
	position:relative;
	left:0; right:0;
	width:100%;
	padding-top:20px;
	max-width: 1360px;
	margin:0 auto;
	text-align:center;
	.border:1px solid green;
    display:none;
}
.categoria{
	position:relative;
	width:48%;
	float:none;
	.border:1px solid purple;
	display:inline-block;
}
.categoriaGrid{
	position:absolute;
	top:5%; left:5%;
	width:90%; height:90%;
    background-color: white;
	border:1px solid #e5e5e5;
    border-radius: 5px;
}
.categoriaGrid a{
	font-size:32px;
}
.catHover{
	position: absolute;
	top:0; left:0;
	width:100%; height:100%;
	background-color:rgba(245,245,245,0.9);
    background-repeat:no-repeat;
    background-position: center;
    background-size: 100%;
	opacity:0;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
	z-index:1;
	display:table;
    border-radius: 5px;
}
.catHover div{
	display: table-cell;
	vertical-align: middle
}
.catHover:hover{
	opacity:1;
	cursor:pointer;
    box-shadow: 0 0 5px #ccc;
}
.catImg{
	position:absolute;
	top:0; left:0;
	width:100%; height:100%;
	opacity:1;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	-o-transition: opacity 1.5s linear;
	-ms-transition: opacity 1.5s linear;
	-moz-transition: opacity 1.5s linear;
	-webkit-transition: opacity 1.5s linear;
	transition: opacity 1.5s linear;
	border-radius:5px;
}

/* WORKS */

.workRow{
	position:relative;
	width:94%;
	margin:0 0 3% 3%;
	border:1px solid #e5e5e5;
	border-radius:5px;
    background-color: white;
	-o-transition: box-shadow 0.3s, border 0.3s;
	-ms-transition: box-shadow 0.3s, border 0.3s;
	-moz-transition: box-shadow 0.3s, border 0.3s;
	-webkit-transition: box-shadow 0.3s, border 0.3s;
	transition: box-shadow 0.3s, border 0.3s;
}
.workRow:hover{
	border-color:#e5e5e5;
	box-shadow: 0 0 5px #ccc;
}
.workRow a{
	font-size:32px;
}
/*
.workRow a:hover{
	opacity:0.5	;
}
*/
.workRowImg{
	position:absolute;
	left:0; top:1;
	width:33%; /* height --> js */
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	border-top-left-radius:5px;
	border-bottom-left-radius:5px;
}
.workRowTit{
	position:absolute;
	left:33%; top:0;
	width:67%;
	border-top-right-radius:5px;
	border-bottom-right-radius:5px;
	background-repeat: no-repeat;
	background-position: left;
	background-size: 150%;
	display:table;
	/*
	background-image: -moz-linear-gradient(top,  rgba(255,0,255,1) 0%, rgba(255,0,255,0) 100%),  url('../img/arrow_right.png');
	background-image: -webkit-linear-gradient(top,  rgba(255,0,255,1) 0%,rgba(255,0,255,0) 100%), url('../img/arrow_right.png');
	background-image: linear-gradient(to bottom,  rgba(255,0,255,1) 0%,rgba(255,0,255,0) 100%), url('../img/arrow_right.png');
	.filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 );
	*/
}
.workRowTit div{
	display: table-cell;
	vertical-align: middle;
}

/* ENTRY */

h1 a:hover{
	color:purple;
}
#slideShow{
	position:relative;
	width:90%;
	left:0; right:0;
	margin:auto;
	.border:1px solid black;
}
#slideShow:hover #arrow_right, #slideShow:hover #arrow_left, #slideShow:hover #full_screen{
	opacity:1;
}
#arrow_right, #arrow_left, #full_screen{
	position:absolute;
	width:10%;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	z-index:1;
	cursor:pointer;
	opacity:0;
	-webkit-transition: opacity 0.5s;
	transition: opacity 0.5s;
}
#arrow_right{
	right:0;
	background-image: url('../img/arrow_right.png');
}
#arrow_left{
	left:0;
	background-image: url('../img/arrow_left.png');
}
#full_screen{
	width:5%;
	bottom:5%;
	background-image: url('../img/full_screen.png');
}
.slideImage{
	position:absolute;
	top:0; left:0;
	width:100%; height:100%;
	opacity:0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	-webkit-transition: opacity 1.5s linear;
	transition: opacity 1.5s linear;
	z-index: 0;
	border-radius:5px;
}
#entryText{
	position:relative;
	width:90%;
	left:0; right:0;
	margin:20px auto;
	.border:1px solid black;
}
.fullScreenDiv{
	position:fixed;
	top:0; left:0;
	width:100%; height:100%;
	background-color:rgba(0,0,0,0.9);
	background-repeat: no-repeat;
	background-position: center;
	background-size: auto;
	z-index:2;
}
.fullScreenImg{
	position:absolute;
	top:0; bottom:0; left:0; right:0;
	margin:auto;
	border-radius:5px;
	box-shadow: 0 0 5px black;
	background-position:center;
	background-size:contain;
	background-repeat:no-repeat;
}

/* FOOTER */
footer{
	position:absolute;
	left:0; right:0; bottom:0;
	width:100%; height:80px;
	text-align:center;
	font-size:16px;
	background: -moz-linear-gradient(top,  rgba(245, 245, 245, 0) 0%, #e5e5e5 10%);
	background: -webkit-linear-gradient(top,  rgba(245, 245, 245, 0) 0%, #e5e5e5 10%);
	background: linear-gradient(to bottom,  rgba(245, 245, 245, 0) 0%, #e5e5e5 10%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 );
	display:none;
	.border:1px solid blue;
}
#footer{
	position:absolute;
	top:0; left:0; right:0;
	width:100%; height:100%;
	max-width: 1360px;
	margin:auto;
}
#footer_left, #footer_middle, #footer_right{
	position:absolute;
	height:25px;
	padding:0 20px;
}
#footer_left{ left:0; top:40%; width:40%; text-align: left; .border:1px solid blue;}
#footer_middle{ left:40%; top:40%; width:20%; text-align: center; .border:1px solid blue; padding-top:5px;}
#footer_right{ left:60%; top:40%; width:40%; text-align: right; .border:1px solid blue;}
footer img{
	height:24px;
	margin-bottom:-5px;
	margin-right:10px;
}
footer a, footer a:visited{
	opacity:1;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}
footer a:hover{
	opacity:0.5	;
}



@media screen and (max-aspect-ratio: 1/1) {

	/* Variaciones para pantallas con relación de aspecto 4/5 */
	.categoria{
		width:100%;
	}
	.categoriaGrid{
		border:2px solid transparent;
		margin-top:-1px;
	}
	.categoriaGrid a{
		font-size:3vh;
	}

	#portadas{ left:0; }
	#ilustraciones{ left:0; }
	#dibujos{ left:0; }
	#logos{ left:0; }
	#proyectos{ left:0; }
	#otros{ left:0; }

	.catHover{
		opacity:1;
		background-color: transparent;

		background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.8) 70%, rgba(255,255,255,0) 100%);
		background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 30%,rgba(255,255,255,0.8) 70%,rgba(255,255,255,0) 100%);
		background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 30%,rgba(255,255,255,0.8) 70%,rgba(255,255,255,0) 100%);
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00ffffff',GradientType=0 );

    	background-color:rgba(245,245,245,0.7);
        background-repeat:no-repeat;
        background-position: center;
        background-size: 100%;

		/*
		background-repeat: no-repeat;
		background-size: cover;
		background-image: url("../img/background_gradient.png");
		*/
	}

    #arrow_right, #arrow_left, #full_screen{
    	opacity:1;
    }


    .workRowTit h2{ font-size:2.5vh; }
	.workRow a, .workRow a:visited{
		font-size:48px;
	}

	h1{
		padding:0 2%;
	}

	footer{ font-size:2vh; }
	footer img{ height:2.5vh; margin-bottom: -0.5vh;}
	#footer_left{ left:30%; top:20%; width:70%; text-align: right;}
	#footer_middle{ left:0; top:40%; width:30%; text-align: left;}
	#footer_right{ left:30%; top:60%; width:70%; text-align: right;}

}

@media screen and (max-width: 768px) {

	h1{
		font-size:4.5vh;
		padding:0 2%;
	}
	#entryText{
		font-size:2.5vh;
	}

	#plastikas_logo{
		height:80px;
	}

	footer{ font-size:1.5vh; }
	footer img{ height:1.7vh; margin-bottom: -0.2vh;}
	#footer_left{ left:0; top:10%; width:100%; text-align: center;}
	#footer_middle{ left:0; top:70%; width:100%; text-align: center; padding-top:0;}
	#footer_right{ left:0; top:40%; width:100%; text-align: center;}

}

@media screen and (max-aspect-ratio: 10/16) {

	.logo_izq{
		display: none;
	}

}
