/*
 * 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.
 */

/* =============================================================================
   Primary styles
   Author: Ian Skillen August 2014
   ========================================================================== */


/* =============================================================================
   HTML5 element display
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio[controls], canvas, video { display: inline-block; *display: inline; *zoom: 1; }


/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 *    http://clagnut.com/blog/348/#c790
 * 2. Force vertical scrollbar in non-IE
 * 3. Remove Android and iOS tap highlight color to prevent entire container being highlighted
 *    www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
 * 4. Prevent iOS text size adjust on device orientation change, without disabling user zoom
 *    www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
 */

html { font-size: 100%; overflow-y: scroll; -webkit-overflow-scrolling: touch; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { margin: 0; font-size: 13px; line-height: 1.231; }
body, button, input, select, textarea { font-family: sans-serif; color: #222; }

/* 
 * These selection declarations have to be separate
 * No text-shadow: twitter.com/miketaylr/status/12228805301
 * Also: hot pink!
 */

::-moz-selection { background: #b99bb9; color: #fff; text-shadow: none; }
::selection { background: #b99bb9; color: #fff; text-shadow: none; }


/* =============================================================================
   Links
   ========================================================================== */

a { color: #00e; }
a:visited { color: #ffffff; } /*#b99bb9; }*/
/*a:focus { outline: thin dotted; }*/

/* Improve readability when focused and hovered in all browsers: people.opera.com/patrickl/experiments/keyboard/test */
  a:hover, a:active { outline: 0; } 


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: en.wikipedia.org/wiki/User:Davidgothberg/Test59 */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: gist.github.com/413930 */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * Improve image quality when scaled in IE7
 * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
 */

img { border: 0; -ms-interpolation-mode: bicubic; }

/*
 * Correct overflow displayed oddly in IE9 
 */

svg:not(:root) {
    overflow: hidden;
}


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* 
 * 1. Correct color not inheriting in IE6/7/8/9 
 * 2. Correct alignment displayed oddly in IE6/7 
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input { line-height: normal; *overflow: visible; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; } 
input[type="search"] { -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }

/* 
 * Remove inner padding and border in FF3/4
 * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ 
 */
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
/* Remove default vertical scrollbar in IE6/7/8/9 */
textarea { overflow: auto; vertical-align: top; }

/* Colors for form validity */
input:valid, textarea:valid  { background-color: #f0f0f0;  } /* box valid */
input:invalid, textarea:invalid { background-color: #f0f0f0; } /* box invalid */


/* Conference registration form */


#registration-form {
    background-color: #f6f9fb;  /* form bg */
    width: 465px;
    padding-top: 10px;
    padding-bottom: 0px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 30px auto;   
    border: 1px solid #e5e5e5; /* form border */
    position: relative;
    box-shadow: 5px 7px 10px #606060;
#z-index: -1; /*So drop-down Programme & Registration not covered */
}
 
#registration-form h1 {
    font-family: "Open Sans",Arial,Helvetica,sans-serif;
    font-size: 24px;
    line-height: 1.0em;
    font-weight: 500;
    color: #1c345c;
}

#registration-form p { /* override article p for IP */
font-family: "Open Sans",Arial,Helvetica,sans-serif;
    padding-top: 10px;
    font-size: 14px !important;
    line-height: 1.1em;
    font-weight: 100;
    font-style: italic;
    color: #707070 !important;
}


#registration-form input,
#registration-form select,
#registration-form textarea,
#registration-form label {
    font-family: "Open Sans",Arial,Helvetica,sans-serif;
    font-size: 17px;
    color: #707070;
    font-weight: 600;
    margin-bottom: 2px;
}
 
#registration-form input,
#registration-form select,
#registration-form textarea {
    width: 450px;
    border: 1px solid #cee1e8; /* input box border */
    margin-bottom: 20px;
    padding: 4px;
}
 
#registration-form input:focus,
#registration-form select:focus,
#registration-form textarea:focus {
    border: 1px solid #afcdd8;  /* input box border on focus */
    background-color: #e1e1e1;  /* input box background on focus */
}

/* Tweak select box for consistency */

select{
    padding: 3px 0px 3px 0px !important; /* T, R, B, L */
    width: 285px !important;
    background-color: #f0f0f0; !important;
}

/* Input placeholder styles */

/* Chrome and Safari */
::-webkit-input-placeholder {
    color:#b8b8b8;
    font-style:italic;
}
/* Firefox 19-> */
input::-moz-placeholder, textarea::-moz-placeholder {
    color:#b8b8b8;
    font-style:italic;
}
/* Firefox <-18 */
input:-moz-placeholder, textarea:-moz-placeholder {
    color:#b8b8b8;
    font-style:italic;
}
/* Internet Explorer 10->*/
:-ms-input-placeholder {
    color: #b8b8b8 !important;
    font-style:italic;
}
 
#registration-form textarea {
    height: 32px;
    resize: vertical; min-height:32px;
}

#registration-form label {
    display: block;
}

