/******************************************************************************************************
Imports & Utility
******************************************************************************************************/

@import url("https://fonts.googleapis.com/css?family=Dancing+Script:400,700");
@import url("https://fonts.googleapis.com/css?family=Varela+Round");


/******************************************************************************************************
This makes it so that an elemnts padding and border are included in the width and height.
Check this out for more information: http://www.w3schools.com/css/css3_box-sizing.asp
******************************************************************************************************/

* { box-sizing: border-box; }

/******************************************************************************************************
Body
******************************************************************************************************/

html, body {
  width:100%;
  height:100%;
  margin:0;
  padding:0;
}
    
body {
  text-align:center;
  color:#333333;
  font-family: 'Copse', serif;
  font-size:15px;
  background: #fff url("Images/imgBgLeather.png") repeat 0 0;
  font-family: 'Copse', serif;
  font-size:15px;
}

section {
  text-align:left;
  display:inline-block;
  font-size:larger;
  line-height:150%;
  margin: 0;
}

p, table {
  margin:0;
  padding:0;
}

/******************************************************************************************************
Fonts, Titles & Text
******************************************************************************************************/

.copse { font-family: 'Copse', serif; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  color:#666666;
  font-weight:400;
  margin-bottom: 10px;
  margin-top: 10px;
  font-family: 'Copse', serif;
}

/* Small Screen */
h1, .h1{ font-size:22px; }
h2, .h2{ font-size:19px; }
h3, .h3{ font-size:17px; }
h4, .h4{ font-size:15px; }
h5, .h5{ font-size:13px; }

/* Large Screen */
@media only screen and (min-width:580px) {
  h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  margin-bottom: 15px;
  margin-top: 15px;
  }
  
  h1, .h1{ font-size:30px; }
  h2, .h2{ font-size:24px; }
  h3, .h3{ font-size:21px; }
  h4, .h4{ font-size:19px; }
  h5, .h5{ font-size:17px; }
}

/******************************************************************************************************
H2 Dancing Text - The before_title and after_title divs are required for this to work properly
******************************************************************************************************/

.dancing_script { font-family: 'Dancing Script', cursive; }

h2.dancing, h2.dancing a {
  font-family: 'Dancing Script', cursive;
  font-size:36px;
  color:#000080;
  text-decoration:none;
  line-height:100%;
}

.title_wrap {
  width:100%;
  text-align:center;
  padding-bottom:20px;
}

.title_wrap .before_title {
  padding-left:78px;
  background: transparent url("Images/imgTitleHeartLineLeft_small.png") no-repeat left center;
  display: inline-block;
}

.title_wrap .before_title .after_title {
  padding-right:78px;
  background: transparent url("Images/imgTitleHeartLineRight_small.png") no-repeat right center;
  display:inline-block;
}

.title_wrap .before_title .after_title h2 {
  display:inline-block;
  position:relative;
  top:-5px;
}

/******************************************************************************************************
H2 Dancing Text - Large Screen
******************************************************************************************************/

@media only screen and (min-width:580px) {
  h2.dancing, h2.dancing a {
    font-size:52px;
  }
  
  .title_wrap .before_title {
    padding-left:135px;
    background-image:url("Images/imgTitleHeartLineLeft.png");
  }
  
  .title_wrap .before_title .after_title {
    padding-right:135px;
    background-image:url("Images/imgTitleHeartLineRight.png");
  }
}

/******************************************************************************************************
Images
******************************************************************************************************/

img {
    vertical-align: middle;
    border: 0;
}

.framed {
  border:10px solid #ffffff;
  background:#fff;
  -webkit-box-shadow:0 0 5px rgba(0, 0, 0, 0.3);
  -moz-box-shadow:0 0 5px rgba(0, 0, 0, 0.3);
  box-shadow:0 0 5px rgba(0, 0, 0, 0.3);
  width: auto;
}



/******************************************************************************************************
Banner (When we have an image across the top)
******************************************************************************************************/

#banner {
    display:block;
    position: relative;
    text-align: center;
    z-index: 1;
    background: #ffffff;
    overflow-y:auto;
}

#banner img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: -3
}

#banner_line {
    display: block;
    position: relative;

    width: 100%;
    height: 40px;
    top: -20px;
    left: 0px;
    background: url("Images/imgBannerLine.png") repeat center 0;
    z-index: 2;
    background-size: 100% 100%;
}

#noBanner {
  display:block;
  height:70px; 
}

/* Large Screen */
@media only screen and (min-width:580px) {  
  #noBanner {
    height:90px;
  }
}
/******************************************************************************************************
Badge - Small Screen
******************************************************************************************************/

.badgeContainer {
  position:relative;
  z-index: 3;
  padding: 0px 15px 0px 15px;
  margin-right:auto;
  margin-left:auto;
  
  width:200px;
  top: -115px;
  height:80px;
}

