/**
 * @file
 * Positioning for a fixed-width, desktop-centric layout.
 *
 * Define CSS classes to create a table-free, 3-column, 2-column, or single
 * column layout depending on whether blocks are enabled in the left or right
 * columns.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */

/**
 * Center the page.
 *
 * If you want to make the page a fixed width and centered in the viewport,
 * this is the standards-compliant way to do that.
 */
#page,
.region-bottom {
  margin-left: auto;
  margin-right: auto;
  width: 1120px;
}

/* Apply the shared properties of grid items in a single, efficient ruleset. */
#header,
#navigation,
#footer {
  padding-left: 10px;
  padding-right: 10px;
  border-left: 0 !important;
  border-right: 0 !important;
  word-wrap: break-word;
  *behavior: url("/path/to/boxsizing.htc");
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}

/* Containers for grid items and flow items. */
#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
#header:before,
#header:after,
#main:before,
#main:after,
#footer:before,
#footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}

/* Navigation bar */
#main {
  /* Move all the children of #main down to make room. */
  padding-top: 3em;
  position: relative;
}
#navigation {
  /* Move the navbar up inside #main's padding. */
  position: absolute;
  top: 0;
  height: 3em;
  width: 960px;
  display: none;
}

/**
 * The layout when there is only one sidebar, the left one.
 */

/* Span 4 columns, starting in 2nd column from left. */
.sidebar-first #content {
  float: left;
  width: 764px;
  margin-left: 196px;
  margin-right: -980px;
}

/* Span 1 column, starting in 1st column from left. */
.sidebar-first .region-sidebar-first {
  float: left;
  width: 176px;
  margin-left: 0px;
  margin-right: -196px;
}

/**
 * The layout when there is only one sidebar, the right one.
 */

/* Span 4 columns, starting in 1st column from left. */
.sidebar-second #content {
  float: left;
  width: 1020px;
}

/* Span 1 column, starting in 5th column from left. */
.sidebar-second .region-sidebar-second {
  float: right;
  width: 80px;
}

/**
 * The layout when there are two sidebars.
 */

/* Span 3 columns, starting in 2nd column from left. */
.two-sidebars #content {
  float: left;
  width: 800px;
  margin-left: 220px;
  margin-right: -1020px;
}

/* Span 1 column, starting in 1st column from left. */
.two-sidebars .region-sidebar-first {
  float: left;
  width: 220px;
}

/* Span 1 column, starting in 5th column from left. */
.two-sidebars .region-sidebar-second {
  float: right;
  width: 80px;
}

#main {
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

div.region-header {
    float: right;
    height: 120px;
    width: 400px;
}

#block-search-form {
    float: right;
    margin-top: 16px;
}
#block-search-form .form-text {
	background: none repeat scroll 0 0 rgba(255, 255, 255, 0.1);
	border: medium none;
	color: rgba(255, 255, 255, 0.3);
	font-size: 16px;
	height: 28px;
	padding-left: 4px;
	width: 200px;
}
#block-search-form .form-text:focus,
#block-search-form .form-text:hover {
	background: none repeat scroll 0 0 rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.6);
}

#block-search-form .form-submit {
    background: url('/sites/default/files/images/search.png') center 2px no-repeat;
    border: 0 none;
    cursor: pointer;
    display: inline-block;
    font-size: 0;
    height: 40px;
    padding: 0;
    width: 32px;
}

#block-user-login-background {
	/*background: none repeat scroll 0 0 rgba(0, 0, 0, 0.4);*/
	display: none;
	position: absolute;
	z-index: 999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
#block-user-login {
	background: none repeat scroll 0 0 rgba(0, 0, 0, 0.8);
	border: 2px solid #000000;
	display: block;
	height: 190px;
	left: calc(50% - 160px);
	padding: 10px;
	position: absolute;
	top: calc(50% - 105px);
	width: 300px;
	z-index: 1000;
}
#block-user-login h2 {
	font-size: 15px;
	line-height: 1em;
	margin: 0;
	padding: 0;
}
#block-user-login .form-item {
	margin: 0;
	margin-top: 10px;
}
#block-user-login label {
	display: inline-block;
	font-weight: bold;
	text-align: right;
	width: 50%;
	font-weight: normal;
}
#block-user-login input[type="text"],
#block-user-login input[type="password"] {
	display: inline-block;
	line-height: normal;
	width: calc(50% - 5px);
}
#block-user-login #edit-submit--2,
#block-user-login #edit-submit,
#block-user-login #user-login-cancel {
	background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	color: #FFFFFF;
	height: 24px;
	width: 80px;
	float: right;
	font-size: 11px;
}
#block-user-login #edit-submit--2,
#block-user-login #edit-submit {
	position: absolute;
	right: 100px;
}
#block-user-login #user-login-cancel {
	position: absolute;
	right: 10px;
}
#block-user-login ul {
	font-size: 13px;
	margin-left: calc(50% + 10px);
	list-style: none;
}
#block-user-login ul a {
	color: #fff;
}

#user-login-link {
	float: right;
	cursor: pointer;
}
#user-login-link #text {
	margin-left: 5px;
	display: inline-block;
	font-size: 12px;
	vertical-align: top;
}
#user-login-link img {
	margin-top: 4px;
}
#user-login-link a {
	color: #fff;
}