#registration-form .required {
    font-weight: 100;
    color: #ff0000; /* Required asterisk */  
}

/* Radio button styling */

#registration-form input[type="radio"] {
   position:absolute;
   opacity: 0;
   -moz-opacity: 0;
   -webkit-opacity: 0;
   -o-opacity: 0;
   display:inline-block;
}

#registration-form input[type="radio"] +label {
   position:relative;
   padding: 2px 0px 15px 0px; /* T, R, B, L */
   font-size: 16px;
   line-height: 1.0em;
   display:inline-block;
}

#registration-form input[type="radio"] + label:before {
   content:"";
   display:block;
   position:absolute;
   top:2px;
   height: 14px;
   width: 14px;
   background: #f0f0f0;
   border: 2px solid #e5e5e5;
   box-shadow: inset 0px 0px 0px 2px white;
   -webkit-box-shadow: inset 0px 0px 0px 2px white;
   -moz-box-shadow: inset 0px 0px 0px 2px white;
   -o-box-shadow: inset 0px 0px 0px 2px white;
   -webkit-border-radius: 8px;
   -moz-border-radius: 8px;
   -o-border-radius: 8px;
}

#registration-form input[type="radio"]:checked + label:before {
   background: #f19319; /* checked colour */

 }

/* End of radio button styling */

/* Submit-button styling */
 
#registration-form #submit-button {
    width: 100px;
    font-weight: 600;
    background-color: #b99bb9;
    color: #ffffff; /* button text colour */
    border: none;
    display: block;
    float: right;
    margin-bottom: 0px;
    margin-right: 6px;
    background-color: #003366; /* button colour, same as nav menu */
    -moz-border-radius: 8px;
}
 
#registration-form #submit-button:hover {
    background-color: #194775; /* button hover colour */
}
 
#registration-form #submit-button:active {
    border: 2px solid #cccfff;
    position: relative;
    top: 1px;
}

/* Reset button styling */

#registration-form #reset-button {
    width: 60px;
    font-weight: 600;
    background-color: #b99bb9;
    color: #ffffff; /* button text colour */
    border: none;
    display: block;
    float: left;
    margin-bottom: 0px;
    margin-right: 6px;
    background-color: #003366; /* button colour, same as nav menu */
    -moz-border-radius: 8px;
}

#registration-form #reset-button:hover {
    background-color: #194775; /* button hover colour */
}

#registration-form #reset-button:active {
    border: 2px solid #cccfff;
    position: relative;
    top: 1px;
}

 
#registration-form #loading {
    width: 32px;
    height: 32px;
/*
    background-image: url(../img/loading.gif);
*/
    display: block;
    position: absolute;
    right: 130px;
    bottom: 16px;
    display: none;
}
 
#errors {
    border:solid 2px #cee1e8; 
    padding: 10px;
    margin: 25px 0px;
    display: block;
    width: 437px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    background:#ffeeee url(../img/cancel_48.png) no-repeat 400px center;
    display:none;
/*  box-shadow: 2px 2px 7px #606060; */
    color: #707070; 
}
 
#errors li {
    padding: 2px;
    list-style: none;   
}
 
#errors li:before {
    content: ' - ';   
}
 
#errors #info {
font-family: "Open Sans",Arial,Helvetica,sans-serif;
    font-size: 16px !important;
    font-weight: 600;
}
 
#errors #info:before {
    content: '';   
}
 
#success {
    border:solid 1px #A8DFAA;
    padding:10px 10px !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    display:block;
    width:675px;
    -webkit-border-radius:9px;
    -moz-border-radius:9px;
    border-radius:9px;
    background:#E0F2E0 url(../img/accepted_48.png) no-repeat 610px center;
    font-weight:bold;
    box-shadow: 5px 7px 10px #606060;
}
 
#errors.visible, #success.visible {
    display:block;   
}
 
#req-field-desc {
    font-style:normal;
}
 
/* Remove box shadow from required fields in firefox, chrome and opera */

input:required, textarea:required {
    -moz-box-shadow:none;
    -webkit-box-shadow:none;
    -o-box-shadow:none;
    box-shadow:none;
}
 

/* End Forms */

/* A gradient rule-off */ 

