/* CSS Document */

html{
    width:100%;
    height:100%;
}

/********/
/* BODY */
/********/

body {
    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px !important;
    font-weight: normal;
    line-height: 19.2px;
    margin: auto;
    background: #F4F7E7;
    color: #666;
}

h1 {
    font-size: 2.5em;
    font-weight: normal;
}

h2 {
    font-size: 1.75em;
    font-weight: normal;
}

h3 {
    font-size: 1.25em;
    font-weight: bold;
}

h4 {
    font-size: 1.1em;
    font-weight: bold;
}

h5 {
    font-size: 1em;
    font-weight: bold;
}

h6 {
    font-size: 0.8em;
    font-weight: bold;
}

a {
    color: #27638C;
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-weight: bold;
}

div {
    /*border: 1px black solid;*/
}

/********/
/* PAGE */
/********/

#page {
    background-color: #F4F7E7;
    margin: 0;
    width: 100%;
}

/*****************/
/* HEADER REGION */
/*****************/

#header {
    background: #FFFFFF;
    height: 125px;
}
#header-wrapper {
    margin: 0 auto;
    width: 1000px;
    height: 100px;
    /*background: url('./images/header2.jpg') no-repeat*/
}

#header-first {
    float: left;
    /*margin: 12px 30px 0 0;*/
    width: 400px;
}
#header-first .logo {
	height: 120px;
	position: absolute;
	width: 360px;
	display: block;
	top: 4px;
	background: url('./images/rbrel-logo2.png') no-repeat;
}

#header-middle {
    float: left;
    /*margin: 10px 20px 0 0;*/
    width: 240px;
}

#header-last {
    float: right;
    /*margin: 10px 0 0;*/
    width: 310px;
}

#header-bottom {
    margin: 0 auto;
    width: 1100px;
}

#preface {
	float: left;
    width:100%;
	height: 24px;
	background:url('./images/preface-wrapper-bg.png') repeat-x top;
}

#preface #location {
	width: 1200px;
	margin: 0 auto;
	padding-top: 3px;
	color: #E6E6E6;
}

#preface #location a {
	color: white;
}

#preface #location a:hover {
	color: #E6E6E6;
}

/***************/
/* MAIN REGION */
/***************/

#main {
    width: 100%;
    float:left;
    background-image: url('./images/content-gradient.png');
	background-position: 0 1px;
    background-repeat: repeat-x;
    display: table;
}

#main-wrapper {
    margin: 30px auto 0;
    width: 1200px;
}

/******************/
/* SIDEBAR REGION */
/******************/

#sidebar-first {
    float: left;
    width: 200px;
    padding-right: 5px;
}

#sidebar-last {
    float: right;
    width: 200px;
    padding-left: 5px;
}

#sidebar-first li,
#sidebar-last li {
    list-style-type: none;
    width: 130px;
    float:left;
    background-image:url('./images/raquo.png');
    background-position:10px 8px;
    background-repeat:no-repeat;
    padding:0 0 0 25px;
    margin:0;
    text-transform: uppercase;
    white-space: nowrap;
}

/******************/
/* CONTENT REGION */
/******************/

#content-wrapper {
    float: left;
    padding: 0 5px;
	width: 780px;
}

#content-top {
    margin: 0 0 30px;
}

#content {
    margin: 0 0 20px;
}

#content-inner {
    width: 100%;
}

#content-bottom {
    clear: both;
    margin: 20px 0 0;
}

div.message {
    background: #FFFCE3;
    border: 2px solid #EED300;
    color: #C28E00;
    font-weight: bold;
    font-size: 1.166em;
    margin: 0px 0px 20px;
    padding: 10px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
}
div.error {
    background-color: #FFF2F2;
    border-color: #FF0000;
    color: #B20000;
}

/*****************/
/* FOOTER REGION */
/*****************/

#footer {
  border-bottom: 1px solid #D6DDB9;
  border-top: 1px solid #D6DDB9;
  clear: both;
  display: block;
  font-size: 0.9em;
  margin: auto 0;
  padding: 10px 0;
  text-align: center;
  width: 1200px;
}

