﻿/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
  Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
  Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
  Site wide
   ========================================================================== */

html {
  height: 100%;
  min-height: 100%;
  overflow: -moz-scrollbars-vertical;
  overflow-y: scroll;
  margin: 0;
}

body {
  height: 100%;
  font: 1em 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  margin: 0;
}

h1 {
  font: 2em 'Playfair Display', serif;
  color: #13411D;
  margin: 8px 0px;
  padding: 0;
  font-weight: bold;
}

h2 {
  font: 1.6em 'Playfair Display', serif;
  color: #13411D;
  margin: 8px 0px;
  padding: 8px 0px;
  font-weight: bold;
}

h3 {
  font: 1.3em 'Playfair Display', serif;
  color: #13411D;
  margin: 8px 0px;
  padding: 8px 0px;
  font-weight: bold;
}

h4,
h5,
h6 {
  font: 0.8em 'Playfair Display', serif;
  color: #13411D;
  margin: 8px 0px;
  padding: 0;
}

b {
  color: #13411D;
  font-weight: bold;
}

a,
a:visited {
  text-decoration: none;
  color: #13411D;
}

a:hover,
a:focus {
  text-decoration: underline;
}

section {
  margin: 0 auto;
  max-width: 960px;
  position: relative;
  padding-bottom: 80px;
}

section p,
section li {
  color: #333333;
  margin: 18px 0px;
  padding: 0;
  font-weight: 300;
  font-size: 1em;
  line-height: 1.4em;
}

section li {
  margin: 3px;
}

section h2 {
  text-align: center;
  margin: 0 auto;
}

section .page-header {
  font: 3.2em 'Playfair Display', serif !important;
  margin-bottom: 14px;
  text-align: center;
}

section .highlight-text {
  font: 2.6em 'Playfair Display', serif !important;
  color: #13411D;
  margin-bottom: 14px;
  text-align: center;
}

section .page-sub-header {
  text-align: center;
}

section ul {
  list-style: none;
  padding-top: 0px;
  margin-top: 0px;
  font-weight: 300;
  font-size: 1em;
  line-height: 1.4em
}

section ul li::before {
  content: "\2022";
  color: #13411D;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

section .call-to-action a {
  display: block;
  height: auto;
  background-color: #4F5D49;
  padding: 20px;
  font-size: 1.0em;
  text-decoration: none;
  text-align: center;
  border: 3px #4F5D49 solid;
  color: #fff;
}

section .call-to-action a:hover,
section .call-to-action a:focus {
  background-color: #13411D;
  color: #fff;
  border: 3px #4F5D49 solid;
}

section .call-to-action a.cta-img-link {
  padding: 0px;
  margin: 0px;
  border: none;
}

section .call-to-action img {
  max-width: 100%;
  padding: 0px;
  margin: 0px;
}

article {
  padding: 0px 20px 10px 20px;
  margin: 0 auto;
}

article a {
  font-weight: bold;
}

aside {
  padding: 0px 20px 10px 20px;
  background-color: #F5F8F4;
  margin: 0 auto;
}

.wrapper {
  min-height: 100%; /* Pushes the footer to the bottom for shorter pages*/  
  position: relative;
}

.flex-container {
  display: flex;
  flex-direction: row;
  padding: 24px 0px 16px 0px;
  justify-content: center;
}

.flex-item-left {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  background-color: #F5F8F4;
}

.flex-item-right {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  text-align: center;
  padding-top: auto;
  padding-bottom: auto;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F5F8F4;
}

.flex-item-left img,
.flex-item-right img {
  width: 100%;
  height: auto;
}

.flex-item-left .social-media-contact img,
.flex-item-right .social-media-contact img {
  width: auto;
  height: auto;
}

.quote {
  text-align: center;
  padding: 20px 0px 20px 0px;
}

.quote q {
  font: 1.2em 'Playfair Display', serif;
  font-weight: lighter;
  color: #13411D;
}

.quote cite {
  font: 1.6em 'Alex Brush', cursive;
  float: right;
  margin-right: 60px;
  color: #666666;
}

.find-out-more {
  text-align: center;
  margin: 40px 0px 30px 0px;
  padding: 8px 0px;
}

.find-out-more a {
  background-color: #13411D;
  border: 3px #13411D solid;
  color: #fff;
  padding: 0.4em;
  max-width: 300px;
  height: auto;
  font: 1.4em 'Playfair Display', serif;
  text-decoration: none;
}

.find-out-more a:hover,
.find-out-more a:focus {
  background-color: #fff;
  color: #13411D;
  text-decoration: none;
  border: 3px #d1bc71 solid;
}

.external-banner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.external-banner img {
  margin: 8px;
  width: 140px;
  height: 140px;
}

.external-banner a img,
.external-banner a:visited img {
  margin: 8px;
}

.external-banner a:hover img,
.external-banner a:focus img {
  margin: 5px;
  border: 3px #d1bc71 solid;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
  padding-top: 24px;
  background: white;
}

header .social-media-links {
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0px;
  margin-top: 24px;
  padding: 0px;
}

#ihc-wrapper {
  position: absolute;
  top: 0px;
  left: 0px;
  margin: 0px;
  margin-top: 24px;
  padding: 0px;
  text-align: center;
}

