html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
body { line-height: 1; }
nav ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
a { margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
ins { background-color: #ff9; color: #000; text-decoration: none; }
mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
table { border-collapse: collapse; border-spacing: 0; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #cccccc; margin: 1em 0; padding: 0; }
input, select { vertical-align: middle; }
body { font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1.4em; background: #eee; }

#container { width: 960px; margin: 0 auto; margin-top: 50px; 
  -webkit-box-shadow: 0 0 8px 0 #000;
  box-shadow: 0 0 8px 0 #000;
}

@media only screen and (max-width: 960px) { 
  #container { width: 100%; }
  #content { -webkit-border-bottom-right-radius: 0px; -webkit-border-bottom-left-radius: 0px; -moz-border-radius-bottomright: 0px; -moz-border-radius-bottomleft: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; } 
}

body {
  background: #001E2B; /* Old browsers */
  background-image: url('../images/bg.gif');
  background: #F2F2F2;
}

a:link, a:visited {
  color: #257bb2;
}

a:hover {
  color: #a0b757;
}

p {
  margin-bottom: 5px;
}

header {
  overflow: hidden;
  /* padding: 40px 0 20px; background-image: url('/images/banner.gif');*/
  height: auto;
  background:#27458b;
  
  border:solid 1px #27458b;
  border-bottom:none;
}

#logo {
  display: block;
  width: 500px;
  height: 80px;
  background: url(../images/apereo-logo.png) no-repeat;
  text-indent: -999em;
  float: left;
}

#content {
  align-content: center;
  overflow: hidden;
  background: #fff;
  padding: 20px;
  /*
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  -webkit-box-shadow: 0 0 8px 0 rgba(0,0,0,0.15);
  box-shadow: 0 0 8px 0 rgba(0,0,0,0.15);
  */
   border:solid 1px #27458b;
}

#msg {
  padding: 20px;
  margin-bottom: 40px;
}

#msg.errors {
  border: 1px dotted #BB0000; 
  color: #BB0000; 
  padding-left: 100px; 
  background: url(../../../images/error.png) no-repeat 20px center;
}

#msg.success { border: 1px dotted #390; color: #390; padding-left: 100px; background: url(../../../images/success.png) no-repeat 20px center; }
#msg.info { border: 1px dotted #008; color: #008; padding-left: 100px; background: url(../../../images/info.png) no-repeat 20px center; }
#msg.question { border: 1px dotted #390; color: #390; padding-left: 100px; background: url(../../../images/question.png) no-repeat 20px center; }
#msg.warn { border: 1px dotted #960; color: #960; padding-left: 100px; background: #ffbc8f url(../../../images/info.png) no-repeat 20px center; }

#login {
	width: 340px;
	margin: auto;
  /*  
  float: left;
  margin-right: 20px;
  */	  
}

#login h2 {
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  font-size: 1.4em;
  margin-bottom: 20px;
}

#login .row {
  padding: 10px 0;
}

#login label {
  display: block;
  margin-bottom: 2px;
}

#login .check label {
  display: inline;
}

#login input[type=text], #login input[type=password] {
  font-size: 1.4em;
  padding: 5px;
  width: 320px;
  border: solid 1px gray;
}

#login .btn-submit {
  background: #233A53;
  border: 0;
  padding: 10px 20px;
  font-weight: bold;
  color: white;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

#login .btn-reset {
  background: #eee;
  padding: 10px 20px;
  border: 0;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

#login .btn-submit:hover, #login .btn-reset:hover {
  cursor: pointer;
}

#login .btn-submit:hover {
  background: #30bfbf;
}

#login .btn-reset:hover {
  background: #d4d4d4;
}

#sidebar {
  width: auto;
  height: 100%;
  text-align: center;
}

#sidebar-content {
  padding-left: 20px;
}

#list-languages h3 {
  margin-bottom: 1.4em;
}

#list-languages ul li {
  list-style: none;
  display: inline-block;
  margin-right: 2em;
}

footer {
  padding: 5px;
  color:#ffffff;
  text-align: center;
  background: #27458b;
  position: relative
}
footer .TinNhiemMang {
	position: absolute; top: 10px; right: 10px;
	max-width: 180px;
}
footer .TinNhiemMang img {max-width: 100%}
footer a:link, footer a:visited {
  color:#40B3FF;
}

@media only screen and (max-width: 960px) { 
  header { padding: 20px; }
  #container { width: 100%; }
  #content { 
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
  } 
}

@media only screen and (max-width: 799px) { 
  header { padding: 0px;}
  #logo { width: 156px; height: 32px; background-size: 156px 32px; margin-right: 20px; }
  #login { float: none; width: 100%; }
  #fm1 .row input[type=text], 
  #fm1 .row input[type=password] { width: 100%; padding: 10px; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; }
  #fm1 .row .btn-submit { outline: none; -webkit-appearance: none; -webkit-border-radius: 0; border: 0; background: #2aa4a5; color: white; font-weight: bold; width: 100%; padding: 10px 20px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
  #fm1 .row .btn-reset { display: none; }
  #sidebar { margin-top: 20px; }
  #sidebar .sidebar-content { padding: 0; }
  footer .TinNhiemMang {
	  position: relative;
	  padding: 10px;
	  width: 100%;
	  display: inline-block;
	  text-align: center;
  }
  footer .TinNhiemMang img, footer .TinNhiemMang a {
	  margin: 0 auto; display: block
  }
}

/* custom */
.link-item {width:96px; float:left;border:solid 1px white;}
.link-item:hover {width:96px; float:none;border:solid 1px #001E2B;}

.logo {float:left; height:80px; width:80px;}
.cont-header {height:80px;}
.cont-header .main-title{letter-spacing: 3px; color: white; font-size:28px; margin:10px;}
.cont-header .sub-title{color:white; font-family: Segoe UI Light; font-size:18px; margin-top:1em;}
#list-links {
    text-align: center;
}
.link-item {width:96px; height:96px; padding:7px; z-index: 1024; border:none; float: none; display: inline-block}
.link-item img{width:80px; transition: all 0.2s ease; position:relative;}
.link-item:hover{border:none;}
.link-item:hover img {transform: scale(1.1); position:relative;}

.btn-row{text-align: center;}
img.banner {
    width: 100%;
    display: block;
}