* { margin: 0; padding: 0; }
html, body { height: 100%; }

/***********************************
 * Nappisivu 
 */
 
#nalkaWrap {
	text-align: center;
	position: absolute;
	top: 25%;
	left: 0px;
	margin-top: -50px;
	width: 950px;
}
#nalka {
	margin: 0 auto;
	background: #6a6a6a url(../img/ulkoasu/nalka_bg.gif) 0px 0px no-repeat;
	text-align: center;
	position: relative;
	width: 763px;
	height: 333px;
}
#nalka a {
	position: absolute;
	top: 25px;
	left: 246px;
	display: block;
	background: #6a6a6a url(../img/ulkoasu/nalka.jpg) 0px 0px no-repeat;
	width: 282px;
	height: 282px;
}
#nalka a:hover {
	background: #6a6a6a url(../img/ulkoasu/nalka.jpg) -282px 0px no-repeat;
}

/***********************************
 * Default Layout
 */

body {
	background: #6a6a6a url(../img/ulkoasu/bg_gradient.gif) top left repeat-x;
	text-align: center;
}
#wrapper {
	position: relative; /* IE needs */
	width: 952px;
	min-height: 100%; /* for footer */
	height: auto !important; /* for footer */
	height: 100%; /* for footer */
	margin: 0 auto -100px; /* for footer. footer -height */
	text-align: left;
}
#wrapper #logo {
	margin: 0 0 10px 0;
}
#wrapper #leftCol {
	float: left;
	width: 536px;
}
#wrapper #rightCol {
	float: right;
	width: 414px;
}
#footPush {
	height: 130px; /* 100px footer height + 30px as margin */
	clear: both;
}
#footer {
	height: 99px;
	position: relative;
	background: #4e4e4e url(../img/ulkoasu/footer_gradient.gif) 0 0 repeat-x;
	width: 100%;
}

html body #footer p {
	line-height: 95px;
	font-size: 12px;
	color: #aaa;
	padding: 0;
	margin: 0;
}
#footer a {
	text-decoration: underline;
	color: #aaa;
}
#footer a:hover {
	color: #e5e5e5;
}
#footer .delim {
	padding: 0 10px;
}

#foodsIndex #wrapper {
	margin: 0 auto -50px; /* for footer. footer -height */
}
#foodsIndex #footer {
	height: 48px;
}
#foodsIndex #footer p {
	line-height: 48px;
}

/***********************************
 * Box
 */

.box *, .archbox * {
	margin: 0; /* for h1, h2, p, etc. to not f*ck up box borders */
}
.box, .archbox {
	margin: 6px 0px;
	background: #fff url(../img/ulkoasu/border.gif) 100% 0 repeat-y; /* right border */
}
.box2, .archbox2 {
	background: #fff url(../img/ulkoasu/border.gif) 0 0 repeat-y; /* left border */
	margin-right: 8px;
}
.box .tb {
	height: 17px;
	margin-right: -8px;
	background: url(../img/ulkoasu/box.gif) 100% 0 no-repeat;
}
.box .tb div {
	width: 18px;
	height: 17px;
	background: url(../img/ulkoasu/box.gif) 0 0 no-repeat;
}
.box .bb {
	height: 17px;
	margin-right: -8px;
	background: url(../img/ulkoasu/box.gif) 100% 100% no-repeat;
}
.box .bb div {
	width: 18px;
	height: 17px;
	background: url(../img/ulkoasu/box.gif) 0 100% no-repeat;
}
.archbox .tb {
	height: 40px;
	margin-right: -8px;
	background: url(../img/ulkoasu/archbox.gif) 100% 0 no-repeat;
}
.archbox .tb div {
	width: 18px;
	height: 40px;
	background: url(../img/ulkoasu/archbox.gif) 0 0 no-repeat;
}
.archbox .bb {
	height: 17px;
	margin-right: -8px;
	background: url(../img/ulkoasu/archbox.gif) 100% 100% no-repeat;
}
.archbox .bb div {
	width: 18px;
	height: 17px;
	background: url(../img/ulkoasu/archbox.gif) 0 100% no-repeat;
}
.box .cont, .archbox .cont {
	background: #fff;
	margin-left: 8px;
}
.box .cont .cont2, .archbox .cont .cont2 {
	margin: 0 5px 0 15px;
	padding-top: 8px;
	overflow: hidden;
	word-wrap: break-word;
}
#leftCol .box, #leftCol .archbox {
	width: 533px;
}
#rightCol .box {
	width: 410px;
}

