/*
Theme Name: Ewing Miller
Theme URI: http://www.AdelieDesign.com/
Description: A theme for the Ewing Miller Website
Author: Adelie Design
Author URI: http://www.AdelieDesign.com/
Version: 1.0

*/


/* GENERAL STYLES **********************************/
@import 'reset.css';

html, body {
  height: 100%;
}

body {
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 10px;
  background-image: url('images/bg-gradient.png');
  background-color: #7fb2e5;
  background-repeat: repeat-x;
  background-position: 0 0;
}

#page {
  position: relative;
  margin: 0 auto;
  width: 905px;
}

a {
  text-decoration: none;
}

/* HEADER *****************************************/
#header {
  padding-top: 82px;
  padding-bottom: 7px;
  height: 51px;
}

#header h1 {
  position: relative;
  left: -21px;
}
#header h1 a {
  display: block;
  float: left;
}

/* NAVIGATION *************************************/
#navigation {
  clear: left;
  font-size: 120%;
  font-weight: bold;
  padding-left: 1px;
  position: relative;
  z-index: 100;
}

#navigation ul {
}

#navigation li {
  float: left;
  margin-right: 1px;
  width: 93px;
  overflow: visible;
  height: 34px;
}

#navigation a {
  background-image: url(images/nav-item-bg.png);
  background-position: 0 100%;
  background-repeat: no-repeat;
  color: #FFFFFF;
  display: block;
  height: 24px;
  line-height: 24px;
  padding-top: 10px;
  position: relative;
  text-align: center;
  width: 93px;
  z-index: 10;
}
#navigation a:hover {
  color: #0066cc;
}
#navigation .current_page_item a, #navigation .current_page_parent a, #navigation .current_page_ancestor a {
  background-image: url(images/nav-active-bg.png);
  color: #0066cc;
  padding-bottom: 1px;
  left: -1px;
  padding-right: 9px;
  z-index: 20;
}

/* SIDEBAR *****************************************/
#sidebar {
}

#sidebar a {
  color: #333333;
}
#sidebar .current_page_item a, #sidebar .current_page_parent a, #sidebar .current_page_ancestor a {
  color: #0066cc;
}
#sidebar a:hover {
  color: #0066cc;
}

#secondary-navigation {
  display: block;
  border-bottom: 1px solid #666666;
  height: 32px;
  line-height: 32px;
  margin: 0 32px 0 31px;
  padding-left: 107px;
  font-size: 120%;
}
#secondary-navigation li {
  float: left;
  margin-right: 28px;
}
#secondary-navigation a {
  display: block;
}

#tertiary-navigation {
  margin-left: 31px;
  margin-top: 1px;
  float: left;
  width: 84px;
  min-height: 100px;
  text-align: center;
  font-size: 110%;
}

#tertiary-navigation a {
  display: block;
  margin: 32px 0;
}


/* CONTENT ****************************************/
.main-shadow {
  width: 8px;
  position: absolute;
  z-index: 20;
  right: -8px;
  background-position: 100% 0;
}
#main-shadow-top {
  top: 0;
  height: 11px;
  background-image: url(images/main-shadow-top.png);
  background-repeat: no-repeat;
}
#main-shadow-middle {
  top: 11px;
  bottom: -1px;
  background-image: url(images/main-shadow-middle.png);
  background-repeat: repeat-y;
}

.main-wrapper {
  background-color: #FFFFFF;
  clear: left;
  position: relative;
  z-index: 20;
  border: 1px solid #CCCCCC;
}

#main {
  margin: 5px 4px;
  border: 1px solid #d2d2d2;
  background-image: url(images/main-top-bg.png);
  background-repeat: repeat-x;
  background-position: 0 0;
}

#content {
  font-size: 120%;
  line-height: 1.5;
  width: 630px;
  float: left;
  border-left: 1px solid #666666;
  margin-top: 1px;
  margin-bottom: 4em;
  padding: 38px 64px 0;
}

