* {
  box-sizing: border-box;
}

html {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #999;
  overflow: auto;
  height: 100vh;
  width: 100vw;
}

a {
  color: dodgerblue;
  text-decoration: none;
}

a:hover {
  color: cadetblue;
  text-decoration: underline;
}

header {
  position: relative;

  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  align-content: center;
  justify-content: space-around;

  /* prefixed attributes for non standards compliant browsers */
  display: -webkit-flex;
  -webkit-flex-flow: row nowrap;
  -webkit-align-items: center;
  -webkit-align-content: center;
  -webkit-justify-content: space-around;
  /* end prexied attributes */
  
  margin: 0;
  padding: .5rem;
  background-color: #fff;
  box-shadow: 0 0rem 1rem .1rem rgba(0,0,0,0.8);
}

header > img {
  flex-shrink: 0;
  flex-grow: 0;
  margin: 0;
  padding: 0;
  height: 5rem;
}

header > h1 {
/*
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
*/
  flex-shrink: 1;
  flex-grow: 0;
  margin: 0;
  padding: 2rem auto;
  font-family: serif;
  font-size: 5rem;
  color: black;
  color: #444;
  font-weight: normal;
  text-align: center;
}

header img:last-child {
  margin-right: .25rem;
}

header > h1 > img {
  margin: 0 0.5rem;
  height: 3rem;
}

section, footer {
  margin: 0;
  padding: 1rem;
  text-align: center;
}

section#services, section#boast, footer {
  color: #333;
}

img#slideshow {
  display: inline-block;
  margin: 1.2rem 0;
/*
  width: 22.4em;
  height: 14.9rem;
*/
  height: 14.9em;
  vertical-align: top;
/*  padding: 0.3rem;*/
  border: 1rem solid #fff;
  border-radius: 0.1rem;
  background-color: #222;
  box-shadow: 0 0rem 1rem .1rem rgba(0,0,0,0.8);
  opacity: 1;
  transition-duration: 1s;
  transition-property: opacity;
  transition-timing-function: ease;
}

img#map {
  display: inline-block;
  margin: 1.2rem 0;
  margin-left: 1rem;
  height: 24rem;
  vertical-align: top;
  box-shadow: 0 0rem 1rem .1rem rgba(0,0,0,0.8);
}

section#services ul {
  display: inline-block;
  margin: 1rem 0 0 0;
}

section#services li {
  padding: 0.2rem;
  text-align: left;
}

section#contact, section#promo {
  color: #555;
  background-color: #fff;
  box-shadow: 0 0rem 1rem .1rem rgba(0,0,0,0.8);
}

section#boast > figure {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  align-content: center;
  justify-content: space-around;
  /* prefixed attributes for non standards compliant browsers */
  display: -webkit-flex;
  -webkit-flex-flow: row nowrap;
  -webkit-align-items: center;
  -webkit-align-content: center;
  -webkit-justify-content: space-around;
  /* end prexied attributes */
}

section#boast > blockquote {
  position: relative;
  display: inline-block;
  width: 15rem;
  margin-top: 2rem;
  font-family: serif;
  font-size: 1.4rem;
  font-weight: normal;
  font-style: italic;
  text-align: left;
  vertical-align: top;
}

section#boast > blockquote:before {
  position: absolute;
  top: -0.5rem;
  right: calc(100% + 0.5rem);
  font-size: 2rem;
  content: "\201C";
}

section#boast > blockquote:after {
  position: absolute;
  top: calc(100% - 3rem);
  left: calc(100% + 0.5rem);
  font-size: 2rem;
  content: "\201D";
}

section#boast > blockquote > em {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
}

section#boast > figure > img {
  max-width: 10rem;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

section#promo > article {
  display: inline-block;
  padding: 0.5rem;
  width: 30%;
  margin: 1rem;
/*  box-shadow: 0 0rem 0.5rem 0 rgba(0,0,0,0.8);*/
  border: 1px dashed #999;
  border-radius: 0.2rem;
}

section#promo > article > img {
  float: left;
  width: 5rem;
  margin-right: 1rem;
}

section#promo > article > p {
  display: block;
  margin: 0;
}

section#promo > article strong {  
  color: green;
}

section > h2 {
  margin: 0;
  padding: 0;
}

section > hr {
  margin: 0 5rem;
  border: 0;
  height: 1px;
  background-color: #666;
}

