﻿/*--------------------
TABLE OF CONTENTS
01. Base Styles
02. Typography/Link Styles
03. Header Styles
04. Navigation Styles
05. Content Styles
06. Footer Styles

/*======================
01. BASE STYLES
========================*/

html {overflow-x:hidden;  position:relative;}

html, body {height:100%;}

body {
	font:100%/1.4 'Source Sans Pro',sans-serif;
	color:#393939;
	background:#46656e url('../img/skyline.jpg') no-repeat center top fixed;
  background-size:contain;

}

#address {
  background:#A3D171;
  line-height:35px;
  text-align:center;
  color:#393939;
  font-weight: bold;
  font-size: 1.2em;
  width:100%;
  border-bottom:2px solid #78635F;
  position:fixed;
  z-index:9999;
}

.social a {
  color: #a3d171;
}

.social a img{
  width: 26px;
  vertical-align: middle;
  padding-right: 10px;
}

@media (min-width:700px) {
  .social br {
    display: none;
  }
}

img {max-width:100%;}

.wrapper {
	width:100%;
	z-index:1;
	position:relative;
}

.container {
	width:95%;
	margin:0 auto;
	max-width:1037px;
  position:relative;
  z-index:12;
}

.column {
	float:left;
	margin:0 1%;
}

.grid12 {width:98%;}
.grid11 {width:89.6667%;}
.grid10 {width:81.3333%;}
.grid9 {width:73%;}
.grid8 {width:65%;}
.grid7 {width:56.3333%;}
.grid6 {width:48%;}
.grid5 {width:39.6667%;}
.grid4 {width:31%;}
.grid3 {width:23%;}
.grid2 {width:14.6667%;}
.grid1 {width:6.3333%;}

.clear {clear:both;}

.alignleft,.alignright,.alignmid,.border {
	outline:6px solid #D2D3D5;
}

.alignleft {
	float:left;
	margin-right:15px;
	margin-bottom:10px;
	margin-top:10px;
}
.alignright {
	float:right;
	margin-left:15px;
	margin-bottom:10px;
	margin-top:10px;
}
.alignmid {
	display:block;
	margin:0 auto;
}
.center {text-align:center;}

blockquote {
	text-align:center;
	color:#ef4137;
	font-size: 1.7em;
  font-family:'Life Savers',cursive;
  margin-bottom:20px;
}

hr {
  border:0;
  height:2px;
  background:#A3D171;
  padding:0;
  margin-bottom:15px;
}

#backdrop {
  background:url('../img/marn-buildings-bg.png') no-repeat center bottom;
  width:100%;
  position:absolute;
  z-index:5;
  min-height:1741px;
  bottom:0;
  overflow-x:hidden;
}
.color1 a{
    color: #f16676;
}
.color2 a{
    color: #AF7FB6;
}
.color3 a{
    color: #56881F;
}

/*======================
02. TYPOGRAPHY/LINK STYLES
========================*/

h1,h3,h5 {
	font-family:'Life Savers',cursive;
	padding-bottom:0;
	color:#f16676;
	font-weight:700;
}
h2,h4,h6 {
	font-family:'Life Savers',cursive;
	color:#99cc62;
	padding-bottom:0;
	font-weight:700;
}