/**************/
/* PEALKIRJAD */
/**************/

h1 {                                        /* page titles */
	border-bottom: 1px solid #D6DDB9;
    clear: left;
    font-family: Myriad Pro, Myriad Web Pro Regular, Lucida Grande, Geneva, Trebuchet MS, sans-serif;
    font-size: 1.833em;
    font-weight: 600;
    line-height: 1.272em;
    margin-bottom: 15px;
}  

h2 {                                        /* block titles, node titles */
    font-family: Myriad Pro, Myriad Web Pro Regular, Lucida Grande, Geneva, Trebuchet MS, sans-serif;
    font-size: 1.333em;
    font-weight: 600;
    text-transform: uppercase;
}

/*****************************************/
/* ROUNDED CORNERS FOR BLOCKS (optional) */
/*****************************************/

div.block-wrapper {                    /* spacing between blocks */
  margin: 35px 0;
}

div.rounded-block {
  margin-top: -1px;                               /* use negative margin to overlap stacked blocks */
  clear: both;		/* Firefox */
}

p.rounded-topspace {
  margin-top: -14px;                                  /* removes unwanted space */
}

p.rounded-bottomspace {
  margin-bottom: -10px;                               /* removes unwanted space */
}

div.rounded-block-top-left, 
div.rounded-block-top-right, 
div.rounded-block-bottom-left, 
div.rounded-block-bottom-right { 
  background: transparent url('./images/rounded-block.png') no-repeat;                         /* combined rounded corner image */
  font-size: 2px;                                 /* IE div correction */
  height: 11px;                                   /* height of an image corner */
}

div.rounded-block-top-left, 
div.rounded-block-bottom-left { 
  margin-right: 11px;                             /* width of an image corner */
}

div.rounded-block-top-right {                        /* anchor image in top right */
  background-position: 100% 0;
}

div.rounded-block-top-right,
div.rounded-block-bottom-right { 
  margin-left: 11px;                              /* width of an image corner */
  margin-top: -11px;                              /* height of an image corner */
}

div.rounded-block-bottom-left  { 
  background-position: 0 -11px;                   /* negative height of an image corner */
}

div.rounded-block-bottom-right { 
  background-position: 100% -11px;                /* negative height of an image corner */
}

div.rounded-outside,
div.rounded-inside {
  background: transparent url('./images/rounded-block-inner.png') repeat-y right;
  padding-right: 8px;
}

div.rounded-inside {
  background-position: left;
  padding: 0 0 0 8px;
}
/*---------------------*/
div.block {
  position: relative;
}

div.block ul {
  padding: 0px 0px 5px 0;
  display: table;
}

div.block div.content {
  background: transparent url('./images/block-gradient.png') no-repeat center bottom;
  border-bottom: 3px solid #F1F5F7;
  padding: 10px 10px 0px;
  height: 100%;
  overflow: hidden;
  -moz-border-radius-bottomleft: 6px;
  -moz-border-radius-bottomright: 6px;
  -webkit-border-bottom-left-radius: 4px;
  -webkit-border-bottom-right-radius: 4px;
}

h2.block-title {
  background-color: #94CE18;
  color: #fff;
  padding: 8px 14px 6px;
  margin-top:-3px;
  text-align: right;
  text-shadow: #545454 1px 1px; 
  -moz-border-radius-topleft: 3px;
  -moz-border-radius-topright: 3px;
  -webkit-border-top-left-radius: 4px;
  -webkit-border-top-right-radius: 4px;
}

div.block-icon {
    height: 48px;
    position: absolute;
    left: 2px;
    top: -6px;
    width: 48px;
    background: transparent url('./icons/tnt_icon_08.png') no-repeat left center;
}