.colBottomLinks .printLink {
	float: left;
	padding-left: 20px;
	background: transparent url(/img/ulkoasu/print.gif) 0 2px no-repeat;
}
.colBottomLinks .topLink {
	float: right;
	padding: 0 5px 0 12px;
	background: transparent url(/img/ulkoasu/up.gif) 0 3px no-repeat;
}
.colBottomLinks {
	color: #eee;
	font-size: 11px;
}
.colBottomLinks a,
.colBottomLinks a:visited {
	color: #eee;
	text-decoration: underline;
	font-size: 11px;
}
.colBottomLinks a:hover {
	color: #aaa;
}

/***********************************
 * Brief food
 */

.btnLeft a, .btnRight a {
	display: block;
	width: 34px;
	height: 34px;
	text-decoration: none;
}
.btnLeft a:hover {
	background: #fff url(../img/ulkoasu/btn_left_right.gif) -34px 0 no-repeat;
}
.btnRight a:hover {
	background: #fff url(../img/ulkoasu/btn_left_right.gif) 0 0 no-repeat;
}
.btnLeft a {
	background: #fff url(../img/ulkoasu/btn_left_right.gif) -34px -34px no-repeat;
}
.btnRight a {
	background: #fff url(../img/ulkoasu/btn_left_right.gif) 0 -34px no-repeat;
}
.similarFood .titleBar {
	width: 356px;
	margin: 0 auto;
}
.similarFood .btnLeft {
	float: left;
}
.similarFood .title {
	margin: 0 auto;
	width: 275px;
}
.similarFood .btnRight {
	float: right;
}
.similarFood h1 {
	font-size: 15px;
	color: #444;
	line-height: 30px;
	text-align: center;
}
.similarFood {
	float: left;
	clear: both;
	width: 364px;
}
.briefFoodWrapper {
	float: left;
	clear: both;
	width: 364px;
}
.similarFood .foodSlider {
	position: relative;
	overflow: hidden;
	height: 110px;
	width: 364px;
	margin: 10px 0 0 0;
}
.similarFood .briefFood {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 364px;
}
.briefFood .name, .briefFood .image, .briefFood .nutrition {
	float: left;
}
.briefFood .name, .briefFood .nutrition {
	width: 250px;
	margin: 3px 0 0 10px;
}
.briefFood .name {
	color: #390;
	font-size: 17px;
	width: 250px;
}
.similarFood .ingredients {
	float: left;
	width: 170px;
	margin: 0px 0px 10px 15px;
}

/***********************************
 * Tell a friend & Comment form
 */

.tellaFriend, #rightCol .tellaFriend .textInput, #rightCol .tellaFriend textarea {
	width: 330px;
}
#rightCol .tellaFriend textarea {
	height: 5em;
}
.tellaFriendWrapper {
	text-align: center;
}
.tellaFriend {
	margin: 0 auto;
	text-align: left;
}
.tellaFriend div {
	margin: 3px 0;
}
.tellaFriend .submitHolder {
	text-align: center;
}

.commentForm {
	padding-bottom: 10px;
	margin-bottom: 10px;
	text-align: center;
}
.comment {
	padding: 0 0 15px 0;
}
.comment .body {
	width: 435px;
	word-wrap: break-word; /* IE rule */
}
.comment .created {
	font-size: 12px;
}
.comment .author {
	font-weight: bold;
}
.commentForm .submitInput {
	display: none;
}
#leftCol .commentForm textarea {
	height: 40px;
}

/***********************************
 * Font
 */
body, table {
	font-family: sans-serif, verdana, arial;
	font-size: 13px;
	line-height: 18px;
}
p {
	padding: 0 0 0.8em 0;
}
a {
	color: #390;
	text-decoration: none;
}
a:hover {
	color: #3c0;
}
a:visited {
	color: #3a7014;
}
#topLinks {
	margin-top: 6px;
	color: #fff;
}
#topLinks a {
	color: #fff;
	text-decoration: underline;
	font-size: 12px;
	letter-spacing: 0.5px;
}
#topLinks a:hover {
	text-decoration: none;
}
small {
	font-size: 12px;
}
.faintish {
	color: #999;
}
.faint {
	color: #bbb;
}

/***********************************
 * Editing
 */

