html {
    overflow-y:scroll;
}

iframe {
	border-style: none;
}


body {
	background-image: url("../image/layout/background.png");
	margin: 0px;
	color: #603e0e;
	font-size: 0.8rem;
	font-family: "Verdana", Verdana, sans-serif;
	text-align: justify;
}

body h1 {
	font-size: 1.0rem;	
}
	
	
body h2 {
	font-size: 0.8rem;	
}

.quote {
	font-size: 0.5rem;	
	font-weight: bold;
}

.quotesource {
	font-size: 0.5rem;	
	margin-top: 10px;
}

.stage_border {
	display: inline-block;
	width: 10px;
	margin: 0px;
	padding: 0px;
}

.stage {
	display: inline-block;
	width: 	calc(100% - 20px);
	margin: 0px 4px 0px 16px;
	/* margin: 0px 0px 0px 8px; */
	padding: 0px;
}


.mainmenu {
	margin-bottom: 0.5%;
}



.mainmenu .button_welcome {
	background-image: url("../image/layout/button_welcome_static.png");
}

.mainmenu .button_welcome:hover {
	background-image: url("../image/layout/button_welcome_static.png");
}

.mainmenu .button_projects {
	background-image: url("../image/layout/button_projects_static.png");
}

.mainmenu .button_projects:hover {
	background-image: url("../image/layout/button_projects_static.png");
}




.mainmenu .button_personal {
	background-image: url("../image/layout/button_personal_static.png");
}

.mainmenu .button_personal:hover {
	background-image: url("../image/layout/button_personal_static.png");
}


.mainmenu .button_legal {
	background-image: url("../image/layout/button_legal_static.png");
}

.mainmenu .button_legal:hover {
	background-image: url("../image/layout/button_legal_static.png");
}




.mainmenu .button {
	width: 35%;
	margin-left: 6.0%;
	margin-right: 9.0%;
	padding: 0;	
	
	padding-top: 11.0%; /* magic value to fit box height wile being if the specified width percentage for an assumed 180x56px background image */
		
	display: inline-block;
	
	background-size: cover;
	/*background-image: url("../image/btn_static_welcome.gif");*/
	background-repeat: no-repeat;
	
	
	/** MEDIA SIZE SELECTION HACK **/
	/** box-sizing: border-box;
	border-style: solid;
	border-width: 1px;
	border-color: red; **/
}

.header {
	white-space:nowrap;
    overflow:hidden;
}


#header_1 {
	display: inline-block;
	width: 28.56%;
	padding-top: 26.5%;
	background-size: cover;
	background-image: url("../image/layout/header_seg1.png");
	background-repeat: no-repeat;
}

#header_2 {
	display: inline-block;
	width: 65.0%;
	padding-top: 26.5%;
	background-size: cover;
	background-image: url("../image/layout/header_seg2.png");
	background-repeat: no-repeat;
}

#header_3 {
	 display: none;
}
	
#header_4 {
	display: inline-block;
	width: 5.43%;
	padding-top: 26.5%;
	background-size: cover;
	background-image: url("../image/layout/header_seg4.png");
	background-repeat: no-repeat;
}

.header_filler {
	 display: none;	 
}

.contentframe {
	display: inline-block;
	width: 100%;
	min-height: 150px;
	display: inline-block;
	/*background-color: #ebe3be;*/
	margin: 0px;
}


.content_corner_top_left {
	display: inline-block;
	width: 11px;
	height: 12px;
	
	background-size: cover;
	background-image: url("../image/layout/content_corner_top_left.png");
	background-repeat: no-repeat;
}

.content_corner_top_right {
	display: inline-block;
	width: 27px;
	height: 12px;
	
	background-size: cover;
	background-image: url("../image/layout/content_corner_top_right.png");
	background-repeat: no-repeat;
}

.content_edge_top {
	display: inline-block;
	width: calc(100% - 38px);
	height: 12px;
	
	background-size: cover;
	background-image: url("../image/layout/content_edge_top.png");
	background-repeat: no-repeat;
}




.content_table {
	display: table;
	width: 100%;
}

.content_edge_left {
	display: table-cell;
	width: 11px;
	background-image: url("../image/layout/content_edge_left.png");
	background-repeat: repeat-y;
}

.content_area {
	display: table-cell;
	width: calc(100% - 38px);
	background-color: #ebe3be;
	padding: 4px 16px 16px 16px;
}

.content_edge_right {
	display: table-cell;
	width: 27px;
	background-image: url("../image/layout/content_edge_right.png");
	background-repeat: repeat-y;
}




.content_corner_bottom_left {
	display: inline-block;
	width: 11px;
	height: 25px;
	
	background-size: cover;
	background-image: url("../image/layout/content_corner_bottom_left.png");
	background-repeat: no-repeat;
}