.circle-text {
  content: "";
  width: 100%;
  height:0px;
  padding-bottom: 100%;
  background: rgba(20, 20, 90, 0.95);
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  -webkit-box-shadow: 0 12px 20px -7px rgba(0,0,0,.3);
  box-shadow: 0 12px 20px -7px rgba(0,0,0,.3);
}

.circle-text div {
  padding-top:20%;
  width:100%;
  line-height:1em;
  margin-top:-0.5em;
  text-align:center;
  color:white;
}

.circle-text div span {
  display:inline-block;
}

.badge_small { font-size:18px; }
.badge_large { font-family: 'Dancing Script', cursive; font-size:34px; }
.badge_one { padding:0 0 5px 0; }
.badge_two { padding:10px 0 10px 0; }
.badge_three { padding:5px 0 0 0; }
.heart_line { margin:0px auto;width:80% !important }

/******************************************************************************************************
Badge - Large Screen
******************************************************************************************************/

@media only screen and (min-width:420px) {

  .badgeContainer {
    width:270px;
    top: -160px;
    height:110px;
  }
  
  .circle-text div {
    padding-top:25%;
  }
    
  .badge_small { font-size:27px; }
  .badge_large { font-size:45px; }
  .badge_one { padding:0 0 10px 0; }
  .badge_two { padding:20px 0 20px 0; }
  .badge_three { padding:10px 0 0 0; }
}

/******************************************************************************************************
Navigation
******************************************************************************************************/

nav {
  position:absolute; /* So that we overlap the photo . Could also do fixed if we want it to scroll with the page. */
  right:50%;
  top:0px;
}

nav ul {
  position:relative;
  right:-50%; /* This will center the ul on the screen when combined with the "nav {left:50%;}" above */
  margin:0;
  padding: 0;
  z-index:10; /* Over everything else */
}

nav a{
  font-size:18px;
  margin:0px 15px 0px 15px;
  padding-bottom:2px; /* space above the underline */
  font-family:"Varela Round", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color:#f9f9f9;
  letter-spacing:1px;
  text-decoration:none;
  text-align:center;
}

nav a:hover {
  color:#ffffff;
  border-bottom:2px solid #ffffff;
}

nav a#selected {
  color:#ffffff;
  border-bottom:2px solid #ffffff;
}

/******************************************************************************************************
Navigation - Small Screens (Mobile Phones) - Always design for mobile first
******************************************************************************************************/

nav ul {
  margin:auto; /* This will center the list in the nav container */
  list-style-type: none;
  overflow:visible; /* was overflow:hidden*/

  line-height:280%;
  padding: 0px 0px 10px 0px;
  width:220px;
  height:100%;
  
  background-image: url('Images/imgNavBg_small.png'); /*imgNavBg_Expanded    imgNavBg_Small*/
  background-repeat:no-repeat;
  background-position:bottom;
  background-size: 100% auto; /*stretch the image out to the edges */
}

nav li {
  display:none;
}

nav.expanded li {
  display:block;
}

nav li#navMenuButton {
  display:block;
}

nav.expanded li#navMenuButton {
  display:none;
}

/******************************************************************************************************
Navigation - Mid Size Screens (Tablets)
******************************************************************************************************/

@media only screen and (min-width:420px) {

  nav ul {
    padding: 0px 0px 16px 0px;
    width:340px;
    background-image: url('Images/imgNavBg_mid.png');
  }
  
  nav a{
    font-size:30px;
  }
}

/******************************************************************************************************
Navigation - Large Screens (Desktops)
******************************************************************************************************/

@media only screen and (min-width:768px) {

  nav ul {
    padding: 0px 0px 28px 0px;
    width:730px;
    background-image: url('Images/imgNavBg_large.png');
    line-height:200%;
  }
  
  nav li {
    display:inline;
  }
  
  nav li#navMenuButton {
    display:none;
  }
  
  nav a{
    font-size:18px;
  }
}

/******************************************************************************************************
The Mask Layer that will be layed over the content so it's unclickable while the nav menu is shown
******************************************************************************************************/

#navContentMaskLayer {
  position:absolute; /* So that we overlap everything */
  z-index:9; /* Cover everything else except the nav menu */
  width:100%;
  height: 100%;
  margin:0;
  padding: 0;
  right: 0px;
  top:0px;

  background-color:black;
  opacity:0.6;

  display: none;
}

/******************************************************************************************************
Welcome Page (Index)
******************************************************************************************************/

#welcomePage {
  max-width:700px;
  padding: 0px 20px 40px 20px;
}
/* Large Screen */
@media only screen and (min-width:580px) {
  #welcomePage {
    padding-bottom:80px;
  }
}

