/*
  UNIVERSALS
*/

@font-face {
  font-family: 'Chiller';
  src: url("../assets/fonts/CHILLER.TTF"), url("../assets/fonts/CHILLERN.TTF");
}

body {
  background-color: #000;
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.only-sm {
  display: none;
}


/*
  HOME PAGE
*/

body.home {
  padding-top: 8vh;
  overflow: hidden;
}

.home-grid {
  position: relative;
  display: grid;
  display: -ms-grid;
  grid-template-rows: 320px 60px 304px;
  -ms-grid-rows: 320px 60px 304px;
  grid-template-columns: 17.5% 25% 25% 32.5%;
  -ms-grid-columns: 17.5% 25% 25% 32.5%;
  grid-template-areas: "image1 image2 .      image3"
                       "image1 .      .      ."
                       "image4 feet   feet   title";
  justify-items: stretch;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  width: 100%;
  height: 700px;
  max-width: 1000px;
  margin: 0 auto;
}

.home-grid div,
.home-grid>img {
  position: relative;
  opacity: 0;
}

.home-grid>img {
  position: absolute;
  top: 10px;
  right: 1%;
}

nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  max-width: 800px;
  background: #F1C945;
  border-radius: 5px;
}

.home-grid nav {
  grid-area: 2 / 1 / 3 / 5;
  -ms-grid-row: 2;
  -ms-grid-row-span: 1;
  -ms-grid-column: 1;
  -ms-grid-column-span: 4;
  position: relative;
  height: 100%;
  max-width: initial;
  z-index: 5;
}

nav a {
  color: #000;
  font: 2.3em 'Chiller', 'Georgia', cursive;
  text-decoration: none;
}

nav a:nth-of-type(1):hover {
  color: #718234;
}

nav a:nth-of-type(2):hover {
  color: #4b68ea;
}

nav a:nth-of-type(3):hover {
  color: #e84040;
}

nav a:nth-of-type(4):hover {
  color: #37ad8a;
}

nav a:nth-of-type(5):hover {
  color: #7C5DA0;
}

.image {
  height: 100%;
  width: 100%;
}

.image1 {
  grid-area: image1;
  -ms-grid-row: 0;
  -ms-grid-row-span: 3;
  -ms-grid-column: 0;
  -ms-grid-column-span: 1;
  background: url("../assets/DSC09481.jpg") center right / auto 100% no-repeat;
}

.image2 {
  grid-area: image2;
  -ms-grid-row: 0;
  -ms-grid-row-span: 3;
  -ms-grid-column: 2;
  -ms-grid-column-span: 1;
  background: url("../assets/IMG_20160418_213759.jpg") top left / 100% auto no-repeat;
}

.image3 {
  grid-area: image3;
  -ms-grid-row: 0;
  -ms-grid-row-span: 1;
  -ms-grid-column: 3;
  -ms-grid-column-span: 2;
  background: url("../assets/logo_jan2018.jpg") bottom center / 100% auto no-repeat;
}

.image4 {
  grid-area: image4;
  -ms-grid-row: 0;
  -ms-grid-row-span: 3;
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  background: url("../assets/bottom-left.jpg") center center no-repeat;
}

.image5 {
  grid-area: image5;
  -ms-grid-row: 3;
  -ms-grid-row-span: 2;
  -ms-grid-column: 3;
  -ms-grid-column-span: 1;
  background: url("../assets/DSC07182.jpg") top -20px left / 100% auto no-repeat;
}

.feet {
  grid-area: feet;
  background: url("../assets/feet.jpg") center center / 100% 100% no-repeat;
}

.home-grid .title {
  grid-area: title;
  -ms-grid-row: 3;
  -ms-grid-row-span: 4;
  -ms-grid-column: 4;
  -ms-grid-column-span: 1;
  background: url("../assets/cover-logo.png") center center / auto 100% no-repeat;
}

.small-logo {
  width: 60px;
  height: 80px;
  -ms-flex-item-align: end;
  align-self: end;
  padding: 0 0 10px 10px;
}

.title span:first-child {
  color: #F1C945;
  font: 5em/0.7 'Chiller', 'Georgia', cursive;
}

.title span:last-child {
  color: #7C5DA0;
  font: 9em/0.7 'Chiller', 'Georgia', cursive;
  text-shadow: 5px 5px 0 #CA0701;
}


/*
   INTERIOR PAGES
*/

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.container img {
  max-width: 100%;
  vertical-align: middle;
}

header {
  background-color: #000;
}

header a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  text-decoration: none;
  height: 200px;
}

header img {
  width: 60%;
  max-width: 700px;
  max-height: 100%;
}

header img:last-child {
  flex-basis: 40%;
}

.name-and-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 5px 5px 5px 20px;
}

.name-and-nav nav {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
}

.name-and-nav h2,
.page-name,
.hamburger {
  margin: 0;
  color: #fff;
  font: 2.3em 'Chiller', 'Georgia', cursive;
}

.hamburger {
  font-weight: bold;
  padding: 3px 20px 0;
  cursor: pointer;
}

section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 500px;
  background-color: #eee;
}

