/*
Theme Name: Tim
Theme URI: http://wordpress.org/
Description: Theme for Tim Ashby
Author: Leonardo Borsten
Author-URI: http://prepressmiami.com
Template: twentyeleven
Version: 1.0
*/

@import url("../twentyeleven/style.css");

html	{
	margin-top: 0px;
}
body {
	background: #A0A1A0;
	margin-top: 0px;
	padding: 0 40px 0 0;
}

/* =Structure
----------------------------------------------- */

body {
	padding: 0 2em;
}
#content	{
	margin-left: 1%;
	width: 715px;
}
#main	{
	height: 100%;
	width: 1000px;
	background-color: #FFF;
}
#page {
	margin: 0 auto;
	position: relative;
}
#primary {
	margin-right: 0px;
	background-image: url('http://timashby.com/wp-content/themes/wp-content/themes/tim/images/rtbg.jpg');
	background-position: right;
	background-repeat: repeat-y;
	background-color: white;
}
#secondary {
	position: absolute;
	top: 0px;
	right: -7.6%;
	left: 735px;
	bottom: 0%;
	height: auto;
	display: block;
	/*margin-right: 76px;
	float: right;*/
	width: 265px;
	background: #907DA8;
}
#secondary a	{
	color: #40226A;
}


/* =Header
----------------------------------------------- */

#branding {
	border-top: 0;
	width: 1000px;
}


/* =Menu
-------------------------------------------------------------- */

#access {
	margin: 0 auto;
	background: #40226A; /* Show a solid color for older browsers */
	width: 1000px;
}
#access li {
	float: right;
}


/* =Content
----------------------------------------------- */

#main	{
	padding-top: 0px;
}

.hentry,
.no-results {
	border-bottom: 1px solid #ddd;
	margin: 0 0 1.625em 20px;
}
.singular .entry-header, .singular .entry-content, .singular footer.entry-meta,
.singular #comments-title {
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    width: 100%;
}
.singular #primary {
	width: 1000px;
	background: #FFF;
}
#devilsbook	{
	margin: 100px auto 10px;
	text-align:center;
}

.excerpt	{
	padding: 20px;
	margin-bottom: 20px;
	border-bottom: 4px dotted #CCC;
}
.excerpt h1	{
	font-weight: bold;
	font-size: 140%;
}

/* =Right Content
------------------------------------------------ */
.widget	{
	margin: 15px;
}
.widget ul li {
	color: #777777;
	font-size: 13px;
	list-style-position: inside;
}
.widget-title {
	color: #EEE;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: normal;
	line-height: 110%;
	text-transform: none;
}
/* =Footer
------------------------------------------------ */
#colophon	{
	width: 1000px;
}

/* =Responsive Structure
----------------------------------------------- */