h1 {
  font-size:3.3em;
  border-bottom:2px solid #A3D171;
  margin-bottom:20px;
}
h2 {font-size:2.6em;}
h3 {font-size:2.2em;}
h4 {font-size:1.7em;}
h5 {font-size:1.4em;}
h6 {font-size:1.2em;color:#333;}

a {color:#34485E;transition:0.5s all ease;}

a:hover {color:#437B94;}

a.button {
	background:#B35142;
	color:#fff;
	text-align:center;
	display:inline-block;
	padding:8px 15px;
	text-decoration:none;
  border-radius:10px;
  -moz-border-radius:10px;
  -webkit-border-radius:10px;
  font-family:'Life Savers',cursive;
  font-weight: 700;
  font-size:1.2em;

}

a.button:hover {
	background:#DB9188;
	color:#fff;
}

a.large {
  font-size:1.6em;
}

/*======================
03. HEADER STYLES
========================*/

header {
  position:relative;
}

header img {
  position:static;
  z-index:1;
}

.mobileheading {display:none;}

/*======================
04. NAVIGATION STYLES
========================*/

.main-navigation {display:none;}

.mobile-button {display:none;}

nav {
  position:relative;
  z-index:9999;
  margin:0 auto;
  margin-top:-50px;
  top:-65px;

}

nav ul{
  list-style-type:none;
  padding-bottom:0;
  text-align:center;
}

nav li {
  display:inline-block;
  margin:0;
  padding:0;
  position:relative;
}

nav li a {
  display:block;
  text-decoration:none;
  color:#4e3e38;
  font-size:1.5em;
  transition:0.3s all ease;
  line-height:40px;
  padding:0 23px;
  font-family:'Cabin Condensed',sans-serif;
  text-transform:uppercase;
  font-weight:600;
  position:relative;

}

nav li:nth-child(even) a:before {
  content:"";
  width:29px;
  height:29px;
  background:url('../img/pink-butterfly.png') no-repeat;
  left:-15px;
  top:5px;
  position:absolute;
}

nav li:nth-child(odd) a:before {
  content:"";
  width:31px;
  height:29px;
  background:url('../img/blue-butterfly.png') no-repeat;
  left:-15px;
  top:5px;
  position:absolute;
}

nav li:first-child a:before {
  content:"";
  background:none;
}

nav li:hover a {
  color:#fff;
}

/* DROPDOWN */

nav li ul {
  display: none;
}
nav li:hover ul {
  display: block;
  margin-left: 0;
  position: absolute;
  top: 40px;
  left:20px;
  z-index: 9999;
}
nav li:hover li {
  float: none;
  white-space: nowrap;
  width: 100%;
  background:none;
}

nav li:hover li:first-child a {
  border-top-left-radius:10px;
  border-top-right-radius:10px;
  -moz-border-top-left-radius:10px;
  -moz-border-top-right-radius:10px;
  -webkit-border-top-left-radius:10px;
  -webkit-border-top-right-radius:10px;
}

nav li:hover li:last-child a {
  border-bottom-left-radius:10px;
  border-bottom-right-radius:10px;
  -moz-border-bottom-left-radius:10px;
  -moz-border-bottom-right-radius:10px;
  -webkit-border-bottom-left-radius:10px;
  -webkit-border-bottom-right-radius:10px;
}

nav li:hover li a {
  background: #F16676;
  display: block;
  margin:0;
  height: auto;
  text-align: left;
  font-size:1.3em;
  line-height:45px;
  padding:0 30px 0 10px;
  border:0;
}


nav li:hover li:nth-child(even) a:before {
  content:"";
  background:none;
}

nav li:hover li:nth-child(odd) a:before {
  content:"";
  background:none;
}

nav li:hover li a:hover {
  background: #DB9188;
}

/*======================
05. CONTENT STYLES
========================*/

.content {
  background:url('../img/union-repeat.png') repeat-y center top;
  background-size:contain;
  min-height:600px;
  padding:20px 7%;
  position:relative;
}

.content:after {
  content:"";
  background:url('../img/stairs.png') no-repeat;
  width:108px;
  height:793px;
  position:absolute;
  right:-77px;
  top:-100px;
  z-index:-1;

}

.slideshow {
	position:relative;
	margin-left:10px;
	width:940px;
	height:320px;
}

.slideshow img {
	left:0;
	position:absolute;
	top:0;
	z-index:9;
}

.boxed {
  background:#a9d256;
  padding:15px 15px;
  font-size:0.9em;
  margin-bottom: 40px;
}

.window {
  background:url('../img/quicklink-window.png') no-repeat;
  width:165px;
  height:198px;
  text-align:center;
  padding:35px 0;
  margin:0 auto 30px auto;
}

.pane {
  height:130px;
}

.pane a {
  color:#103545;
  text-decoration:none;
  font-family:'Cabin Condensed',sans-serif;
  text-transform:uppercase;
  font-weight:700;
  font-size:1.2em;
}

#leftbuilding {
  position:absolute;
  z-index:6;
  bottom:240px;
  left:-850px;
}

.top {font-size:0;}

#leftbuilding .buildingrepeat {
  background:url('../img/left-building-mid.png') repeat-y;
  min-height:900px;
}

#rightbuilding {
  position:absolute;
  z-index:6;
  bottom:240px;
  right:-950px;
}

#rightbuilding .buildingrepeat {
  background:url('../img/right-building-mid.png') repeat-y;
  min-height:900px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px; height: 0; overflow: hidden;
    margin-bottom:30px;
}
 
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

span.author {font-weight: bold;color:#34485E;}

.tour{
	width:100%;
	text-align:center;
	float:left;
	margin-bottom:15px;
}

/* FORM STYLES */

#form .clear {clear:both;}
#form .center {text-align:center;}
#form h3 {margin:0 1%;}
#form small {font-style:italic;}
#form hr {width:98%;margin:10px 1% 15px 1%;}

/*GRID */
#form .column {
  float:left;
  margin:0 1%;
}

#form .full {width:98%;margin:0 1%;}
#form .half {width:48%;}
#form .twothird {width:65%;}
#form .onethird {width:31%;}

#form input:not([type=submit]):not([type=checkbox]):not([type=radio]) {
  width:96%;
  padding:10px 2%;
}

#form input[type=radio] {
  margin-bottom:5px;
}

#form textarea {
  width:96%;
  resize:none;
  padding:10px 2%;
  font:95%/1.4 'Tahoma',sans-serif;
}

#form select {
  width:101%;
  padding:10px 2%;
}

/*======================
06. FOOTER STYLES
========================*/

#unionbottom {
  background:url('../img/union-bottom.png') center top no-repeat;
  background-size:contain;
  width: 100%;
  height:675px;
  position:relative;
  z-index:1;
  margin-bottom:40px;
}

