/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*STYLES IN THIS STYLESHEET AFFECT THE APPLICATION WHEN VIEWED FROM ANY DEVICE (NOTICE NO MEDIA QUERIES)*/

/*
 * 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.
 */
 
 
/* ============================
STYLES ADDED BY EDU DEPARTMENT. 
============================ */
/* targeting spacing of icons in menu bar - has been incorporated into updated template */
nav i {margin:0;padding:0 10px 0 10px;}

/* targeting first child excess padding in nav pane - has been incorporated into updated template */
#sidr.sidr nav ul li ul li {
    padding-bottom: 4px;
}
/* recoloured question-icon-sign for geography */
.icon-question-sign {
color: #377495 !important; ;
}

/* for highlighting lists */
.list-strong {
	color: #062736; font-weight: bold;
}

/* add some spacing to the reference list */
.reference-list li {
	padding-bottom: 0.9;
}
/* for resizable tabular layout - human-behaviour */
.resizeable-table {
	border:3px ridge #377495; 
	margin-top: 10px;
}

 @media screen and (max-width: 500px){
.hide-on-mobile{ display:none;}
.hide-on-desktop{ font-weight:bold;}
.table-row{ padding:0 0 10px 0;}
div#follow-up div {width: 280px;}
	 }
	
/* 2 columns */	
@media screen and (min-width: 500px){
.cols-2 {
	margin:0;
	position:relative;
	float:left;
	width: 50%;
}
.hide-on-desktop{ display: none;}
}

.grey {
    background-color: #F7F7F7;
}

.col-header {
	padding: 5px;	
	font-weight: bold;
}

#pollution .col-header {
	min-height: 3.5em;
}
.col-row {
	padding:5px;
}

/* EM - remove excess padding before a related list */
.list-intro {
	padding-bottom: 15px;
}
/* EM - targeting text slide show on negative impacts page */
#negative-environmental .text-slide {
	padding: 10px 50px; text-align: center; font-size: 1.2em;
}

.floating-right {
	float: right;
	padding: 0 0 5px 20px;
}

#cols-example .columns { border:1px solid #DDDDDD;}

/*add this class ('responsive-image') to images to make them responsive*/
.responsive-image img{
	width:100%;
	max-width:100%;
	height:auto;
	margin:0 auto 0 auto;}

/*add this class ('border') to images t give them a border	*/
.border { border:1px solid #062736;}

/*add this class ('copyright') to the p tag under images for smaller sized text that is centre-aligned */
.copyright{
	margin:0;
	padding:5px 0 5px 0;
	font-size:75%;
	text-align:center;}
	
/*this makes the audio layer in a slidehow fit it's containing space, I have been controlling it with padding in the galleria stylesheet*/
#page-name div.html-layer-page-name div.audio audio {width:100%;}

/*remove padding from an element*/	 	
.no-padding {padding:0;}

#book-stand p i.blue { color:#377495; padding:0 20px 0 0;}

/*this is for the slide panel*/
#slide-reveal {display:none;}

/*this is for the gradual reveal*/
.slide-in {display:none;}

/*word definitions*/
.definition { background-color:#E0FFCC; border:1px dotted #2BA6CB; padding:0 5px 0 5px;}
.definition a:hover { color:#062736;}
a:hover.definition{ color:#062736; font-weight:bold;}
.icon-key-on-page {
	margin:0;
	padding:0;
	display:block;
	float:left;}
	
.left {
float: left !important; }

.right {
float: right !important; }

/*=========================================================================
styles for IE conditional modal (pop-up) for browser compatibility settings
=========================================================================*/

#mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#377495;
  display:none;
}  
#boxes .window {
  position:absolute;
  left:0;
  top:0;
  width:440px;
  height:200px;
  display:none;
  z-index:9999;
  padding:20px;
}
#boxes #dialog {
  width:50%px; 
  height:50%;
  padding:10px;
  background-color:#ffffff;
}

#boxes #dialog p{
  padding:4px;
  margin:0;
}

.close {padding:20px 0 0 0; text-align:right; margin:10px 0 0 0;}

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}	

/*
 * 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.5em 0;
    background: #000;
    color: #FFF;
    padding: 0.5em 0;
	text-align:center;
}

/* ==========================================================================
   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 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;
    }
}
