/* General */
body {
	font-family: 'Droid Sans', 'Verdana', 'Arial', sans-serif;
	font-size: 14px;
	color: #ccc;
	background: #555; /*url('images/logo.png') top center no-repeat;*/
}

html, body, ul, li {
	padding: 0;
	margin: 0;
}

li { list-style: none; }

a {
	text-decoration: none;
	color: #00aeef;
}

a.arrow { margin-right: 10px; }

h1, h2 {
	clear: both;
	position: relative;
	left: -35px;
	width: 400px;
	height: 40px;
	padding: 14px 0 0 0;
	margin: 0 0 15px;
    overflow: visible;
	background: transparent url('images/title_bg.png') left top no-repeat;
}

h1 > div, h2 > div {
    float: left;
    height: 20px;
    margin: 0;
    padding: 10px 30px;
    line-height: 20px;
	font-size: 16px;
	font-weight: normal;
	color: #fff;
    background-color: #00aeef;
    white-space: nowrap;
}

p {
	margin: 15px 0;
}

.errortext {
    color: red;
}

div.hovercontent {
	display: none;
	position: absolute;
	left: 3em;
	top: 2em;
	padding: 5px;
	background: #333;
	border: 1px solid #666;
	white-space: nowrap;
	z-index: 100;
}
.hover { position: relative; }
.hover:hover div.hovercontent { display: block; }
div.hovercontent.right {
	left: auto;
	right: 3em;
}

/* Layout */

div#wrapper {
	width: 900px;
	margin: 0 auto;
}

div#logo {
	width: 100%;
	height: 130px;
	background: transparent url('images/logo.png') center top no-repeat;
}

ul#navigation {
	float: left;
	margin: 0 0 15px 23px;
}
ul#navigation > li {
	position: relative;
	float: left;
	border-left: 1px solid #bbb;
	background-color: #00aeef;
}
ul#navigation > li:first-child { border-left: 0; }
ul#navigation a {
	display: block;
	width: 170px;
	height: 20px;
	padding: 15px 0;
	color: white;
	font-size: 16px;
	line-height: 20px;
	text-align: center;	
}
ul#navigation > li.active { background-color: #333; }
ul#navigation > li.active > div.arrow {
	position: absolute;
	width: 170px;
	height: 15px;
	left: 0;
	bottom: -15px;
	background: transparent url('images/nav_active.png') center top no-repeat;
}

div#content {
	position: relative;
	clear: both;
	float: left;
	width: 860px;
    min-height: 300px;
	padding: 15px 20px;
	margin: 0 0 25px;
	border: 1px solid #666;
	background: #333 url('images/content_bg.png') top center no-repeat;
}

div#content p, ul.list {
	margin: 15px;
	padding: 0;
}
ul.list li {
	margin-left: 30px;
	list-style-type: disc;
}

ul#subnav {
	position: absolute;
	right: 20px;
	top: 30px;
	height: 39px;
	margin: 0 0 15px;
	border: 1px solid #597580;
	background: #333;
}
ul#subnav > li {
	float: left;
	border-right: 1px solid #597580;
}
ul#subnav > li:last-child { border: 0; }
ul#subnav a {
	display: block;
	width: 39px;
	height: 19px;
	text-align: center;
	line-height: 19px;
	font-size: 19px;
	padding: 10px 0;
}
ul#subnav a.back { background: transparent url('images/back_icon.png') center no-repeat; }
ul#subnav a.info { background: transparent url('images/info_icon.png') center no-repeat; }
ul#subnav a.ranking { background: transparent url('images/ranking_icon.png') center no-repeat; }
ul#subnav a.report { background: transparent url('images/report_icon.png') center no-repeat; }

/* General */

div.side-info {
	float: right;
	width: 260px;
	padding: 15px;
	margin: 15px 0;
	border: 1px solid #aaa;
}

/* Tables */