#doorsign {
  background:url('../img/doctor-sign.png') no-repeat;
  width:127px;
  height:59px;
  text-transform:uppercase;
  font-family:'Cabin Condensed',sans-serif;
  font-weight: 700;
  color:#313131;
  text-align: center;
  margin:0 auto;
  position:relative;
  top:45%;
  font-size:0.95em;
  padding-top:8px;
}

#windowsign {
  width:255px;
  height:156px;
  position:absolute;
  bottom:33%;
  left:8%;
  text-align:center;
  font-family: 'Cabin Condensed',sans-serif;
  font-weight:700;
  text-transform: uppercase;
  font-size: 1.1em;
  color:#313131;
}

footer {
  position:relative;
  z-index:9999;
  text-align:center;
  width:100%;
  font-family: 'Life Savers',sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  position:relative;
  top:-40px;
}

#subnav {
  position:relative;
  bottom:40px;
}

footer a {color:#80372c;}
footer a:hover {color:#b34d3e;}

footer p {padding-bottom:10px;}

.windowtop {
  display: inline-block;
  height: 40px;
  width: 40px;
  position: fixed;
  bottom: 40px;
  right: 30px;
  overflow: hidden;
  text-indent: 100%;
  background: #A3D171 url('../img/cd-top-arrow.svg') no-repeat center 50%;
  visibility: hidden;
  opacity: 0;
  border-radius:10px;
  -webkit-border-radius:10px;
  -moz-border-radius:10px;
  z-index:9999;
  transition:0.5s all ease;
  cursor:pointer;
}

.windowtop.cd-is-visible {
  /* the button becomes visible */
  visibility: visible;
  opacity: 1;
}

.no-touch .windowtop:hover {
  background-color: #e86256;
  opacity: 1;
}

/*======================
MEDIA QUERIES
========================*/

@media (min-width:1920px) {
  body {
    background-size:cover;
  }
}

@media (max-width:1400px) {
  #leftbuilding,#rightbuilding {display:none;}
    .content:after {
    background:none;
    width:0;
  }

  nav {top:-55px;}
  nav li a {font-size:1.3em;}
}

@media (max-width: 1000px) {
  .flash {
    display:none;
  }

  .desktop{
    display: none !important;
  }
  .mobile{
    display: block;
  }
  header {
    margin-bottom:-46px;
  }
  .mobile-button{
    display: block;
    position: relative;
    margin:0 auto;
    z-index: 9999;
    width:110px;
    height:30px;
    cursor: pointer;
    background:#B35142;
    border-radius:10px;
    text-align:center;
    color:#fff;
    top:-100px;
    padding-top:5px;
  }

  nav li:nth-child(even) a:before, nav li:nth-child(odd) a:before {display:none;}

  .main-navigation.mobile-menu{
    left: 0;
  }

  .main-navigation {
    display: block !important;
    background-color: #B35142;
    position: absolute;
    top: 0px;
    left: -275px;
    width: 250px;
    bottom:0;
    padding: 30px 0 0 0;
    z-index: 200;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
  }

  .main-navigation > ul > li {
    height: auto;
    display: block;
    margin: 0;
  }

  .main-navigation > ul li{
    float: none;
    border-bottom:1px solid #DB9188;
  }

  .main-navigation > ul li:first-child {
    border-top:1px solid #DB9188;
  }

  nav {margin:0;}

  nav ul li:hover a {background:none;}

  nav li:hover li a:hover {
    background: none;
  }

  .main-navigation > ul > li a {
    display: block;
    float: none;
    font-size: 1.4em;
    width: 100%;
    text-align: left;
    overflow: hidden;
    line-height: 50px;
    color: #fff;
  }

  .main-navigation > ul li > ul {
    margin: 0;
    position: static;
    height: auto;
    overflow: hidden;
    background-color: #DB9188;
  }

  .main-navigation > ul li {
    display:block;
  }

  .main-navigation > ul li > ul li a {
    line-height: 40px;
    color: #fff !important;
    font-size: 1.2em;
    padding:0 0 0 25px;
  }

  .window {
    float:left;
    margin:0 5% 30px 5%;
  }

  #windowsign {display:none;}

  #doorsign {top:45%;}
}
@media (min-width: 1024px) {
  .noflash {
    display:none;
  }
  .flash {
    width:550px;margin:0 auto;
  }
}

@media screen and (max-width:790px){
	.grid1,.grid2,.grid3,.grid4,.grid5,.grid6,.grid7,.grid8,.grid9,.grid10,.grid11,.grid12 {
		width:100%;
		margin:0;
	}

  .mobile-button {top:-80px;}

	#form .column {
    float:none;
    margin:0;
  }
  #form .full, #form .half, #form .twothird, #form .onethird {
    width:98%;margin:0;
  }
  #doorsign {display:none;}



  footer {
    top:-220px;
  }
}

@media screen and (max-width:600px) {
	.alignleft, .alignright {
		float:none;
		display:block;
		margin:0 auto 20px auto;
	}

  h1 {font-size:2.8em;}

  .mobileheading {display:inline;}
  .desktopheading {display:none;}

  .mobile-button {top:-40px;}

  .window {
    float:none;
    margin:20px auto;
  }

  #unionbottom {
    height:600px;
  }

  .hide {display:none;}

}