hr.style-gradient { 
border: 0;
height: 2px; 
width: 723px;
text-align:center; margin: 0; auto;

background-image: -webkit-linear-gradient(left, #ffffff, #e0e0e0, #ffffff); 
background-image: -moz-linear-gradient(left, #ffffff, #e0e0e0, #ffffff); 
background-image: -ms-linear-gradient(left, #ffffff, #e0e0e0, #ffffff); 
background-image: -o-linear-gradient(left, #ffffff, #e0e0e0, #ffffff);

}


/* =============================================================================
   Tables
   ========================================================================== */

/*table { border-collapse: collapse; border-spacing: 0; }*/


/* Add in default body font */
 body {
   font-family:Arial,sans-serif;
 }

  
 header {
   background-color:#b99bb9;
   width:960px; 
   height:150px; 
   background-image: url(../img/confBanner.png);
 }
 
 header h1 { 
   text-indent: -3000px; 
 } 

 img#headerimg {
   position:relative;
   top:0px;
   left:0px;
 }
 


 aside {
   background-color:#ffffff;
 }

 footer {
/* position: relative;
width: 100%;
bottom: 0px; */
   background-color:#6982af;
   color:#ffffff; 
   min-height:100px; 
/*   height:80px; 80->90 to ensure no overflow OR use min-height:80px;*/   
   background: -webkit-linear-gradient(#ffffff, #ffffff);
   background: -o-linear-gradient(#ffffff, #ffffff);
   background: -moz-linear-gradient(#ffffff, #ffffff);
   background: linear-gradient(#ffffff, #ffffff);
   clear:both; 
 }


/* Iframe to centre map */

iframe.map {  
    margin: 0;
    padding: 0;
    border: none; 
    width: 675px;
    height: 417px; 
    background-color: #b99bb9; 
/*    display: block */
    box-shadow: 5px 7px 10px #606060; 
    margin: 15px 10px 25px 30px; 
}

/* Different (from nav white) link colors in the footer */
 footer a:link {
   color:#b99bb9;
 } 
 
/* Different (from nav white) link and visited colors in article */
 article a:link {
   color:#b99bb9; text-decoration: none
}
article a:visited {color: #b99bb9;
 }

/* Tables */

table.footer {

        width: 99%;
        color: #ffffff;
        border-style: none;
/*        border-collapse: collapse; */
}

td.logo {
        border-width: 0px;
        padding: 10px;
        border-style: none;
        background-color: #ffffff;
}

table.col2 {

font-family: "Open Sans",Arial,Helvetica,sans-serif;
    	font-size: 18px;
    	line-height: 1.0em;
    	font-weight: 100;
    	color: #ffffff; 
        border-width: 0px;
        border-color: #666666;
        border-collapse: collapse;
}

table.col2 {
        width: 100%;
}

/* Change font colour on hover [nicer than changing row background]*/
table.col2 tr:hover td {
background-color: #ffffff;
/*color: #003366;*/
/*color: #a3c2c2;*/
color: #6982af;
}

table.col2 th {
        border-width: 0px;
        padding: 0px;
        border-style: solid;
        border-color: #666666;
        background-color: #ffffff;
        color: #707070;
        text-align: left;
}

table.col2 td {
        border-width: 0px;
        padding: 1px;
        border-style: solid;
        border-color: #666666;
        background-color: #ffffff;
        color: #707070;
        text-align: left;
}


table.col3 {

font-family: "Open Sans",Arial,Helvetica,sans-serif;
	font-size: 17px;
	line-height: 1.0em;
	font-weight: 100;
	color: #ffffff;
	border-width: 0px;
	border-color: #666666;
 	border-collapse: collapse;
}

table.col3 {
	width: 85%;
}

table.col3 th {
        border-width: 0px;
        padding: 3px;
        border-style: solid;
        border-color: #666666;
        background-color: #ffffff;
	color: #707070;
	text-align: left;
}

table.col3 td {
        border-width: 0px;
        padding: 3px;
        border-style: solid;
        border-color: #666666;
        background-color: #ffffff;
	color: #707070;
        text-align: left;
}


 
 /* BEGIN FOOTER TEXT STYLES */

 footer p#about {
   width:300px;
   margin:20px 50px 0px 30px; 
   float:left; 
 }

 footer div#footerlist {
   float:left; 
   padding-right:10px;
   margin-top:5px; 
 }

 footer div#footerlist ul  {
   padding-left:0px; /* Unindent the list so it lines up with the h3 above it. */
 }

 footer div#footerlist ul li {
   list-style-type:none; /* Remove default discs from list items. */
 }

 footer div#footerlist h3 {
   margin-top:0px;
 }

 footer p#footercopy {
   clear:both;
   text-align:center;
   font-size:0.9em; /* Slightly smaller text for copyright text. */
 }

 /* End footer styles */ 

aside, footer { 
   padding:5px;
 }
 
 div#container {
   width:800px;
   margin:auto;
   margin-top:20px;
   border:2px solid #e5e5e5;
   border-radius: 20px; 
   overflow:hidden; 
/* box-shadow: 10px 10px 10px #e6e6e6; */
min-height: 100%; /* prevent footer overflow */
position: relative; /* " */
 }

 div#captchaImages {
   display: inline-block; 
   margin: 0px auto; 
}

 section#main {
   width:740px; 
   float:left;
   padding-left:10px; 
   padding-right:10px;
   padding-bottom:5px; 
