/**

todo: 
  * #content sollte auf breite skalieren
  * .post .post-content sollte skalieren & floaten (sodass es wie eine table ausschaut

**/

html, body {
  margin: 0;
  padding: 0;
  background-color: white;
}


/* LAYOUT */
body {
  padding: 20px;
  min-width: 640px;
}

#website-wrapper {
  /* width: 1100px; 
  margin-left: auto;
  margin-right: auto; */
}

#sidebar {
	position: absolute;
	top: 20px;
	left: 20px;
}

#content {
	margin-left: 220px;
}

#footer {
  text-align: left;
  font-size: 10px;
  padding-top: 0px;
  color: #959595;
}




body, td, th, input, textarea { /* redundant rules for bad browsers  */
	font-family: "Lucida Grande", Arial, Verdana, sans-serif;
  font-size: 12px;
  background-color: white;
  color: #555555;
}

h1, h2, h3, h4, h5, h6 {
	margin: 1em 0 0.4em 0;
	border-bottom: 1px solid #ccc;
}
li h1, li h2, li h3, li h4, li h5, li h6 {
	border: none;
}

#header h1 { border: 0; }

.random-message {
  margin-left: 4px;
}

h1 { font-size: 150%; font-weight: bold; margin-bottom: 0.2em}
h1.title {
    font-size: 200%;
}
h2 { font-size: 150%; font-weight: bold; }
h3 { font-size: 115%; /*margin: 0;*/}
h4 { font-size: 100%; }
h5 { font-size: 90%; }
h6 { font-size: 90%; border: 0; }



#header a:hover .green, .sticky-topic {
 color: #99cc00;
}

.grey {
 color: #ccc;
}

h1.title .grey {
 color: #555555;
}

a:hover .grey {
 color: white;
}

a {
  color: #2277dd;
  text-decoration: none;
}

a:hover {
  color: white;
  background-color: #2277dd;
  text-decoration: none;
}


.green {
    color: #99cc00; /*#bef000*/
}

.blue {
    color: #2277dd;
}

a .green {
	color: #99cc00 !important;
}

a:hover .green {
	background-color: #99cc00 !important;
	color: white !important;
}


div#page {
  width: 747px;
  background-color: white;
  margin-top: 0px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

div.section {
  padding-left: 10px;
}


hr {
 border: none;
 border-top: 1px solid #cccccc;
 padding: 0;
 font-size: 1px;
 background-color: #eeeeee;
 height: 5px;
 height: 1px;
 margin: 0;
 margin-top: 1em;
 margin-bottom: 1em;
}

#header h1 {
 color: #2277dd;
}

p {
 padding: 0;
 margin: 0em 0 0.7em 0;
}


.messages {
	padding: 3px;
	border: 1px solid #28d524;
	border-left: 3px solid #28d524;
	color: #00cc00;
	background-color: #ddffc9;
	margin-bottom: 2px;
}
.messages-error {
	background-color: #ffffcc;
	border: 1px solid #ff6600;
	border-left: 3px solid #ff6600;
	color: #ff6600;
}

.messages-ajax-error {
	clear:both;
	margin-top: 5px;
	margin-left: 5px;
}


.messages ul {
 margin: 5px 0 0 0;
 padding: 0 0 0 25px;
}




input, textarea {
 border: 1px solid #ccc;
}

input:hover, input:focus, textarea:hover, textarea:focus {
 border-color: #555555;
}

input:active, textarea:active {
 border-color: black;
}


/* login field hardcore spielerein */

input.button {
  padding-left: 18px;
  background-repeat: no-repeat;
}

input.password, input.username {
  background-image: url('/images/default/key.png');
}


input.password:hover, input.password:focus {
  background-image: url('/images/default/key_go.png');
}

input.username:hover, input.username:focus {
  background-image: url('/images/default/user_go.png');
}
input.username {
  background-image: url('/images/default/user.png');
}

input.go {
  background-image: url('images/accept.png');
}

input.register {
  background-image: url('images/user_add.png');
}

input.mail {
  background-image: url('images/tag_blue.png');
}

