@font-face {
    font-family: 'rtis-font';
    src: url('../../compose/font/roboto/Roboto-Regular-webfont.eot');
    src: url('../../compose/font/roboto/Roboto-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../../compose/font/roboto/Roboto-Regular-webfont.woff') format('woff'),
         url('../../compose/font/roboto/Roboto-Regular-webfont.ttf') format('truetype'),
         url('../../compose/font/roboto/Roboto-Regular-webfont.svg#robotothin') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'rtis-bold-font';
    src: url('../../compose/font/roboto/Roboto-Medium-webfont.eot');
    src: url('../../compose/font/roboto/Roboto-Medium-webfont.eot?#iefix') format('embedded-opentype'),
         url('../../compose/font/roboto/Roboto-Medium-webfont.woff') format('woff'),
         url('../../compose/font/roboto/Roboto-Medium-webfont.ttf') format('truetype'),
         url('../../compose/font/roboto/Roboto-Medium-webfont.svg#robotomedium') format('svg');
    font-weight: normal;
    font-style: normal;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'rtis-font', sans-serif;
  letter-spacing:0.02em;
  color:#334055;
}
/*
 * -- BASE STYLES --
 * Most of these are inherited from Base, but I want to change a few.
 */
body {
  margin: 0em auto;
  width: 100%;
  background-size: 100% 100%;
  color: #767d81;
  background-color: #eeeeee;
  font-family: 'rtis-font', sans-serif;
}
/* Headings
 * ====================================================== */
.name-container .name span, .name-container .header-contact span, h1, h2, h3 {
  font-family: 'rtis-bold-font', sans-serif;
  letter-spacing: 0.01em;
  color: #334055;
}

h1 { font-size: 1.5em; }
h2 { font-size: 1.35em; }
h3 { font-size: 1.2em; }

.page-title {
  margin-left: 0.5em;
}
.page-container .block-content > h2,
.page-container .block-content > h3 {
  margin-left: auto;
  margin-right: auto;
  text-align:center;
  border-bottom: dashed 2px #aaaaaa;
}
.page-container .block-content > h2 {
  width:40%;
  margin-top:30px;
}
.page-container .block-content.block-column > h2 {
  width:60%;
  margin-top:30px;
}

.page-container .block-content > h3 {
  font-weight:800;
  font-size:120%;
  width:80%;
}
h4 {
  font-weight:800;
  font-size:120%;
}

/* Content = container class
 * Put all content in here
 * ====================================================== */
.page-container {
  position: relative;
  min-width: 320px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 30px;
  background-color: white;
}

.page-contact-wrap {
   padding: 5%;
}

.page-contact-wrap table td { 
    padding-left: 10px;
}
.page-contact-wrap table td p {
    margin: 1px;
}

/* Header
 * ====================================================== */
.page-header {
  position: relative;
  height: 190px;
  background-color: rgba(0, 127, 255, 0.1);
}

.page-header .logo-container {
  display:inline-block;
  width: 19%;
  vertical-align: middle;
}

.page-logo {
  margin: 10px auto;
  max-height: 170px;
}


.page-header .name-container {
  display:inline-block;
  width: 80%;
  text-align: center;
  vertical-align: top;
  margin-top: 30px;
}

.page-header .name-container .header-contact {
  text-align: center;
}

.page-header .name-container .name,
.page-header .name-container .header-contact {
  display: block;
  font-weight: bold;
  -webkit-margin-before: 0.67em;
  -webkit-margin-after: 0.67em;
  -webkit-margin-start: 0;
  -webkit-margin-end: 0;
  -moz-margin-before: 0.67em;
  -moz-margin-after: 0.67em;
  -moz-margin-start: 0;
  -moz-margin-end: 0;
  -ms-margin-before: 0.67em;
  -ms-margin-after: 0.67em;
  -ms-margin-start: 0;
  -ms-margin-end: 0;
}

.name-container .name span { font-size: 2em; line-height: 1em; }
.name-container .header-contact span { font-size: 1.35em; }

.page-header .font-80-percent {
  font-size: 80%;
}



/* Footer
 * ====================================================== */
