/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
/* line 17, ../scss/main.scss */
html,
button,
input,
select,
textarea {
  color: #222;
}

/* line 21, ../scss/main.scss */
body {
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */
/* line 32, ../scss/main.scss */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

/* line 37, ../scss/main.scss */
::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
/* line 46, ../scss/main.scss */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */
/* line 59, ../scss/main.scss */
img {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
/* line 67, ../scss/main.scss */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
/* line 77, ../scss/main.scss */
textarea {
  resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */
/* line 85, ../scss/main.scss */
.chromeframe {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Image replacement
 */
/* line 101, ../scss/main.scss */
.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  /* IE 6/7 fallback */
  *text-indent: -9999px;
}

/* line 109, ../scss/main.scss */
.ir:before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
/* line 120, ../scss/main.scss */
.hidden {
  display: none !important;
  visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
/* line 129, ../scss/main.scss */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */
/* line 146, ../scss/main.scss */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */
/* line 159, ../scss/main.scss */
.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
/* line 176, ../scss/main.scss */
.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

/* line 181, ../scss/main.scss */
.clearfix:after {
  clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
/* line 190, ../scss/main.scss */
.clearfix {
  *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
  /* Style adjustments for high resolution devices */
}
/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
@media print {
  /* line 215, ../scss/main.scss */
  * {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster: h5bp.com/s */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* line 223, ../scss/main.scss */
  a,
  a:visited {
    text-decoration: underline;
  }

  /* line 227, ../scss/main.scss */
  a[href]:after {
    content: " (" attr(href) ")";
  }

  /* line 231, ../scss/main.scss */
  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links for images, or javascript/internal links
   */
  /* line 241, ../scss/main.scss */
  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }

  /* line 246, ../scss/main.scss */
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /* line 251, ../scss/main.scss */
  thead {
    display: table-header-group;
    /* h5bp.com/t */
  }

  /* line 256, ../scss/main.scss */
  tr,
  img {
    page-break-inside: avoid;
  }

  /* line 260, ../scss/main.scss */
  img {
    max-width: 100% !important;
  }

  @page {
    margin: 0.5cm;
}

  /* line 270, ../scss/main.scss */
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  /* line 276, ../scss/main.scss */
  h2,
  h3 {
    page-break-after: avoid;
  }
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/* Responsive breakpoints */
/* ==========================================================================
   Backgrounds
   ========================================================================== */
/* line 7, ../scss/_main_styles.scss */
#contentBox {
  background-color: #f4f4f4;
}

/* ==========================================================================
   Typographic
   ========================================================================== */
/* line 15, ../scss/_main_styles.scss */
body {
  font-family: 'Libre Baskerville', serif;
  text-transform: lowercase;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

/* line 21, ../scss/_main_styles.scss */
a {
  text-decoration: none;
  color: black;
}
/* line 25, ../scss/_main_styles.scss */
a:hover {
  color: #397572;
}

/* line 31, ../scss/_main_styles.scss */
.submenu {
  margin: auto;
  position: absolute;
  left: 0;
  right: 0;
  display: none;
}

/* line 39, ../scss/_main_styles.scss */
.activeparent > .submenu {
  display: block;
}

/* line 43, ../scss/_main_styles.scss */
header {
  font-size: 0.65em;
  text-align: center;
}
/* line 46, ../scss/_main_styles.scss */
header h1 {
  font-size: 4.3em;
}
/* line 50, ../scss/_main_styles.scss */
header nav {
  font-size: 1.8em;
  font-weight: lighter;
}
@media screen and (max-height: 758px), screen and (max-width: 683px) {
  /* line 43, ../scss/_main_styles.scss */
  header {
    		/*h1{
    			font-size:3.3em;
    		}
    
    		nav{
    			font-size:1.5em;
    		}*/
    font-size: 0.494em;
  }
}
@media screen and (max-height: 600px), screen and (max-width: 600px) {
  /* line 43, ../scss/_main_styles.scss */
  header {
    		/*h1{
    			font-size:2.5em;
    		}
    
    		nav{
    			font-size:1.3em;
    		}*/
    font-size: 0.442em;
  }
}
@media screen and (max-height: 500px), screen and (max-width: 465px) {
  /* line 43, ../scss/_main_styles.scss */
  header {
    		/*h1{
    			font-size:2.2em;
    		}
    
    		nav{
    			font-size:1em;
    		}*/
    font-size: 0.3965em;
  }
}
@media screen and (max-height: 380px), screen and (max-width: 427px) {
  /* line 43, ../scss/_main_styles.scss */
  header {
    		/*h1{
    			font-size:1.8em;
    		}
    
    		nav{
    			font-size:0.8em;
    		}*/
    font-size: 0.3315em;
  }
}
@media screen and (max-width: 380px) {
  /* line 43, ../scss/_main_styles.scss */
  header {
    		/*h1{
    			font-size:1.4em;
    		}
    
    		nav{
    			font-size:0.6em;
    		}*/
    font-size: 0.273em;
  }
}

/* line 113, ../scss/_main_styles.scss */
footer, footer a {
  text-align: right;
  color: #666666;
  font-size: 0.9em;
}
@media screen and (max-width: 683px), screen and (max-height: 758px) {
  /* line 113, ../scss/_main_styles.scss */
  footer, footer a {
    font-size: 0.855em;
  }
}
@media screen and (max-width: 600px), screen and (max-height: 600px) {
  /* line 113, ../scss/_main_styles.scss */
  footer, footer a {
    font-size: 0.81em;
  }
}
@media screen and (max-width: 465px), screen and (max-height: 500px) {
  /* line 113, ../scss/_main_styles.scss */
  footer, footer a {
    font-size: 0.765em;
  }
}

/* line 130, ../scss/_main_styles.scss */
footer a {
  font-weight: bold;
}

/* ==========================================================================
   Layout
   ========================================================================== */
@media all and (min-width: 41em) {
  /* line 140, ../scss/_main_styles.scss */
  body:after {
    /* http://adactio.com/journal/5429/ */
    content: 'widescreen';
    display: none;
  }
}
/* line 148, ../scss/_main_styles.scss */
html, body {
  height: 100%;
}

/* line 152, ../scss/_main_styles.scss */
img {
  max-width: 100%;
}

/* line 156, ../scss/_main_styles.scss */
#topContainer {
  min-height: 100%;
  position: relative;
}

/* The header dimensions are changed for different width displays */
/* line 163, ../scss/_main_styles.scss */
header {
  	/* 
  	Do mot st height!!
  	height:$headerHeight;
  	
  	@media screen and (max-width: $break-medium-width){
  		height:$headerHeightMedium;
  	}
  
  	@media screen and (max-width: $break-smaller-width){
  		height:$headerHeightSmaller;
  	}
  
  	@media screen and (max-width: $break-small-width){
  		height:$headerHeightSmall;
  	}
  
  	@media screen and (max-width: $break-smallest-width){
  		height:$headerHeightSmallest; 
  	}*/
}
/* line 184, ../scss/_main_styles.scss */
header h1 {
  margin: 0px;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}
/* line 194, ../scss/_main_styles.scss */
header ul {
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  *zoom: 1;
}
/* line 60, ../../../../../../../../var/lib/gems/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss */
header ul li {
  list-style-image: none;
  list-style-type: none;
  margin-left: 0;
  white-space: nowrap;
  display: inline;
  float: left;
  padding-left: 4px;
  padding-right: 4px;
}
/* line 48, ../../../../../../../../var/lib/gems/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss */
header ul li:first-child, header ul li.first {
  padding-left: 0;
}
/* line 49, ../../../../../../../../var/lib/gems/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss */
header ul li:last-child {
  padding-right: 0;
}
/* line 50, ../../../../../../../../var/lib/gems/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss */
header ul li.last {
  padding-right: 0;
}
/* line 197, ../scss/_main_styles.scss */
header ul li {
  float: none;
}

/* The header dimensions are changed for different height displays */
/* Not really necessary to set height, and better to let it be calculated
header{
	@media screen and (max-height: $break-medium-height){
		height:$headerHeightMedium;
	}

	@media screen and (max-height: $break-smaller-height){
		height:$headerHeightSmaller;
	}

	@media screen and (max-height: $break-small-height){
		height:$headerHeightSmall;
	}

	@media screen and (max-height: $break-smallest-height){
		height:$headerHeightSmallest;
	}
}*/
