/*
Theme Name: MillMatt.ie
Theme URI: http://millmatt.ie/
Author: Mayfly Marketing LTD
Author URI: http://mayflymarketing.ie/
Description: A semantic, HTML5 frontend update to existing site. Incorporates a modernized fade-in on homepage, along with a touchscreen compatible interface.
Version: 1.0
License: Copyright 2012 MillMatt.ie. All Rights Reserved.

WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* =Basic
-------------------------------------------------------------- */

body,td,th {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 11px;
	color: #ffffff;
}
body {
	background-color: #d2c9b8;
	background-image: url(img/background.jpg);
	margin: 0px 0px 0px 0px;
}
a:link, a:visited  {
	color: #FFF;
}
h1, h2, h3, h4, h5, h6 {
	color: #FFF;
}
h1 {
	font-size: 11px;
	font-weight: bold;
}
h1.solo-entry-title {
	font-size: 14px;
}
h2 {
	font-size: 13px;
}
h3 {
	font-size: 12px;
}
h4 {
	font-size: 11px;
}
h5 {
	font-size: 10px;
}
h6 {
	font-size: 14px;
	font-weight: bold;
	margin: 0px 0px 11px 0px;
}

ul {
	display: block;
	list-style-type: disc;
	margin: 0px 0px 0px 20px;
}

li {
	display: list-item;
}

p {
	display: block;
	font-size: 13px;
	margin: 10px 0px;
}

strong {
	font-weight: bold;
}

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

#container {
	background-color: #f7f3ea;
	width: 765px;
	min-height: 470px;
	margin: 50px auto 0px auto;
	-moz-box-shadow:3px 3px 10px 0px rgba(0, 0, 0, 1);
	-webkit-box-shadow:3px 3px 10px 0px rgba(0, 0, 0, 1);
	box-shadow:3px 3px 10px 0px rgba(0, 0, 0, 1);
}

#page {
	display: block;
	margin: 10px;
	padding: 10px 0px 10px 0px;
}
#primary {
	float: right;
	margin: 0px 0px 0px 0px;
	padding: 32px 40px;
	min-height: 405px;
	width: 380px;
	color: #F8F3EA;
	text-align: justify;
	line-height: 1.25;
}
#homepage {
	background: #192D46;
	float: right;
	margin: 0px 0px 0px 0px;
}
#content {
	margin: 0px 0px 0px 0px;
}
#main {
	background: url(img/main.jpg) top center repeat-y;
}
#main .widget-area {
	background: url(img/header3.png) top center no-repeat;
	float: left;
	overflow: hidden;
	margin: 0px 0px 0px 0px;
	padding: 185px 10px 10px 10px;
	min-height: 275px;
	width: 265px;
}

/* Increase the size of the content area for templates without sidebars */
.full-width #content,
.image-attachment #content,
.error404 #content {
	margin: 0;
}

/* Text meant only for screen readers */
.screen-reader-text,
.assistive-text {
	position: absolute !important;
	clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
	clip: rect(1px, 1px, 1px, 1px);
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
}
.alignright {
	display: inline;
	float: right;
}
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}


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

#site-title {
	font-size: 2em;
	font-weight: bold;
	margin: .67em 0;
}
#site-description {
	font-size: 1em;
	font-weight: normal;
	margin: 0 0 1em;
}


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

#access {
	background: #eee;
	display: block;
	float: left;
	margin: 0 auto 1em;
	width: 100%;
}
#access ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
#access li {
	float: left;
	position: relative;
}
#access a {
	display: block;
	line-height: 2em;
	padding: 0 1em;
	text-decoration: none;
}
#access ul ul {
	box-shadow: 0 3px 3px rgba(0,0,0,0.2);
	-moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
	-webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
	display: none;
	float: left;
	position: absolute;
	top: 2em;
	left: 0;
	z-index: 99999;
}
#access ul ul ul {
	left: 100%;
	top: 0;
}
#access ul ul a {
	background: #dedede;
	line-height: 1em;
	padding: .5em .5em .5em 1em;
	width: 10em;
	height: auto;
}
#access li:hover > a,
#access ul ul :hover > a {
	background: #dedede;
}
#access ul ul a:hover {
	background: #cecece;
}
#access ul li:hover > ul {
	display: block;
}


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

.sticky {
}
.entry-meta {
	clear: both;
	display: block;
}
.single-author .entry-meta .byline {
	display: none;
}
#content nav {
	display: block;
	overflow: hidden;
}
#content nav .nav-previous {
	float: left;
	width: 50%;
}
#content nav .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}
#content #nav-above {
	display: none;
}
.paged #content #nav-above,
.single #content #nav-above {
	display: block;
}
#nav-below {
	margin: 1em 0 0;
}
.page-link {
	clear: both;
	margin: 0 0 1em;
}
.page .edit-link {
	clear: both;
	display: block;
}