#footer {
    position: relative;
    width: 100%;
    min-width: 320px;
    max-width: 1440px;
    margin:0 auto 0 auto;
    background-color: #666;
    padding: 10px 0px;
    font-size:90%;
    vertical-align: middle;
}

#footer .page-footer-left {
    text-align:left;
    vertical-align: middle;
    padding: 0 10px;
}

#footer .page-footer-center {
    font-family: 'rtis-font', sans-serif;
    text-align:center;
    padding: 0 20px;
    vertical-align: middle;
    font-size: 130%;
    position: relative;
}

#footer .page-footer-right {
    position: relative;
    text-align:right;
    vertical-align: middle;
    padding: 0 20px;
}

#footer .footer-content {
    position:absolute;
    bottom: 0;
    width: 90%;
}

#footer i {
    font-family: 'FontAwesome';
}

#footer * {
    font-family: 'rtis-font', sans-serif;
	color: white;
}

.footer-contact { list-style: none; text-indent: -1.6em; margin-left: 1.6em;}
/* Nav
 * ====================================================== */
.button-small {
    /* text-transform: uppercase; */
    /* font-size:116%; */
    /* background:transparent; */
    padding:2px 3px 2px 3px;
}

.button-small:hover,.button-small:active { background:none; }

.slash-small {
    margin:2px -5px 2px -5px;
    padding:0px;
}

