/*  
Theme Name: justinsomia4
Theme URI: http://justinsomnia.org/
Description: justinsomnia's theme
Version: 4
Author: Justin Watt
Author URI: http://justinsomnia.org/
*/


/* override some default margin/paddings */

body {
	margin:0;
	padding:0;
}

/* paragraph-like tags/classes */
p, dl, pre, ol.paragraph > li, ul.paragraph > li {
	margin:1em 0 0;
	padding:0;
}

h1, td.title {
	margin:0px 0px -2px;
	padding:0;
}

h2 {
  margin:.83em 0 0;
	padding:0;
}

h2 + p, h2 + ul, h2 + ol, li > ol, li > ul, li pre {
	margin-top:0px;
	margin-bottom:0px;
}

/* override some list defaults */

ol, ul {
	margin:0.5em 0 0;
	padding:0 0 0 1em;
	list-style-position:inside;
}

ol ol {
	list-style-type:lower-alpha;
}

ol ul {
	list-style-type:disc;
}

li {
	text-align:left;
}

ol.upper-alpha {list-style-type:upper-alpha}
ol.lower-alpha {list-style-type:lower-alpha}
ol.upper-roman {list-style-type:upper-roman}
ol.lower-roman {list-style-type:lower-roman}

ul.plain, ol.plain {list-style-type:none;}

dt {
  margin:.5em 0 0;
	font-weight:bold;
}

dd {
  margin:0;
	padding:0 0 0 1em;
}

blockquote {
	margin: 1em 2em 0;
	font-style:italic;
}

blockquote em {
	font-style:normal;
}	

em em {
	font-style:normal;
}	

td {
	vertical-align: top;
}

a img {
	border:none;
}

table {
	font-size:inherit;
}



/* blog background colors */

body, h1 {
	background-color:#7D9CA2;
}

.content hr {
  color:#7D9CA2;
	background-color:#7D9CA2;
}

#menu-bar, .content {
	background:#A3C0C6;
}

.content pre, .content code, .content td, #search-box, #commentform #author, #commentform #url, #commentform textarea {
	background-color:#D0DCDF;
}

.ins, ins, #donate_form {
	background-color:#DAB1BB;
}

#search-box, #commentform #author, #commentform #url, #commentform textarea {
	border:none;
	color:black;
	padding:1px 2px 2px;
}



/* fonts */
body {
	font: 70% verdana, sans-serif;
}

h1, td.title {
	font:bold 170% georgia, serif;
	line-height:90%;
}

h2, .comment-date {
  font: bold 120% georgia;
}

pre, code {
	font: 130% monospace;
}

.content {
	line-height:130%;
	text-align:justify;
}

.content-item {
	text-align:left;
}

#comments .content-item {
  text-align:justify;
}

#commentform textarea, #commentform #author, #commentform #url {
  font:inherit;
}

#search-box, #search-button {
	font: bold 100% verdana, sans-serif;
}



/* link style */
h1 {
	color:#55352D;
}

a:link, a:active, .link, a:hover, a:visited, .link:hover {
	font-weight: bold;
	text-decoration: none;
	color:#55352D;
	cursor:pointer;
}

a:hover, .link:hover {
	color:#666666;
}

h1 a {
	color: #000;
}

h1 a:hover {
	background-color:transparent;
}

/* page layout components */
#logo-bar {
	background-color:white;
}

#logo {
	width:980px;
	margin:0 auto;
}

#logo img {
  display:block;
}

#menu-bar {
	height:30px;
}

#menu {
	width:980px;
	margin:0 auto;
	padding:4px;
}

#menu-links {
	float:left;
	margin-top:3px;
}

#search {
	float:right;
	margin-top:2px;
}

/* page layout */

.column {
  float:left;
  margin-right:18px;
  overflow:hidden;
}

#page {
	width:980px;
	margin:15px auto;
	/*position:relative;
	height:auto !important;
    height:1%;*/ /* IE hack to force scrollbar described here: http://www.positioniseverything.net/explorer/unscrollable.html */
}

#primary {
	width:394px;
}

#secondary {
	width:340px;
}

#tertiary {
	width:210px;
	margin-right:0; /* override .column */
}

.neatlink-comment-link {
	float:left;
  margin-right:5px;
}

.neatlink-content {
	margin-left:25px;
}

.neatlink-content > p:first-child {
	margin-top:0;
}

/* post specific styles */
.content-box {
	margin-bottom:30px;
}

.content {
	margin:0;
	padding:6px;
}

/* aka clearfix */
.content:after, .content-footer:after { 
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}

.post-date {
	float:left;
}

