/**
 * Main styles for twisty.com.
 *
 * @todo Cleanup.
 */

/*--------------------------------------------------------------------------*/

html,
body
{
	color: #000;
	background-color: #996;
}

body
{
	min-width: 25em;
	max-width: 800px;
	width: 80%;
	padding: 10px;
	margin: 10px auto;
}

body,
table,
p,
ul,
ol,
dl
{
	font-family: monospace;
	font-size: 13px;
	line-height: 1.5em;
	font-weight: normal;
}

h1,
h2,
h3,
h4
{
	line-height: 1.5em;
	font-family: "Bookman Old Style", "American Typewriter", "Courier New", monospace;
}

h1
{
	border-width: 5px;
	border-style: solid;
	border-color: #960;
	color: #960;
	background-color: #C93;
	margin: 20px 0;
	padding: 20px;
	font-size: 2em;
	background-repeat: no-repeat;
}

blockquote
{
	margin-right: 0;
	padding: 10px;
	border: 1px dotted #996;
}

pre.wrap
{
	white-space: pre-wrap;       /* css-3 */
	white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
	white-space: -pre-wrap;      /* Opera 4-6 */
	white-space: -o-pre-wrap;    /* Opera 7 */
	word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

h1:hover
{
	border-color: #960;
}

#main,
#section-navigation,
.blogbody,
.blogbodyActive,
.section
{
	border-width: 5px;
	border-style: solid;
	margin: 20px 0;
	padding: 5px 20px;
}

#main,
.blogbody,
.section
{
	/* light green box */
	border-color: #663;
	color: #000;
	background-color: #CC9;
}

#main:hover,
.blogbodyActive,
.section:hover
{
	border-color: #330;
	color: #000;
	background-color: #CC9;
}

.yellowbox
{
	/* yellow box */
	border-color: #663;
	color: #000;
	background-color: #FC3;
}

/* brown box */
#section-navigation
{
	border-color: #960;
	color: #960;
	background-color: #C93;
}

/*--------------------------------------------------------------------------*/

/**
 * Phrase level tags
 */
ins
{
	text-decoration: none;
	font-style: italic;
}

acronym,
abbr
{
	cursor: help;
}

/*--------------------------------------------------------------------------*/

/**
 * Forms
 */
fieldset
{
	margin: 1em 0;
	border: 1px dotted #996;
}

legend
{
	font-weight: bold;
	font-family: "Bookman Old Style", "American Typewriter", "Courier New", monospace;
}

/*--------------------------------------------------------------------------*/

/**
 * Site sections
 */
body.fonts h1
{
    background-image: url(/media/images/backgrounds/type_sort.gif);
    background-position:  top right;
}

body.home h1,
body.bandwagon h1
{
    background-image: url(/media/images/backgrounds/spirals.gif);
    background-position:  bottom right;
}

body.splash h1
{
    background-image: url(/media/images/backgrounds/broadcast.gif);
    background-position:  top right;
}

body.tpb h1
{
    background-image: url(/media/images/backgrounds/wingmirror.gif);
    background-position:  bottom right;
}

/*--------------------------------------------------------------------------*/

/**
 * Blogpost meta information
 */
p.postinfo
{
	color: #663;
	margin: 0px -20px -5px -20px;
	padding: 5px 20px 5px 20px;
}

.postinfo a:link,
.postinfo a:visited
{
	color: #663;
}

/*--------------------------------------------------------------------------*/

/**
 * List styles
 */
ul
{
	list-style: circle outside;
}

/*--------------------------------------------------------------------------*/

/**
 * Link styles
 */
a:link
{
	color: #663;
	border-bottom: 1px dotted #663;
	text-decoration: none;
}

a:visited
{
	color: #960;
	border-bottom: 1px dotted #960;
	text-decoration: none;
}

a:hover
{
	color: #000;
	background-color: #FFC;
	border-bottom: 1px solid #000;
}

/*--------------------------------------------------------------------------*/

/**
 * Footer
 */
#footer
{
	margin: 0;
	padding: 5px 0;
}

#footer select,
#footer input
{
	color: #000;
	background-color: #996;
	font-family: monospace;
}

#footer select option,
#footer input
{
	font-size: 13px;
	line-height: 1em;
}

#footer a:link,
#footer a:visited
{
	color: #000;
	border-bottom: 1px dotted #000;
}

#footer a:hover
{
	color: #000;
	background-color: #CC9;
	border-bottom: 1px solid #000;
}

/*--------------------------------------------------------------------------*/

/**
 * File listing table
 * @todo Depricate?
 */
table#filelisting td,
table#filelisting th
{
	text-align: left;
	padding: 3px;
	line-height: 1.2em;
}

/*--------------------------------------------------------------------------*/

/**
 * Breadcrumbs
 */
#breadcrumbs
{
	margin: 0;
	padding: 5px 0;
}

#breadcrumbs a:link,
#breadcrumbs a:visited
{
	color: #000;
	border-bottom: 1px dotted #000;
}

#breadcrumbs a:hover
{
	color: #000;
	background-color: #CC9;
	border-bottom: 1px solid #000;
}

.signpost
{
	font-weight: bold;
}

/*--------------------------------------------------------------------------*/

/**
 * Blog comments
 */
#comments div.me .postinfo
{
	font-weight: bolder;
}

#comments li
{
	margin-bottom: 3em;
}

/*--------------------------------------------------------------------------*/

/**
 * Code listings
 */
code
{
	background-color: #FFC;
}

code .comment
{
	font-style: italic;
	color: #666; 
}
code .language-keywords
{
	color: blue;
	font-weight: bold;
}
code var
{
	font-style: normal;
	color: green;
}
code .application-keywords
{
	color: blue;
}

/*--------------------------------------------------------------------------*/

/**
 * Custom selection colors
 */
::-moz-selection,
::selection
{
	color: #000;
	background: #C93;
}