/* 404 page */
.error404 .widget {
	float: left;
	width: 33%;
}
.error404 .widget .widgettitle,
.error404 .widget ul {
	margin-right: 1em;
}
.error404 .widget_tag_cloud {
	clear: both;
	float: none;
	width: 100%;
}

/* Notices */
.post .notice,
.error404 #searchform {
	background: #eee;
	display: block;
	padding: 1em;
}

/* Image Attachments */
.image-attachment div.entry-meta {
	float: left;
}
.image-attachment nav {
	float: right;
	margin: 0 0 1em 0;
}
.image-attachment .entry-content {
	clear: both;
}
.image-attachment .entry-content .entry-attachment {
	background: #eee;
	margin: 0 0 1em;
	padding: 1em;
	text-align: center;
}
.image-attachment .entry-content .attachment {
	display: block;
	margin: 0 auto;
	text-align: center;
}

/* Aside Posts */
.format-aside .entry-header {
	display: none;
}
.single .format-aside .entry-header {
	display: block;
}
.format-aside .entry-content,
.format-aside .entry-summary {
	padding-top: 1em;
}
.single .format-aside .entry-content,
.single .format-aside .entry-summary {
	padding-top: 0;
}

/* Gallery Posts */
.format-gallery .gallery-thumb {
	float: left;
	margin: 0 1em 0 0;
}

/* Image Posts */
.format-image .entry-header {
	display: none;
}
.single .format-image .entry-header {
	display: block;
}
.format-image .entry-content,
.format-image .entry-summary {
	padding-top: 1em;
}
.single .format-image .entry-content,
.single .format-image .entry-summary {
	padding-top: 0;
}


/* =Images
-------------------------------------------------------------- */

a img {
	border: none;
}
p img {
	margin-bottom: 0.5em; /* a small bottom margin prevents content floating under images */
}
/*
Resize images to fit the main content area.
- Applies only to images uploaded via WordPress by targeting size-* classes.
- Other images will be left alone. Use "size-auto" class to apply to other images.
*/
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img,
.widget-area img,
.wp-caption {
	max-width: 100%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}
img.alignleft {
	margin-right: 1em;
}
img.alignright {
	margin-left: 1em;
}
.wp-caption {
	padding: .5em;
	text-align: center;
}
.wp-caption img {
	margin: .25em;
}
.wp-caption .wp-caption-text {
	margin: .5em;
}
.gallery-caption {
}
.wp-smiley {
	margin: 0;
}


/* =Forms
-------------------------------------------------------------- */

#searchform label {
	display: none;
}
#searchform input#s {
	width: 60%;
}
input[type=text],
input#s {
	margin: 0 1em 0 0;
	width: 60%;
}
textarea {
	width: 80%;
}

/* Class for labelling required form items */
.required {
	color: #cc0033;
}


/* =Comments
-------------------------------------------------------------- */

article.comment {
	display: block;
}
#respond input[type=text] {
	display: block;
	width: 60%;
}
#respond textarea {
	display: block;
	margin: 0 0 1em;
	width: 80%;
}
#respond .form-allowed-tags {
	clear: both;
	width: 80%;
}
#respond .form-allowed-tags code {
	display: block;
}


/* =Widgets
-------------------------------------------------------------- */

.widget {
	display: block;
}
.widget-area .widget_search {
	overflow: hidden;
}
.widget-area .widget_search input {
	float: left;
}

aside#main-menu {
	margin: 15px 0px 0px 0px;
}

/* =Footer
-------------------------------------------------------------- */

#colophon {
	height: 50px;
	width: 800px;
	margin: auto;
	font-size: 12px;
	color: #1A2D47;
	text-align: center;
}
#colophon a {
	color: #1A2D47;
}

/* =Footer
-------------------------------------------------------------- */

.left {
	float: left;
}

.right {
	float: right;
}

.clearfix {
	clear: both;
}
@media screen and (max-width: 820px) {
body{ overflow-x:hidden;}
#homepage{ float:none; text-align:center;}
#colophon,#container{ width:95%; margin:0 auto;}
#main .widget-area{ float:none; width:100%; text-align:center; min-height:inherit; padding:185px 0px 0px 0px;}
#main {background: #192D46;}
#homepage img{ max-width:100%;}
#primary{ width:80%; min-height:auto;}
#click-menu{ width:111px; padding:10px!important;}
#click-menu img, #click-menu .threeLines{ float:left;}
#click-menu-label {
    line-height: 14px !important;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: bold;
    vertical-align: top;
}
#click-menu{ top:25px!important; right:4%!important;}
}
@media screen and (max-width: 580px) {
#click-menu{ top:200px!important; right:4%!important;}
#main .widget-area{ margin-bottom:43px;}
}