@font-face {
  font-family:profaisalEliteRiqa;
  src: url( '../fonts/profaisal-eliteriqav1-0/Profaisal-EliteRiqaV1.0.ttf' );
}

@font-face {
  font-family:modernAntiqua;
  src: url( '../fonts/modern-antiqua/ModernAntiqua.ttf' );
}

@font-face {
  font-family:averia;
  src: url( '../fonts/averia/Averia-Regular.ttf' );
}

html,body,div,span,object,h1,h2,h3,h4,h5,h6,p,a,abbr,acronym,em,img,ol,ul,li {border: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;margin: 0;padding: 0;}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  overflow-y: auto;
  background: #faf3e6;
  min-width:270px;
  font-family:averia,sans-serif;
}

body {
  color: #3f3d3a;
  overflow: hidden;
}

body:before, body:after {
  content: '';
  display: block;
  width: 0; 
  height: 0; 
}

body:before {
  border-left: 45px solid #faf3e6;
  border-right: 45px solid #faf3e6;
  border-top: 45px solid transparent;
  background: #f7644d url('../img/img-halftone.png') repeat;
  margin: 0 auto -45px;
}

body:after {
  border-left: 7em solid #faf3e6;
  border-right: 7em solid #faf3e6;
  border-bottom: 10em solid transparent;
  background: #ffb14d url('../img/img-halftone.png') repeat;
  margin: -10em auto 0;
}

.page-wrapper {
  width: 100%;
  margin: 0.25em auto;
  max-width: 1800px;
  position: relative;
  padding: 0 4%;
}

.page-wrapper:before {
  content: "";
  height: 20px;
  background: 
    url('../img/horzBar1.png') repeat-x 0 -2px;
  background-size: 40em;
  display: block;
}

.page-wrapper:after {
  content: "";
  display: table;
  clear: both;
}

h1, h2, h3, h4, h5 {
  text-align: center;
  color: #272625;
  text-transform: uppercase;
}

.page-wrapper {
  width: 100%;
  margin: 0.25em auto;
  max-width: 1800px;
  position: relative;
  padding: 0 4%;
}

.page-wrapper:before {
  content: "";
  height: 20px;
  background: 
    url('../img/horzBar1.png') repeat-x 0 -2px;
  background-size: 40em;
  display: block;
}

.page-wrapper:after {
  content: "";
  display: table;
  clear: both;
}

.page-wrapper .page-header {
  clear: both;
  padding-top: 2em;
}

.page-wrapper.inside .page-header {
  padding-top:1.55em;
}

.page-wrapper .page-header h1 {
  font-size: 2.5em;
  line-height: 1;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.05em;
  text-transform: capitalize;
  font-family: profaisalEliteRiqa,serif;
  font-variant:small-caps;
}

.page-wrapper.inside .page-header h1 {
  font-size: 1.5em;
  text-align:left;
}

.page-wrapper .page-header aside {
  font-family:modernAntiqua, serif;
  font-size:1.2em;
  font-style:italic;
  text-align:center;
}

.page-wrapper.inside .page-header aside {
  font-size:1em;
}

.page-wrapper .page-header img {
  display:block;
  margin:auto;
  width:200px;
}

.page-wrapper.inside .page-header img {
  position:absolute;
  right:30px;
  top:20px;
  width:40px;
}

.page-wrapper nav {
  width:96%;
  margin:auto;
}

.page-wrapper nav ul {
  text-align:center;
  margin-top:2em;
}

.page-wrapper nav li {
  display:inline;
  font-size:.9em;
  text-align:center;
  margin-right:.1em;
  
}

.page-wrapper nav a {
  text-decoration:none;
  font-weight:medium;
  padding:.15em;
  border:.15em solid #f7644d;
  background:#ffb14d;
  color:#000;
}

.page-wrapper nav a:hover {
  border:.15em double #e7543d;
  background:#efa13d;
}

main {
  width:80%;
  margin:auto;
}

main:before {
  content: "";
  margin:1em;
  height: 20px;
  background: 
    url('../img/horzBar1.png') repeat-x 0 -2px;
  background-size: 40em;
  display: block;
}

main p {
  max-width:25em;
  margin:auto;
  font-size:1.3em;
  margin-bottom:1em;
}

footer {
  background: 
    url('../img/horzBar1.png') repeat-x bottom left;
  background-size: 40em;
  margin: 5.5em 1px -1px;
  text-align: left;
  font-family: averia,sans-serif;
  font-size: 1.15em;
  padding-bottom: 8.5em;
}

footer:before {
  content: "";
  margin:1em;
  height: 20px;
  background: 
    url('../img/horzBar1.png') repeat-x 0 -2px;
  background-size: 40em;
  width:80%;
  margin:auto;
  display: block;
}

footer .footer-flex-item {
  width:200px;
  display:block;
  margin-left:auto;
  margin-right:auto;
}

footer h2 {
  margin-top:1em;
}

footer dl {
  float:right;
  margin:0px;
  text-align:right;
  width:15em;
}

footer dt {
  float:left;
}

/***************************************
 * flexbox funtimes
 * *************************************/

.page-wrapper {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  -ms-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

