@import url("reset-fonts-grids.css");

html
{
    font-size: 62.5%;
}

body
{
    font-family: "Myriad Pro", "MyriadPro", "Trebuchet MS", "Arial", sans-serif;
    font-size: 1.3em;
    background-color: #01303b;
    line-height: 1.3em;
    margin: 0;
    padding: 0;
    text-align: left;
}

#logo-container
{
  height: 50px;
  width: 952px;
}

#main-logo
{
  display:block;
  margin:auto;
  margin-top: -40px;
}

#viewport
{
    margin: auto;
    width: 1007px;
}

#page
{
    float: left;
    width: 981px;
    margin-left: 10px;
    margin-top: 10px;
}

#mainWrapper, .float_left
{
    float: left;
}

#top
{
    height: 16px;
    position: relative;
    z-index: 100;
}

#header
{
    background: url(image_header_opj.jpg) top left no-repeat;
    height: 93px;
    position: relative;
    padding: 50px 10px 0;
}

#header h1
{
    font-family: "Myriad Pro", "MyriadPro", "Trebuchet MS", "Arial", sans-serif;
    color: #5f5c4b;
    border: 0;
    font-size: 3.2em;
    line-height: 0.9em;
    margin: 10px 5px;
}

#logo
{
    height: 25px;
    padding-bottom: 20px;
    background: url(image_logo_opj.jpg) top left no-repeat;
    width: 380px;
    display: block;
    position: relative;
    left: 0px;
    top: 15px;
}

#logo_pb
{
    height: 65px;
    padding-bottom: 20px;
    background: url(image_pelibunkkeri.jpg) top left no-repeat;
    width: 169px;
    display: block;
    position: relative;
    left: 10px;
}

#content
{
    background: url(image_page_content_opj.jpg) top left repeat-y;
    margin: 0;
    padding: 1px 14px 0;
}

#bottom
{
    height: 144px;
    background: url(image_page_bottom_opj.jpg) top left no-repeat;
}

#footer
{
    color: #ddd;
    text-align: center;
    width: 981px;
    clear: both;
}

#footer a
{
    line-height: 30px;
    padding-right: 10px;
    color: #ddd;
}

a
{
    color: #3f7137;
}

a:hover
{
    color: #8d8d1c;
}

h1
{
    font-size: 2em;
    color: #6b6b6b;
    margin: 12px 0 30px -8px;
    line-height: 1.0em;
}

h1 span
{
    color: #999;
    font-weight: 400;
    font-size: 0.6em;
}

h2
{
    font-family: "Book Antiqua", "Palatino Linotype", "Palatino", "Georgia", "Times", "Times New Roman", serif;
    font-size: 1.2em;
    font-weight: normal;
    color: #8F8661;
    width: auto;
    margin: 15px 0 10px -8px;
    border-bottom: 1px solid #D0BF9A;
}

h3
{
    font-family: "Book Antiqua", "Palatino Linotype", "Palatino", "Georgia", "Times", "Times New Roman", serif;
    font-size: 1.0em;
    font-weight: normal;
    color: #8F8661;
    width: auto;
    margin: 15px 0 10px -1px;
    border-bottom: 1px solid #D0BF9A;
}

p
{
    margin: 0.5em 0;
}

/* ------------------
        menu
   ------------------  */
#menu
{
    width: 952px;
    height: 28px;
    background: url(image_menubar.gif) top left no-repeat;
    padding-left: 6px;
    position: absolute;
    float: left;
    z-index: 99;
    bottom: 0px;
    left: 14px;
    margin: 7px 0 0;
}

#menu a.alignright
{
    margin-right: 7px;
    float: right;
}

#menu a:hover
{
    color: #527db5;
}