h2 {
  clear: left;
  color: #0066cc;
  font-size: 117%;
  font-weight: normal;
  margin-bottom: 2em;
}
h2 img {
  position: relative;
  left: -25px;
}
#content h2 {
  margin: 1.5em 0 1em;
}

#content h2:first-child {
  margin: 0 0 2em;
}
h3 {
  color: #0066cc;
  font-size: 100%;
  font-weight: normal;
  margin: 1.5em 0 1em;
}
h4 {
}
h5 {
}
h6 {
}

#content p {
  margin: 0.75em 0;
}
#content a:link, #content a:visited {
  color: #0066cc;
}
#content a:hover {
  text-decoration: underline;
}

#content ul, #content ol, #content dl {
  margin: 1em 0 1em 2.5em;
}
#content ul {
  list-style-type: square;
}
#content ul ul {
  list-style-type: disc;
}
#content ul ul ul {
  list-style-type: square;
}
#content ul.plain li {
  list-style-type: none;
}
#content ol {
  list-style-type: decimal;
}
#content ol ol {
  list-style-type: upper-alpha;
}
#content ol ol ol {
  list-style-type: decimal;
}
#content dt {
  font-weight: bold;
  margin-top: 0.5em;
}
#content dd {
  margin-left: 2.5em;
}
#content li {
  margin: 1em 0;
}

#content address {
  font-style: normal;
  margin-left: 2.5em;
}

.entry:after {
  content: ".";
  height: 1px;
  display: block;
  clear: both;
  overflow: hidden;
  text-indent: -9000px;
}

.post-meta {
  margin-top: 2em;
  clear: both;
}

/* Tables *****************/
table {
  border-collapse: collapse;
}
caption, thead {
}
caption a, thead a {
}
th, td {
}
tbody {
}
tbody th {
}

/* Less formatted tables*/
table.plain {
}
table.plain th {
}
table.plain td {
}

/* Image alignment ********/
.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}
.alignright {
  float: right;
  margin: 0 0 1em 1em;
}
.aligncenter {
  float: none;
  margin: 0 1em;
}
.alignnone {
  display: block;
  clear: both;
}

div.alignleft {
  margin-left: 1em;
  margin-right: 3em;
}
div.alignleft h2, div.alignleft h3, div.alignleft h4 {
  margin-top: 0;
}

/* Post Navigation */
.post-nav {
  clear: both;
  padding: 2em 1em;
}
.post-nav p {
  margin: 0;
}
.post-nav .next-posts-link {
  float: left;
}
.post-nav .previous-posts-link {
  text-align: right;
}

/* FOOTER *****************************************/
#footer {
  background-image: url(images/footer-bg.png);
  background-repeat: no-repeat;
  background-position: 0 0;
  color: #FFFFFF;
  font-size: 110%;
  font-weight: bold;
  height: 24px;
  line-height: 24px;
  padding: 1px 9px 11px 2px;
  width: 902px;
  position: relative;
  z-index: 90;
}

#footer, #footer a, #footer a:visited {
  color: #FFFFFF;
}
#footer p.networking {
  float: left;
  margin-left: 21px;
}
#footer p.networking a {
  display: block;
  float: left;
  padding-left: 22px;
  background-position: 0 5px;
  background-repeat: no-repeat;
}
#footer p.networking .facebook {
  background-image: url(images/facebook-icon.png);
}
#footer p.networking .twitter {
  background-image: url(images/twitter-icon.png);
}

#footer p.address {
  float: right;
  padding-right: 19px;
  text-align: right;
}
#footer p.address span {
  margin-left: 18px;
}

#footer p.credits {
  clear: both;
  padding-left: 22px;
  font-weight: normal;
  color: #333333;
}
#footer p.credits a {
  color: #333333;
}

.clear-block {
  display: block;
  clear: both;
}

/* Front Page *********************************/
.front #content {
  background-image: url(images/front-body-bg.png);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  border-left: none;
  width: 576px;
  padding: 0;
  margin: 316px 0 0 10px;
  position: relative;
  float: left;
}
.front #content .entry {
  background-image: url(images/front-head-bg.png);
  background-position: 100% 0;
  background-repeat: no-repeat;
  padding: 26px 38px 34px 43px;
  overflow: hidden;
  height: 187px;
}