#ihc-logo {
  width: 220px;
}

#ihc-logo img {
  float: left;
  margin: 10px 10px 10px 20px;
  position: relative;
  z-index: 5;
}

#ihc-logo h3 {
  line-height: 1em;
  position: relative;
  top: 7px;
  text-align: left;
  font: 0.85em 'Roboto', Arial, Helvetica, sans-serif;
}

#header-logo {
  margin: 0px auto 0px auto;
  padding: 10px 0px 0px 0px;
  opacity: 1;
}

#header-logo h2 {
  font: 1.1em 'Playfair Display', serif;
  text-align: center;
  margin: 0px;
  padding: 0px;
  position: relative;
  top: -10px;
}

h1#logo-text {
  text-align: center;
  font: 3.6em 'Alex Brush', cursive;
  margin: 0;
  padding: 0;
  margin-top: 3px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

nav {
  font-weight: 300;
  font-size: 1em;
}

.nav-bar {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 300;
  margin: 0px auto 18px auto;
  text-align: center;
  position: relative;
  z-index: 3;
  opacity: 1 !important;
  border-bottom: 3px #13411D solid;
}

.nav-bar ul {
  font-size: 1.2em;
  padding: 0em;
  margin: 24px 0px 0px 24px;
}

.nav-bar li {
  display: inline-block;
  padding: 0.3em 0em;
}

.nav-bar li a {
  min-width: 140px;
  text-align: center;
  color: #13411d;
  text-decoration: none;
  border-right: 3px #d1bc71 solid;
  padding: 0 0.4em 0 0;
  height: auto;
}

.nav-bar li a.no-bar {
  border: none;
}

.nav-bar li:hover a,
.nav-bar li:focus a {
  color: #d1bc71;
}

.nav-bar .show-menu {
  text-decoration: none;
  color: #fff;
  background: #13411D;
  text-align: center;
  display: none;
  font-size: 1.2em;
  padding: 0.4em 0em;
  border: 3px #13411D solid;
  cursor: pointer;
}

.nav-bar input[type=checkbox] {
  display: none;
}

.nav-bar input[type=checkbox]:checked~#menu {
  display: block;
}

/*highlights current page*/
#home .nav-bar .home a,
#home .nav-bar .home a:visited,
#weddings .nav-bar .weddings a,
#weddings .nav-bar .weddings a:visited,
#other-ceremonies .nav-bar .other-ceremonies a,
#other-ceremonies .nav-bar .other-ceremonies a:visited,
#about .nav-bar .about a,
#about .nav-bar .about a:visited,
#humanism .nav-bar .humanism a,
#humanism .nav-bar .humanism a:visited,
#getting-married-in-scotland .nav-bar .getting-married-in-scotland a,
#getting-married-in-scotland .nav-bar .getting-married-in-scotland a:visited,
#contact .nav-bar .contact a,
#contact .nav-bar .contact a:visited {
  color: #d1bc71;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  font-weight: 300;
  font-size: 1em;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: #F5F8F4;
}

footer .inner-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: #13411D;
}

footer .copyright {
  float: left;
  margin-left: 10px;
  position: relative;
  bottom: 4px;
}

footer p {
  color: #fff;
}

footer .social-media-links {
  margin-top: 5px;
  margin-right: 10px;
  float: right;
}

/* ==========================================================================
  Home
   ========================================================================== */

/* Stops the space at bottom going mental when using a full size image */
#home .wrapper {
  min-height: auto; 
}

.main-display-image {
  background-image: url(/img/home/main-bg.jpg?v=1.3);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100%;
  margin: 0px;
  padding: 0px;
}

#downArrow {
  font-size: 2em;
  position: absolute;
  bottom: 0;
  padding: 0px;
  margin: 0 auto 16px 50%;
  color: #ffffff;
}

#downArrow:hover,
#downArrow:focus {
  color: #6f925e;
  cursor: pointer;
}

#downArrow a,
#downArrow a:visited {
  color: #ffffff;
  text-align: center;
}

#downArrow a:hover,
#downArrow a:focus {
  text-decoration: none;
  color: #6f925e;
}

/* ==========================================================================
  Weddings
   ========================================================================== */

/* ==========================================================================
  Other Ceremonies
   ========================================================================== */

/* ==========================================================================
  About
   ========================================================================== */

/* ==========================================================================
  Contact
   ========================================================================== */

#contact section label {
  font: 1.2em 'Playfair Display', serif;
  color: #13411D;
}

#contact .errorIcon,
#contact .errorText {
  color: #990000;
}

#contact .successText {
  color: #009900;
}

#contact .formContent {
  width: 100%;
}

#contact .formContent input[type=text],
#contact .formContent input[type=email] {
  width: 100%;
  margin: 10px 0px 0px 0px;
  padding: 5px;
  border: 2px #4F5D49 solid;
}