.content_corner_bottom_right {
	display: inline-block;
	width: 27px;
	height: 25px;
	
	background-size: cover;
	background-image: url("../image/layout/content_corner_bottom_right.png");
	background-repeat: no-repeat;
}

.content_edge_bottom {
	display: inline-block;
	width: calc(100% - 38px);
	height: 25px;
	
	background-size: cover;
	background-image: url("../image/layout/content_edge_bottom.png");
	background-repeat: no-repeat;
}





/** scollbar-buffer(15) + stagepadding(16+4) + 3*(180px) = 15 + 20 + 540 = 575 */
@media (min-width: 575px) { 
	
	body {
		font-size: 0.8rem;
	}

	body h1 {
		font-size: 1.2rem;	
	}
		
		
	body h2 {
		font-size: 0.95rem;	
	}

	.quote {
		font-size: 0.6rem;	
		font-weight: bold;
	}
	
	.quotesource {
		font-size: 0.5rem;	
		margin-top: 6px;
	}
	
	.mainmenu {
		margin-bottom: 1.0%;
	}
	
	.mainmenu .button {
		display: inline-block;
		
		width: 180px; /* 180 */
		height: 56px; /* 56 */
		
		padding: 0px;
		margin-top: 0px;
		margin-bottom: 0px;
		margin-right: calc((100% - (180px * 3)) / 6);
		margin-left: calc((100% - (180px * 3)) / 6);
		padding: 0;	
		
		background-size: cover;
		background-repeat: no-repeat;
		border-color: 0px;
		
		/** MEDIA SIZE SELECTION HACK **/
		/** border-color: blue; **/
	}	
}
	

@media (min-width: 720px) and (orientation: landscape)  {

	body {
		font-size: 0.9rem;
	}

	body h1 {
		font-size: 1.4rem;	
	}
		
		
	body h2 {
		font-size: 1.05rem;	
	}
	
	.quote {
		font-size: 0.7rem;	
		font-weight: bold;
	}
	
	.quotesource {
		font-size: 0.6rem;	
		margin-top: 8px;
	}
	
	.mainmenu {
		margin-bottom: 2%;
	}

	.mainmenu .button {
		width: 180px; /* 180 */
		height: 56px; /* 56 */
		margin-top: 0px;
		margin-bottom: 0px;
		margin-right: calc((100% - (180px * 4)) / 8);
		margin-left: calc((100% - (180px * 4)) / 8);
		padding: 0;	
		
		/** MEDIA SIZE SELECTION HACK **/
		/** border-color: yellow;**/
	}

	#header_1 {
		width: 18.61%;
		padding-top: 17.5%;
	}

	#header_2 {
		width: 42.41%;
		padding-top: 17.5%;		
	}

	#header_3 {
		display: inline-block;
		width: 35.25%;
		padding-top: 17.5%;
		background-size: cover;
		background-image: url("../image/layout/header_seg3.png");
		background-repeat: no-repeat;
	}
	
	#header_4 {
		width: 3.55%;
		padding-top: 17.5%;
	}
}



@media (min-width: 1000px) and (orientation: landscape)  {
	/*
	168x170 - 
	382x170
	318x170
	32x170
	------
	*/

	#header_1 {
		width: 168px;
		height: 170px;		
		padding-top: 0%;
		background-size: cover;
	}

	#header_2 {
		width: 383px;
		height: 170px;		
		padding-top: 0%;
		background-size: cover;
	}

	
	#header_3 {
		display: inline-block;
		width: 318px;
		height: 170px;		
		padding-top: 0%;
		background-size: cover;
		background-image: url("../image/layout/header_seg3.png");
		background-repeat: no-repeat;
	}
	
	#header_4 {
		width: 32px;
		height: 170px;		
		padding-top: 0%;
		background-size: cover;		
	}
	
	.header_filler {
		display: inline-block;
		height: 170px;
		padding-top: 0%;
		background-size: cover;
		background-image: url("../image/layout/header_gap.png");
		background-repeat: no-repeat;
	}
	
	.header_filler_50 {
		width: calc(calc(100% - 900px) / 2);
	}
	
	.header_filler_33 {
		width: calc(calc(100% - 900px) / 3);
	}
	
	.header_filler_25 {
		width: calc(calc(100% - 900px) / 4);
	}
	
	
	.mainmenu {
		display: inline-block;
		width: 180px;
		margin: 0;
	}
	
	.mainmenu .button {
		display: inline-block;
		width: 180px;
		height: 56px;
		padding: 0;
		margin: 0;
		color: red;
		
		/** MEDIA SIZE SELECTION HACK **/
		/** border-color: green; **/
	}
	
	.contentframe {
		width: calc(100% - 180px);
		vertical-align: top;
	}
}


@media (min-width: 1100px) and (orientation: landscape)  {
	.stage {
		display: inline-block;
		width: 1100px;
	}
	
	.stage_border {
		display: inline-block;
		width: 	calc(calc(100% - 1100px) / 2);
	}
}