input.mail:hover, input.mail:focus {
 background-image: url('images/tag_blue_add.png');
}

input.cancel {
  background-image: url('images/stop.png');
}

input.reply {
  background-image: url('images/comment_add.png');
}

input.wide {
  width: 100%;
}





/* post */
form.post {
 width: 400px;
}

textarea.post { 
 width: 100%;
 height: 200px; 
 margin-bottom: 3px;
}


div.content {
 margin-left: 20px;
}

.small {
  font-size: 80%;
}


a img {
  border: none;
  /* the blue line on the img bottom is caused by a:hover background-color. */
}



a:hover img.avatar {
  border-color: #2277dd;
}

td.message-left {
 width: 25px;
 vertical-align: top;
}

td.message-left div {
 height: 11px;
 width: 20px;
 background: transparent url('/images/default/messagebox-left.gif') no-repeat;
 position: relative;
 left: 9px;
 top: 29px;
}

.topic-post {
 border: 1px solid #ccc;
 vertical-align: top;
 padding: 3px 5px 3px 5px;
}

.topic-post pre {
    clear:both;
	padding: 3px;
	background-color: #eee;
	border: 1px solid #ccc;
	border-left: 3px solid #ccc;
}

img.smiley {
 vertical-align: text-bottom;
}

.medium {
 font-size: 90%;
}



blockquote {
    padding: 5px;
    clear: both;
    margin: 0 5px 0 5px !important;
    border: 1px solid #74a8f5;;
    background-color: #ecf3fe;
}

pre {
    white-space: normal;
    margin: 0 5px 0 5px !important;
    padding: 5px;
}

.reply_textarea {
 width: 100%; border: none; height: 240px;
}


.topic-title-form {
 display: inline;
}

.topic-title-form input {
 border: none;
 background-color: #ccc;
 font-size: 100%;
}

.topic {
  padding: 4px;
}

.even {
    background-color: #f7f7f7;
}

div.topic .title {
    font-weight: bold;
    font-size: 110%;
}

div.topic .topic-new, div.topic .topic-new * {
 background-color: /*#bef000*/ #99cc00;
 color: white !important;
}

div.topic .topic-new a:hover {
  color: white;
  background-color: #2277dd;
}

.new-post {
 background-color: #ddeeff;
}




.tags {
	font-size: 10px;
	color: #959595;
}

.tags a {
	color: #99cc00;
}

.tags a:hover {
	background-color: #99cc00;
	color: white;
}




/* SIDEBAR BOX */

.sidebar-box {
	margin-bottom: 10px;
	padding: 10px;
	width: 180px;
	font-size: 10px;
	color: #494949;
}

.sidebar-box h1 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 16px;
	font-weight: normal;
}

.sidebar-box a {
	background: none;
	color: #494949;
	text-decoration: underline;
}

.sidebar-box a:hover {
	background: none;
	color: #494949;
	text-decoration: none;
}

.light, .light a {
	color: #959595 !important;
}


.sidebar-box ul {
	margin: 0;
	padding: 0;
}

.sidebar-box ul li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-box hr {
	height: 1px;
	margin-top: 10px;
	margin-bottom: 10px;
	text-height: 1px;
	background: none;
	border: none;
	border-bottom: 1px dotted #494949;
}





/* BOX USER */

.sidebar-box-user {
	background-color: #d4dae5;
	border-right: 1px solid #c6cddc;
	border-bottom: 1px solid #c6cddc;
}

.sidebar-box-user .user-name a {
	font-weight: bold;
	color: #494949;
	font-size: 12px;
	text-decoration: none;
}

.sidebar-box-user .user-name a:hover {
	text-decoration: underline;
}

.sidebar-box-user .user-name a:hover {
	font-weight: bold;
	color: #494949;
	text-decoration: underline;
	background: none;
}


.sidebar-box-user .user-avatar {
    position: absolute;
    margin: 0; padding: 0; border: none;
}

.sidebar-box-user .user-info {
    margin-left: 36px;
    /* margin-top: 2px; */
}