margin-bottom: 80px; /* footer overflow*/

 }
 
/* Specify fonts for section H1s, H2s and article Ps */

section#main article h1 {
font-family: "Open Sans",Arial,Helvetica,sans-serif;
    font-size: 24px;
    line-height: 1.0em;
    font-weight: 500;
    color: #1c345c;
 }

section#main article h2 {
font-family: "Open Sans",Arial,Helvetica,sans-serif;
    font-size: 21px;
    line-height: 1.0em;
    font-weight: 500;
    color: #1c345c;
}

 section#main article p {
font-family: "Open Sans",Arial,Helvetica,sans-serif;
    font-size: 18px;
    line-height: 1.15em;
    font-weight: 100;
    color: #707070; /*#909090;*/ 
}


/* Styling for image div with caption */
 section#main .article_img {
   float:left;
   width:675px;
   padding:0px;
   border:0px solid gray;
   box-shadow: 5px 7px 10px #606060; /* hor, vert, blur, color */
   margin: 15px 10px 25px 30px;
 }

/* Styling for caption within image div */
 section#main .article_img p {
   margin-top:0px;
   margin-bottom:0px;
   margin-left:2px;
   font-size:0.85em;
   font-style:italic;
   padding-top:0px;
 }

/* Styling for clip art */

 section#main .article_clip {
   float:right;
   width:170px;
   padding:0px;
   border:0px solid gray; 
   margin: 2px 8px 2px 8px;
 }

 
aside {
height: 700px;
  background: -webkit-linear-gradient(#6982af, #ffffff);
  background: -o-linear-gradient(#6982af, #ffffff);
  background: -moz-linear-gradient(#6982af, #ffffff);
  background: linear-gradient(#6982af, #ffffff);
  width:200px; 
  float:right; 
  font-family: Arial, Verdana;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align:center;
  color: #ffffff;
 }


/* START NAV MENU */
nav {
/*  background-color:#003366; */
  background-color:#111f88; 
  height:25px;
}

nav a {
  color: #ffffff;  
}

nav a:link {
  color: #ffffff;  
}

nav a:visited {
  color: #ffffff;  
}

 
 
nav ul {
  font-family: Arial, Verdana;
  font-size: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: +1000; #ensure pull-down in front
}
 
nav ul li {
  display: block;
  position: relative;
  float: left;
 
}
 
nav li ul { 
  display: none; 
}
 
nav ul li a {
  display: block;
  text-decoration: none;
/*  padding: 7px 15px 3px 15px; */

  padding: 0px 10px 0px 10px;
/*  background: #003366; */

  background: #111f88;
  color: #ffffff;  
  margin-left: 0px;
  margin-top: 0px;
  white-space: nowrap;
  height:35px; /* Width and height of top-level nav items */
  width:90px;
  text-align:center;
vertical-align: middle;
 
}

 
nav ul li a:hover { 
  background: #a3c2c2;      /*top-level menu hover colour*/ 
}
 
nav li:hover ul {
  display: block;
  position: absolute;
  height:35px;
vertical-align: middle;
}
 
nav li:hover li {
  float: none;
  font-size: 11px;
}
 
nav li:hover a { 
  background: #6982af;      /* same as banner */ 
  height:35px; /* Height of lower-level nav items is shorter than main level */
vertical-align: middle;
}
 
nav li:hover li a:hover { 
  background: #a3c2c2;      /*pull-down menu hover colour*/
}
 
nav ul li ul li a {
    text-align:left; /* Top-level items are centered, but nested list items are left-aligned */
}
 
/* END NAV MENU */





/* =============================================================================
   Non-semantic helper classes
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide for both screenreaders and browsers:
   css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden { display: none; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: by Jon Neal.
  www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
.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: drupal.org/node/897638 */
.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; }

/* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */ 
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }



/* =============================================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 480px) {
  /* Style adjustments for viewports 480px and over go here */

}

@media only screen and (min-width: 768px) {
  /* Style adjustments for viewports 768px and over go here */

}


/* =============================================================================
   Print styles.
   Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
  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; }
}
