/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

body {
    background: #FFFFFF;
	background-position: left;
	font-size: 1em;
    line-height: 1.4;
	font-family: Arial, Helvetica, sans-serif;
	text-align: center;
	color: #000000;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/*  General  */
   
html, body {
	width: 100%;
	height: 100%;
}
html {
	background: #FFFFFF;	
}

.imgflex {
	max-width: 100%;
}
a img {
	border: none;
}

/*  Links  */

a:link, a:visited {
	color: #C87137;
	font-weight: normal;
	text-decoration: none;	
}
a:hover {
	color: #C87137;
	text-decoration: underline; 
}

/*  Headings  */

h1, h2, h3, h4, h5, h6 {
	font-family: Verdana, Geneva, sans serif;
	font-size: 1.4em;
	font-weight: normal;
    color: #000;	
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	text-decoration: none;
	display: block;
	border: none !important;
}

/*  Header */

header {
	background: #AC9D93;
	height: 184px;
	margin: 0 auto;
	border-bottom: 0px solid #FFF;
}
#header-container {
    max-width: 960px;
	margin: 0 auto;	
}
header img {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;	
}

/*  Top nav */

#access {
	background: #AC9D93;
	clear: both;
	display: block;
	float: left;
	margin: 0 auto;
	width: 100%;
	text-align: left;
	border-top: 1px solid #917C6F;	
}
#access ul {
	font-size: 14px;
	list-style: none;
	margin: 0;
	padding-left: 0;
}
#access li {
	float: left;
	position: relative;
}
#access a {
	color: #FFF;
	display: block;
	line-height: 3.0em;
	padding: 0 1.2125em;
	text-decoration: none;
	-moz-transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
     transition: all 300ms ease-in-out;
}
#access ul ul {
	display: none;
	float: left;
	margin: 0;
	position: absolute;
	top: 3.0em;
	left: 0;
	width: 188px;
	z-index: 99999;	
}
#access ul ul ul {
	left: 100%;
	top: 0;
}
#access ul ul a {
	background: #AC9D93;
	border-bottom: 1px dotted #CCC;
	color: #FFF;
	font-size: 14px;
	font-weight: normal;
	height: auto;
	line-height: 1.4em;
	padding: 10px 10px;
	width: 168px;
}
#access li:hover > a,
#access ul ul :hover > a,
#access a:focus {
	background: #917C6F;
}
#access li:hover > a,
#access a:focus {
	background: #917C6F;
	color: #FFF;
}
#access ul li:hover > ul {
	display: block;
}
#access a.active {
	background: #917C6F;
	color: #FFF;
}

/*  Translate nav */

#translate {
	position: absolute;
	top: 3px;
	background: #a29186;
	clear: both;
	display: block;
	float: left;
	margin: 0 auto;
	text-align: left;
	border-top: 0px solid #917C6F;
	z-index: 9999;
}
#translate ul {
	font-size: 13px;
	list-style: none;
	margin: 0;
	padding-left: 0;
}
#translate li {
	float: left;
	position: relative;
}
#translate a {
	color: #000;
	display: block;
	line-height: 3.0em;
	padding: 0 1.2125em;
	text-decoration: none;
	-moz-transition: all 300ms ease-in-out;
    -webkit-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
     transition: all 300ms ease-in-out;
}
#translate ul ul {
	display: none;
	float: left;
	margin: 0;
	position: absolute;
	top: 3.0em;
	left: 0;
	width: 90px;
	z-index: 99999;	
}
#translate ul ul ul {
	left: 100%;
	top: 0;
}
#translate ul ul a {
	background: #a29186;
	border-bottom: 1px dotted #CCC;
	color: #000;
	font-size: 13px;
	font-weight: normal;
	height: auto;
	line-height: 1.4em;
	padding: 10px 10px;
	width: 90px;
}
#translate li:hover > a,
#translate ul ul :hover > a,
#translate a:focus {
	background: #c8beb7;
}
#translate li:hover > a,
#translate a:focus {
	background: #c8beb7;
	color: #FFF;
}
#translate ul li:hover > ul {
	display: block;
}
#translate a.active {
	background: #c8beb7;
	color: #FFF;
}

/*  Gallery  */

#gallery {
	clear: both !important;
	margin: 0 auto;
	background: #c8beb7;
	border-bottom: 1px solid #AC9D93;
	max-height: 550px;
}
#gallery-container {
	max-width: 960px;
	margin: 0 auto;
	padding: 4px 0px;
}

/*  Site  container  */

#site {
	max-width: 960px;	
	margin: 0 auto;
	padding: 0px 0px;	
}

/*  Left Side  */

