/**
 * @author Attila Jenei
 * @link http://www.attilajenei.com
 * @copyright 2014 Attila Jenei
 */

@CHARSET "UTF-8";

html {
	overflow: auto;
}

body, 
html {
	height: 100%;
	-webkit-text-size-adjust: none;
}

body, input, textarea {
    font-family: "Lucida Grande", helvetica;
    font-size: 14px;
    color: #444;
}

body {
	background: url(../../images/main-bg.png) repeat-x #f7f5f1;	
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
	margin-top: 0;
}

p + p {
	margin-top: 10px;
}

button {
	font-family: "Lucida Grande", helvetica;
	background: url(../../images/button-bg.png) repeat-x #ffc409;
	border-radius: 4px;
	color: #fff;
	font-weight: bold;
	text-transform:uppercase;
	
	padding: 16px 20px;
	margin: 6px 8px;
}

button:hover {
	box-shadow: 0px 1px 1px rgba(0,0,0,0.2);
}

button[disabled] {
	color: 888;
	opacity: 0.75;	
}

button[disabled]:hover {
	box-shadow: none;
}

.Main #main-header {
	display: none;
}

.Main.Index.Middle #main-header {
    display: block;
	width: 90%;
	height: auto;
	margin: 10% auto 30px auto;
}
	.Main.Index.Middle #main-header img {
		max-width:100%;
		height: auto;
		display: block;
		margin: 0 auto;
	}

table {
	border-collapse: collapse;
}

table th {
	font-weight: bold;
	text-align: left;
}

.Description table, .SimplePage table {
	display: table;
	border-collapse: collapse;
	border: 1px solid #ccc;
}

.SimplePage table {
	width: 100%;
}

.Description table th, .SimplePage table th {
	font-weight: bold;
	text-align: left;
}

.Description table td, .SimplePage table td {
	padding: 5px;
	border: 1px solid #ccc;
}

a {
	color: #c00;
}

a:hover {
	color: #800;
}

.Left {
	float: left;
}

.Right {
	float: right;
}

.ClearBoth {
	clear: both;
}

.Popup {
	background: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	
	position: absolute;
	padding: 10px 16px;

	color: #666;
	line-height: normal;
	
	display: none;
	z-index: 10;	
}

.Popup > .Arrow {
	position: absolute;	
	width: 20px;
	height: 10px;
	top: -10px;
	left: 50%;
	overflow: hidden;
}

.Popup > .Arrow:after {
	content: "";
	border: 1px solid #ccc;
	background: #fff;
	box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
	
	position: absolute;
	width: 10px;
	height: 10px;
	margin-left: -5px;
	margin-top: -5px;
	left: 50%;
	top: 100%;
	
	-webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

#page {
	width: 100%;
	min-height: 100%;
	margin-bottom: -41px;
	position: relative;
}

#header {
	background: #f4f4f4;
	line-height: 50px;
	
	color: #ccc;
	padding: 0 20px;
	border-bottom: 1px solid #ddd;
}

#header .Button {
	cursor: pointer;
	
	color: #888;
	font-weight: bold;
	text-decoration: none;
}

#header .Button:active {
	color: #777;
}

#logo {
	font-size: 20px;
}

#logo a {
	font-family: 'Open Sans Condensed', sans-serif;
	color: #48c;
	font-size: 22px;
	text-decoration: none;
	text-transform:uppercase;
}

#account .Name {
	position: relative;
}

#account .Popup {
	margin-top: -3px;
	right: 0;
	min-width: 180px;
	
	line-height: 150%;
}

#account .Popup > .Arrow {
	left: auto;
	right: 20%;
}

#account .Popup .Name {
	font-weight: bold;
	color: #444;
}

#account .Popup .Logout {
	margin-top: 10px;
}

#account .Menu {
	border-top: 1px solid #e4e4e4;
	border-bottom: 1px solid #e4e4e4;
	margin: 10px 0;
	padding: 10px 0;
	line-height: 150%;	
}

#account .Menu li {
}

#account .Logout a {
	color: #444;	
}

#pageBody {
	width: 100%;
	clear: both;
}

#pageContent {
	padding: 16px;
	min-height: 240px;
}

	.SimplePage {
		width: 70%;
		margin: 0 auto;
		line-height: 24px;
		text-align: left;
	}

#footerPadding {
	clear: both;
	padding-bottom: 45px;
}

#footer {
	position: relative;
	z-index: 1;
	line-height: 40px;
	font-size: 12px;
}

#footer > div {
	background: #f4f4f4;
	border-top: 1px solid #ddd;
	height: 40px;
	padding: 0 20px;
}

#footer .Left a:nth-child(n + 2) {
	padding-left: 30px;
}

#footer .Right a:nth-child(n + 2) {
	padding-left: 30px;
}

#headerShops {
	text-align: center;
}

#headerShops .Popup {
	margin: -3px auto 0;
	width: 500px;
	left: 0;
	right: 0;
	max-width: 88%;

	font-size: 12px;
	text-align: left;
}

#headerShops a {
	color: #c00000;
	font-weight: normal;
}

#headerShops button {
	line-height: normal;
}

#headerShops a:hover {
	text-decoration: underline;
}

#headerShops button {
	margin: 0;
	padding: 0;
	color: #c00000;
	box-shadow: none;
	background: #fff;
	font-weight: normal;
	cursor: pointer;
}

#headerShops .Description {
	padding: 10px 0;
	text-align: center;
	color: #aaa;
}

#headerShops .Item {
	background: #fff;
	padding: 3px 0;
	overflow: hidden;
}

#headerShops .Item .Name {
	width: 100px;
	display: inline-block;	
}

#headerShops .Item button {
	float: right;
}

#headerShops .Bottom {
	border-top: 1px solid #eee;
	margin-top: 10px;
	padding-top: 10px;
	display: block;
	text-align: center;
}

#headerShops .Bottom button:disabled {
	opacity: 0.3;
	color: #444;
	cursor: default;
}
