@import "elements";
@import "animation";

/* CSS DOCUMENT */
/***** RESET ******/
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, blockquote, pre, form, fieldset, table, th, td { margin: 0; padding: 0; }


/***** GENERAL *****/
html {
	height: 100%;
}
body {
	background-color: @bgLight;
	background-repeat: no-repeat;
	background-attachment: fixed;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 16px;
	height: 100%;
}
	
.inline-block {
	display: inline-block; /* Fix IE bug with disappearing text, apply to wrapper of disappearing element */
	}
.positive { color: #0066FF; }
.negative { color: #CC3333; }
.set { float: left; }
.two-columns { width: 49%; }
.three-columns { width: 32%; }
.clr {
	clear: both;
	visibility: hidden;
	height: 1px;
	}
ul {
	margin-top: 1em;
	margin-bottom: 1em;
	}
ul li { list-style-type: none; }
ul.image-list li { margin: 0 0 2em 0; }
ul.image-list a, ul.image-list a:hover {
	background-color: transparent;
	border: 0;
	}
.left { float: left; }
.right { float: right; }
.left-margin { margin-left: 1em; }
.bottom-margin { margin-bottom: 1em; }

div.primary div.readable-information, div.readable-information {
	float: left;
	width: 300px;
	}
div.primary div.readable-information p, div.readable-information p {
	margin: 1.5em 0 0 0;
	width: 100%;
	} 
div.primary div.readable-information p.slogan {
	font-size: 1.2em;
	margin: 2em 0 2em 0;
	width: 450px;
}

/* LINKS */
a { 
	border-bottom: #FFF 1px dotted;
	text-decoration: none;
	font-size: 1em; 
	font-weight: bold; 
	}
a:link { color: @textColor; border-bottom: 1px dotted @textColor; }
a:visited { color: @textColor; border-bottom: 1px dotted @textColor; }
a:hover { color: @textColorAlternate; background-color: @textColor; border-color: transparent; }
a:active{ color: @textColor; border-bottom: 1px dotted @textColor; }

a img { border: 0; }
a.image-link:link { border: 0; }
a.image-link:visited { border: 0; }
a.image-link:hover { background-color: transparent; border: 0; color: @textColor; }
a.image-link:active { border: 0; }

a[href$=jpg], a[href$=jpeg], a[href$=jpe], a[href$=png], a[href$=gif] {
	text-decoration: none;
	border: 0 none;
	}

header a {
	border: 0;
	
	&:link { color: #FFF; }
	&:visited { color: #FFF; }
	&:hover { color: #424242; background-color: #FFF; }
	&:active{ color: #424242; background-color: #FFF; }
	}
header a.logo {
	border: 0;
	
	&:hover { background-color: transparent; }
	&:active { background-color: transparent; }
}

/* HEADLINES */
h1 a {
	border-bottom: 0;
	float: left;
}

h1,h2,h3,h4 {
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-weight: normal;
}
h1 {
	font-size: 2.5em;
}
h3 {
	color: #c6c65b;
	font-size: 140%;
	padding: 2em 0 0 0;
}
h4 {
	color: #c6c65b;
	font-weight: normal;
	padding-top: 0.5em;
}

/* FOOTER */
footer {
	color: @subtleText;	
	padding: 0.5em;

	ul {
		float: left;
		width: 100%;
		
		li {
			float: left;
			list-style-type: none;
			margin: 0 0 0 1em;
		
			a {
				border-bottom: 0;
				font-size: 0.9em;
				color: @subtleText;
				
				&:link {
					color: @subtleText;
					border-bottom: 0;	
					}
				&:visited { color: @subtleText; }
				&:hover { 
					color: @subtleText;
					background-color: #FFF;
				}
				&:active { color: @subtleText; }
			}
		}
	}
}

#cakeSqlLog td {
	background: #fff;
	border-bottom: 2px solid #ccc;
	padding: 4px 8px;
	text-align: left;
}

/* Paging */
div.paging {
	color: #ccc;
}
div.paging div.disabled {
	color: #ddd;
	display: inline;
}

/* FORMS */

form {
	background-color: @contentBg;
	.bordered(@bgAlternate,@bgAlternate,@bgAlternate,@bgAlternate,10px);
	padding: 1em;
	.rounded(10px);
	.box-shadow(0 0 5px #CCC);
	
	fieldset {
		width: auto;
		
		legend {
			font-size: 2em;
		}
	}
	.requiredField {
		border: 2px #FFCC66 solid;
		/*background-color: #FFCC66;*/
		}
	
	div {
		
		background-color: @bgLight;
		clear: none;
		margin-bottom: 10px;
		padding: 10px;
		.rounded;
		/*
		clear: both;
		padding: .8em 1em 1em 1em;
		vertical-align: text-top;
		*/
		.required {
			color: #333;
			background: #f2f2f2;
			font-weight: bold;
		}
	
		.optional, form div.input {
			background: #f6f6f6;
			color: #444;
		}
		.submit {
			border: 0;
			clear: both;
			margin-top: 1em;
		}
	}
	input {
		background-color: @contentBg;
		display: inline;
		font-size: 1.2em;
		padding: 5px;
	}
	input, textarea, select {
		clear: both;
		display: block;
		font-size: 1em;
		width: auto;
		background-color: #FFF;
		border: 1px #DDD solid;
	}
	select {
		display: inline;
		vertical-align: text-bottom;
	}
	select[multiple=multiple] {
		width: 100%;
	}
	option {
		font-size: 14px;
		padding: 0 0.3em;
	}
	input.checkbox {
		clear: left;
		float: left;
		margin: 2px 6px 7px 2px;
		width: auto;
	}
	input[type=submit] {
		/*display: inline;
		padding: 0 .4em;
		width: auto;
		vertical-align: bottom;
		*/
		border: 5px @bgLight solid;
		font-weight: bold;
		padding: 0.2em 0.5em 0.2em 0.5em;
		color: @textColorAlternate;
		background-color: @primaryColor;
		.rounded;
	}
	input[type=hidden] {
		display: none;
	}
}

/* Notices and Errors */
div.message, p.error, div.error-message {
	color: #900;
	font-size: 16px;
	font-weight: bold;
	margin: 8px 0px;
}
div.error-message {
	clear: both;
}
/* The messages set by setFlash */
#flashMessage {
	font-weight: bold;
	margin: 0 0 1em 0;
	width: 100%;
	text-align: center;
	padding: 0.5em;
	.rounded;
}
.message-ok {
    border: solid 1px #cfc;
    background-color:#6d6;
}
div#message_info {
	background-color: #FFCC99;
	border-color:#d66;
}
div#message_error {
	background-color: #fcc;
	border-color: #d66;
}
div.error em {
	font-size: 18px;
	color: #003d4c;
}
span.notice {
	background-color: #c6c65b;
	color: #fff;
	display: block;
	font-size: 16px;
	padding: 0.5em;
	margin: 1em 0;
}

/* Actions */
div.actions {
	position: absolute;
	top: 75px;
	left: 25px;
	text-align: left;
}
div.actions ul {
	margin: 0;
	padding: 2px 6px;
	list-style-type: none;
	display: inline;
}
div.actions li {
	display: inline;
	list-style-type: none;
	margin: 0px 0px 3px 0px;
	padding: 0px 2px;
}
div.actions ul li a{
	background: #003d4c;
	border: 0px solid #656565;
	border-width: 1px 1px 0px 1px;
	color: #ddd;
	padding: 3px 8px;
	text-decoration: none;
}
div.actions ul li a:hover {
	background:#fff;
	color: #003d4c;
}

/* Related */
div.related {
	clear: both;
	display: block;
}
div.related div.actions {
	position: relative;
	top: 4px;
	left: 0;
	text-align: left;
}
div.related div.actions ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
div.related div.actions li {
	list-style-type: none;
	margin: 0 0 4px 0px;
	padding: 0;
}
div.related div.actions ul li a {
	background:#fff;
	color: #2C6877;
	padding: 0;
	text-decoration: underline;
}
div.related div.actions ul li a:hover {
	background:#fff;
	color: #2C6877;
	text-decoration: none;
}

/* Debugging */
pre {
	padding: 1em;
}

pre.cake_debug {
	margin: 2px;
	font-size: 12px;
	line-height: 18px;
}

div.cake-stack-trace {
	margin: 2px 2px 0 2px;
	font-size: 12px;
	line-height: 18px;
}

div.cake-stack-trace pre, div.cake-code-dump pre {
	color: #000000;
	background-color: #F0F0F0;
	border: 1px dotted #606060;
	padding: 2px 0 2px 5px;
	margin: 0px 4px 5px 5px;
}

div.cake-code-dump pre, div.cake-code-dump pre code {
	clear: both;
	font-size: 12px;
	line-height: 5px;
	margin: 0;
	padding: 0 0 10px 0;
}

div.cake-code-dump pre {
	padding: 7px 8px;
	margin: 1px 4px 2px 6px;
}

div.cake-code-dump span.code-highlight {
	background-color: #FFFF00;
}