.sidebar-box-user .user-actions {
	/* margin-top: -3px; */
	margin-left: 0px;
}

.sidebar-box-user .user-actions a {
	text-decoration: none;
}

.sidebar-box-user .user-actions a:hover {
	text-decoration: underline;
}

.sidebar-box-user .avatar {
	margin-right: 10px;
}

.sidebar-box-user .online-friends h2 {
	font-size: 10px;
	margin: 0;
	padding: 0;
	border: none;
	text-transform: uppercase;
	margin-top: 10px;
	margin-bottom: 3px;
}

.sidebar-box-user .online-friends a {
	text-decoration: none;
}

.sidebar-box-user .online-friends a:hover {
	text-decoration: underline;
}

.sidebar-box-user .online-friends a.friend {
	text-decoration: underline;
}

.sidebar-box-user .online-friends a.friend:hover {
	text-decoration: underline;
	background-color: #494949;
	color: white;
}



/* BOX NEW POSTS */

.sidebar-box-posts {
	background-color: #eeeeee;
	border-right: 1px solid #cccccc;
	border-bottom: 1px solid #cccccc;
}



/* BOX THREADS */

.sidebar-box-threads {
	background-color: #d6eb99;
	border-right: 1px solid #c2dd99;
	border-bottom: 1px solid #c2dd99;
}

.sidebar-box-threads .search input {
	border: 1px solid #bdbcae;
	font-size: 10px;
}

.sidebar-box-threads .search .input {
	background-color: white;
	width: 105px;
	float: left;
	margin-right: 5px;
}

.sidebar-box-threads .search .submit {
	background-color: #eeede0;
	float: left;
	width: 68px;
}

.sidebar-box-threads .search form {
	margin: 0;
	padding: 0;
}

/* BOX tags */
.sidebar-box-tags {
	/*
	border-color: #7bb8c7;
	background-color: #c6dad6;
	*/
	
	border-color: #98bd72;
	background-color: #cfdcba;
	
	/*
	border-color: #d1b85b;
	background-color: #e8e0be;
	*/
}

/* TOPIC TITLE */
.topic-title {
	border-bottom: 1px dotted #959595;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.topic-title h1 {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 18px;
	font-weight: bold;
}


/* POST */

.posts {
	margin-bottom: 10px;
}

.post {
	border-bottom: 1px solid #cccccc;
	padding-bottom: 10px;
	padding-top: 10px;
}

.posts > .post:first-child {
	padding-top: 0;
}

.post .user {
	float:left;
	width: 120px;
}

.post .user .user-avatar {
	float: right;
	margin-left: 5px;
}
	
.post .user .user-info {
	text-align: right;
}

.post .user ul.user-info {
	margin: 0;
	padding: 0;
}

.post .user ul.user-info li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.post .user .user-info .user-name a {
	color: #494949;
	font-size: 12px;
}

.post .user .user-info .user-name a:hover {
	color: #494949;
	text-decoration: underline;
	background: none;
}

.post .user .user-info .posted {
	font-size: 9px;
	color: #959595;
	/* margin-top: -2px; */
}

.post .post-content {
	margin-left: 140px;
}

/* reply */

.reply .left {
	float:left;
	width: 130px;
}

.reply .left h2 {
	font-size: 18px;
	font-weight: bold;
	color: #959595;
	margin: 0;
	margin-bottom: 10px;
	padding: 0;
	border: none;
}

.reply .left .smileys {
	border: 1px dotted #8a8a8a;
	background-color: #f4f4f4;
	padding: 2px;
}

.reply .right {
	margin-left: 140px;
}


/* SEARCH */
.search-result {
	margin-bottom: 10px;
	padding-bottom: 5px;
	border-bottom: 1px dotted #8a8a8a;
}

.search-result-info {
	margin-top: 5px;
	font-size: 11px;
}

.highlight {
  background-color: yellow;
}

/* LOGO */

a.logo {
  text-decoration: none;
}

.logo img {
  vertical-align: middle;
}

.logo:hover, .logo:hover * { 
  background-color: #99cc00 !important;
}