/* ========== */
/* = Basics = */
/* ========== */

body { 
  font-size: 16px;
  color: #333; 
  background: #fff;
  font-family: Helvetica, "Helvetica Neue", Arial, Helvetica, sans-serif;
  line-height: 20px;
}

/* Links */
a:link, a:visited { color: #444; text-decoration: underline; }
a:hover, a:active { color: #111; text-decoration: underline; }

/* Lists */
li ul, 
li ol  { margin: 0 1.5em; }
ul, ol { margin: 0 1.5em 1.5em 1.5em; }
ul     { list-style-type: disc; list-style-position: inside; }
ol     { list-style-type: decimal; }
li     { padding-bottom: 10px; }

/* Titles */
h2 { font-weight: normal; font-size: 24px; margin-bottom: 20px; }
h3 { font-weight: normal; font-size: 20px; }
h4 { font-weight: normal; font-size: 16px; }

/* Paragraphs */
p.title     { text-align: center; font-size: 16px; line-height: 20px; color: #444; padding-bottom: 12px; }
p.title a   { color: #999; }
p           { margin: 0 10px 10px; color: #333; }
p img.left  { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; }

/* Tables */
table         { margin-bottom: 1.4em; width:100%; }
th            { font-weight: bold; }
thead th      {  }
th,td,caption { padding: 4px 10px 4px 5px; }
tr.even td    { background: #e5ecf9; }
tfoot         { font-style: italic; }
caption       { background: #eee; }

.unknown { color: #CCC; }


/* =========== */
/* = Buttons = */
/* =========== */

.text_button { text-decoration: none !important; font-size: 12px; height: 1.2em; line-height: 1.2em; display:-moz-inline-block; display:-moz-inline-box; display:inline-block; padding: 0.2em 0.5em; border: 1px solid #a4a4a4; background-repeat: repeat-x; background-position: center left; background-image:url(/images/buttons/default_bg_text_button.gif); text-decoration: none; color: #666; }
.text_button.default { font-weight: bold; color: #333; }

.text_button:hover { color: #FFF; background-color: #333; background-image: none; cursor: pointer; }

.disabled_button { height: 1.2em; line-height: 1.2em; display:-moz-inline-block; display:-moz-inline-box; display:inline-block; padding: 0.2em 0.5em; border: 1px solid #e0e0e0; background-repeat: repeat-x; background-position: center left; background-image:none; cursor: default; color: #999; }
.disabled_button.default { font-weight: bold; }

input.text_button { height: 20px !important; color: #333; }
.cancel_link       { text-decoration: none !important; }
.cancel_link:hover { color: red; text-decoration: underline; }



/* ============== */
/* = Pagination = */
/* ============== */

.pagination { background: #EEE; border: 1px solid #DDD; text-align: center; padding: 1em; margin: 2em 0; }
.pagination a, .pagination span { padding: .2em .3em; }
.pagination span.disabled { color: #AAA; }
.pagination span.current { font-weight: bold; background-color: #DDD; }
.pagination a { text-decoration: none; color: black; }
.pagination a:hover, .pagination a:focus { text-decoration: underline; }

.pagination .pagination_info { font-size: 12px; }


/* ================= */
/* = Message boxes = */
/* ================= */

.message_box       { border: 1px solid #DDD; margin: 10px 0px; padding: 20px; background-color: #EEE; }
.message_box h3    { margin-bottom: 10px; }
.message_box a     { text-decoration: underline; }
.message_box img   { float: left; margin: 5px 20px 0 0; }
.message_box p,    
.message_box small { margin-left: 50px !important; display: block; }

.courses.index .didnt_find { width: 400px; margin: 10px auto 20px; background-color: #EEE; padding: 20px; }
.courses.index .didnt_find img { float: left; margin: -5px 20px 0 0; }
.courses.index .didnt_find p { margin: 0; }
.courses.index .not_found { text-align: center; font-size: 20px; margin: 30px auto; width: 400px; }

/* ========== */
/* = Shared = */
/* ========== */

div#map_canvas { position: relative; height: 350px; width: 600px; background-color: #EEE; margin: 0 auto; overflow: hidden; }
div.marketing_box { text-align: center; margin-bottom: 40px; }


/* ========== */
/* = Layout = */
/* ========== */

body               { text-align: center }
div#topbar         { height: 22px; padding-top: 4px; }
div#topbar_inner   { width: 960px; margin: 0 auto; text-align: right; }
div#background     { width: 100%; height: 800px; position: absolute; top: 0; z-index: -1; }
div#background img { width: 100%; height: 800px;}
div#container      { text-align: left; width: 960px; margin: 0 auto; }
div#header         { position: relative; height: 90px; }
div#content_top    { height: 20px; }
div#leftbar        { float: left; width: 640px }
div#rightbar       { float: right; width: 320px; }
div#extra          { clear: both; width: 100% }


/* ================== */
/* = Layout styling = */
/* ================== */

body            { background-color: #CCC; }
div#topbar      { background-color: #CCC; color: #666; }
div#content_top { background: transparent url(/images/content_top.gif) no-repeat top left; clear: both; }
div#content     { background: white url(/images/content.gif) repeat-y top left; }
div#footer      { background:  #999; color: #FFF }
div#extra       { background: #DDDDDD; }


/* =========== */
/* = Top bar = */
/* =========== */

div#topbar { font-size: 12px; }
div#topbar a:link,  div#topbar a:visited { color: #666; text-decoration: underline; font-weight: bold; }
div#topbar a:hover, div#topbar a:active  { color: #444; }
div#topbar #locale { margin-left: 20px; float: right; }

/* ========== */
/* = Header = */
/* ========== */

div#header img.logo { position: relative; top: 5px; margin-bottom: 10px; }
div#header div#course_search { position: absolute; right: 25px; top: 55px; width: 280px; }
div#header div#course_search input { padding: 0; margin: 0; border: 0; height: 24px; }
div#header div#course_search input.text { font-size: 16px; padding: 2px 4px; background-color: #FFF; height: 20px; width: 220px; }
div#header div#course_search input.submit { margin: 0; width: 45px; font-size: 12px; font-weight: bold; background-color: #CCC; }
div#header div#course_search input,
div#header div#course_search form  { display: inline; }

.flash_message_box         { border-width: 2px; border-style: solid; margin: 10px 30px; padding: 20px; }
.flash_message_box .close_button { float: right; color: #333; font-size: 12px; margin-top: -10px; margin-right: -10px; }
.flash_message_box img     { float: left; }
.flash_message_box p       { margin-left: 50px; }
.flash_message_box.notice  { background-color: #CCDBB0; border-color: #6A8F23; }
.flash_message_box.warning { background-color: #FFFDEF; border-color: #F39213; }
.flash_message_box.error   { background-color: #FFF0F0; border-color: #B71F00; }


/* ============ */
/* = Left bar = */
/* ============ */

div#leftbar div.boxes_wrapper { width: 600px; margin: 20px auto 20px; margin-top: 20px; }
div#leftbar div.boxes_wrapper h3 { margin-bottom: 10px; }
div#leftbar div.boxes_wrapper div.halfwidth_box { width: 50%; float: left; padding: 0; margin: 0; }
div#leftbar div.boxes_wrapper div.halfwidth_box p { padding: 0 20px 10px 0; margin: 0; }
div#leftbar div.boxes_wrapper div.halfwidth_box ul { padding: 0 20px 10px 0; margin: 0; }

div#leftbar .standard_align { width: 600px; margin: 0 auto; }
div#leftbar .standard_align h2 { text-align: left; width: 600px; margin: 10px auto 20px; }
div#leftbar .standard_align p { margin: 0 0 10px; }

/* ============= */
/* = Right bar = */
/* ============= */

div#rightbar h2 { text-align: center; }
div#rightbar h3 { width: 280px; margin: 10px auto 20px; }
div#rightbar h4 { width: 280px; margin: 20px auto 8px; font-weight: bold; }
div#rightbar ul { list-style-image: url(/images/icons/list_style.png); }
div#rightbar ul.featured_courses { width: 280px; margin: 10px auto; list-style-type: none; }
div#rightbar ul.featured_courses li { margin-bottom: 10px; list-style-type: none; list-style-image: none; }
div#rightbar ul.featured_courses li img { float: left; margin: 0 15px 20px 0; clear: left; }

div#rightbar ol { padding-left: 20px; }

div#rightbar .standard_align,
div#rightbar p,
div#rightbar .standard_align h2 { width: 280px; margin: 0 auto; margin-bottom: 10px; }
div#rightbar .standard_align h2 { text-align: left; margin: 10px auto 20px; }
div#rightbar .standard_align p { margin: 0 0 10px; }

div#rightbar p.title { margin: 0 5px 10px 10px; width: 290px; }
div#rightbar p           { color: #333; }



/* ========== */
/* = Footer = */
/* ========== */

div#footer { height: 80px; }
div#footer a { color: white; text-decoration: none; }
div#footer div#legal_links { padding: 20px; }
div#footer div#courses_count { padding: 20px 20px 10px 20px; float: right; font-size: 12px; font-weight: bold; }
div#footer div#courses_count a { color: #333; }

div#footer div#ohmygolfnet { padding: 0 20px; float: right; font-size: 12px; font-weight: normal; clear: right; font-size: 10px; }
div#footer div#ohmygolfnet a { color: #666; }


/* ============= */
/* = Home page = */
/* ============= */

.welcome.index div#leftbar h2 { text-align: center; }
.welcome.index div#leftbar h3.map_title   { text-align: center; margin-bottom: 10px; }
.welcome.index div#leftbar #drawing_note  { font-size: 12px; color: #555; margin-left: 20px; }
.welcome.index .course_search { position: relative; width: 100%; }
.welcome.index .course_search input.text   { position: absolute; top: -52px; left: 50%; margin-left: -175px; border: 0; width: 350px; height: 30px; font-size: 16px; padding: 2px 4px; background-color: #FFF; border: 1px solid #CCC;  }
.welcome.index .course_search input.submit { position: absolute; top: -52px; left: 50%; margin-left: 185px; width: 45px; height: 36px; font-size: 12px; font-weight: bold; background-color: #CCC; border: 0; }


/* ============= */
/* = Club page = */
/* ============= */

.clubs.show div#leftbar h2 { text-align: left !important; width: 600px; margin: 0 auto 20px; }
.clubs.show div#leftbar h3 { font-size: 20px; width: 600px; margin: 20px auto 10px; }
.clubs.show div#leftbar h4 { font-size: 16px; width: 600px; margin: 0 auto 10px; }
.clubs.show div#leftbar div#courses_anchor_links   { margin-bottom: 10px; color: #555; }
.clubs.show div#leftbar div#courses_anchor_links a { text-decoration: underline; color: #555; }

.clubs.show div#leftbar h5 { font-size: 16px; color: #999; margin: 0; padding: 0; }
.clubs.show div#leftbar .club_coord { float: right; width: 400px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clubs.show div#leftbar .club_coord h5 { float: left; width: 90px; padding-right: 10px; text-align: right; clear: left; }

.clubs.show div#leftbar .course .completeness { width: 600px; margin: 0 auto 10px; }
.clubs.show div#leftbar .course h3 { font-size: 24px !important; margin-top: 50px; background-color: #EEE; margin: 50px 0 0 0 !important; padding: 20px; }

.clubs.show div.scorecard { background-color: transparent; padding: 1em }
.clubs.show div.scorecard table tr,
.clubs.show div.scorecard table td { padding: 6px 3px; width: 20px; text-align: center !important; }
.clubs.show div.scorecard table th { text-align: center !important; }
.clubs.show div.scorecard table tr.first_column,
.clubs.show div.scorecard table td.first_column { padding: 6px 12px 6px 8px; text-align: right !important; }
.clubs.show div.scorecard .tee_listing span { padding: 1px 4px; }

.clubs.show .completeness { padding: 10px; background-color: #EEE; width: 580px !important; margin: 0 auto; }
.clubs.show .completeness img { float: left; margin: 0 10px 10px 0; }
.clubs.show .completeness .edit_shapes_button { float: right; display: block; padding: 8px; background-color: #AAA; color: #333; font-weight: bold; width: 200px; text-align: center; }
.clubs.show .completeness .edit_shapes_button:hover { display: block; padding: 8px; background-color: #333; color: white; text-decoration: none; }

.clubs.show a.buy_iphone_app { background-color: #DDD; padding: 5px 10px; position: relative; top: 25px; left: 10px; }
.clubs.show a.buy_iphone_app:hover { background-color: #CCC; text-decoration: none; }

.clubs.show .edit_box { float: right; margin-right: 20px; }
.clubs.show .edit_box a { color: #888; font-size: 12px; }

.clubs.show .add_course { background-color: #EEE; padding: 10px; }


/* =================== */
/* = Enjoy on iPhone = */
/* =================== */


.oh_my_golf.enjoy_on_iphone .illustrative_iphone_image { float: left; }
.oh_my_golf.enjoy_on_iphone .illustrative_iphone_image.right { float: right; }
.oh_my_golf.enjoy_on_iphone .portrait img { width: 100px; margin: 0 20px 20px; }
.oh_my_golf.enjoy_on_iphone .landscape img { width: 200px; margin: 0 20px 20px; }
.oh_my_golf.enjoy_on_iphone .market_block { margin: 20px 0 40px; clear: both; }
.oh_my_golf.enjoy_on_iphone .market_block h3 { margin: 0 0 10px 0; }
/*.oh_my_golf.enjoy_on_iphone .title { margin-bottom: 30px; }*/


/* =============== */
/* = Simple form = */
/* =============== */

form.simple_form { margin: 0; padding: 0; }
form.simple_form h2 { line-height: 24px; }
form.simple_form label { width: 100px; display: block; float: left; text-align: right; margin-right: 10px; }
form.simple_form textarea { height: 100px; width: 400px; }
form.simple_form textarea.large { height: 200px; width: 450px; }
form.simple_form p { clear: both; padding-bottom: 5px; }
form.simple_form .check_box { padding-left: 110px; }
form.simple_form .check_box label { float: none; width: auto; display: inline; text-align: left; margin: auto; }
form.simple_form .submit_tag,
form.simple_form .description { margin-left: 110px; clear: both; }
form.simple_form small.required  { color: #AAA; font-size: 10px; line-height: 10px; }
form.simple_form div.info,
form.simple_form span.info { color: #777; font-size: 12px; line-height: 16px; margin: 0; padding: 0; margin-top: -14px; margin-left: 110px; }
form.simple_form span.info { display: block; margin-top: auto; }
form.simple_form div.errorExplanation { background-color: #FFF0F0; padding: 10px; margin-bottom: 20px; }
form.simple_form div.errorExplanation h3 { margin-bottom: 10px; }
form.simple_form span.fieldWithErrors { display: inline !important; margin: 0; padding: 0; }
form.simple_form span.fieldWithErrors input { border-color: #B71F00; }
form.simple_form span.fieldWithErrors label { color: #B71F00; }
form.simple_form span.fieldWithErrors label a { color: #B71F00; }
form.simple_form p { display: block !important; margin: 0; padding: 0; padding-bottom: 5px; }
form.simple_form hr { margin-left: 110px; border: none; border-top: 1px solid #999; width: 400px; }
form.simple_form .submit_box { background-color: #F6F6F6; padding: 10px 10px 0; margin-left: 100px; width: 400px; border-top: 1px solid #999; }
form.simple_form .submit_box .submit_tag,
form.simple_form .submit_box .check_box { margin-left: 0; padding-left: 0; }


/* ================== */
/* = Signup & Login = */
/* ================== */

.users.new .login { padding-top: 20px; }
.users.new div#rightbar p { padding: 0 10px 10px; font-size: 14px; }

/* ================ */
/* = Terms of Use & Privacy Policy = */
/* ================ */

.oh_my_golf.terms_of_use h3, .oh_my_golf.privacy_policy h3 { margin: 30px 0 10px; }
.oh_my_golf.terms_of_use p,
.oh_my_golf.terms_of_use ul,
.oh_my_golf.privacy_policy p,
.oh_my_golf.privacy_policy ul  { font-size: 12px; }


/* ============================== */
/* = The Digitalization Process = */
/* ============================== */

.oh_my_golf.the_digitalization_process h3 { margin: 30px 0 20px; }
.oh_my_golf.the_digitalization_process .course_map_state_description {  }
.oh_my_golf.the_digitalization_process .course_map_state_description img { float: left;  }
.oh_my_golf.the_digitalization_process .course_map_state_description p { margin-left: 40px !important;  }
.oh_my_golf.the_digitalization_process .course_map_state_description strong { display: block;  }




/* ================== */
/* = Courses search = */
/* ================== */

.courses.index div#leftbar h2 { padding-bottom: 20px; }
.courses.index .search_form   { clear: both; background-color: #EEE; padding: 20px 30px; }

.courses.index h3.country_title { background-color: #CCC; padding: 10px 20px; clear: both; margin: 20px 0 0; }
/*.courses.index .pagination { float: right; margin: 20px 10px 10px; }*/
.courses.index .country { margin: 20px; }
.courses.index h4.city_title { font-weight: bold; }
.courses.index .city { margin: 20px; }
.courses.index .city ul li { margin: 0; padding: 0; }



/* ========== */
/* = Rounds = */
/* ========== */

.rounds_container { margin-top: 15px; }
.rounds_container .round      { padding: 0 0 0 10px; margin: 10px 0 !important; border-left-width: 20px; border-left-style: solid; cursor: pointer; position: relative; }
.rounds_container .round .round_inner_wrapper      { margin-right: 100px; }
.rounds_container .round.odd  { border-left-color: #333; }
.rounds_container .round.even { border-left-color: #AAA; }
.rounds_container .round.championship_participation { border-left-color: #7ABC58 !important; }
.rounds_container .round.hovered { background-color: #EEE; }
.rounds_container .round h4 { font-weight: bold; }
.rounds_container .round h5 { color: #555; }
.rounds_container .round .with_players { font-size: 14px; color: #AAA; }
.rounds_container .round .delete_button { position: absolute; right: 20px; top: 15px; background-color: #C35252; padding: 5px 8px; color: white; text-decoration: none; visibility: hidden; }
.rounds_container .round.hovered .delete_button { visibility: visible }



/* ========== */
/* = Rounds = */
/* ========== */


.rounds.show div#leftbar h2 { text-align: left !important; width: 600px; margin: 0 auto 20px; }
.rounds.show div#leftbar h3 { font-size: 20px; width: 600px; margin: 20px auto 10px; }
.rounds.show div#leftbar h4 { font-size: 16px; width: 600px; margin: 0 auto 10px; font-weight: bold; }
.rounds.show div#leftbar h5 { font-size: 16px; width: 580px; margin: 0 auto 10px; color: #555; font-weight: bold; }
.rounds.show .round_navigation { float: right; margin-right: 20px; }
/*.rounds.show .round_navigation a { height: 12px; font-size: 10px; background-color: #EEE; line-height: 12px; padding: 3px 5px; margin: 0 5px; }*/


.rounds.show div#rightbar .expandbox { background-color: #FFCACA; display: block; margin: 0 auto; width: 280px; text-align: center; overflow: hidden; height: 20px; padding-bottom: 20px; }
.rounds.show div#rightbar .expandbox a.toggle_expandbox { text-decoration: none; padding: 10px 6px; display: block; }
.rounds.show div#rightbar .expandbox .expandbox_content { padding-top: 20px; width: 240px !important; margin: 0 auto !important; }



.rounds.show .scorecard_buttons { text-align: center; background-color: #EEE; height: 30px; padding: 10px 0 0; }
.rounds.show .scorecard_buttons a { padding: 4px 8px; border: 0px solid #CCC; text-decoration: none; }
.rounds.show .scorecard_buttons a:hover { border: 0px solid #DDD; text-decoration: none; background-color: #DDD; }
.rounds.show .scorecard_buttons a.selected { border: 0px solid #CCC; text-decoration: none; background-color: #CCC; }
.rounds.show .scorecard_buttons div.seperator { display: inline-block; width: 40px; height: 10px; }

.rounds.show .statistics .statistic_block { width: 600px; margin: 10px auto 20px; width: 290px; }
.rounds.show .statistics .par_distribution { float: left; }
.rounds.show .statistics .putt_distribution { float: left; }
.rounds.show .statistics hr { margin: 2em 1em; border: none; border-top: 1px solid #CCC; }

.rounds.show .championships { padding: 10px 0 0; margin-bottom: 20px; background-color: #F5E5E5; text-align: center; }
.rounds.show .championships h3 { text-align: left; }
.rounds.show .championships .button { background: transparent url(/images/championships/fairways_button.png) no-repeat top left; width: 280px; height: 38px; margin: 0 auto; padding-top: 6px; }
.rounds.show .championships .button a { text-decoration: none; color: white; display: block; }
.rounds.show .championships p { text-align: left; font-size: 14px; padding-bottom: 20px; }
.rounds.show .championships ul { text-align: left; }
.rounds.show .championships.green, 
.rounds.show .championships .green_championships { background-color: #AFD29D; }
.rounds.show .championships .green_championships { margin-bottom: 0; padding: 20px 0 5px; }
/* green_championships - what a lousy name... */



/* =========================== */
/* = Club courses user input = */
/* =========================== */

.club_course_new h3 { margin-bottom: 20px; margin-top: 30px; }
.club_course_new .hole_mapping { width: 300px;  }
.club_course_new .hole_mapping td input { width: 20px; }
.club_course_new .hole_mapping td input { width: 20px; }
.club_course_new .hole_mapping td,
.club_course_new .hole_mapping th { text-align: center; padding: 0; }
.club_course_new .hole_mapping .input_cell { width: 15px !important; }
.club_course_new .hole_mapping .hole_number { width: 20px !important; text-align: right; padding-right: 10px; }

.club_course_new .course { background-color: #EEE; border: 1px solid #999; padding: 20px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin-bottom: 10px; }
.club_course_new #add_course { padding: 10px 0 20px; }
.club_course_new .remove_course { float :right; margin-bottom: -20px; }
.club_course_new .course_tees {  }
.club_course_new .course_tees tr td input { width: 100px; }
.club_course_new .course_tees tr th { font-size: 12px; }

.club_course_new .course_tees div.autocomplete { margin:0px; padding:0px; width:250px; background:#fff; border: 1px solid #888; border-top: none; position:absolute; font-size: 12px; }
.club_course_new .course_tees div.autocomplete ul { margin: 0px; padding: 0px; list-style-type: none; }
.club_course_new .course_tees div.autocomplete ul li.selected { background-color: #D0F6FF; }
.club_course_new .course_tees div.autocomplete ul li { margin: 0; padding:2px; height: 20px; display:block; list-style-type: none; cursor: pointer; }

.club_course_new .fieldWithErrors { display: inline !important; margin: 0; padding: 0; }
.club_course_new .fieldWithErrors input { border-color: #B71F00; border-width: 2px; border-style: solid; }
.club_course_new .fieldWithErrors label { color: #B71F00; }
.club_course_new .fieldWithErrors label a { color: #B71F00; }

.club_course_new .error_message_box { background-color: #FFF0F0; padding: 10px; margin-bottom: 20px; }
.club_course_new .error_message_box h3 { margin-bottom: 10px; }