#foodsEdit input.name,
#foodsAdd input.name,
#ingredientsEdit input.name {
	padding: 5px 9px;
	font-size: 150%;
	width: 95%;
}
#foodsEdit h1,
#foodsEdit h2,
.foodInfo h1,
.foodInfo h2 {
	padding: 0 0 0.5em 0;
}
#foodsEdit p,
#foodsAdd p,
.foodInfo p {
	padding: 0 0 1em 0;
}

#foodsAdd h1 {
	padding-bottom: 0.6em;
}
#foodsEdit table.ingredient {
	width: 450px;
}
#foodsEdit table.ingredient td {
	padding: 10px 5px 8px 15px;
}
#foodsEdit table.ingredient .editNutrition td {
	padding: 0px 5px;
	white-space: nowrap;
}
#foodsEdit .nutritionHelp {
	float: right;
	width: 100px;
	color: #bbb;
}
#foodsEdit .ingredientName {
	width: 230px;
}
.ac_results ul li {
	list-style-type: none;
	background-image: none;
}
#foodsEdit .lightbox a {
	float: left;
	margin: 5px;
}
#foodsEdit .showNutrition {
	color: #555;
	font-size: 11px;
}
#foodsEdit #leftCol textarea {
	height: 150px;
}
input.small {
	width: 3em;
}
input.amount {
	width: 5em;
}
.odd td {
	background-color: #fff;
}
.even td {
	background-color: #eee;
}

/***********************************
 * Signup
 */

.signup input.textInput, .signup input.passwordInput {
	width: 300px;
}

/***********************************
 * Form
 */

input[type=text], input[type=password], textarea {
	border-bottom: 1px solid #ddd;
	border-right: 1px solid #ddd;
	border-left: 1px solid #666;
	border-top: 1px solid #666;
}

#leftCol textarea {
	width: 400px;
	height: 100px;
}

input, textarea {
	padding: 1px 3px;
}
.ingredient .functions {
	width: 7em;
}
.ingredient .functions a {
	font-size: 11px;
	white-space: nowrap;
}
.ingredient .amount input {
	width: 5em;
	margin: 0 0.5em;
}
.f12 {
	font-size: 12px;
}
.message { /* e.g. auth message */
	font-weight: bold;
	padding-bottom: 0.6em;
}
.error-message {
	color: #b00;
	font-weight: bold;
}


/***********************************
 * Food list
 */

table.foodList, table.dataTable {
	width: 485px;
}
table.foodList td, table.dataTable td {
	padding: 1px 2px;
}

/***********************************
 * Random food
 */
.randomFood {
	float: left;
	width: 497px;
}
.randomFood .name {
	float: left;
	width: 370px;
}
.randomFood .image {
	float: left;
	clear: left;
	width: 254px;
	height: 204px;
}
.randomFood .ingredients,
.randomFood .nutrition {
	float: left;
	width: 215px;
	margin: 5px 0px 10px 15px;
}
.randomFood .nutrition {
	display: none;
}
.randomFood .ingredients ul {
	margin: 0;
}
.randomFood .ingredients ul li,
.similarFood .ingredients ul li,
.whyRegister ul li {
	list-style-type: none;
	background: #fff url(../img/ulkoasu/li_green.gif) 0px 2px no-repeat;
	padding-left: 15px;
	line-height: 15px;
}
.randomFood .body {
	width: 100%;
	clear: both;
	padding-top: 10px;
}
.randomFood .shareLink {
	clear: left;
	padding-top: 5px;
}
.randomFood .shareLink img.veggie,
.randomFood .shareLink img.low_carbs,
.randomFood .shareLink img.speed {
	margin-left: 10px;
}
.randomFood .author {
	clear: both;
	text-align: right;
}

.randomFood .stars {
	float: right;
}
.similarFood .stars {
	margin-left: 10px;
	float: left;
}
.stars {
	position: relative;
	width: 105px;
}
.randomFood .stars .star {
	cursor: pointer;
}
.stars .star {
	width: 20px;
	height: 20px;
	float: left;
}
.stars .star {
	background: #fff url(../img/ulkoasu/star.gif) top left no-repeat;
}
.stars .grey {
	background: #fff url(../img/ulkoasu/star_grey.gif) top left no-repeat;
}
.stars .voteCount {
	position: absolute;
	bottom: -20px;
	right: 5px;
	clear: both;
	float: right;
	width: 120px;
	font-size: 11px;
	color: #690;
	text-align: right;
}
.randomFood .stars .msgbox {
	font-size: 11px;
	text-align: center;
}