.post-categories {
	float:right;
}


/* post pre/code style */
.content pre {
	padding:.5em;
	overflow:auto;
}

.content pre.small {
  height:20em;
}

/* post img style */
.content img {
	border: 1px solid #D0DCDF;
	margin: 0;
}

/* i'd prefer this to look like an img, but FF3 doesn't seem to apply border css to <object>s */
.content object {
	margin: 1px;
}

#random-image {
  width:auto !important;
	max-width:196px;
	width:196px; /* for ie6 */
	display:inline;
  background-color:white;
}

.content img.right {
	float:right;
	display:block;
	margin-left:.5em;
}

.content img.left {
	float:left;
	display:block;
	margin-right:.5em;
}

.content img.plain, .content img.plain-centered {
	border: none;
	background-color: transparent;
}

.content img.center {
	display: block;
	margin: 0 auto;
}

.content img.plain-centered {
	display: block;
	margin: 0 auto;
}
.content img.fit {
  width: 100%;
}

p.center {
  text-align:center;
}

/* for panoramic images */
.content p.panorama {
	overflow:auto;
}
.content p.panorama img {
	display:block;
  border-bottom:none;
}
.content p.panorama-caption {
  padding-top:0;
  margin-top:2px; /* fix to compensate for line-height descender spacing between normal image+br+em-caption */
}

.content > :first-child {
	margin-top:0px;
}

blockquote > p:first-child {
	margin-top:0px;
}

.content-item p+blockquote {
	margin-top:5px;
}

/* use for block and inline updates */
.ins {
  margin-left:-3px;
  margin-right:-3px;
	padding:3px;
}

ins {
	text-decoration:none; /* for ins */
}

.endnote {
	font-size:90%;
	color:#333;
}

.content table {
	empty-cells: show;
	border-collapse: collapse;
	margin-top:0.5em;
}

.content table td, .content table th {
	border: 1px solid #55352D;
  padding: 2px;
	text-align: left;
}

.content table th {
    text-align:left;
}

.content table thead th {
    text-align:center;
}

.content table caption {
    caption-side: top; 
    font-style: italic;
    text-align: left;
}

.content hr {
  height: 2px;
  border: none;
  margin: 1em auto 0;
}

/* sub-content styles */
.content .content-item, #monthchunks li {
	list-style-type:none;
	border-top: 2px solid #7D9CA2;
	padding: 5px 0 0 0;
	margin: 5px 0 0 0;
}

.content .content-item:first-child, #monthchunks li:first-child{
	border-top:none;
	margin-top:0px;
	padding-top:0px;
}

/* new WP comment style */

#commentform {
	margin-bottom:0px;
}

#commentform #submit {
	margin:6px 0px;
}

.comment-author {
  margin:0;
	float:left;
}

.comment-date {
	float:right;
}

#comment-preview {
	margin-top:5px;
}

#comment-preview-content > p:first-child {
	margin-top:0px;
}

.comment-byline + p {
    margin-top:0;
    padding-top:0;
}


#cc-logo {
	float:left;
	padding-right:5px;
	margin:0px;
	margin-top:4px;
}

#adsense {
	overflow:hidden;
}

#donate_form {
  text-align:center;
  margin-top:10px;
  padding:4px 0 8px 0;
}

#donate_form .submit {
  margin-bottom:-8px;
}

#donate_form p {
  margin:0;
  font-weight:bold;
}

.debug {
  border:1px solid red;
}

#categories .content {
  text-align:left;
}


@media print {
  body {
  	background: none !important;
	}

  a:link, a:visited {
	  color: #00F;
  	background: transparent;
  	font-weight: bold;
  	text-decoration: underline;
	}

  #menu-bar, #logo-bar, form, #monthchunks, #relatedposts, #ads {
    display: none;
  }
  
  body, #page, #primary, #secondary, #tertiary, .post {
    width: auto !important;
	  margin: 0 !important;
	  padding: 0 !important;
    float: none !important;
    color: black !important;
  }
  
  #old-comments {
    display:block !important;
  }
  .content {
    text-align:left;
  }
  img {
    border:none;
  }
}




/*****************
BEGIN FANCYBOX CSS 
******************/

html, body {
	height: 100%;
}

div#fancy_overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #666;
	display: none;
	z-index: 30;
}

* html div#fancy_overlay {
	position: absolute;
	height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}

div#fancy_wrap {
	text-align: left;
	cursor: pointer;
}

div#fancy_loading {
	position: absolute;
	height: 40px;
	width: 40px;
	cursor: pointer;
	display: none;
	overflow: hidden;
	background: transparent;
	z-index: 100;
}