#contact .formContent textarea {
  width: 100%;
  margin: 10px 0px 0px 0px;
  height: 220px;
  padding: 5px;
  border: 2px #4F5D49 solid;
}

#contact .formContent textarea#contactVenue {
  height: 120px;
}

#contact .formContent input[type=text]:focus,
#contact .formContent input[type=email]:focus {
  border: 2px #13411D solid;
}

#contact .formContent textarea:focus {
  border: 2px #13411D solid;
}

#contact .formButtonContainer {
  text-align: center;
  margin: 0px auto;
}

#contact .formButtonContainer button {
  background-color: #13411D;
  color: #fff;
  border: 3px #13411D solid;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 8px 20px;
  font: 1.2em 'PT Sans', Arial, Helvetica, sans-serif;
  margin-top: 0px;
}

#contact .formButtonContainer button:hover,
#contact .formButtonContainer button:focus {
  background-color: #fff;
  color: #13411D;
}

#contact #contactPassword {
  position: relative;
  top: -150px;
  z-index: -1;
}

ul.email-details {
  list-style-position: inside;
  padding-left: 0;
}

ul.social-media-contact {
  padding-top: 24px;
  margin-left: -40px;
}

ul.social-media-contact p {
  color: #13411D;
  font-weight: bold;
  font: 1.4em 'Playfair Display', serif;
  margin: 6px 0px;
  line-height: 0.9em;
}

ul.social-media-contact .sub-text {
  font: 0.7em 'Playfair Display', serif;

}

ul.social-media-contact li::before {
  content: "";
  width: 0;
  margin: 0;
}

ul.social-media-contact li {
  margin: 0 0 20px 0;
  height: 80px;
  width: 100%;
}

ul.social-media-contact li img {
  margin-right: 20px;
  float: left;
}

.social-media-text {
  width: 100%;
}

#contact #elel,
#contact #pepe {
  font-weight: 600;
  color: #13411D;
  direction: rtl;
  unicode-bidi: bidi-override;
}

#contact #elel,
#contact #pepe {
  cursor: pointer;
}

#contact #elel:hover,
#contact #elel:focus,
#contact #pepe:hover,
#contact #pepe:focus {
  text-decoration: underline;
}


/* ==========================================================================
  Responsive
   ========================================================================== */

@media screen and (max-width: 960px) {

  /* Use a different image for smaller sizes */
  .main-display-image {
    background-image: url(/img/home/main-bg-mobile.jpg?v=1.3);
  }

  .nav-bar ul {
    position: static;
    display: none;
    padding: 0em;
    margin: 0em;
    border-bottom: 3px #13411D solid;
  }

  .nav-bar ul li,
  li a {
    max-width: 100%;
  }

  .nav-bar .show-menu {
    display: block;
  }

  .nav-bar .show-menu:hover {
    color: #13411D;
    background-color: #ffffff;
  }

  .nav-bar li {
    display: block;
    max-width: 100%;
    padding: 0em;
    margin: 0em;
  }

  .nav-bar li a {
    display: block;
    text-align: center;
    color: #13411D;
    text-decoration: none;
    border: none;
    padding: 0.4em 0em;
    margin: 0px;
    max-width: 100%;
  }

  .nav-bar li:hover a,
  .nav-bar li:focus a {
    color: #d1bc71;
  }

  .nav-bar {
    top: 0px;
    background-color: #F5F8F4;
    border: none;
  }

  section {
    top: 0px;
  }

  header .social-media-links img {
    margin-bottom: 2px;
  }
}

@media screen and (max-width: 920px) {

  section .page-header {
    font-size: 2.8em !important;
  }

  .quote cite {
    margin-right: 30px;
  }
}

@media (max-width: 800px) {
  .flex-container {
    flex-direction: column;
  }

  .flex-reverse {
    flex-direction: column-reverse;
  }

  .flex-item-left {
    padding: 0px;
    margin: 0px;
    width: 100%;
  }

  .flex-item-right {
    padding: 0px;
    width: 100%;
    margin: 0px;
  }

  #contact .flex-item-right {
    margin-top: 48px;
  }

  #contact .social-media-contact-text {
    text-align: center;
  }

  #contact ul.social-media-contact {
    text-align: center;
  }

  ul.social-media-contact li {
    height: 100% !important;
  }

  ul.social-media-contact li img {
    margin-right: 0px !important;
    float: none !important;
  }

  #ihc-wrapper {
    margin: 0px auto;
    padding: 0px;
    text-align: center;
    position: inherit;
    margin-bottom: 20px;
  }

  #ihc-logo {
    float: none;
    margin: 0 auto;
  }

  #ihc-logo h3 {
    padding-top: 7px;
  }

  header .social-media-links {
    margin: 0px auto;
    padding: 0px;
    text-align: center;
    position: inherit;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 700px) {

  section .page-header {
    font-size: 2.4em !important;
    padding: 0px 20px;
    line-height: 1 !important;
  }

  #ihc-wrapper  {
    display:none;
  }
}

/* ==========================================================================
  Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {

  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " ("attr(href) ")";
  }

  abbr[title]:after {
    content: " ("attr(title) ")";
  }

  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}