/* CSS Reset by Eric Meyer ====================================================================== */
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;
}

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;
}

/* Other reset rules by HTML5Boilerplate ======================================================== */
html {
  overflow-y: scroll;
}

label, button, input[type="button"], input[type="reset"], input[type="submit"] {
  cursor: pointer;
}

/* Some useful classes ========================================================================== */
.clearfix:before, .clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

/* Basic colors and typography ================================================================== */
body {
  background-color: #4B7399;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
  color: #333;
  background: #123 url('/images/bg_body.png') top left repeat-x;
  border-top: 4px solid #003;
}

button, input, select, textarea {
  font-family: Helvetica, Arial, sans-serif;
  color: #222;
}

a:link, a:visited {
  text-decoration: none;
  color: #36C;
}

a:hover, a:active {
  text-decoration: underline;
}

/* Rules about the container ==================================================================== */
#container {
  width: 1170px; /* 980px; */
  margin: 60px auto;
  background-color: #FFF;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Rules about the header ======================================================================= */
#header {
  padding: 20px 20px 15px;
  border-bottom: 1px solid #E4E4E8;
}

#brand {
  float: left;
  display: inline;
}

#brand h1 {
  display: block;
  width: 370px;
  height: 68px;
  padding-bottom: 2px;
  text-indent: -9999px;
  background: url('/images/medisyn_logo_1.png') top left no-repeat;
}

#user {
  float: right;
  display: inline;
}

#user ul {
  float: left;
  display: inline;
}

#user ul li {
  float: left;
  display: inline;
  margin-left: 5px;
}

#user ul li a {
  display: block;
  padding: 2px 10px;
  font-weight: bold;
  background-color: #E5E5E5;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  -moz-transition: 0.4s all;
  -webkit-transition: 0.4s all;
  transition: 0.4s all;
}

#user ul li a:hover {
  text-decoration: none;
  color: #FFF;
  background-color: #123;
}

/* Rules about the main content area ============================================================ */
#main {
  text-align: center;
  background-color: #F4F4F8;
}

#main h2 {
  padding: 10px 20px;
  font-size: 18px;
  font-weight: normal;
  border-bottom: 1px solid #E4E4E8;
  text-align: left;
}

/* Rules about the devise views ================================================================= */
#devise .inputs {
  padding: 20px 240px 0;
}

#devise .input {
  margin-bottom: 10px;
}

#devise label {
  display: block;
  padding: 2px 0;
  font-weight: bold;
  text-align: left;
}

#devise .text input {
  width: 100%;
}

#devise .actions {
  padding: 10px 240px 30px;
}

#devise .actions .submit {
  float: left;
  display: inline;
}

#devise_footer {
  float: left;
  display: inline;
  margin-left: 10px;
  padding-top: 10px;
}

/* Rules about form error messages ============================================================== */
#errorExplanation {
  padding: 10px 20px;
  background-color: #FFC;
  border-bottom: 1px solid #E4E4E8;
}

#errorExplanation h2 {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: bold;
  border: none;
}

#errorExplanation p {
  display: none;
}

#devise .fieldWithErrors input {
  background-color: #FFE8E8;
}

/* Rules about the buttonlink list ============================================================== */
#button_links {
  display: inline-block;
  padding: 20px 2px 20px 16px;
}

#button_links li {
  float: left;
  display: inline;
  width: 176px;
  margin-right: 14px;
}

#button_links li a {
  display: block;
  height: 130px;
  padding: 160px 10px 10px;
  background-color: #FFF;
  background-position: 50% 16px;
  background-repeat: no-repeat;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -moz-box-shadow: 0 0 1px rgba(0,0,0,0.4);
  -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.4);
  box-shadow: 0 0 1px rgba(0,0,0,0.4);
  -moz-transition: 0.4s all;
  -webkit-transition: 0.4s all;
  transition: 0.4s all;
}

.no-boxshadow #button_links li a {
  padding: 158px 9px 9px;
  border: 1px solid #E4E4E8;
}

#button_links li.corporate a {
  background-image: url('/images/icon_corporate.jpg');
}

#button_links li.online a {
  background-image: url('/images/icon_online.jpg');
}

#button_links li.webmail a {
  background-image: url('/images/icon_webmail.jpg');
}

#button_links li.forum a {
  background-image: url('/images/icon_forum.png');
}

#button_links li.biodev a {
  background-image: url('/images/icon_qc.jpg');
}

#button_links li.eqa a {
  background-image: url('/images/eqa_silver.png');
}


#button_links li a:hover {
  text-decoration: none;
  -moz-box-shadow: 0 0 3px rgba(0,0,128,0.7);
  -webkit-box-shadow: 0 0 3px rgba(0,0,128,0.7);
  box-shadow: 0 0 3px rgba(0,0,128,0.7);
}

.no-boxshadow #button_links li a:hover {
  border-color: #4488B9;
}

#button_links li a h2 {
  margin-bottom: 5px;
  padding: 0;
  text-align: center;
  border: none;
}

#button_links li a p {
  text-align: center;
  color: #888;
}

#button_links li.eqa a p {
  /* font-size: 12px; */
  line-height: 16px;
}

/* Rules about the footer ======================================================================= */
#footer {
  padding: 10px 20px 20px;
  font-size: 11px;
  color: #888;
  border-top: 1px solid #E4E4E8;
}

#footer .geny a {
  display: inline-block;
  padding-right: 14px;
  background: url('/images/gen-y.jpg') 100% 50% no-repeat;
}

/* Rules about flash messages =================================================================== */
.flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 7px 0;
  font-weight: bold;
  text-align: center;
  color: #330;
  text-shadow: 0 1px 1px rgba(255,255,255,0.2);
  background-color: #FFC;
  border-bottom: 1px solid #330;
}