div.login {
    background: transparent url('./icons/tnt_icon_14.png') no-repeat left center;
}
div.control-panel {
    background: transparent url('./icons/tnt_icon_12.png') no-repeat left center;
}
div.league {
    /*background: transparent url('./icons/tnt_icon_03.png') no-repeat left center;*/
    background: transparent url('./icons/flags.png') no-repeat left center;
    width: 74px;
    left: -11px;
}
div.calendar {
    background: transparent url('./icons/tnt_icon_02.png') no-repeat left center;
}
div.stat {
    background: transparent url('./icons/tnt_icon_07.png') no-repeat left center;
}
div.poll {
    background: transparent url('./icons/pie-chart-icon.png') no-repeat left center;
}

/**********/
/* TABLES */
/**********/

table {
  border-collapse: collapse;
  margin: 0 0 10px;
  width: 100%;
}

.layout-first-main-last table {
  border-collapse: collapse;
  margin: 0 0 10px;
  width: 57%;
}

th {
  text-align: left;
  padding-right: 1em;
  border-bottom: 3px solid #CCC;
}

tr {
  padding: 0.1em 0.6em;
}

td {
  padding: 3px;
  background-color: #FDFFEF;
  border-bottom: 1px solid #CCC;
}

th.active img {
  display: inline;
}

tr.even td {
  background-color: #E3ECC0;
}

tr.selected td {
  background-color: #94CE18;
}

tbody {
  /*border-top: 1px solid #CCC;*/ /*Firefox jamab*/
}

tbody th {
  border-bottom: 1px solid #CCC;
}

thead th {
  text-align: left;
  padding-right: 1em;
  border-bottom: 3px solid #CCC;
}
tr.red td {
    color:red;
}

tr.result_row td{
	height: 45px;
	padding: 0;
}
tr.my_row td {
	background-color: #FFC8C8;
}
tr.day_row td {
	text-align: center;
	background-color: #94CE18;
}

/**********/
/* FORMID */
/**********/

input[type="button"],
input[type="submit"] {
  /*background: transparent url('./images/blue-button.png') no-repeat left center;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.916em;
  font-weight: bold;
  margin: 0 4px;
  padding: 2px 4px;
  text-transform: uppercase;
  outline: 1px solid #9BABB0;
  -moz-border-radius: 4px;
  -moz-outline-radius: 4px;
  -webkit-border-radius: 4px;*/
  padding: 0.4em 1em;
  font-size: 13px;
}

select,
input[type="text"],
input[type="password"],
textarea,
input[type="file"] {
  /*background: #F6F9FB url('images/form-bg.png') left top;*/
  color: #666666;
  border: 1px solid #9BABB0;
  padding: 2px;
  clear:both;
  width: 300px;
  line-height: 20px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
}
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
input[type="file"]:focus {
	border: 1px solid red;
}

/***********************/
/* FIELDSET            */
/***********************/

fieldset {
    border: 1px solid #D6DDB9;
    margin: 15px 0;
    padding: 0 10px 10px;
}

/***********************/
/* TABS                */
/***********************/

#content-tabs {
  background-color: transparent;
  float: left;
  margin: 0 0 20px 0;
  padding: 0;
}

#content-tabs ul.primary,
#content-tabs ul.secondary {
  border-bottom: 1px solid #bbb;
  clear: left;
  float: left;
  margin: 0;
  padding: 0 10px;
  text-transform: uppercase;
}

#content-tabs ul.secondary {
  border-bottom: 1px solid #bbb;
  margin-top: 10px;
  text-transform: lowercase;
}

#content-tabs ul.primary li,
#content-tabs ul.secondary li {
  background-color: transparent;
  border-style: none;
  display: inline;
  float: left;
  list-style: none;
  margin: 0 10px;
  padding: 0;
}

#content-tabs ul.primary li a:link,
#content-tabs ul.primary li a:visited,
#content-tabs ul.secondary li a:link,
#content-tabs ul.secondary li a:visited {
  background-color: transparent;
  border: none;
  color: #27638C;
  float: left;
  font-size: 1.1em;
  line-height: 1.2em;
  font-weight: bold;
  margin: 0;
  padding: 0 0 6px 0;
  text-decoration: none;
}