/******************************************************************************************************
Our Story
******************************************************************************************************/

#ourStory {
  max-width:900px;
  margin-bottom:40px;
  padding-left: 25px;
  padding-right: 0px;
}

.timelineLine {
  padding:35px 0px 115px 0px;
  margin:0px;
  height:100%;
}

.timelineLineDiv {
  background: rgb(20, 20, 90);
  height:100%;
  width:6px;
  
  left:-10px;
  position:relative;
}

.timelineInnerTable {
  display:inline-block;

  
  left:-20px;
  position:relative;
}

.timelineCircle {
  background: rgb(20, 20, 90);
  width:30px;

  margin:auto;
  border-radius:50%;
  left:-14px;
  position:relative;
}

.timelineDate {

  text-align:left;
}

.timelineDate h2 {
  font-size:17px;
  margin: 5px 0px;
}

.timelineTitle {
  text-align:center;
}

.timelineTitle h1 {
  font-size:19px;
  margin: 5px 0px;
}

.timelineText {
 padding-left:35px;
}

.timelineText h4 {
  margin-top:0px;
}

/* Large Screen */
@media only screen and (min-width:580px) {

  .timelineLineDiv {
    width:8px;
    left:0px;
  }
  
  .timelineInnerTable {
    width:100%;
  }
  
  .timelineCircle {
    width:50px;
  }

  .timelineDate {
    left:-20px;
    width:160px;
    text-align:center;
  }
  
  .timelineDate h2 {
    font-size: 24px;
    margin: 15px 0px;
  }

  .timelineTitle {
    text-align:left;
  }
  
  .timelineTitle h1 {
    font-size:30px;
    margin: 15px 0px;
  }

  .timelineText {
    padding-left:215px;
  }
}

/******************************************************************************************************
Wedding Details
******************************************************************************************************/

#weddingDetails {
  padding: 0px 10px 15px 10px;
}

#weddingSchedule {
  margin:0 auto 30px auto;
}

#weddingSchedule,
#weddingSchedule th,
#weddingSchedule td {
   border: 1px solid black;
}

#weddingSchedule td {
   padding: 7px;
   font-size:15px;

   background: rgb(0, 0, 100) url("Images/imgBgCloth.png") repeat 0 0;
   color: #fff;
}

/* Large Screen */
@media only screen and (min-width:580px) {
  #weddingDetails {
    padding-bottom:30px;
  }

  #weddingSchedule td {
    padding: 15px;
    font-size:18px;
  }
}

/******************************************************************************************************
RSVP
******************************************************************************************************/

#rsvp {
  max-width:600px;
  padding: 0px 4px;
  text-align: center;
  margin-bottom: 50px;
}

