/*
 * Copyright (C) 2009 Rafael Viotti
 *
 *   Author: Rafael G. Viotti <rviotti@gmail.com>
 */

@import url(forms.css);
@import url(messages/messages.css);

/*
 * Generic styles.
 */

html {
  overflow-y: scroll; /* Forces the vertical scrollbar to appear. */
}

body {
  font-family: Georgia, "Lucida Grande", "Andale Mono", Verdana, serif;
  font-size: 12pt;
  color: #333;
  margin: 0;
}

img {
  border-width: 0;
}

pre {
  font-size: 10pt;
}

h1, h2, h3, h4, h5 {
  font-weight: normal;
}

h2 {
  font-style: italic;
}

.light {
  background: white;
}

.dark {
  background: #EEE;
}

.rounded {
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
}

.inliner {
  display: inline-block;
  vertical-align: top;
}

.arrow {
  text-decoration: none;
  font-size: 80%;
}

/*
 * Page containers: wrapper(header, content(left, right), footer, debug).
 *
 * The "debug" container is rendered when four conditions are met:
 *
 *   - the DEBUG variable is set to True;
 *   - the debug context processor appears on TEMPLATE_CONTEXT_PROCESSORS;
 *   - the client IP is listed on INTERNAL_IPS;
 *   - the view uses a instance of RequestContext to render the template.
 */

#wrapper, #header, #content, #footer, #debug {
  clear: both;
  margin: 15px auto;
  position: relative;
}

#wrapper {
  width: 780px;
  margin: 0 auto;
}

#header {
  letter-spacing: 1px;
  float: left;
}

#footer {
  border-top: 1px solid LightGrey;
  text-align: center;
  font-style: italic;
}

/*
 * Header elements.
 */

#navigation > div {
  float: left;
  width: 192px;
  background-color: #AAA;
  margin-left: 4px;
  text-align: center;
}

#navigation > div:first-child {
  margin-left: 0;
}

#navigation > div.selected, #navigation > div:hover {
  background-color: #CCC;
}

#navigation > div a {
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  padding: 5px;
  display: block;
  color: white;
}

#navigation > div.selected a, #navigation > div a:hover {
  color: #666;
}

/*
 * Content elements.
 */

#content p {
  text-align: justify;
}

#content p, #content ul {
  line-height: 1.5em;
}

/*
 * Footer elements.
 */

#idiom {
  position: absolute;
  left: 0;
  padding: 2px;
}

#copyright {
  margin: 5px 0 15px 0;
}

/*
 * Debug elements.
 */

#queries thead {
  color: white;
  background: #666;
}

#queries th, #queries td {
  padding: 5px;
}

#queries pre {
  white-space: normal;
  margin: 0;
}