#content-tabs ul.secondary li a:link,
#content-tabs ul.secondary li a:visited {
  color: #27638C;
  font-size: 1em;
  line-height: 1.1em;
}

#content-tabs ul.primary li a.active:link,
#content-tabs ul.primary li a.active:visited {
  border-bottom: 4px solid #94CE18;
  color: #27638C;
  padding-bottom: 2px;
}

#content-tabs ul.secondary li a.active:link,
#content-tabs ul.secondary li a.active:visited {
  border-bottom: 4px solid #94CE18;
  color: #27638C;
  padding-bottom: 2px;
}

#content-tabs ul.primary li a:hover,
#content-tabs ul.secondary li a:hover {
  border-bottom: 4px solid #94CE18;
  color: #4A95C8;
  padding-bottom: 2px;
}

/***************/
/* HEADER TABS */
/***************/

#header-tabs {
  margin: 0 auto;
  /*width: 960px;*/
  width: 100%;
}

#primary-menu {                                   /* menu layout */
  display: block;
  float: right;
  font-family: Myriad Pro, Myriad Web Pro Regular, Lucida Grande, Geneva, Trebuchet MS, sans-serif;
  font-size: 1em;
  font-weight: bold;
  /*margin-top: 12px;*/
  padding: 0;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

#primary-menu ul.menu li {                        /* top item layout */
  background: transparent url('./images/tab-left.png') no-repeat left 0;
  display: block;
  float: left;
  margin: 0 4px 0 0;
  padding: 0 0 0 10px;    /* 0 0 0 10px */
  position: relative;
  width:  auto;
}

#primary-menu ul.menu li:hover,
#primary-menu ul.menu li.hover,
#primary-menu ul.menu li.selected {
  background-position: left -29px;
}

#primary-menu ul.menu li a {
  background: transparent url('./images/tab-right.png') no-repeat right 0;
  color: #154B70;
  display: block;
  padding: 5px 10px 1px 0;    /* 5px 10px 1px 0 */
  text-decoration: none;
}

#primary-menu ul.menu li a:hover,
#primary-menu ul.menu li:hover a,
#primary-menu ul.menu li.hover a,
#primary-menu ul.menu li.selected a {
  background-position: right -29px;
  color: #fff;
}

#primary-menu ul.menu li ul {
  background: transparent url('./images/drop-bottom.png') no-repeat 0 bottom;
  left: -999em;
  opacity: 0.95;
  margin: 0 0 0 -10px;
  padding: 2px 0 4px;
  position: absolute;
  width: 144px;
  z-index: 2;
}
  
#primary-menu ul.menu li:hover ul,
#primary-menu ul.menu li.hover ul {
  display: block;
  left: auto;
}

#primary-menu ul.menu li ul li {
  background: #94CE18;
  border-bottom: 1px solid #83A638;
  float: left;
  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.916em;
  height: auto;
  margin: 0;
}

#primary-menu ul.menu li ul li.last {
  border-bottom: none
}

#primary-menu ul.menu li ul li a,
#primary-menu ul.menu li ul li a:link,
#primary-menu ul.menu li ul li a:visited {
  background: transparent;
  color: #154B6F;
  display: block;
  margin: 0;
  padding: 4px 0;
  text-transform: none;
  width: 135px;
}

#primary-menu ul.menu li ul li a:hover {
  color: #fff;
  display: block;
  margin: 0;
  padding: 4px 0;
  text-decoration: none;
}

#primary-menu ul.menu li ul li ul.menu {
  left: -999em;
  margin: 0 0 0 -14px;
  padding: 6px 0 4px;
}

#primary-menu ul.menu li ul li:hover ul.menu,
#primary-menu ul.menu li ul li.hover ul.menu {
  display: block;
  left: 154px;
  top: -6px;
}


#primary-menu ul.menu li ul li ul.menu li a {
  padding: 4px;
  width: 128px;
}