.page-name {
  display: none;
  padding: 10px 20px;
}

.text,
.modal {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  font: 1em 'Verdana', sans-serif;
}

.text>div {
  padding: 25px 20px;
}

.text p {
  margin: 0;
}

.images {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  max-width: 400px;
}

.flex-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: distribute;
  justify-content: space-around;
}

.gallery-wrapper {
  padding: 7px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.tab-screen .gallery-wrapper {
  cursor: initial;
}

.gallery-wrapper h4 {
  margin: 3px 0;
}

footer {
  text-align: center;
  padding: 15px;
  color: #222;
  background-color: #ccc;
  font: 0.7em 'Verdana', sans-serif;
}

footer a {
  color: #666;
  text-decoration: none;
}

footer a:hover {
  color: #444;
}


/*
 * FORMS
*/

textarea {
  resize: none;
}

input,
textarea,
select {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 4px 6px;
}

td:not(:last-child) input {
  margin-right: 10px;
}

form[name="contact"] h3,
.modal h3 {
  margin-top: 0;
}

form[name="contact"] table {
  width: 100%;
  max-width: 610px;
  margin: 0 auto;
  text-align: center;
}

form[name="contact"] td {
  width: 50%;
}

form[name="contact"] input[type="submit"] {
  padding: 15px 6px;
  font: bold 1.2em 'Verdana', sans-serif;
}

table input,
table textarea {
  width: 100%;
}

input[type="checkbox"] {
  width: auto;
}

p.alert-success,
p.alert-failure {
  padding: 10px;
  text-align: center;
  font-size: 16px;
}

p.alert-success {
  background-color: #8DD66B;
  border: 1px solid #6FAA53;
  color: #4B7238;
}

p.alert-failure {
  background-color: #E8716F;
  border: 1px solid #B25553;
  color: #7F3D3B;
}

.gray-out {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.modal {
  position: absolute;
  top: 20%;
  width: 100%;
  max-width: 700px;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 10px;
  background-color: #f7f7f7;
  z-index: 11;
}

div.inline-form-group,
div.halves-form-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

div.inline-form-group input[type="text"],
div.inline-form-group textarea {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

div.inline-form-group input[type="text"],
div.inline-form-group label,
div.inline-form-group select {
  margin-right: 15px;
}

div.inline-form-group input[type="text"]:last-child,
div.inline-form-group label:last-child,
div.inline-form-group select:last-child {
  margin-right: 0;
}

div.inline-form-group label {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
}

.half-width {
  width: 50%;
}


/*
 * SLIDESHOW
*/

div.slideshow {
  display: block;
  position: relative;
  margin-bottom: 40px;
  aspect-ratio: 1200 / 500;
}

div.slideshow>img {
  position: absolute;
  top: 2.5em;
  left: 0;
  right: 0;
  opacity: 0;
  width: auto;
  max-width: 100%;
  max-height: calc(100% - 2.5em);
  min-height: 50%;
  margin: 0 auto;
}

div.slideshow .caption {
  position: absolute;
  width: 100%;
}

div.slideshow .caption p {
  box-sizing: border-box;
  position: absolute;
  width: 100%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 5;
  text-align: center;
}

div.slideshow img#scale {
  width: 100%;
  display: block;
  opacity: 0;
}

div.slide-nav-wrapper {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding-bottom: 5px;
  text-align: center;
}

div.slide-nav {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 3px solid #eee;
  border-radius: 15px;
  cursor: pointer;
  -webkit-transition: background-color 0.5s;
  transition: background-color 0.5s;
  -webkit-box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.75);
}

div.slide-nav.active {
  background-color: #ccc;
}

/* LOADER */

.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  z-index: 25;
}

.loader:before,
.loader:after {
  position: absolute;
  content: '';
  width: 52%;
  height: 104%;
  top: -2%;
  background: #eee;
}

.loader:before {
  border-radius: 10em 0 0 10em;
  left: -1%;
  transform-origin: 100% 50%;
  -o-transform-origin: 100% 50%;
  -ms-transform-origin: 100% 50%;
  -moz-transform-origin: 100% 50%;
  -webkit-transform-origin: 100% 50%;
  animation: load2 2s infinite ease 1.5s;
  -webkit-animation: load2 2s infinite ease 1.5s;
}