#menu a
{
    float: left;
    color: #FFF;
    padding: 6px 25px 0px 25px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

/* ------------------
        subMenu
   ------------------  */
.subMenu
{
    float: left;
    width: 163px;
    margin: 0 11px 1px 0;
}

.subMenuConf
{
    float: left;
    margin: 0 11px 0 0;
    width: 285px;
}

.subMenuBox
{
    margin-right: 5px;
}

.subMenuBox ul li
{
    list-style-type: none;
    margin-left: 4px;
    line-height: 1.4em;
}

.subMenuBox h3
{
    color: #683; /*color:#277f31;*/
    font-size: 1.2em;
    margin: 12px 0 4px;
}

.subMenuBox h3 a
{
    color: #277f31;
    text-decoration: none;
}

.subMenuBox li a
{
    color: #222;
    text-decoration: none;
}

.subMenuBox a:hover
{
    text-decoration: underline;
    color: #2a8d1c;
}

/* ------------------
        main
   ------------------  */
.horizontal-overflow {
    overflow-x: scroll;
}

.mainRegular #mainBody, .mainWide #mainBody
{
    min-height: 500px;
}
.mainWide
{
    width: 778px;
    margin-right: 0;
}

.mainFull
{
    width: 951px;
    margin-right: 0;
}

.mainRegular
{
    width: 567px;
    margin: 0 11px 7px 0;
}

/* ------------------
        sideBar
   ------------------  */
#sidebar
{
    float: left;
    width: 200px;
}

#sidebar ul li.rank, #sidebar ul li
{
    color: #222;
    list-style-position: outside;
    list-style-type: none;
    line-height: 1.4em;
    padding-bottom: 2px;
}

#sidebar select
{
    width: 100%;
}

#sidebar ul.rank li
{
    line-height: 1.8em;
}

#sidebar ul li img
{
    vertical-align: middle;
}

#sidebar ol
{
    padding-left: 30px;
    list-style: decimal;
    list-style-position: inside;
}

#sidebar h1
{
    color: #898989;
    font-size: 1.2em;
    margin: 12px 0 4px;
}

/* ------------------
        Boxes
   ------------------  */
.sidebarBox, .subMenuBox
{
    margin: 0 0 1px 0;
}

.mainRegular, .mainFull, .mainWide
{
    float: left;
    position: relative;
}

.sidebarBox .boxHead, .subMenuBox .boxHead, .main .boxHead
{
    background: url(image_sidebarBox_tr_opj3.jpg) no-repeat top right;
    margin: 0;
    padding: 0;
}

.subMenuBox .boxHead
{
    background: url(image_sidebarBox_tr_opj3.jpg) no-repeat top right;
}

.sidebarBox .boxHead h2, .subMenuBox .boxHead h2, .main .boxHead h2
{
    color: #eee;
    font-weight: 700;
    font-size: 1.2em;
    padding: 6px 12px 4px 12px;
    margin: 0;
}

.main .boxHead h2 span, .main .boxHead h2 a
{
    color: #eee;
    text-decoration: none;
}

.subMenuBox .boxHead a
{
    position: absolute;
    top: 10px;
    right: 11px;
}

.sidebarBox .boxHead h2 span
{
    color: #fff;
    font-weight: 400;
    font-size: 0.75em;
}

.mainBox .boxHead h2 span
{
    color: #999;
    font-weight: 400;
    font-size: 0.7em;
}

.sidebarBox .boxBody, .subMenuBox .boxBody, .main .boxBody
{
    background: #fff;
    margin: 0;
    padding: 8px 6px 15px 6px;
    border-left: 1px solid #5f0e1e;
    border-right: 1px solid #5f0e1e;
}

.sidebarBox .boxFooter, .subMenuBox .boxFooter, .main .boxFooter
{
    padding: 0;
    margin: 0;
    background: url(image_sidebarBox_br_opj2.jpg) top right no-repeat;
}

.sidebarBox .boxFooter .boxLeft, .subMenuBox .boxFooter .boxLeft, .main .boxFooter .boxLeft
{
    background: url(image_sidebarBox_bl_opj2.jpg) top left no-repeat;
}

.subMenuBox .boxBody
{
    padding-top: 1px;
    padding-bottom: 10px;
}

.sidebarBox .boxBody
{
    padding-bottom: 10px;
}

.main .boxBody
{
    padding: 1px 20px 31px 20px;
}

.sidebarBox .boxBody p
{
    margin: 0;
    padding: 4px 0;
}

.sidebarBox a
{
    display: block;
    padding: 3px 0;
}

.sidebarBox span.inner a
{
    display: inline;
}
.mainBox
{
    margin-bottom: 30px;
}

.mainBox a.footer
{
    display: block;
    color: gray;
    font-size: 1em;
    padding: 5px 2px;
}

/* ------------------
        TABLE
   ------------------  */
table
{
    border-collapse: collapse;
    font-size: 0.9em;
    line-height: 1.3em;
}

table.tourlinks
{
    width: 100%;
    text-align: center;
    font-size: 1.0em;
}

table.results
{
    text-align: center;
    background-color: #ddd;
}

table td.bottom
{
    vertical-align: bottom;
}
table td.top
{
    vertical-align: top;
}
table td.middle
{
    vertical-align: middle;
}
table td, table th
{
    #text-align: left;
    #vertical-align: top;
    padding: 1px 1px;
}

table.alkusarja
{
    border-collapse: collapse;
}
table.alkusarja th.placing_b
{
    width: 20px;
    text-align: right;
    border-bottom: solid 1px #dce0dc;
}
table.alkusarja th.name_b
{
    width: 160px;
    text-align: center;
    border-right: 1px solid #dce0dc;
    border-bottom: solid 1px #dce0dc;
}
table.alkusarja th.value_b
{
    width: 60px;
    text-align: center;
    vertical-align: center;
    border-right: 1px solid #dce0dc;
    border-bottom: 1px solid #dce0dc;
}

table.alkusarja td
{
    border-right: 1px solid #dce0dc;
}
table.alkusarja td.placing
{
    width: 20px;
    text-align: right;
    padding-right: 5px;
}
table.alkusarja td.name
{
    #width: 160px;
    text-align: left;
}
table.alkusarja td.value
{
    #width: 60px;
    text-align: center;
}
table.alkusarja td.placing_qual1
{
    #width: 20px;
    text-align: right;
    background-color: #eaeaff;
    padding-right: 5px;
}
table.alkusarja td.name_qual1
{
    #width: 160px;
    text-align: left;
    background-color: #eaeaff;
}
table.alkusarja td.value_qual1
{
    #width: 60px;
    text-align: center;
    background-color: #eaeaff;
}
table.alkusarja td.placing_qual2
{
    #width: 20px;
    text-align: right;
    background-color: #ffeaea;
    padding-right: 5px;
}
table.alkusarja td.name_qual2
{
    #width: 160px;
    text-align: left;
    background-color: #ffeaea;
}
table.alkusarja td.value_qual2
{
    #width: 40px;
    text-align: center;
    background-color: #ffeaea;
}
table.alkusarja td.placing_qual3
{
    #width: 20px;
    text-align: right;
    background-color: #eaffea;
    padding-right: 5px;
}
table.alkusarja td.name_qual3
{
    #width: 160px;
    text-align: left;
    background-color: #eaffea;
}
table.alkusarja td.value_qual3
{
    #width: 40px;
    text-align: center;
    background-color: #eaffea;
}

table.results td.name
{
    text-align: center;
    background-color: #edf1ed;
    width: 45px;
}
table.results td.match_none
{
    text-align: center;
    width: 45px;
    background-color: #dadada;
}
table.results td.match_win
{
    text-align: center;
    width: 45px;
    background-color: #85ff85;
}
table.results td.match_draw
{
    text-align: center;
    width: 45px;
    background-color: #f4f4f4;
}
table.results td.match_loss
{
    text-align: center;
    width: 45px;
    background-color: #ff8585;
}

table.playoffs
{
    #width: 100%;
}
table.playoffs td
{
    padding: 2px;
    border: off;
}
table.playoffs td.results
{
    #border: thin solid silver;
    background-color: #f8f8f8;
}
table.playoffs td.none
{
    background-color: #fff;
    text-align: left;
}
table.playoffs td.match_win
{
    background-color: #85ff85;
    text-align: left;
}
table.playoffs td.match_draw
{
    background-color: #eee;
    text-align: left;
}
table.playoffs td.match_loss
{
    background-color: #ff8585;
    text-align: left;
}

table.smatch
{
    width: 70%;
}
table.smatch th.name_b
{
    width: 160px;
    text-align: center;
}
table.smatch th.value_b
{
    width: 100px;
    text-align: center;
    vertical-align: center;
}
table.smatch td.value
{
    background-color: #fafafa;
    text-align: center;
}
table.smatch td.match_win
{
    background-color: #85ff85;
    text-align: left;
}
table.smatch td.match_draw
{
    background-color: #eee;
    text-align: left;
}
table.smatch td.match_loss
{
    background-color: #ff8585;
    text-align: left;
}

table.ranking
{
    border: solid 1px #dce0dc;
    width: 100%;
}
table.ranking th, table.ranking td
{
    text-align: center;
    border-right: 1px solid #dce0dc;
    border-bottom: 1px solid #dce0dc;
}
table.ranking th.placing_b
{
    width: 20px;
    text-align: center;
}
table.ranking th.name_b
{
    width: 160px;
    text-align: center;
}
table.ranking th.value_b
{
    width: 60px;
    text-align: center;
    vertical-align: center;
}
table.ranking td.name
{
    text-align: left;
}
table.ranking td.rank
{
    text-align: right;
    padding-left: 3px;
    padding-right: 3px;
}

.main table th
{
    font-weight: 700;
    color: #222;
    background-color: #edf1ed;
    border-bottom: solid 1px #dce0dc;
}

/* ------------------
        MISC
   ------------------  */

.date
{
    color: #666;
    padding-right: 8px;
    font-weight: 400;
}

div.separator, div.borderSeparator
{
    font-size: 0;
    line-height: 0;
    height: 15px;
    clear: both;
    margin: 0;
    padding: 0;
}

br.clear, div.clear
{
    clear: both;
    height: 1px;
}

.sidebarBox a.footer
{
    display: block;
    width: 100%;
    text-align: right;
    color: gray;
    font-size: 0.9em;
}


/*
Lists
*/
ul
{
    margin: 0;
    padding: 0;
}

li
{
    list-style-type: none;
}

/* Layout for reports */

div.report
{
	text-align: justify;
}

div.imageleft
{
	float: left;
	text-align: center;
	font-style: italic;
	margin: 5px 15px 5px 0;
	max-width: 45%;
}

div.imageleft img
{
	max-width: 100%;
}

div.imageright
{
	float: right;
	text-align: center;
	font-style: italic;
	margin: 5px 0 5px 15px;
	max-width: 45%;
}

div.imageright img
{
	max-width: 100%;
}

div.imagecenter
{
	text-align: center;
	font-style: italic;
}

div.imagecenter img
{
	margin: 5px 7px 5px 7px;
	vertical-align:middle;
}
