body, html {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: Verdana, Kalimati, sans-serif;
  line-height: 1.42;
  color: #020B41;
  background-color: white;
}

div.page {
  display: flex;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 990px;
  overflow: auto;
}

div.menu-column {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 190px;
  background-color: black;
  padding: 8.5em 2em 2em 1em;
}

/* Due to an IE11 bug, this MUST be contained within another flex */
div.content-column {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  background-color: #f9ebd9;
}

/* MENU COLUMN */

div.menu-column ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  color: gray;
}

div.menu-column li {
  text-align: right;
  text-transform: uppercase;
  padding: 1.5em 0 0;
}

div.menu-column li:first-child {
  padding-top: 0;
}

div.menu-column a {
  font-style: normal;
  color: white;
  font-weight: bold;
}

div.menu-column ul a:focus {
  color: gray;
}

div.menu-column ul a + ul {
  max-height: 0;
  overflow: hidden;
  transition: 0.5s linear;
}

div.menu-column ul a:focus + ul {
  max-height: 15em;
}
/* can't combine with other selectors or will break on unsupported browsers */
div.menu-column ul a + ul:focus-within {
  max-height: 15em;
}

/* only select that link , here using the href attribute */
div.menu-column a[href="#"]:focus {
  pointer-events: none;
}

/* CONTENT COLUMN */

div.header-section,
div.menu-section,
div.footer-section {
  flex-shrink: 0;
}

div.header-section,
div.menu-section,
div.content-section,
div.footer-section {
  margin-top: 32px;
}

div.header-section {
  padding-bottom: 32px;
  border-bottom: 16px solid #4f0a0e;
}

div.menu-section {
  height: 1em;
  background-color: #4f0a0e;
}

div.content-section {
  flex-grow: 1;
}

div.header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 1em;
  padding-right: 1em;
}

div.footer-section {
  margin-bottom: 16px;
}

div.header-section > div + div {
  margin-top: 32px;
}

div.header-section > div {
  max-width: 100%;
}

div.home-title {
  display: inline-block;
  width: 376px;
  max-width: 100%;
}
div.home-title > div {
  position: relative;
  height: 0;
  padding-bottom: 7.9787234%;
}
div.home-title img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

div.menu-section {
  position: relative;
}

div.page-contact div.content {
  background-image: url(/contact/picture.png);
  background-repeat: no-repeat;
  background-position: 50% 50px;
}

div.content {
  position: relative;
  margin: 0 5%;
}

/* Layout Fonts and Colors */
a {
  text-decoration: none;
  color: #3C56DC;
}

a:hover {
  text-decoration: underline;
}

h1, h2, span.name, div.page-home div.content {
  color: #5F0D12;
}

h1, h2, span.name {
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
}

h1, h2 {
  margin-top: 0;
  margin-bottom: 1em;
}

div.content p + p {
  margin-top: 1em;
  margin-bottom: 0;
}

.extra-space {
  padding-top: 2em;
}

div.menubar, div.mobile {
  color: #FFFFFF;
  background-color: black;
  border-color: #802020;
}

div.footer-text {
  color: #fe0416
}



/* HOME PAGE */
div.page-home div.content-column {
  background-color: #f9ebd9;
  background-image: url(/home/backgnd.jpg);
  background-size: cover;
  background-position: center;
}

div.page-home div.footer-section h2 {
  margin-bottom: 32px;
  text-align: center;
  font-size: larger;
  line-height: 1.181;
}

div.page-home div.header-section > div:first-child {
  margin-top: 75px;
}



/* ABOUT PAGE */
div.content-about {
  display: flex;
  justify-content: space-between;
  margin: 0 -2em;
}

div.content-about > div {
  flex-basis: 0;
  flex-grow: 1;
  margin: 0 2em;
}



/* PACKAGES PAGES */
div.content-packages div.columns {
  display: flex;
}
div.content-packages div.columns > div:last-child {
  flex-grow: 1;
  margin-left: 2em;
  text-align: center;
}

div.content-packages table {
  table-layout: fixed;
  border: 0;
  border-spacing: 0;
}
div.content-packages table tr {
  vertical-align: top;
}
div.content-packages table tr.tall {
  height: 3em;
}
div.content-packages table th,
div.content-packages table td {
  padding: 0.25em 0.5em;
}
div.content-packages table th:first-child {
  text-align: left;
}

