* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
}

html {
  height: 100%;
}

body {
	font-family:Helvetica, Geneva, Arial, SunSans-Regular, sans-serif;
	font-size:smaller; color:#444; margin: 0;
	
	min-height: 100%;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 55px 1fr 30px;
	grid-template-areas:
						"header"
						"main"
						"footer";
}

.button { color: #FFF; background-color: #159FE9; border: 1px solid #159FE9; border-radius: 3px; padding: 10px; margin: 20px auto 10px; width:100%; cursor: pointer; }
/*.button:hover { color: #005384; background-color: #F4F4F4; }*/

A { color: #004987; text-decoration: none; font-size: .9rem; }

.failureText {color: #F00; font-style: italic; height: 20px; text-align: center; }

.checkboxBox input[type=checkbox] { display: none; }
.pseudocheckbox::before { content: "\00A0"; display: inline-block; box-sizing: border-box; width: 15px; height: 15px; background-color: white; border: 1px solid #B0B0B0; border-radius: 2px; margin-right: 6px; vertical-align: baseline;    text-align: center; font-family: Arial, sans-serif; font-size: 16px; line-height: 16px; font-weight: bold; color: #0065A4; }
.checkboxBox input[type=checkbox]:checked + .pseudocheckbox::before { content: "\2713"; }

.externalTable {
    border: 1px solid #06A;
    background-color: #f4f5f7;
    padding: 15px;
}

#header {
  color: #FFF; background-color: #0065A4; padding:0; height: 40px;
  grid-area: header;
  
}
.logo { float: left; padding-left: 20px; width: 160px; height: 40px; }
.lang { float: right; padding-right: 20px; }
.right { float: right; padding-right: 5px; padding-top: 10px; }
.rightGlobe { float: right; padding-right: 5px; padding-top: 10px; }
.right select {
	width: 120px;
	padding: 2px 0;
	font-size: 12px;
	color: #FFF;
	background-color: #0065A4;
	border: none;
	box-sizing: border-box;
	-moz-appearance: none; -webkit-appearance: none; appearance: none;
	cursor: pointer;
}
.right select > option { background-color: #FFF; color: #000; }

#main {
	grid-area: main;
	width: 100%;
	padding-top: 20px;
}
#content-top {
	text-align:center;
	max-width: 760px;
	margin: 0 auto;
	margin-top: 40px;
	margin-bottom: 30px;
	font-size: 1.3rem;
	font-weight: bold;
}

#content {  
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	/*height: 100%;*/
}
#content-left {
	background: #FFF;
	border: 1px solid #D4DEEB;
	padding: 30px;
	max-width: 380px;
	min-width: 320px;
	margin: 10px;
	min-height: 450px;
}
#content-left h1 { font-size: 1.1rem; color: #000; font-weight: normal; margin-bottom:30px; }
.contentNameField { font-size: .85rem; color: #8794A5; margin: 15px 0 5px 0; }
@-webkit-keyframes autofill {
  to {
    color: inherit;
    background: transparent;
  }
}
input:-webkit-autofill {
  -webkit-animation-name: autofill;
  -webkit-animation-fill-mode: both;
}
input[type="text"], 
input[type="password"] {
	width: 100%;
	padding: 5px 20px;
	font-size: 13px;
	color: #000;
	background-color: #ffffff !important;
	border: 1px solid #D4DEEB;
	border-radius: 3px;
	box-sizing: border-box;
}
select {
	width: 100%;
	padding: 5px 20px;
	font-size: 13px;
	color: #000;
	border: 1px solid #D4DEEB;
	border-radius: 3px;
	box-sizing: border-box;
	background-color: #FFF;
}

#content-right {
	background-color: #FFF;
	padding: 0;
	width: 385px;
	max-width: 440px;
	margin: 10px;
}
#content-rightTop {
	/*background-color: #EFF3F8;*/
	border: 1px solid #EFF3F8;
	margin-bottom: 20px;
	min-height: 235px;
}
#logoSamoware {
	margin-top: 75px;
    margin-bottom: 20px;
	width: 252px;
	height: 60px;
	background-size: cover;
}
#versionOfSamoware { font-size: .8rem; color: #FFF; margin-top: -20px; margin-bottom: 44px; margin-left: 120px; text-align: left; }
#content-rightBottom {
	background-color: #FFF;
	border: 1px solid #D4DEEB;
	padding: 30px 20px;
	min-height: 225px;
}

#footer {
	grid-area: footer;
	color: #8794A5; font-size: 14px; text-align: center;
	padding-top: 10px;
}

@media only screen and (max-width:400px){
	.logo { padding: 7px 0 0 8px; width: 150px; height: 28px; }
	.lang { padding-right: 5px; }
	.right { padding-right: 2px; padding-top: 13px; }
	.rightGlobe { padding-top: 13px; }
	.right select { width: 100%; }
	#content-top { font-size: 1.1rem; }
	#content-left { padding: 20px; max-width: 320px;min-width: 300px; min-height: 250px; }
	#content-right { width: 340px; }
	#content-left h1 { font-size: 1rem; }
	#versionOfSamoware { margin-left: 106px; }
	#content-rightTop { background-position: -40px 0px; }
	#logoSamoware { width: 200px; height: 48px; margin-left: 48px; margin-top: 55px; }
	#content-rightTop { min-height: 200px; }
	#content-rightBottom { min-height: 75px; }
}