.loader {
  color: #F1C945;
  font-size: 11px;
  text-indent: -99999em;
  margin: 55px auto;
  position: relative;
  width: 10em;
  height: 10em;
  box-shadow: inset 0 0 0 1em;
  transform: translateZ(0);
  -o-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.loader:after {
  border-radius: 0 10em 10em 0;
  left: 51%;
  transform-origin: 0 50%;
  -o-transform-origin: 0 50%;
  -ms-transform-origin: 0 50%;
  -moz-transform-origin: 0 50%;
  -webkit-transform-origin: 0 50%;
  animation: load2 2s infinite ease;
  -webkit-animation: load2 2s infinite ease;
}

@keyframes load2 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes load2 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/*
 * MEDIA QUERIES
*/

@media only screen and (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
  header a {
    height: 166.6666px;
  }
  nav {
    border-radius: 0;
  }
  .name-and-nav {
    padding: 0;
  }
  .name-and-nav h2 {
    display: none;
  }
  .name-and-nav nav {
    max-width: initial;
    padding: 10px 0;
  }
  .page-name {
    display: block;
  }
}

@media only screen and (max-width: 1000px) {
  body.home {
    padding-top: 0;
  }
  .home-grid {
    grid-template-rows: 320px 60px 100px 320px 200px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "image2 image3 image3" "nav    nav    nav" "image1 image1 image1" "image4 image4 image5" "title  title  title";
    width: 100%;
    height: 1000px;
    max-width: 768px;
  }
  .home-grid nav {
    grid-area: nav;
  }
  .image1 {
    background: url("../assets/DSC09481.jpg") bottom right / 100% auto no-repeat;
  }
  .image2 {
    background: url("../assets/IMG_20160418_213759.jpg") center center / cover no-repeat;
  }
  .image3 {
    background: url("../assets/DSC01243.jpg") bottom right / 100% auto no-repeat;
  }
  .image4 {
    background: url("../assets/Denise-and-Nick-Aug-5-20125.jpg") top -50px left -150px / 170% auto no-repeat;
  }
  .container {
    max-width: 768px;
  }
  header a {
    height: 128px;
  }
  nav a {
    font-size: 1.9em;
  }
  nav a:nth-of-type(1) {
    color: #718234;
  }
  nav a:nth-of-type(2) {
    color: #4b68ea;
  }
  nav a:nth-of-type(3) {
    color: #e84040;
  }
  nav a:nth-of-type(4) {
    color: #37ad8a;
  }
  nav a:nth-of-type(5) {
    color: #7C5DA0;
  }
  section {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .images {
    max-width: initial;
  }
}

@media only screen and (max-width: 768px) {
  .only-sm {
    display: initial;
  }
  .not-sm {
    display: none;
  }
  .home-grid {
    grid-template-rows: 300px 200px auto 100px 300px 300px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "image3 image3" "title  title" "nav    nav" "image1 image1" "image2 image5" "image4 image4";
    width: 100%;
    height: auto;
    max-width: 550px;
  }
  .image4 {
    background: url("../assets/Denise-and-Nick-Aug-5-20125.jpg") top -10px center / 150% auto no-repeat;
  }
  .image5 {
    background: url("../assets/DSC07182.jpg") bottom -25px left / 100% auto no-repeat;
  }
  .container {
    max-width: 550px;
  }
  header a {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-height: 400px;
  }
  header img {
    width: 100%;
    max-width: initial;
    max-height: 200px;
  }
  .name-and-nav {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .name-and-nav h2 {
    display: block;
    padding: 10px 20px;
    font-size: 2em;
  }
  nav {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  nav a {
    padding: 0 20px;
  }
  .name-and-nav nav {
    display: block;
    height: 0;
    padding: 0;
  }
  .name-and-nav nav a {
    display: block;
    height: 32px;
  }
  .name-and-nav nav a:first-child {
    padding-top: 10px;
  }
  .name-and-nav nav a:last-child {
    padding-bottom: 10px;
  }
  .page-name {
    display: none;
  }
  section {
    min-height: initial;
  }
  .text {
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
  }
  .images img {
    max-width: 100%;
  }
  form[name="contact"] table {
    max-width: 400px;
  }
  form[name="contact"] td {
    display: block;
    width: 100%;
  }
}

@media only screen and (max-width: 365px) {
  .home-grid {
    grid-template-rows: repeat(2, 200px) auto 100px 250px 300px 200px;
    grid-template-columns: 100%;
    grid-template-areas: "image3" "title" "nav" "image1" "image2" "image5" "image4";
    width: 100%;
  }
  .title span:first-child,
  header .title span:first-child {
    font-size: 20vw;
  }
  .title span:last-child,
  header .title span:last-child {
    font-size: 27vw;
    text-shadow: 2px 2px 0 #CA0701;
  }
  .home-grid nav a {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .image2 {
    background: url("../assets/IMG_20160418_213759.jpg") top -10px center / cover no-repeat;
  }
}


/*
 * BACKOFFICE
*/

.image-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  min-width: 250px;
  min-height: 200px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.dropdown-header {
  cursor: pointer;
}

.dropdown-header span {
  display: inline-block;
  -webkit-transition: transform 0.5s, -webkit-transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  -ms-transition: transform 0.5s, -webkit-transform 0.5s;
}

.dropdown-header span.active {
  -webkit-transform: rotate(0);
  transform: rotate(0);
}

.dropdown {
  display: block;
  overflow: hidden;
}

.image-options-top,
.image-options-bottom {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 15px;
  text-align: left;
}

.image-options-top {
  top: 0;
  background-color: rgba(255, 255, 255, 0.5);
}

.image-options-bottom {
  bottom: 0;
}

.image-options-bottom input,
.image-options-top input[type="submit"] {
  width: 100%;
}

.gray {
  color: #666;
}

.tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.tabs p {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 33.333%;
  flex: 1 1 33.333%;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.tabs p:hover,
.tabs p.active {
  background-color: rgba(242, 201, 69, 0.3);
}