.randomFood h2,
.similarFood h2,
h2 {
	color: #390;
	font-size: 17px;
	padding-bottom: 0.3em;
}
.randomFood h1,
h1 {
	margin: 0 0 8px 0;
	padding: 0;
	color: #390;
	font-size: 23px;
	line-height: 22px;
	font-family: "Trebuchet MS";
}
h1, h2, h3 {
	padding-bottom: 0.6em;
}
h1, h2 {
	color: #390;
}
h3 {
	font-size: 15px;
	color: #444;
}

/***********************************
 * Other
 */
ul {
	margin: 0 0 0 3em;
}
ul li {
	list-style-type: none;
	background: #fff url(../img/ulkoasu/li_yellow.gif) 0px 5px no-repeat;
	padding-left: 15px;
}
hr {
	border: none;
	border-bottom: 1px solid #bbb;
	height: 1px;
	margin: 10px;
}
label {
	cursor: pointer;
}

.hidden, .lightbox a.hidden {
	display: none;
}
.indent {
	margin-left: 2em;
}

.lightbox a {
	display: block;
	position: relative;
}
.lightbox img {
	display: block;
	position: relative;
}
.lightbox .zoom {
	position: absolute;
	bottom: 6px;
	left: 10px;
	width: 29px;
	height: 28px;
	background: transparent url(../img/ulkoasu/zoom.gif) 0 0 no-repeat;
	z-index: 1;
}
#foodsEdit .lightbox .zoom {
	display: none;
}

img.large, img.medium, img.tiny {
	border: 1px solid #ccc;
	padding: 1px;
}
img.large, .lightbox a.large {
	width: 250px;
	height: 200px;
}
.lightbox a.medium {
	width: 104px; /* 100 + padding 1 + border 1 */
	height: 104px;
}
img.medium {
	width: 100px;
	height: 100px;
}
img.tiny, .lightbox a.tiny {
	width: 35px;
	height: 35px;
}
.retry {
	margin: 4px 0px;
}
.retry a {
	margin: 0;
	padding: 0;
	display: block;
	background: #fff url(../img/ulkoasu/rerollbtn.gif) 0 -65px no-repeat;
	width: 410px;
	height: 65px;
	text-decoration: none;
	font-size: 20px;
	color: #000;
	/*line-height: 68px;*/
}
.retry a:hover {
	background: #fff url(../img/ulkoasu/rerollbtn.gif) 0 0 no-repeat;
}
.retry a span {
	display: block;
	padding: 26px 0 0 90px;
}

.loginBox {
	position: relative;
	margin: 11px 0 7px 0;
	background: transparent url(../img/ulkoasu/login_box.gif) bottom left no-repeat;
	width: 410px;
	height: 69px;
}
.loginBox .button {
	position: absolute;
	display: block;
	width: 44px;
	height: 39px;
	white-space: nowrap;
}
.loginBox a.login {
	left: 60px;
	background: transparent url(../img/ulkoasu/login_buttons.gif) 0 -39px no-repeat;
}
.loginBox a.logout {
	left: 60px;
	background: transparent url(../img/ulkoasu/login_buttons.gif) 0 -39px no-repeat;
}
.loginBox a.register {
	left: 180px;
	background: transparent url(../img/ulkoasu/login_buttons.gif) -44px -39px no-repeat;
}
.loginBox a.profile {
	left: 180px;
	background: transparent url(../img/ulkoasu/login_buttons.gif) -132px -39px no-repeat;
}
.loginBox a.search {
	left: 300px;
	background: transparent url(../img/ulkoasu/login_buttons.gif) -88px -39px no-repeat;
}
.loginBox a.login:hover {
	background: transparent url(../img/ulkoasu/login_buttons.gif) 0 0 no-repeat;
}
.loginBox a.logout:hover {
	background: transparent url(../img/ulkoasu/login_buttons.gif) 0 0 no-repeat;
}
.loginBox a.register:hover {
	background: transparent url(../img/ulkoasu/login_buttons.gif) -44px 0 no-repeat;
}
.loginBox a.profile:hover {
	background: transparent url(../img/ulkoasu/login_buttons.gif) -132px 0 no-repeat;
}
.loginBox a.search:hover {
	background: transparent url(../img/ulkoasu/login_buttons.gif) -88px 0 no-repeat;
}
.loginBox .button span {
	display: block;
	height: 17px;
	position: absolute;
	top: 30px;
	cursor: pointer;
	color: #000;
	font-size: 12px;
	padding: 13px 0 0 0;
}
.loginBox .login span {
	left: -0.2em;
}
.loginBox .logout span {
	left: -1.1em;
}
.loginBox .register span {
	left: -1em;
}
.loginBox .profile span {
	left: -1em;
}
.loginBox .search span {
	left: 0.6em;
}
#loginFormHolder .textInput {
	width: 120px;
}

