/*
 *      Copyright 2008 Antoine Millet <antoine@inaps.org>
 * 
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

#command {
	padding: 0.8em;
	background: #91896f;
	width: 35em;
	margin: 0 auto 2em auto;
	-moz-border-radius-bottomleft: 0.4em;
	-webkit-border-bottom-left-radius: 0.4em;
	-moz-border-radius-bottomright: 0.4em;
	-webkit-border-bottom-right-radius: 0.4em;
}#command form {
	display: inline;
	margin-left: 1em;
}

#c {
	width: 23em;
}

#logo {
	vertical-align: middle;
}

h1 {
	margin-top: 2em;
	margin-bottom: 2em;
	font: 20px Helvetica, sans-serif;
	padding: 0.2em;
	color: #fff;
	font-variant: small-caps;
	text-decoration: none;
	text-align: center;
	background: #91896f url("/medias/images/h1_background.png");
	-moz-border-radius: 0.4em;
	-webkit-border-radius: 0.4em;
}

#doc_body h1{
	display: none;
}

#doc_body h2{
	background-image: url("/medias/images/header_background.png");
	padding: 0.2em;
}

#page {
	width: 50em;
	margin: 0 auto 0 auto;
	text-align: left;
}

#footer {
	width: 50em;
}

.choices {
	margin-top: 2em;
	text-align: center;
}

.choices a {
	color: #91896f;
	font-weight: bold;
}

p {
	line-height: 1.4em;
}
/* **************** */
/*      Forms       */
/* **************** */

#form table {
	border-collapse: collapse;
}

#form table tr {
	border-bottom: solid 0.1em #91896f;
}

#form table tr td {
	padding-top: 1em;
	padding-bottom: 1em;
}

#form .errors {
	list-style-image:url("/medias/images/err.png");
	margin: 0.2em;
	color: #d40c14;
}

#form .label {
	width: 20em;
}

#form .label h2 {
	font-size: 1em;
	margin: 0;	
}

#form .label small {
	color: #888;
}

#form .field input, #form .field textarea {
	width: 30em;
}

#form .controls {
	text-align: right
}

#form .controls input, #form .controls a {
	margin: 1em;
}

#form .controls a {
	color: #91896f;
	font-weight: bold;
}

/* **************** */
/*   Type choice    */
/* **************** */

.types {
	overflow: auto;
}

.types li {
	display: block;
	float: left;
	background: #91896f;
	padding: 1em;
	color: #fff;
	width: 40%;
	margin: 1em;
	height: 18em;
	-moz-border-radius: 0.4em;
	-webkit-border-radius: 0.4em;
}

.types li h2 {
	margin: 0;
	color: inherit;
	text-align: center;
}

.types li p {
	font-size: 0.9em;
}

.types li .link {
	text-align: right;
	font-size: 1.1em;
}

.also {
	text-align: center;
}

.mail {
	color: #af0f0f;
}

.centerize {
	text-align: center;
	font-size: 1.3em;
}

.caution {
	width: 40em;
	background: #fceaea;
	border: solid 0.2em #ea8b8b;
	padding: 1em;
	margin: 2em auto 2em auto;
}

.caution p {
	margin: 0;
	margin-left: 3em;
}

.caution span {
	float: left;
	font-size: 3em;
	font-weight: bold;
	color: #ea6868;
}

.html {
	font-size: 0.9em;
	background: #fafbe1;
	padding: 1em;
	margin: 1em 1em 2em 1em;
	color: #767669;
}


/* MAN */

.man_text {
	margin-left: 2em;
}

.man_desc {
	font-size: 1.1em;
	overflow: auto;
}


/* NEWS */
.chapo {
	font-style: italic;
}

.chapo .date {
	color: #888;
}

.author {
	font-style: italic;
	text-align: right;
	color: #888;
	font-size: 0.9em;
}

/* Code lua */

.function_doc {
	margin-top: 1em;
	margin-left: 1em;
	margin-bottom: 1em;
	border-left: solid 0.5em #e1eafb;
	padding-left: 0.5em;
}

.function_doc h3, .function_doc p {
	margin-top: 0.3em;
	margin-bottom: 0.3em;
}

.function_doc p {
	margin-left: 1em;
}

.lua {
	background: #e1eafb;
}

.lua .package {
	font-weight: bold;
}

/* search */

.search_listing {
	list-style-type: none;
	padding: 0;
}

.search_listing li {
	padding: 0.2em;
	margin: 0.5em;
	-moz-border-radius: 0.4em;
	-webkit-border-radius: 0.4em;
	border-bottom: solid 0.1em #DDD;
}

.search_listing li:last-child {
	border: none;
}

.search_listing h2 {
	margin-top: 0;
}

.search_listing p {
	margin: 0.3em;
	font-size: 0.9em;
	color: #333;
}

.search_listing .desc {
	float: right;
}

.search_listing .pos {
	float:left;
	clear:left;
	width: 5em;
	height: 5em;
	text-align: center;
	font-size: 0.8em;
	color: #AAA;
}
.search_listing .pos .nb {
	font-size: 2em;
	color: #000;
}

.top_duration {
	list-style-type: none;
	text-align: center;
}

.top_duration li {
	display: inline;
}
.top_duration li:after {
	color: #70625f;
	content: " -"
}
.top_duration li:last-child:after {
	content: ""
}

/* Statistiques */

.stats {
	margin: 1em;
}

.stats .scanvas {
	width: 400px;
	height: 200px;
	margin: 0 auto 0 auto;
}

.stats h3 {
	text-align: center;
	margin: 0;
}