table.list {
	border-collapse: collapse;
	border-spacing: 0;
	margin: 15px 0;
	width: 100%
}
table.list td, table.list th {
	border-bottom: 1px solid #597580;
	padding: 5px 10px;
	vertical-align: middle;
}
table.list th {
	font-weight: normal;
	text-align: center;
}
table.list tr:last-child td, table.list tr:last-child th { border-bottom: 0; }
table.list tr:nth-child(even) { background-color: #2D2D2D; }

td.number { text-align: right; }

/* News */

p.news-footer {
	font-size: 12px;
}

/* Events */

a.event {
    display: block;
    margin: 15px 40px;
    padding: 15px;
    height: 51px;
    border: 1px solid #666;
    color: white;
    background-color: #00aeef;
    background-position: top right;
    background-repeat: no-repeat;
}

a.event span.title { font-size: 30px; }
div.event span.date { font-size: 16px; }

table.ffa-ranking {
	float: left;
	width: 460px;
	margin-top: 0;	
}
table.ffa-ranking td { text-align: center; }
table.ffa-ranking td.name { text-align: left; }

table.ffa-games {
	float: right;
	width: 380px;
	margin-top: 0;
}
table.ffa-games td.matches { text-align: center; }

table.ffa-pbyopp td, table.ffa-pbygame td { vertical-align: top; }
table.ffa-pbyopp td:nth-child(2) { text-align: center; }

table.ffa-pbyopp th, table.ffa-pbygame th {
	font-weight: normal;
	text-align: left;
	padding-left: 25px;
}
table.ffa-pbyopp a.game, table.ffa-pbygame a.player { color: #ccc; }
table.ffa-pbyopp a.game:hover, table.ffa-pbygame a.player:hover { color: #00aeef; }

table.ffa-game { text-align: center; }
table.ffa-game td:nth-child(2) { text-align: left; }

/* Starcraft II */
div.schedule {
	float: left;
	width: 350px;
	padding: 10px;
	margin: 5px 20px 15px;
	text-align: center;
	background-color: #333;
	border: 1px solid #555;
}
div.schedule img {
	vertical-align: middle;
	margin: 0 5px;
}
div.schedule.map img {
	margin: 10px 0 5px;
}
div.schedule span { margin: 0 5px; }

div.rounds {
	width: 700px;
	margin: 10px 50px 10px;
	padding: 10px;
	border: 1px solid #555;
	background-color: #333;
	text-align: center;
}
div.rounds a { margin: 0 5px; }
div.rounds a.active {
	font-weight: bold;
	color: #ccc;
}

table.sc2-ranking td:nth-child(n+4) { text-align: center; }

ul.map-pool li { position: relative; }
ul.map-pool li span {
	position: absolute;
	left: 200px;
}

/* Players */

table.players th {
	font-weight: normal;
	text-align: left;
	padding-left: 25px;
}

table.players td > div { line-height: 25px; }

div.progress {
	float: left;
	width: 30px;
	height: 25px;
	line-height: 25px;
}
div.progress.full {
	text-align: right;
	background: transparent url('images/progress.png') 35px top no-repeat;
}
div.progress.empty {
	text-align: left;
	background: transparent url('images/progress.png') bottom no-repeat;
}
div.hovercontent.progressbar {
	width: 238px;
}
div.hovercontent.progressbar > div.badge-mini {
	margin: 0;
}

/* Achievments */

div.achievement-block {
	clear: both;
	float: left;
	margin: 0 0 15px;
	padding: 0 10px;
}

div.achievement {
	float: left;
	width: 100px;
	height: 100px;
	margin: 10px;
	background-position: center;
	background-repeat: no-repeat;
}

div.achievement a.lock {
	position: absolute;
	display: block;
	right: 0;
	bottom: 0;
	width: 10px;
	height: 10px;
	padding: 2px;
	font-size: 10px;
	line-height: 10px;
	color: white;
	text-align: center;
	background-color: #00aeef;
}

div.label {
	clear: both;
	border-bottom: 1px solid #00aeef;
	margin: 10px;
}

div.label div, div.label a {
	display: block;
	height: 17px;
	background: transparent url('images/label.png') top left no-repeat;
	color: white;
	text-decoration: none;
	padding: 2px 20px 1px;
	margin-left: 30px;
}

/* Admin */

table.admin-login { width: auto; }
td.error {
	text-align: center;
	color: red;
}

/* Badges */
div.badge-mini {
	float: left;
	width: 24px;
	height: 25px;
	margin: 0 10px;
	background-image: url('images/badges_mini.png');
	background-repeat: no-repeat;
}
div.badge-large {
	float: left;
	width: 100px;
	height: 100px;
	background-image: url('images/badges_large.png');
	background-repeat: no-repeat;
}
div.badge-mini.badge-0 { background-image: url('images/badges_none_mini.png'); }
div.badge-large.badge-0 { background-image: url('images/badges_none_large.png'); }
div.badge-1 { background-position: 0% 0%; }
div.badge-2 { background-position: 0% 33.33%; }
div.badge-3 { background-position: 0% 66.67%; }
div.badge-4 { background-position: 0% 100%; }
div.badge-5 { background-position: 16.67% 0%; }
div.badge-6 { background-position: 16.67% 66.67%; }
div.badge-7 { background-position: 16.67% 100%; }
div.badge-8 { background-position: 33.33% 0%; }
div.badge-9 { background-position: 33.33% 66.67%; }
div.badge-10 { background-position: 33.33% 100%; }
div.badge-11 { background-position: 50% 0%; }
div.badge-12 { background-position: 50% 66.67%; }
div.badge-13 { background-position: 50% 100%; }
div.badge-14 { background-position: 66.67% 0%; }
div.badge-15 { background-position: 66.67% 66.67%; }
div.badge-16 { background-position: 66.67% 100%; }
div.badge-17 { background-position: 83.33% 0%; }
div.badge-18 { background-position: 83.33% 66.67%; }
div.badge-19 { background-position: 83.33% 100%; }
div.badge-20 { background-position: 100% 33.33%; }
div.badge-21 { background-position: 100% 66.67%; }
div.badge-22 { background-position: 100% 100%; }

/* Admin */

input#aDescription {
	width: 607px;
}