@media (max-width: 800px) {
	/* Simplify the basic layout */
	body {
		background-color: cyan;
		padding: 0;
		
	}
	#page	{
		max-width:800px;
		padding: 0;
		margin: 0;
	}
	#access	{
		width: 800px;
	}
	#main #content {
		margin: 0;
		width: 580px;
	}
	#main	{
		width: 760px;
	}

	#branding {
		width: 760px;
	}

	img#intro-header	{
		max-width: 100%;
	}
	#nav-below {
		border-bottom: 1px solid #ddd;
		margin-bottom: 1.625em;
	}
	#primary	{
		/*float:left;*/
	}
	#main #secondary {
		margin: 0;
		width: 214px;
		left: 586px;
	}

	/* Simplify the showcase template */
	.page-template-showcase-php .featured-posts {
		min-height: 280px;
	}
	.featured-posts section.featured-post {
		height: auto;
	}
	.page-template-showcase-php section.recent-posts {
		float: none;
		margin: 0;
		width: 100%;
	}
	.page-template-showcase-php #main .widget-area {
		float: none;
		margin: 0;
		width: auto;
	}
	.page-template-showcase-php .other-recent-posts {
		border-bottom: 1px solid #ddd;
	}
	/* Simplify the showcase template when small feature */
	section.featured-post .attachment-small-feature,
	.one-column section.featured-post .attachment-small-feature {
		border: none;
		display: block;
		float: left;
		height: auto;
		margin: 0.625em auto 1.025em;
		max-width: 30%;
		position: static;
	}
	article.feature-image.small {
		float: right;
		margin: 0 0 1.625em;
		width: 64%;
	}
	.one-column article.feature-image.small .entry-summary {
		height: auto;
	}
	article.feature-image.small .entry-summary p a {
		left: 0;
		padding-left: 20px;
		padding-right: 20px;
		width: auto;
	}
	/* Remove the margin on singular articles */
	.singular .entry-header,
	.singular .entry-content,
	.singular footer.entry-meta,
	.singular #comments-title {
		width: 100%;
	}
	/* Simplify the pullquotes and pull styles */
	.singular blockquote.pull {
		margin: 0 0 1.625em;
	}
	.singular .pull.alignleft {
		margin: 0 1.625em 0 0;
	}
	.singular .pull.alignright {
		margin: 0 0 0 1.625em;
	}
	.singular .entry-meta .edit-link a {
		left: 0;
		position: absolute;
		top: 40px;
	}
	.singular #author-info {
		margin: 2.2em -8.8% 0;
		padding: 20px 8.8%;
	}
	.singular #primary {
		width: 800px;
	}
	/* Make sure we have room for our comment avatars */
	.commentlist {
		width: 100%;
	}
	.commentlist > li.comment,
	.commentlist .pingback {
		margin-left: 102px;
		width: auto;
	}
	/* And a full-width comment form */
	#respond {
		width: auto;
	}
	/* No need to float footer widgets at this size */
	#colophon #supplementary .widget-area {
		float: none;
		margin-right: 0;
		width: auto;
	}
	#colophon	{
		width: 800px;
	}
	/* No need to float 404 widgets at this size */
	.error404 #main .widget {
		float: none;
		margin-right: 0;
		width: auto;
	}

}
@media (max-width: 650px) {
	/* @media (max-width: 650px) Reduce font-sizes for better readability on smaller devices */
	body, input, textarea {
		font-size: 13px;
		background: blue;
	}
	#access {
		width: auto;
	}
	#access ul {
		margin: 0;
	}
	#branding {
		width: auto;
	}
	#main {
		width: auto;
	}
	#page {
		margin-top: 0;
		max-width: auto;
	}
	#site-title a {
		font-size: 24px;
	}
	#site-description {
		font-size: 12px;
	}
	#access ul {
		font-size: 12px;
	}
	article.intro .entry-content {
		font-size: 12px;
	}
	.entry-title {
		font-size: 21px;
	}
	.featured-post .entry-title {
		font-size: 14px;
	}
	.singular .entry-title {
		font-size: 28px;
	}
	.entry-meta {
		font-size: 12px;
	}
	blockquote {
		margin: 0;
	}
	blockquote.pull {
		font-size: 17px;
	}
	/* Reposition the site title and description slightly */
	#site-title {
		padding: 5.30625em 0 0;
	}
	#site-title,
	#site-description {
		margin-right: 0;
	}
	/* Make sure the logo and search form don't collide */
	#branding #searchform {
		top: 1.625em !important;
	}
	/* Floated content doesn't work well at this size */
	.alignleft,
	.alignright {
		float: none;
		margin-left: 0;
		margin-right: 0;
	}
	/* Make sure the post-post navigation doesn't collide with anything */
	#nav-single {
		display: block;
		position: static;
	}
	.singular .hentry {
		padding: 1.625em 0 0;
	}
	.singular.page .hentry {
		padding: 1.625em 0 0;
	}
	/* Talking avatars take up too much room at this size */
	.commentlist > li.comment,
	.commentlist > li.pingback {
		margin-left: 0 !important;
	}
	.commentlist .avatar {
		background: transparent;
		display: block;
		padding: 0;
		position: static;
	}
	.commentlist .children .avatar {
		background: none;
		left: 2.2em;
		padding: 0;
		position: absolute;
		top: 2.2em;
	}
	/* Use the available space in the smaller comment form */
	#respond input[type="text"] {
		width: 95%;
	}
	#respond .comment-form-author .required,
	#respond .comment-form-email .required {
		left: 95%;
	}
	#content .gallery-columns-3 .gallery-item {
		width: 31%;
		padding-right: 2%;
	}
	#content .gallery-columns-3 .gallery-item img {
		width: 100%;
		height: auto;
	}
	#primary {
		float: none;
	}
	#secondary {
		clear: both;
		float: none;
		position: static;
		width: 100%;
		background: #907DA8;
		margin: 0;
	}
	.page-template-showcase-php #main .widget-area {
		float: none;
		margin: 0;
		width: auto;
		position: relative;
	}
}
@media (max-width: 450px) {

	#content .gallery-columns-2 .gallery-item {
		width: 45%;
		padding-right: 4%;
	}
	#content .gallery-columns-2 .gallery-item img {
		width: 100%;
		height: auto;
	}
	#primary {
		float: none;
	}
	#secondary {
		clear: both;
		float: none;
		position: relative;
		width: auto;
		background: #907DA8;
		margin: 0;
	}
	.page-template-showcase-php #main .widget-area {
		float: none;
		margin: 0;
		width: auto;
	}
}
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
	div {
 		clear:both!important;
		display:block!important;
		width:100%!important;
		float:none!important;
		margin:0!important;
		padding:0!important;
	}
	body {
		padding: 0;
		font-size: 100%;
	}
	#access {
		width: auto;
	}
	#access ul {
		margin: 0;
	}
	#branding {
		width: auto;
	}
	#main {
		width: auto;
	}
	#page {
		margin-top: 0;
		max-width: auto;
	}
	#branding {
		border-top: none;
	}
	#searchform {
		position: relative;
		vertical-align: top;
	}
	#primary {
		float: none;
		width: auto;
		margin: 0px;
		padding: 0px;
	}
	#secondary {
		clear: both;
		float: none;
		position: static;
		width: 100%;
		background: #907DA8;
		margin: 0;
		right: 0;
		left: 0;
		top: auto;
		bottom: auto;
	}
	.page-template-showcase-php #main .widget-area {
		float: none;
		margin: 0;
		width: auto;
	}
	#content {
		display: block;
		margin: 0;
	}
	#colophon	{
		width: auto;
	}
	img[class*="align"] {
		margin: 0px auto;
		float: none;
		display: block;
	}
	.hentry, .no-results {
		margin: 0px 10px;
	}
	.entry-content p {
		margin-left: 10px;
		margin-right: 10px;
	}
	img#intro-header	{
		max-width: 100%;
	}
	#respond input#submit {
		left: 0px;
	}
	#respond input[type="text"] {
		width: auto;
	}
	#respond textarea {
		width: 60%;
	}
}