section p {
  display: inline-block;
  text-align: left;
  margin: 1.2rem 2rem 0 0;
  font-size: 1.4rem;
}

footer {
  margin: 1rem;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  align-content: center;
  justify-content: space-around;
  /* prefixed attributes for non standards compliant browsers */
  display: -webkit-flex;
  -webkit-flex-flow: row nowrap;
  -webkit-align-items: center;
  -webkit-align-content: center;
  -webkit-justify-content: space-around;
  /* end prexied attributes */
}

footer > * {
  flex-basis: 33%;
}

footer > figure { 
  margin: 0;
  padding: 0;
}

footer > figure > figcaption {
  margin-bottom: 0.5rem;
}

footer > figure img {
  height: 3rem;
}


button#do-email {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  vertical-align: middle;
}

button#do-email img {
  width: 5rem;
  filter: drop-shadow(0 0 0.25rem rgba(0,0,0,0.4));
}

form#email {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-flow: column-nowrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition-property: opacity;
  transition-duration: 0.7s;
  transition-timing-function: ease;
  z-index: 1000;
}

form#email.visible {
  opacity: 1;
  pointer-events: auto;
}

form#email fieldset {
  border: 0;
  border-radius: 0.5rem;
  background: white;
  padding: 1rem;
  box-shadow: 0 0 1rem 0 rgba(0,0,0,0.9);
}

form#email fieldset input {
  width: calc(50% - 0.8rem);
  margin-bottom: 1rem;
  margin-right: 1rem;
  padding: 0.5rem;
  border: 1px solid darkgrey;
  border-radius: 0.2rem;
}

form#email fieldset input:nth-child(2) {
  margin-right: 0;
}

form#email fieldset textarea {
  width: 100%;
  height: 5rem;
  margin-bottom: 1rem;
  font-family: sans-serif;
  padding: 0.5rem;
  border: 1px solid darkgrey;
  border-radius: 0.2rem;
}

form#email fieldset button {
  position: relative;
  background: white;
  border: 0;
  border-radius: 0.2rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 0 0.2rem 0 rgba(0,0,0,0.5);
  cursor: pointer;
  text-transform: uppercase;
}

form#email fieldset button:hover:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.2);
}

form#email fieldset button[name=send] {
  background: deepskyblue;
}

form#email fieldset button[name=cancel] {
  background: salmon;
}

.invisible {
  opacity: 0!important;
}

@media screen and (max-width: 800px) {
  body, main, header, section, footer {
    width: 100vw;
    padding: 0;
  }
  
  header > img {
/*    visibility: hidden;*/
  }
  
  section {
    padding-bottom: 0.8rem;
  }
  
  section > h2 {
    font-size: 1.4rem;
    padding: 0.7rem;
  }
  
  img#slideshow, img#map {
    width: 20rem;
    height: 15rem;
    margin: 0;
  }
  
  section#contact > p {
    margin: 0;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  section#boast > blockquote {
    width: 10.5rem;
  }
  
  section#boast > figure {
    width: 100%;
    flex-flow: row wrap;
    margin: 1rem 0;
    padding: 0;
  }
  
  section#boast > figure > img {
    flex-basis: 25%;
    max-width: 25%;
  }

  section#promo > article {
    width: 20rem;
  }
}

@media screen and (max-width: 480px) {
  header > img {
    height: 3rem;
  }
  
  header > h1 {
    font-size: 2rem;
  }
  
  header > h1 > img {
    height: auto;
  }
  
  img#slideshow, img#map {
    width: 20rem;
    height: 15rem;
  }
  
  img#map {
    margin-bottom: 0.2rem;
  }
  
  section#boast > blockquote {
    width: 15rem;
  }
  
  footer {
    margin: 1rem 0;
    flex-flow: row wrap;
  }
  
  footer > * {
    width: 100%;
    flex-basis: 100%;
  }
}

@media screen and (max-width: 320px) {
  img#slideshow, img#map {
    width: 18rem;
    height: 12rem;
  }
  
  section#boast > blockquote {
    width: 13rem;
  }
  
  section#boast > figure > img {
    max-width: 20%;
  }
  
  section#promo > article {
    width: 18rem;
    margin: 0.5rem;
  }
  
  section#promo > article > p {
    font-size: 1.1rem;
  }
}