/* mods to pure styles */
.pure-menu-item {
  margin:10px 0;
  /* don't understand why I need this but otherwise the menu items are height: 100% */
  height: auto;
}
.pure-menu-link { font-size: 120%; white-space: normal;}
.pure-menu-link:hover, .pure-menu-link:hover i {color: #f18b00;}

.address:before { font-family: 'FontAwesome'; content: "\f015"; padding-right: 0.6em; }
.email:before { font-family: 'FontAwesome'; content: "\f0e0"; padding-right: 0.6em; }
.email-o:before { font-family: 'FontAwesome'; content: "\f003"; padding-right: 0.6em; }
.fax:before { font-family: 'FontAwesome'; content: "\f1ac"; padding-right: 0.6em; }
.phone:before { font-family: 'FontAwesome'; content: "\f095"; padding-right: 0.6em; }
.fine-print { font-size: 10px; }
.spacer { display: inline-block; margin-left: 0.5em; margin-right: 0.5em;}

.article-block { padding-left: 1em; padding-right: 1em; }
.pure-button-xsmall { font-size: 10px; padding: 0.5em;}


.articles-centered { text-align: center; }
.menu-centered { margin: 0 auto; overflow: visible; }

img.scale { max-width: 100%; height: auto; }

a { text-decoration: none;}

/* icon bar (for admin menu, social media) */
.icon-bar {  margin: 0;}

.icon-bar li { display: inline; list-style-type: none; margin: 0; }
.icon-bar ul {
  -ms-padding-start: 10px;
  -moz-padding-start: 10px;
  -webkit-padding-start: 10px;
}
.icon-bar i { font-family: 'FontAwesome'; color: #767d81; padding: 10px;}
.icon-bar i:hover { background-color: #eee; color: #f18b00;}
.icon-item { padding: 0.5em 0.3em; }


/* Feature classes */
.feature {
  border: 0;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
}

.feature a {
  position: relative;
  display:block;
  margin: 0px;
  padding: 0px;
  text-decoration: none;
  border: 0px;
  color: #bbb;
  font-size: 16px;
}

.feature a:hover {
  color: #333;
}

.feature img {
  display: block;
  border: 0px;
  padding: 0px;
  margin: 0px;
}

.feature a .feature-mask {
  position: absolute;
  display: inline;
  background: #f4f4f4;
  opacity: 0.0;
  top: 0px;
  left: 0px;
  width:100%;
  height: 100%;
  transition: height 1s linear 0s;
  -webkit-transition: all 1s linear 0s; /* Safari and Chrome */
  -moz-transition: height 1s linear 0s;  /* Firefox 4 */
  -ms-transition: height 1s linear 0s; /* ie */
  -o-transition: height 1s linear 0s; /* Opera */
}

.feature a .feature-title {
  position: absolute;
  display: inline;
  background: #f18b00;
  opacity: 0.7;
  bottom: 0px;
  left: 0px;
  width:100%;
  height: auto;
  transition: height 1s linear 0s;
  -webkit-transition: all 1s linear 0s; /* Safari and Chrome */
  -moz-transition: height 1s linear 0s;  /* Firefox 4 */
  -ms-transition: height 1s linear 0s; /* ie */
  -o-transition: height 1s linear 0s; /* Opera */
}

.feature-title:after {
  content: "\f105";
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
  position: absolute;
  font-size: 40px;
  color: lightblue;
  bottom: 12px;
  right: 12px;
  margin: -30px 0 0 -20px;
  z-index: 1;
}


.feature a .feature-title span, .feature a .feature-title p {
  display: block;
  padding: 20px;
  text-align: center;
  font-size: 20px;
  color: #ffffff;
  margin: 0;
  -webkit-margin-before: 0;
  -webkit-margin-after: 0;
}

.feature a:hover .feature-mask {
  opacity: 0.7;
}
.feature a:hover .feature-title {
  opacity: 1.0;
}

.odd a .feature-title {
  background: #0eafe6;
}
/* end feature */


/* stick an image left */
img.stick-left
{
    float:left;
    padding: 0;
    margin-right:20px;
    margin-bottom: 10px;
}
img.stick-right
{
    float:right;
    padding: 0;
    margin-left:20px;
    margin-bottom: 10px;
}

img.stick-1-2 {
    width: 50%;
    max-width: 400px;
}
img.stick-1-3 {
    width: 33%;
    max-width: 300px;
}
img.stick-1-4 {
    width: 25%;
}
img.stick-2-3 {
    width: 66%;
}

/* Slideshow
 * Uses a ul list. Single item in the list deactivates the sliding
 * ====================================================== */
.bxslider {margin:0px;padding:0px;border:0px;}
.bxslider ul {list-style:none;}

/*
Key	CSS Media Query	Applies	Classname
None	None	Always	.pure-u-*
sm	@media screen and (min-width: 35.5em)  568px	.pure-u-sm-*
md	@media screen and (min-width:   48em)  768px	.pure-u-md-*
lg	@media screen and (min-width:   64em) 1024px	.pure-u-lg-*
xl	@media screen and (min-width:   80em) 1280px	.pure-u-xl-*
*/
@media (min-width: 900px) and (max-width: 1023px ) {
  .page-container {
    width:98%;
    padding-left: 3px;
  }
}

@media (max-width: 899px) {
  /* adjust the name to fit above logo */
  /* .page-header .name-container { top: 0; bottom: auto;} */
  .page-container {
      width:98%;
      padding-left: 3px;
  }

  .pure-menu-item { margin:0; }
  .icon-bar { margin-top: 0;}
}

@media (max-width: 768px) {
  /* On switch mobile menu need to do the following:
    - make the header static
    - shrink the logo text
    - remove the left margin from the menu and icon bar
    - set the page-container to nearly full width
    - centre the footer elements

    Pure grid class .pure-u-sm-*
  */
  .page-header { position: static; height: auto; }
  .page-header .page-logo { margin: 3px auto; }
  .page-header .logo-container,
  .page-header .name-container {
    position: static;
    width: 98%;
    text-align: center;
    margin: 2px auto;
  }

  .page-header .logo-container img { margin: 3px auto;}
  .pure-menu-item { margin:0; }
  .icon-bar { margin-top: 0;}

  .page-container {
      width:98%;
      padding-left: 3px;
  }

  .name-container .name span { font-size: 1.35em; }
  .name-container .header-contact span { font-size: 1.1em; }

  .page-container h1 { font-size: 1.3em; }
  .page-container h2 { font-size: 1.1em; }
  .page-container h3 { font-size: 1.0em; }
  #footer .page-footer-left,
  #footer .page-footer-right {
    text-align:center;
  }
  #footer .footer-content {
    position: static;
    width: auto;
  }
}

@media (min-width: 10px) and (max-width: 567px) {
  .button-small {font-size:80%;}

  img.stick-1-2 {
      width: 100%;
      max-width: inherit;
  }
  img.stick-1-3 {
      width: 100%;
      max-width: inherit;
  }
  img.stick-1-4 {
      width: 100%;
  }
  img.stick-2-3 {
      width: 100%;
  }
}