div.content-packages h1 { text-align: center; margin-bottom: 24px; }

table.bestseller th:nth-child(1) { width: 27em; }
table.bestseller th:nth-child(2) { width: 9em; }
table.bestseller th:nth-child(3) { width: 1em; }
table.bestseller th:nth-child(4) { width: 9em; }
table.bestseller th:nth-child(5) { width: 0; }

table.heirloom th:nth-child(1) { width: 27em; }
table.heirloom th:nth-child(2) { width: 9em; }
table.heirloom th:nth-child(3) { width: 1em; }

table.striped tr:nth-child(even) {
  background: #e9d4c5;
}
table.striped tr:nth-child(even) th:nth-child(even),
table.striped tr:nth-child(even) td:nth-child(even) {
  background-color: #e2cabc;
}
table.striped tr:nth-child(odd) th:nth-child(even),
table.striped tr:nth-child(odd) td:nth-child(even) {
  background-color: #f1e0cf;
}
.checkmark {
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(/img/check.png)
}
tr.tall .checkmark {
  background-position: top 3px center;
}



/* SAMPLES PAGE */
.shadow, .sample img {
  -moz-box-shadow: 3px 3px 4px #000;
  -webkit-box-shadow: 3px 3px 4px #000;
  box-shadow: 3px 3px 4px #000;
  /* For IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#000000')";
  /* For IE 5.5 - 7 */
  filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#000000');
}

div.content-samples {
  text-align: center;
  color: #5F0D12;
}

div.content-samples-bar {
  margin-top: 32px;
  padding: 20px 0 50px;
  background-color: #fbf3ea;
}

div.sample {
  display: inline-block;
  height: 175px;
  text-align: center;
  margin: 16px 30px 0;
  font-size: 0.92em;
  line-height: 160%;
  vertical-align: top;
  font-family: Arial, Helvetica, sans-serif;
}

div.sample-image {
  line-height: 150px;
  margin-bottom: 0.5em;
}

div.sample-text {
  display: inline-block;
  text-align: left;
}

div.sample img {
  border: 0 none;
  vertical-align: middle;
}

.title {
  font-weight: bold;
  font-style: italic;
}



/* CONTACT US PAGE */
table.contact {
  margin: 150px auto 0;
}

table.contact th {
  text-align: left;
  vertical-align: top;
  padding-right: 2em;
}

table.contact td {
  padding-bottom: 1em;
}

img.contact-picture {
  position: absolute;
  left: 286px;
  top: 275px;
}



/* FOOTER */
div.footer-text {
  text-align: center;
}

div.footer-text span {
  padding: 0 0.75em;
  white-space: nowrap;
}

.packages {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
}

.packages > a {
  display: block;
  box-sizing: border-box;
  width: 11.67em;
  margin-bottom: 32px;
  padding: 60px 0.5em 0;
  background-image: url(/img/book.png);
  background-position: top;
  background-repeat: no-repeat;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  color: #5F0D12;
}

.packages > a b {
  color: red;
}

@media screen and (max-width: 479px) {
  body, div.sample { font: 1em/1.4 sans-serif; }
  div.content { margin: 1em; }
  div.content-packages { margin: 1em; }
  div.content-packages table.striped { font-size: smaller; }
  div.page-home div.header-section > div:first-child { margin-top: 0; }
  div.page,
  div.content-column,
  div.header-section,
  div.view-section,
  div.footer-section {
    min-height: unset;
  }
}

@media screen and (max-width: 649px) {
  div.mobile {
    display: block;
    overflow: auto;
    padding: 6px;
  }
  div.mobile > div {
    float: right;
    width: 40px;
    background-color: inherit;
    z-index: 99;
  }
  div.mobile > div > div {
    background-color: white;
    height: 4px;
    margin: 4px;
  }
  div.menu-column {
    display: none;
    position: absolute;
    padding: 1.5em 1em;
    width: auto;
    right: 0;
    overflow: none;
    z-index: 98;
  }
  div.menu-column.show {
    display: block;
  }
}

@media screen and (max-width: 989px) {
  div.content-about { display: block; margin: 0; }
  div.content-about > div { display: block; margin: 1.5em 0; }
  div.content-packages .decoration { display: none; }
}
