/* CSS Document */
/* ------------------------------------------------------------ */
/* -------- 0. RESET -------- */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
/*@font-face{font-family: 'Roboto Black';src:url('/media/fonts/roboto}*/
@font-face {
  font-family: "Roboto";
  src: url("/font/Roboto-Regular.ttf");
}


html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

* { box-sizing:border-box;}

/* -------- 1. LAYOUT -------- */
body { text-align: center; font: 1rem/1 'Roboto'; background: #ebf2e3;}
.wrapper { width: 900px; margin: 10px auto; text-align: left; }

.flex { display: flex;}

.navbar { justify-content:space-between;}
	.navbar nav { align-items:flex-end;}

.content .item { display: flex; align-items:center; justify-content: center; flex:1; background: #ccc; height: 300px; padding: 20px;}
/*	
	.content .about .item.title, .content .portfolio .item.title { justify-content: flex-start;} 
	.content .creation .item.title { justify-content: flex-end;}
*/

header {
	background:#1B396A;
	padding:10px;
	border-bottom:4px #FFCC00 solid;
}

/* -------- 2. GENERIC ITEMS -------- */
	.navbar { margin-left: 0px;}
		.navbar a { display: inline-block; margin-right: 1px; padding: 15px 15px 5px 15px; font-size: 16px; font-weight: 700; text-transform: uppercase; color: #F0F000; text-decoration: none; font-family: 'Roboto Condensed';}
			.navbar a:nth-child(1) { border-bottom: 4px solid #da0080;}
			.navbar a:nth-child(2) { border-bottom: 4px solid #3d7402;}
			.navbar a:nth-child(3) { border-bottom: 4px solid #008bda;}
			.navbar a:nth-child(4) { border-bottom: 4px solid #da6200;}
			
			
			.navbar a:nth-child(1):hover { color: #da0080; }
			.navbar a:nth-child(2):hover { color: #3d7402; }
			.navbar a:nth-child(3):hover { color: #008bda; }
			.navbar a:nth-child(4):hover { color: #da6200; }
			
		.navbar h1 { font-weight: 500; font-size: 25px; text-align: right; color:#FFF;}
			.navbar span {display: block; font-size: 40px; font-weight: 700;}

	.about { color: #fff;}
		.about .photo { background: #1B396A; }
		.photo figure { display: flex; align-items:center; justify-content: center; width: 240px; height: 240px; border-radius: 50%; overflow: hidden;}
		.about .description { background: #9c025d; display: flex; flex-flow:column nowrap; align-items:flex-start;}
		.about .title { background: #da0080;}
		
	.creation { color: #333;}
		.creation .image { background: #fff;}
		.creation .description { background: #f2f2f2; display: flex; flex-flow:column nowrap; align-items:flex-start;}
		.creation .title { background: #3d7402; color:#fff;}
		
	.portfolio { color: #333;}
		.portfolio .description { background: #f2f2f2; border:20px solid #fff; display: flex; flex-flow:column nowrap; align-items:flex-start; flex:1 65.7%;}
		.portfolio .title { background: #008bda; color:#fff; flex:1 auto;}
		
	.contact { color: #fff;}
		.contact .form { background: #da6200;}
		.contact .description { background: #da6200; display: flex; flex-flow:column nowrap; align-items:flex-start;}
		.contact .title { background: #d54100;}
		
/* -------- 3. LIST -------- */

	.portfolio li { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #ddd;}
	.portfolio a { color: #008bda; text-decoration: none;}
/* -------- 4. FORM -------- */
/*
	.contact form { display: flex; flex-flow:column nowrap; align-items:flex-end;}
	.contact input { border: 0; background: #fff; display: block; width: 200px; height: 30px; padding-left:10px; margin-bottom: 10px; }
	.contact [type=submit] { width: auto; height: auto; padding: 5px 15px; border: 2px solid #fff; background: none; color: #fff; font-size: 16px;}
*/	
/* -------- 4. FORM -------- */
.cslFrm{ width: 70%;  margin:0 auto; padding:10px; margin-top:20px;	background:#FFF;}
	.cslFrm input{ display:block; padding:4px 4px; width:100%; margin-bottom:10px;  }
	.cslFrm button{ width:50%; margin:0 auto; padding:10px; cursor:pointer;  }


/* -------- 5. MEDIAQUERY -------- */

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

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

/*@media screen and (max-width: 440px) {*/

	.wrapper { width: 100%;}

	.order-1 { order:1;}
	.order-2 { order:2;}
	.order-3 { order:3;}

	.about.flex, .creation.flex, .portfolio.flex, .contact.flex { flex-flow: column; position: relative; }
	.content .about .item.title, .content .creation .item.title, .content .portfolio .item.title, .content .contact .item.title { height: auto; padding-top: 20px; padding-bottom: 40px; justify-content:flex-start;}

	.about .photo, .creation .image { position: absolute; right: 0px; top: 10%; background: transparent; width: 180px; height: 180px;}
		.about figure, .creation figure { width: 100%; height: 100%;}
		.about .photo img { max-width: 100%; width: 100%; height: auto;}

		.creation figure { display: flex; justify-content:center; align-items:center; background: #fff; border-radius: 50%;}
		.creation .image img { width: 60px;}

	.about .description, .creation .description, .contact .description, .contact .form { height: auto; padding-top: 40px; padding-bottom: 60px;}

	.portfolio .description { border:0;}
}