.button {
  -moz-box-shadow: 0px 10px 14px -7px #000e59;
  -webkit-box-shadow: 0px 10px 14px -7px #000e59;
  box-shadow: 0px 10px 14px -7px #000e59;
  background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #445ab3), color-stop(1, #000e59));
  background:-moz-linear-gradient(top, #445ab3 5%, #000e59 100%);
  background:-webkit-linear-gradient(top, #445ab3 5%, #000e59 100%);
  background:-o-linear-gradient(top, #445ab3 5%, #000e59 100%);
  background:-ms-linear-gradient(top, #445ab3 5%, #000e59 100%);
  background:linear-gradient(to bottom, #445ab3 5%, #000e59 100%);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#445ab3', endColorstr='#000e59',GradientType=0);
  background-color:#445ab3;
  -moz-border-radius:8px;
  -webkit-border-radius:8px;
  border-radius:8px;
  display:inline-block;
  cursor:pointer;
  color:#ffffff;
  font-family:Arial;
  font-size:15px;
  font-weight:bold;
  padding:13px 0px;
  text-decoration:none;
  text-shadow:0px 1px 0px #1f368a;
  width:120px;
}

.button:hover {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #000e59), color-stop(1, #445ab3));
	background:-moz-linear-gradient(top, #000e59 5%, #445ab3 100%);
	background:-webkit-linear-gradient(top, #000e59 5%, #445ab3 100%);
	background:-o-linear-gradient(top, #000e59 5%, #445ab3 100%);
	background:-ms-linear-gradient(top, #000e59 5%, #445ab3 100%);
	background:linear-gradient(to bottom, #000e59 5%, #445ab3 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#000e59', endColorstr='#445ab3',GradientType=0);
	background-color:#000e59;
}

.button:active {
	position:relative;
	top:1px;
}

#guestTable {
  width:100%;
  margin-left: auto;
  margin-right: auto;
}

#guestTable th {
  width:50%;
}

input[type=text], select, textarea {
  width: 90%;
  padding: 6px 8px;
  margin: 4px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 12px;
}

select {
  max-width: 144px;
}
  
@media only screen and (min-width:580px) {
  .button {
  	font-size:17px;
    width:150px;
  }
  
  input[type=text], select, textarea {
    font-size: 14px;
  }
  
  select {
    max-width: 156px;
  }
}

/******************************************************************************************************
Gallery
******************************************************************************************************/

#gallery {
  max-width:1200px;
  margin-bottom: 40px;
}

.gallery-item {
  float:left;
  width:100%;
  padding:0 18px;
}

.gallery-item img {
  margin:0px 0px 20px 0px;
  display:block;
  max-width:100%;
  height:auto;
}

/* Medium Screen */
@media only screen and (min-width:580px) {
  .gallery-item {
    width:50%;
  }
  
  .gallery-item img {
    margin-bottom: 30px;
  }
}

/* Large Screen */
@media only screen and (min-width:900px) {
  .gallery-item {
    width:33.333%;
  }
}

/******************************************************************************************************
Wedding Party
******************************************************************************************************/

#hisHerTeam {
  display:block;
  width:100%;
  margin:auto;

  max-width:1200px;
  padding: 0px 10px;
}

.hisHerTeamPic {
  width:100%;
  max-width:450px;
}

.weddingParty {
  display:block;
  width:100%;
  margin:auto;

  max-width:1200px;
  padding:0px 15px 10px 15px;
}

.weddingPartyPerson {
  display:block;
  width:100%;
  margin:auto;
  padding-bottom:15px;
}

.weddingPartyImg {
  width:100%;
  display:block;
  text-align:center;
}

.weddingPartyImg img {
   max-width:300px;
   max-height:300px;
   margin:0px;
   overflow:hidden;
}

.weddingPartyText {
  margin: 0px 0px 20px 0px;
  display:inline-block;
}

.weddingPartyText h2 {
  text-align:center;
}

/* Large Screen */
@media only screen and (min-width:1100px) {
  
  .weddingPartyImg {
    display:inline;
    margin-right:20px;
  }
  
  .weddingPartyText {
    width:700px;
    vertical-align:middle;
  }
  
  .weddingPartyText h2 {
    text-align:left;
  }
}

/******************************************************************************************************
Travel & Lodging
******************************************************************************************************/

#travel {
  max-width:1200px;
  padding: 0px 10px;
}

#travel h1 {
  text-align:center;
  margin:35px 0px 5px 0px;
}

.hotel {
  display:block;
  text-align:center;
}

.hotelImage {
  display:inline-block;
  width:100%;
  vertical-align:top;
  margin-bottom:20px;
}

.hotelImage img {
  width:100%;
}

.hotelLocation {
  display:inline-block;
  width:100%;
}

.hotelLocationMap {
  width:100%;
  max-width:400px;
  height:300px; 
}

#thingsToDo {
  width:100%;
  padding: 60px 0px 0px 0px;
}

#borderCrossing {
  padding: 60px 0px;
}

@media only screen and (min-width:840px) {
  #travel {
    padding: 0px 30px;
  }
  
  #travel h1 {
    margin:40px 0px 20px 0px;
  }
  
  .hotel {
    margin-top:30px;
  }
  
  .hotelImage {
    width:49%;
  }
  
  .hotelLocation {
    width:49%;
  }
}

@media only screen and (min-width:600px) {
  .travelSmallScreenBreak {
    display:none;
  }
}

/******************************************************************************************************
Stag & Doe
******************************************************************************************************/

.stagSection {
  max-width:600px;
  padding: 0px 10px;
  margin-bottom: 40px;
  text-align:center;
}

@media only screen and (min-width:580px) {
  .stagSection {
    margin-bottom: 50px;
  }
}

/******************************************************************************************************
Gift Registry
******************************************************************************************************/

#giftRegistry {
  max-width:600px;
  padding: 0px 30px;
}

#giftRegistryPoem td {
  font-size:11px;
}
  
@media only screen and (min-width:580px) {
  #giftRegistryPoem td {
    font-size:19px;
  }
}


/******************************************************************************************************
Footer
******************************************************************************************************/

/* This goes around everything in the body. It's to ensure that the footer stays at the bottom */
#wrapper {
  min-height:100%;
  position:relative;
}

/* This contains everything in the wrapper that is above the footer. It's to ensure that the footer stays at the bottom */
#aboveFooter {
  padding-bottom:56px; /* Height of the footer element */
}

footer {
  background: rgb(0, 0, 100) url("Images/imgBgCloth.png") repeat 0 0;
  color: rgb(200,200,255); 
  width:100%;
  height:56px;
  position:absolute;
  bottom:0;
  left:0;
  margin:0;
  padding:18px 0px 18px 0px;
  font-size:14px;
}

@media only screen and (min-width: 520px) {
  footer { font-size:17px; }
}