#main-content {
    float: left;
	width: 67%;
	border-right: 1px solid #AAA;
	margin: 20px 10px;	
}
article {
	overflow: hidden;
	text-align: justify;
	line-height: 1.4em;	
}
article h1, article h2, article h3, article h4, article h5 {
	font-family: Verdana, Geneva, sans serif;
	font-size: 1.4em;
	font-weight: normal;
	text-transform: uppercase;
	color: #000;
	padding: 5px 10px;
}
article h1, article h2, article h3, article h4, article h5, article h6 {
	text-decoration: none;
	display: block;
}
article h6 {
    font-family: Verdana, Geneva, sans serif;
	font-size: 1.2em;
	font-weight: normal;
	color: #A02C2C;
	padding: 5px 10px;
	margin: 0px;	
}
article p {
	font-size: 1em;
	margin: 10px;
}
article p a:link, a:visited {
	color: #C87137;
	font-weight: normal;
	text-decoration: none;	
}
article p a:hover {
	color: #C87137;
	text-decoration: underline; 
}
article section {
	border-bottom: 1px solid #DDD;
	padding: 5px 0px;	
}
article img { 
	float: left; 
	margin: 10px 10px 0px 0px;
}
figure { 
	float: left;
	width: 100%;
	border-bottom: 0px dashed #DDD;
	padding: 10px 0px;
}
figure img {
	float: left;
	margin: 2px 3px 3px 0px;;
}
.strong {
	font-weight: bold;
}
.italic {
	font-style: italic;
}
.alert {
	font-weight: bold;
	color: #782121;
}

/*  Form article  */

article section label {
	display: block;
	font-weight: normal;
	padding: 4px 10px;
}
.screen-reader-text {
	display: block;
	font-weight: normal;
	color: #000;
}
article input, article textarea {
	font-size: 1em;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 300;
	color: #000;
	padding: 4px;
	background: #EEE;
	border: 1px solid #444;
}
article input:focus, textarea:focus {
	border-color: #CC6600;
}
article input:required, textarea:required {
	color: #000;
	background: #DDD;
}
article button {
	border: none;
	padding: 5px;
	margin: 0px;
	background: #CC6600;
	font-size: 1em;
	font-family: Arial, Helvetica, sans-serif;
    color: #FFF;
	font-weight: bold;
	cursor: pointer;
}
article button:hover {
	background:#000;
}

/*  Right Side  */

#sidebar {
    float: left;
	width: 28%;
	border: 0px solid #DDD;
	background: #FFF;
	margin: 20px 8px;
}
aside {
	text-align: left;
	padding: 10px;
}
aside section {
	float: left;
	width: 100%;
	border-bottom: 1px solid #AAA;
	padding: 4px 0px;
}
aside h1, aside h2, aside h3, aside h4, aside h5 {
    font-family: Verdana, Geneva, sans serif;
	font-weight: normal;
    color: #AC9D93;
	padding: 5px 5px 5px 0px;
	margin: 0px;	
}
aside h6 {
    font-family: Verdana, Geneva, sans serif;
	font-size: 1.2em;
	font-weight: normal;
	color: #AC9D93;
	padding: 5px 5px 5px 0px;
	margin: 0px;	
}
aside p {
	margin: 10px 0px;	
}
aside ul {
	padding: 0px;
	list-style: none;
	border-bottom: 1px solid #DDD;
}
aside li {
	padding: 5px;
	list-style: none;
	border-top: 1px solid #DDD;
}
aside li a:link, li a:visited {
	color: #C87137;	
	font-weight: normal;
	text-decoration: none;
	padding: 5px 1px;
}
aside li a:hover {
	color: #FFF;
	background: #917C6F;
	text-decoration: none;
	padding: 5px 1px;
}
aside li a.active {
	background: #917C6F;
	color: #FFF;
	padding: 5px 1px;
}
aside img {
	float: left;	
	margin: 4px;
}

/*  Form aside  */

aside label {
	display: block;
	font-weight: bold;
}
.screen-reader-text {
	display: block;
	font-weight: normal;
	color: #CBBF9A; 
}
aside input, aside textarea {
	font-size: 1em;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 300;
	color: #000000;
	padding: 4px;
	background: #FFFFFF;
	border: 1px solid #666666;
}
input:focus, textarea:focus {
	border-color: #993333;
}
aside input {
	width: 56%;
}
aside section button {
	float: right;
	border: none;
	padding: 4px;
	background: #993333;
	font-size: 1em;
	font-family: Arial, Helvetica, sans-serif;
	color: #FFFFFF;
	font-weight:normal;
	cursor: pointer;
}
button:hover {
	background: #993333;
}

/*  Footer  */

footer {
	clear: both !important; 
	margin: 0 auto;
	background: #c8beb7;
	color: #FFF;
	height: 180px;
	font-size: 0.9em;
	border-top: 1px solid #AC9D93;
}
#footer-container {
	max-width: 960px;
	margin: 0 auto;	
}
footer p {
	font-size: 1em;
	margin: 10px;	
}
.footer-nav {
	text-align: right;
    color: #000;	
}
.footer-nav a {
    color:#666;
	text-decoration:none;
}
.footer-nav a:hover {
    color:#FFF;
	text-decoration:underline;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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
 */

.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
 */

.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.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These 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 (min-width: 480px) and (max-width: 800px) {
#sidebar {
    float: left;
	width: 28%;
	border: 0px solid ##DDD;
	background: #FFF;
	margin: 20px 0px;
}
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