.front #content .rotating-images {
  list-style-type: none;
  width: 576px;
  height: 302px;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: -302px;
  margin: 0;
  padding: 0;
}
.front #content .rotating-images li {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}
.front #content .rotating-images li:first-child {
  display: block;
}
.front #content h2 {
  margin: 0;
}

#sidebar-front ul {
  list-style-type: none;
}

#sidebar-front li.news, #sidebar-front li.blog {
  background-image: url(images/sidebar-body-bg.png);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  font-size: 110%;
  line-height: 1.63;
  float: right;
  clear: right;
  width: 293px;
  margin: 14px 13px 0 0;
}
#sidebar-front li.blog {
  margin-top: 0;
}

#sidebar-front .sidebar-content {
  overflow: hidden;
  height: 100%;
}

#sidebar-front h2 {
  background-image: url(images/sidebar-header-bg.png);
  background-position: 100% 0;
  background-repeat: no-repeat;
  height: 30px;
  line-height: 30px;
  overflow: hidden;
  text-align: center;
  color: #FFFFFF;
  font-size: 109%;
  margin: 0;
  padding: 0 1em;
}
#sidebar-front .sidebar-entry {
  padding: 15px 19px 22px 28px;
  overflow: hidden;
}
#sidebar-front li.news .sidebar-entry {
  height: 175px;
}
#sidebar-front li.blog .sidebar-entry {
  height: 240px;
}
#sidebar-front .sidebar-entry p {
  margin: 0 0 1.63em;
}
#sidebar-front .read-more {
  margin: 0;
}

/* Contact Form *******************************/
.contact-us .wpcf7 {
  float: right;
}
.contact-us .wpcf7 p {
  font-size: 92%;
}

.index .post {
  margin-bottom: 4em;
}
.index .post h2 {
  margin-bottom: 1em;
}

/* PORTFOLIO **************************************/
#content.portfolio {
  border-left: none;
  width: auto;
  float: none;
  padding: 0;
  margin-bottom: 0;
}
.portfolio .featured h2.page-title {
  background-image: url(images/portfolio-head-bg.png);
  background-position: 0 0;
  background-repeat: no-repeat;
  height: 29px;
  line-height: 29px;
  color: #FFFFFF;
  text-align: center;
  position: relative;
  top: -1px;
  margin: 0 1px;
}
.portfolio .featured .entry {
  background-image: url(images/portfolio-body-bg.png);
  background-position: 0 0;
  background-repeat: repeat-x;
  background-color: #bfbfbf;
  height: 314px;
  overflow: auto;
  padding: 12px 15px;
}

#content.portfolio p {
  margin-top: 0;
}

.portfolio .portfolio-items {
  margin: 4px 5px;
  border: 1px solid #666666;
  height: 146px;
  overflow: auto;
  background-image: url(images/portfolio-footer-bg.png);
  background-position: 0 0;
  background-repeat: repeat-x;
  background-color: #383838;
  padding: 15px 0;
  font-size: 83%;
  position: relative;
}
#content.portfolio .portfolio-items ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  display: block;
}
#content.portfolio .portfolio-items li {
  margin: 0;
  padding: 0;
  display: inline;
}
#content.portfolio .portfolio-items li .post {
  display: inline;
}

.portfolio .portfolio-item a {
  display: inline-block;
  width: 85px;
  padding: 95px 7px 0 3px;
  background-image: url(images/portfolio-item-bg.png);
  background-repeat: no-repeat;
  background-position: 0 0;
  text-align: center;
  position: relative;
  margin-left: 27px;
}

#content.portfolio .portfolio-item a:link, #content.portfolio .portfolio-item a:visited {
  color: #FFFFFF;
}
#content.portfolio .portfolio-item img.thumbnail {
  position: absolute;
  top: 1px;
  left: 3px;
}
