

* {
	margin: 0;
	padding: 0;
}

html {
	height: 100%;
	background-color: #ffffff;
	font-size: 12px;
	font-family: Verdana, Arial,sans-serif;
	-webkit-text-size-adjust: none; /** iphone ignores font sizes if it "thinks" it is too small **/
}

body { 
	height: 100%; 
}




#mainarea {
	display: table;
	height: 100%;
	width: 100%;
	min-height: 550px;
	max-width: 1200px;
}
#mainarea > div {
	display: table-row;
}

#bodyinfoarea {
	display:none;
}

#bodyinfoarea2 {
	display:none;
	padding-left: 25px;
}

#bodycontentarea {
	display: table-cell;
	/* position:relative; --- does not work with IE */
	height: 100%;
	width: 100%;
}

#bodycontentarea > div {
	/* IE cannot make table-cell relative, need to add a container div */
	position: relative;
	width: 100%; height: 100%;
}

#page_tr, #page_br, #page_tl, #page_bl {
	position: absolute;
	width: 51%;
	height: 51%;
	border: 25px solid white;
}


#page_tr {
	border-width: 25px 25px 0 0; 
	background: url(corner_tr.gif) no-repeat top right; 
	top: 0; 
	right: 0; 
}

#page_br { 
	border-width: 0 25px 25px 0; 
	background: url(square_br.gif) no-repeat bottom right; 
	bottom: 0;
	right: 0;

}

#page_tl { 
	border-width: 25px 0 0 25px; 
	background: url(square_tl.gif) no-repeat top left; 
	top: 0; 
	left: 0;
}

#page_bl { 
	border-width: 0 0 25px 25px; 
	bottom: 0; 
	left: 0;
}

#page_tr, #page_br, #page_tl, #page_bl {  
	background-color: #dee7e7; 
}





.toplogo {
	position: absolute;
	border-width: 0px;
	right: 0;
	top: 25px;
}
.toplogo img[border=true] {
	border: 1px solid #ffffff;
}

.toplogo img {
	margin: 25px 50px 25px 0;
}

.sghlogo img {
	position: absolute;
	display: block;
    	bottom: 50px;
    	top: 0px;
    	left: 0;
    	right: 0;
    	margin: auto;
}

.infobox_table {
	position: absolute;
	display: table;
	bottom: 25px;
	left: 25px;
	width: calc(100% - 50px);
}
.infobox_row {
	display: table-row;
}
.infobox_left, .infobox_right {
	display: table-cell;
	width: 50%; 
}
	
.whitebar {
        text-transform: uppercase;
        background-color: #ffffff;        
	font-size: 10px;
	padding: 5px;
	letter-spacing: 0.5px;
}



.infobox_left .whitebar {
        text-align: right;
        padding-right: 6%;
        border-left: 3px solid #ffffff;
}

.infobox_right .whitebar {
        text-align: left;
        padding-left : 6%;
        border-right: 3px solid #76c0e3;
}




.teaserbox {
	display: flex;
	display: -webkit-flex;
	padding: 25px 6%;
}
.infobox_right .teaserbox {
 	flex-direction: row;
 	 -webkit-flex-direction: row; 	
}
.infobox_left .teaserbox {
 	flex-direction: row-reverse;
 	 -webkit-flex-direction: row-reverse;
}

.teaser_desc {
	flex: 1 1 50%; 
	-webkit-flex: 1 1 50%; 
}
.infobox_left .teaser_desc {
	text-align: right;
	padding-right: 20px;
}
.infobox_right .teaser_desc {
	text-align: left;
	padding-left: 20px;
}
.teaser_desc p:first-of-type {
	margin-bottom: 4px;
}

.teaser_thumb {
	flex: 0 0 auto;
	-webkit-flex:0 0 auto;
	text-align: center;
}
.teaser_thumb img {
	border: 1px solid white;
}
	

a {
	color: #18516b;
	text-decoration: none;
	font-weight: bold;
}

a:hover {
	color: #2192c6;
}

#morebutton {
	display: none;
}





/** show bodyinfoarea if wider than 1200px **/
@media only screen and (min-width: 1200px) {

	#bodyinfoarea {
		display: table-cell;
		vertical-align:top;
	}
	
	#bodyinfoarea img {
		margin-top: 40px;
		margin-right: 10px;
	}
	
	#mainarea {
		max-width: 1360px;
	}
}

/** show bodyinfoarea2 if wider than 1360px **/
@media only screen and (min-width: 1360px) {

	#bodyinfoarea2 {
		display: table-cell;
		vertical-align:top;
	}
	
	#bodyinfoarea2 img {
		margin-top: 40px;
		margin-right: 10px;
	}
	
	#mainarea {
		max-width: 1545px;
	}
}



/** compact view if below desktop/tablet (surface pro is 720px wide) **/
@media only screen and (max-width: 719px) {

	.sghlogo img {
		width: 75%;
	}

	.teaser_thumb img {
		display: none;
	}

	.infobox_left .teaser_desc {
		padding-right: 0px;
	}
	
	.infobox_right .teaser_desc {
		padding-left: 0px;
	}
}


/** mobile view if smaller than 480px **/
@media only screen and (max-width: 480px) {

	#mainarea {
		height: auto;
		min-height: auto;
		max-width: auto;
		background-color: #dee7e7; 
	}

	#page_tr, #page_br, #page_tl, #page_bl {
		border-width: 0px;
	}
	
	#page_tr, #page_tl, #page_bl {
		display: none;
	}

	.toplogo {
		display: none;
	}

	.sghlogo {
		padding: 14px;
	}
	
	.sghlogo img {
		position: relative;
		bottom: auto;
		top: auto;
		left: auto;
		right: auto;
		margin: auto;
		width: 75%;
	}

	.teaser_thumb img {
		display: block;
	}

	.infobox_table {
		display: block;
		position: relative;
		top:0;
		left:0;
		right: auto;
		bottom: auto;
		padding: 0;
		margin: 0;
		width: auto;
	}
	
	.infobox_row {
		display:block;
	}
	
	.infobox_left, .infobox_right {
		display:block;
		width: 100%; 
	}

	.infobox_left .whitebar {
		text-align: left;
		padding-left: 15px;
		border-right: 3px solid #ffffff;
		border-left: 3px solid #ffffff;
	}

	.infobox_right .whitebar {
		text-align: left;
		padding-left : 15px;
		border-left: 3px solid #ffffff;
		border-right: 3px solid #ffffff;
	}

	.teaserbox {
		padding: 15px;
	}

	.infobox_right .teaserbox {
		flex-direction: row;
		 -webkit-flex-direction: row; 	
	}
	
	.infobox_left .teaserbox {
		flex-direction: row;
		 -webkit-flex-direction: row;
	}

	.infobox_left .teaser_desc {
		text-align: left;
		padding-left: 10px;
	}
	
	.infobox_right .teaser_desc {
		text-align: left;
		padding-left: 10px;
	}

	#morebutton {
		text-align:right;
		padding: 15px;
		display: block;
		margin-bottom:100px;		
	}
}


/** hide second and third entries, if not in mobile view **/
@media only screen and (min-width: 481px) {

	.teaserbox:not(:first-child) { 
		display:none;
	}
}