div#fancy_loading div {
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 480px;
	background: transparent url('/images/fancybox/fancy_progress.png') no-repeat;
}

div#fancy_loading_overlay {
	position: absolute;
	background-color: #FFF;
	z-index: 30;
}

div#fancy_loading_icon {
	position: absolute;
	background: url('/images/fancybox/fancy_loading.gif') no-repeat;
	z-index: 35;
	width: 16px;
	height: 16px;
}

a.fancybox {
    cursor: url('/images/zoomin.cur'), pointer;
}

div#fancy_outer {
	position: absolute;
    top: 0;
    left: 0;
    z-index: 90;
    padding: 18px 18px 33px 18px;
    margin: 0;
    overflow: hidden;
    background: transparent;
    display: none;
    cursor: url('/images/zoomout.cur'), pointer;
}

div#fancy_inner {
	position: relative;
	width:100%;
	height:100%;
	background: #FFF;
}

div#fancy_content {
	margin: 0;
	z-index: 100;
	position: absolute;
	border: 1px solid #D0DCDF;

}

div#fancy_div {
	background: #000;
	color: #FFF;
	height: 100%;
	width: 100%;
	z-index: 100;
}

img#fancy_img {
	position: absolute;
	top: 0;
	left: 0;
	border:0; 
	padding: 0; 
	margin: 0;
	z-index: 100;
	width: 100%;
	height: 100%;
}

#fancy_frame {
	position: relative;
	width: 100%;
	height: 100%;
	display: none;
}

#fancy_ajax {
	width: 100%;
	height: 100%;
	overflow: auto;
}

a#fancy_left, a#fancy_right {
	position: absolute; 
	bottom: 0px; 
	height: 100%; 
	width: 35%; 
	cursor: pointer;
	z-index: 111; 
	display: none;
	background-image: url(data:image/gif;base64,AAAA);
	outline: none;
}

a#fancy_left {
	left: 0px; 
}

a#fancy_right {
	right: 0px; 
}

span.fancy_ico {
	position: absolute; 
	top: 50%;
	margin-top: -15px;
	width: 30px;
	height: 30px;
	z-index: 112; 
	cursor: pointer;
	display: block;
}

span#fancy_left_ico {
	left: -9999px;
	background: transparent url('/images/fancybox/fancy_left.png') no-repeat;
}

span#fancy_right_ico {
	right: -9999px;
	background: transparent url('/images/fancybox/fancy_right.png') no-repeat;
}

a#fancy_left:hover {
  visibility: visible;
}

a#fancy_right:hover {
  visibility: visible;
}

a#fancy_left:hover span {
	left: 20px; 
}

a#fancy_right:hover span {
	right: 20px; 
}

.fancy_bigIframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
}

div#fancy_bg {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	z-index: 70;
	border: 0;
	padding: 0;
	margin: 0;
}
	
div.fancy_bg {
	position: absolute;
	display: block;
	z-index: 70;
	border: 0;
	padding: 0;
	margin: 0;
}

div.fancy_bg_n {
	top: -18px;
	width: 100%;
	height: 18px;
	background: transparent url('/images/fancybox/fancy_shadow_n.png') repeat-x;
}

div.fancy_bg_ne {
	top: -18px;
	right: -13px;
	width: 13px;
	height: 18px;
	background: transparent url('/images/fancybox/fancy_shadow_ne.png') no-repeat;
}

div.fancy_bg_e {
	right: -13px;
	height: 100%;
	width: 13px;
	background: transparent url('/images/fancybox/fancy_shadow_e.png') repeat-y;
}

div.fancy_bg_se {
	bottom: -18px;
	right: -13px;
	width: 13px;
	height: 18px;
	background: transparent url('/images/fancybox/fancy_shadow_se.png') no-repeat;
}

div.fancy_bg_s {
	bottom: -18px;
	width: 100%;
	height: 18px;
	background: transparent url('/images/fancybox/fancy_shadow_s.png') repeat-x;
}

div.fancy_bg_sw {
	bottom: -18px;
	left: -13px;
	width: 13px;
	height: 18px;
	background: transparent url('/images/fancybox/fancy_shadow_sw.png') no-repeat;
}

div.fancy_bg_w {
	left: -13px;
	height: 100%;
	width: 13px;
	background: transparent url('/images/fancybox/fancy_shadow_w.png') repeat-y;
}

div.fancy_bg_nw {
	top: -18px;
	left: -13px;
	width: 13px;
	height: 18px;
	background: transparent url('/images/fancybox/fancy_shadow_nw.png') no-repeat;
}

/***************
END FANCYBOX CSS 
****************/