#searchFormHolder {
	display: none;
}
#foodsSearch #searchFormHolder, 
/*#foodsSuggestion #searchFormHolder*/ {
	display: block;
}
#searchFormHolder table {
	margin: 0 auto;
}
#searchFormHolder table td {
	padding: 1px 7px;
}
#searchFormHolder input.string {
	width: 100%;
}
#searchFormHolder .submitHolder {
	text-align: center;
	padding-top: 10px;
}

.addFoodImage {
	margin-top: 30px;
	float: left;
	clear: left;
}
.deleted {
	text-decoration: line-through;
	color: #bbb;
}
.blur {
	color: #bbb;
}
a img {
	border: 0;
}
.clear {
	clear: left;
	font-size: 1px;
}

.ac_results {
	text-align: left;
}

.cake-sql-log {
	margin: 20px;
	margin-top: 200px;
	clear: both;
}
.cake-sql-log td, .cake-sql-log th, .cake-sql-log caption {
	color: #aaa;
}

/***********************************
 * 
 */

#membersSignup .whyRegister .registerBtn {
	display: none;
}
#docOhje table td {
	padding: 1px 5px;
}

/***********************************
 * Profile
 */
#membersProfile #leftCol h2,
#docOhje #leftCol h2 {
	padding-top: 20px;
}
.tools h3 {
	background: transparent url(/img/ulkoasu/li_yellow.gif) 0 3px no-repeat;
	padding-left: 15px;
}
#membersProfile .stats {
	float: left;
	margin: 0 0 0 20px;
}
#membersProfile .stats td {
	padding: 2px 5px;
}
#membersProfile .stats .name,
#membersProfile .stats .value {
	font-weight: bold;
	color: #390;
}
#membersProfile .stats .value {
	text-align: right;
}
#membersProfile .stats .value span {
	font-size: 16px;
}


/**
 * jQuery lightBox plugin
 * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
 * and adapted to me for use like a plugin from jQuery.
 * @name jquery-lightbox-0.5.css
 * @author Leandro Vieira Pinho - http://leandrovieira.com
 * @version 0.5
 * @date April 11, 2008
 * @category jQuery plugin
 * @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
 * @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
 * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
 */
#jquery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 90;
	width: 100%;
	height: 500px;
}
#jquery-lightbox {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	text-align: center;
	line-height: 0;
}
#jquery-lightbox a img { border: none; }
#lightbox-container-image-box {
	position: relative;
	background-color: #fff;
	width: 250px;
	height: 250px;
	margin: 0 auto;
}
#lightbox-container-image { padding: 10px; }
#lightbox-loading {
	position: absolute;
	top: 40%;
	left: 0%;
	height: 25%;
	width: 100%;
	text-align: center;
	line-height: 0;
}
#lightbox-nav {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 10;
}
#lightbox-container-image-box > #lightbox-nav { left: 0; }
#lightbox-nav a { outline: none;}
#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
	width: 49%;
	height: 100%;
	zoom: 1;
	display: block;
}
#lightbox-nav-btnPrev { 
	left: 0; 
	float: left;
}
#lightbox-nav-btnNext { 
	right: 0; 
	float: right;
}
#lightbox-container-image-data-box {
	font: 10px Verdana, Helvetica, sans-serif;
	background-color: #fff;
	margin: 0 auto;
	line-height: 1.4em;
	overflow: hidden;
	width: 100%;
	padding: 0 10px 0;
}
#lightbox-container-image-data {
	padding: 0 0 0 10px; 
	color: #666; 
}
#lightbox-container-image-data #lightbox-image-details { 
	width: 70%; 
	float: left; 
	text-align: left; 
}	
#lightbox-image-details-caption { font-weight: bold; }
#lightbox-image-details-currentNumber {
	display: block; 
	clear: left; 
	padding-bottom: 1.0em;	
}			
#lightbox-secNav-btnClose {
	width: 92px;
	float: right;
	padding-bottom: 11px;	
}