/******/
/* AD */
/******/

#ad-banner {
	width: 468px;
	height: 60px;
	margin: 20px 50px 0px 482px;
	position: absolute;
	overflow: hidden;
	z-index: 10;
}
#ad-banner2 {
	width: 120px;
	height: 60px;
	margin: 20px 0 0 332px;
	position: absolute;
	overflow: hidden;
	z-index: 10;
}

/*****************/
/* ADMIN OPTIONS */
/*****************/

.admin-options {
	border-bottom: 1px #333 dashed;
}
.admin-options div.options li a:hover {
	color: white;
	background-color: green;
}

/***********/
/* GALLERY */
/***********/

#gallery div.image_thumb:hover,
#gallery div.current {
	background-color: #94CE18;
}

#gallery div.image_thumb:active { /* Vajutamisel vajub pilt alla */
	margin: 12px 8px 8px 12px;
}

#gallery div.gallery_image{
	position: relative;
	border: 1px solid black;
	display: inline-block;
}
#gallery div.gallery_image a,
#gallery div.gallery_image img {
}

#gallery div.gallery_image .image_actions{
	background: grey;
	border: 1px solid black;
	padding: 5px;
	margin: 10px;
	width: 150px;
	position: absolute;
	left: 0;
	top: 0;
}

/*********/
/* FORUM */
/*********/

blockquote {
	margin: 15px;
 	padding: 0 0 0 42px;  	
  	background: #FAFAFA url(./images/quote.gif) no-repeat 5px 10px !important; 
	background-position: 8px 10px;
	border: 1px solid #f2f2f2; 
	border-left: 3px solid #EED300;
	min-height: 50px;
}

.avatar {
	background-color: white;
	padding: 2px;
	margin: 5px;
	border: 1px solid black;
	display: inline-block;
}

.forum-post {
	width: auto;
	padding: 2px;
	margin: 0;
}
.forum-post:hover {
	border: 2px solid green;
	padding: 2px;
	margin: -2px;
}
.forum_post {
	background-color: #E3ECC0;
	border: 1px solid #E3ECC0;
}
.forum_post:hover {
	background-color: #E3ECC0;
	border: 1px solid green;
}

/************/
/* CALENDAR */
/************/

#calendar {
	margin: 5px 1px 0;
}
#calendar th {
	font-size: 11px;
	padding: 0;
	text-align: center;
	width: 14.3%;
	border: 0;
}
#calendar td {
	/*border: 1px solid #CCC;
	font-size: 11px;
	text-align: center;
	background-color: #DEDEDE;
	height: 15px;
	padding:0;*/
	background-color: transparent;
	border: 0;
	text-align: center;
	padding: 1px;
	font-size: 11px;
}
#calendar .day {
	display: block;
	border: 1px solid #CCC;
	background-color: #DEDEDE;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
#calendar a.day {
	/*font-size: 11px;*/
	font-weight: bold;
}
#calendar .current {
	background: #459E00 !important;
}
#calendar .rally {
	background-color: #b81900;
	border-color: #cd0a0a;
	color: #FFF;
}
#calendar .none {
	opacity: 0.4;
}

/********/
/* NEWS */
/********/
#news-content p{
	margin-top: 1em;
}
#news-content img {
	border: 1px solid black;
	margin: 5px;
}

/***************/
/* BREADCRUMBS */
/***************/
#crumbs {
	height: 24px;
}

#crumbs li {
	list-style-type: none;
	float:left;
	line-height: 20px;
	padding-left: 12px;
	color: #E6E6E6;
}

#crumbs li a {
	display: block;
	padding: 0 20px 0 0;
	background: url(./images/breadcrumb.png) no-repeat right center;
}

/************/
/* CLEARFIX */
/************/
.clearfix:after {
	content:".";
	display:block;
	height:0;
	clear:both;
	visibility:hidden;
}
.clearfix {display:inline-block;}
/* Hide from IE Mac \*/
.clearfix {display:block;}
/* End hide from IE Mac */
