* { padding: 0; margin: 0; }

html {
  font: 14px helvetica, sans-serif;
  background: url(../img/background.jpg) top center no-repeat #467AAC;
  line-height: 1.4;
  color: #444;
}

header, nav, section, footer {
  display: block;
}

h1, h2, h3, h4, h5, h6, p, li {
  -webkit-text-size-adjust: none;
}

p {
  margin-bottom: 14px;
}

a {
  color: #5191C1;
}

img {
  border: none;
}


/* === Header === */
header {
  width: 905px;
  margin: 20px auto 10px;
  font-family: "Trajan Pro";
  color: white;
  position: relative;
  min-height: 125px;
  background: url(../img/acc_logo.png) 5px 5px no-repeat;
}

header h1 {
  position: absolute;
  top: 70px; right: 0;
  font-size: 45px;
  font-weight: bold;
}

header section.contact {
  display: block;
  text-align: right;
  padding-top: 32px;
}

header section.contact address,
header section.contact p {
  font-size: 14px;
}

header section.contact p.phone,
header section.contact p.fax {
  display: -moz-inline-stack;
  display: inline-block;
  zoom: 1;
  *display: inline;
  vertical-align: top;
  margin-right: 55px;
}

header section.contact address {
  display: -moz-inline-stack;
  display: inline-block;
  zoom: 1;
  *display: inline;
  vertical-align: top;
  font-style: normal;
}

header section.contact a {
  color: white;
}


/* === Nav === */
nav {
  position: relative;
  background: url(../img/ribbon.png) repeat-x;
  width: 100%;
}

nav ul {
  width: 920px;
  margin: 0 auto;
  font: 18px "Trajan Pro";
  padding: 12px 10px 10px;
  font-size: 0;
  text-align: center;
}

nav li {
  display: -moz-inline-stack;
  display: inline-block;
  zoom: 1;
  *display: inline;
  padding: 0 43px 5px;
  font-size: 18px;
}

nav a {
  color: #e8f0f4;
  text-decoration: none;
}

/* == Nav Page Hilighting == */
body.home nav li.home,
body.medication nav li.medication,
body.resources nav li.resources,
body.events nav li.events,
body.contact nav li.contact {
  background: url(../img/dot.png) bottom center no-repeat;
}


/* ==== Content ==== */
.container {
  width: 940px;
  margin: -40px auto 20px;
  padding-top: 35px;
  background: url(../img/bg_content.png) repeat-y;
}

.container h2 {
  margin-bottom: 14px;
  color: #315a9f;
  font-size: 19px;
}

.container .content {
  background: url(../img/bg_content-btm.png) bottom left no-repeat;
  position: relative;
  top: 11px;
  padding: 10px 20px;
}

h3.subheadline {
  border-bottom: 1px solid #315a9f;
  color: #315a9f;
  margin: 24px 0 14px;
  font-size: 16px;
}


/* === Directions Callout === */
.content .location {
  float: right;
  position: relative;
  margin: 3px 0 0 20px;
  padding-bottom: 45px;
}

.content .location h3 {
  position: absolute;
  bottom: 0;
  text-align: right;
  right: 5px;
  font-size: 14px;
  color: #454545;
  cursor: pointer;
}

.content .location h3 span {
  background: url(../img/glyph_map.png) no-repeat;
  display: -moz-inline-stack;
  display: inline-block;
  zoom: 1;
  *display: inline;  padding: 14px 10px 17px 50px;
  position: relative;
  margin-top: -14px;
  top: 6px; left: 15px;
}


/* === Interior Directions Callout === */
.content .location.short {
  position: absolute;
  right: 20px; 
  margin-top: 0px;
  opacity: .3;
  -webkit-transition: opacity 500ms;
}

.content .location.short:hover {
  opacity: 1;
}

.content .location.short h3 {
  background: none;
  position: static;
}


/* ==== Footer ==== */
footer {
  width: 840px;
  margin: 0 auto;
  font-size: 11px;
  color: #c3e2f2;
  clear: both;
  text-align: center;
}

footer .social_link {
  margin: 12px 40px 25px;
  display: -moz-inline-stack;
  display: inline-block;
  zoom: 1;
  *display: inline;
}



/* ================ */
/* ==== Extras ==== */
/* ================ */


/* ==== Directions Overlay ==== */
.overlay {
  top: 0; bottom: 0; left: 0; right: 0;
  position: fixed;
  opacity: 0;
  z-index: 0;
  display: none;
}

.overlay_mask {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: black;
  opacity: .8;
  filter: alpha(opacity=80);
}

.overlay.visible {
  z-index: 1000;
  opacity: 1;
  display: block;
}

.overlay .overlay_content {
  background: rgba(255,255,255,0.8);
  width: 690px;
  -webkit-border-radius: 5px;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -250px 0 0 -350px;
  padding: 5px;
  z-index: 1001;
}

.overlay #map {
  height: 490px;
  border: 1px solid #333;
}

.overlay .get_directions {
    margin: 5px 0;
    text-align: right;
}

.overlay .get_directions a {
    color: #333;
}

.overlay .directions {
  padding: 10px 10px 0;
  margin-bottom: 10px;
  display: none;
}

.overlay .directions input {
  padding: 4px;
  width: 500px;
  margin-left: 10px;
}

.overlay .directions button {
  padding: 6px;
}

.overlay .location {
  padding: 0 10px 0 10px;
  text-align: right;
  font-size: 12px;
  color: #666;
  font-style: italic;
  display: none;
}

.overlay.with_location .location {
  display: block;
}


/* === Cufon Font Adjustments === */
body:not(.cufon) h1,
body:not(.cufon) nav li,
body:not(.cufon) .contact address,
body:not(.cufon) .contact p {
  visibility: hidden;
}

body.cufon header h1 {
  top: 64px; right: 0;
  font-size: 52px;
}

body.cufon nav li {
  font-size: 21px;
}

body.cufon .contact address,
body.cufon .contact p {
  font-size: 16px;
  line-height: 1.2;
}
