/*! 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,body {
    font-size: 16px;
    line-height: 1.4rem;
}

/*
 * 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: 1rem 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.2rem 0;
    background: #ccc;
    color: #000;
    padding: 0.2rem 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body, html {
    font-family: Helvetica, sans-serif;
    font-size:16px;
}
/***
 * colour previously #db0;
 ***/

@keyframes backgroundFader {
    0% { background-color: #db3; }
    10% { background-color: #CCC; }
    35% { background-color: #ca0;  }
    50% { background-color: #b90; }
    65% { background-color: #ca0; }
    90% { background-color: #CCC; }
    100% { background-color: #db3;  }
}


/***
 Background choices for body:
 ***/

body {
    background-color: #db3;
    -webkit-animation: backgroundFader 45s ease-in-out 5s infinite;
    animation: backgroundFader 45s ease-in-out 5s infinite;
    transition: all 250ms;
}


header {
    max-width: 900px;
    width:86%;
    min-width:275px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 2.25rem;
    color: #000080;
    padding: 10px;
    background-color: #fff;
    margin:auto;
    border-top: 1px solid #036;
    border-left: 1px solid #036;
    border-right: 1px solid #036;
    min-height: 80px;
}
header img {
    float:left;
}
header h1 {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0.5rem 0.5rem 0.5rem 300px;
    padding: 0 1rem 0 1rem;
    display:block;
}
/***
Media Query if screen thinner than 535px then turn H1 into a Block element and centre both H1 + Img in the Header
***/
@media only screen
and (max-width : 680px) {
    header h1 {
        margin: 0.5rem;
        padding: 0 1rem 0 1rem;
        display: block;
        text-align: center;
    }
    header img {
        display: block;
        width:259px;
        margin:auto;
        float:none;
    }
}
section {
    clear:both !important;
    padding: 1rem 10px;
    max-width: 900px;
    min-width:275px;
    width:86%;
    margin: 0 auto 5px;
    border: 1px solid #036;
    background-color: #FFF;
}
#BWnav {
    background-color: #069;
    text-align: center;
    padding: 2px;

}
#BWnav a{
    color: #FFF;
    font-weight: bold;
    text-decoration: none;
    padding: 2px 4px;
    margin-right: 4px;
    margin-left: 4px;
    display:inline-block;

}
#BWnav a:hover{
    background-color: #000080;
    color: #FF9;

}
.subnav {
    background-color: #069;
    padding: 2px;
    width: 90%;
    margin: 5px auto;
    text-align: center;
    color: #FF9;
    font-weight: bold;
}
.subnav a {
    font-weight: normal;
    color: #FFF;
    text-decoration: none;
    margin-right: 10px;
    margin-left: 10px;
}

footer {
    font-size: 0.8rem;
    padding: 0.5rem;
    color: #fff;
    text-align: center;
    clear: both;
    margin: 3.25rem auto 0;
}
footer a {
    color:#336;
	font-weight: bold;
}
main {
    padding: 3rem 0.5rem 1rem;
}
.dark {
    background-color: #D7E4EC;
}
.msg {
    background-color: #FFC;
    text-align: center;
    padding: 4px;
    width: 90%;
    margin: 5px auto;
    border: thin solid #C00;
}
.clearall {
    clear: both;
    height: 2px;
}
.blockRed {
    font-variant: small-caps;
    color:#C00000;
    font-weight: bold;

}
.dataBox {
    width:86%;
    margin:3px auto;
    border:#000080 1px solid;
    border-radius: 5px;
    padding:5px;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6em;

}

.loginBox {
    width:96%;
    min-width:220px;
    max-width:500px;
    border: 1px solid #069;
    margin:1rem auto 0;
}
.loginBox h2 {
    font-size:1.1rem;
    text-align: center;
    border-bottom:1px solid #069;
    background-color: #ccc;
    color: #000080;
    margin-top:0;
    padding:0.35rem;
}
.loginLeft {
    font-weight: bold;
    width: 38%;
    display: inline-block;
    margin:0;
    font-size:0.9rem;
    box-sizing: border-box;
    text-align: right;
    padding: 0 0.25rem;
}
.loginRight {
    width:60%;
    display: inline-block;
    text-align: left;
    padding: 0 0.25rem;
    margin:0;
    box-sizing: border-box;
    font-size: 0.9rem;
}
.loginCentreOuter, .checkboxDiv {
    background-color: #fff;
    margin-left:1rem;
    padding-left: 0.5rem;
    display: block;
    font-size: 0.95rem;
    height: 10.2rem;
    line-height: 1.1rem;
    max-height: 10.2rem;
    min-height: 10.2rem;
    overflow-x: hidden;
    overflow-y: scroll;
}
.loginRight label , .loginCentre label{
    display:block;
}
.loginRight label:focus, .loginRight label:hover, .loginCentre label:hover, .loginCentre label:focus {
    cursor: pointer;
    background-color: #eee;
}
.loginCentre a {
    font-weight: bold;
    padding:0 0.25rem;
}
.loginRight input, .loginRight textarea{
    padding:0;
    margin:0.3rem;
    border:#ccc 2px solid;
    background-color:#ffc;
    width:70%;
}
.loginRight input[type="checkbox"], .loginCentre input[type="checkbox"] {
    max-width:10% !important;
    padding:0;
    margin:0.3rem;
    border:#ccc 2px solid;
    background-color:#ffc;
}
.loginCentreHover:hover {
    background-color: #eee;
}
.loginRight input:focus, .loginRight input:hover, .loginRight select:focus, .loginRight select:hover,
.loginCentre input:focus, .loginCentre input:hover, .loginRight textarea:focus, .loginRight textarea:hover{
    background-color: #fff;
    border-color:#BBB;
}
.loginRight select {
    padding:0;
    margin:0.3rem;
    border:#ccc 2px solid;
    background-color:#ffc;
    width:90%;
}

.button {
    width:25%;
    min-width:100px;
    margin:1rem 10% 0.4rem 60%;
    font-size:1rem;
    color:#000080;
    display:inline;
}
.buttonRemind {
    text-align: center;
    white-space: normal;
}
.button:hover, .button:focus {
    background-color:#ffc;
    border-color:#BBB;
    border-radius: 5px;
    color:#006;
}

section > form > p {
    text-align: center;
}

.secH3 {
    text-align: center;
    font-weight:normal;
    width:76%;
    min-width:200px;
    margin:auto;
    border: 1px solid #900;
    background-color: #eee;
    padding:0.4rem;
}
#forgotten, #fb_note {
    text-align: center;
    color:#009;
    padding:0.5rem;
    text-decoration: none;
}
#forgotten:hover, #fb_note:hover {
    text-decoration: underline;
    cursor: pointer;
}
#fb_note {
    display:inline;
}
#passBox {

}

.loginBox p {
    padding:0 0.3rem;
}
.link {
    text-align: center;
}
.link a:hover, .link a:focus, .loginRight a:hover {
    text-decoration: none;
}

#message:not(:empty) {
    /** This is for the login update page Password warning. **/
    color:#c33;
    font-weight:bold;
    text-align:left;
    padding:0.25rem 0.25rem 0.25rem 0.5rem;
    border: 1px solid #c33;
}

p a, .loginCentre a  {
    text-decoration: underline;
}

p a:hover, p a:focus, .loginCentre a:hover, .loginCentre a:focus, .menuRow a:hover, .menuRow a:focus  {
    text-decoration: none;
}

section > h2 {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1.25rem;
    line-height:2.1rem;
    color:#224;
    margin-left:10%;
    margin-top:0.7rem;
}
#destList thead, #detailz thead{
    font-size:0.9rem;
}
#destList tbody #detailz tbody{
    font-size:0.8rem;
}
#destList tbody tr td:nth-child(1), #destList tbody tr td:nth-child(2), #destList tbody tr td:nth-child(5)
#detailz tbody tr td:nth-child(1){
    text-align: center !important;
}
#destList tbody tr:nth-child(even), #detailz tbody tr:nth-child(even)  {
    background-color:#eef;
}
#destList a:hover, #detailz a:hover {
    text-decoration: none;
}

.menuRow {
    text-align:right;
    max-width: 900px;
    min-width:275px;
    width:86%;
    clear:both !important;
    margin:auto;
    border-top: 1px solid #036;
    border-left: 1px solid #036;
    border-right: 1px solid #036;
    padding:2px 10px;
    background-color:#EDEDED;
    font-weight:bold;
    font-size:0.9rem;
}

/* ==========================================================================
   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: 35rem) {
    /* 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;
    }
}
/***
 * Notice Box
 ***/
.notice_box {
    width:100%;
    display: block;
    margin: 1rem 0;
    border-top:2px solid #99f;
    padding-bottom:1rem;
    background-color: #efefef;
}
.notice_box:nth-of-type(even) {
    background-color: #eff;
}
.notice_box > p:first-of-type {
    text-align: right;
    font-size: 0.9rem;
    font-style: italic;
    padding-right: 1rem;
    margin-top: -0.75rem;
    margin-bottom: 2rem;
}
.notice_box > p:not(:first-of-type) {
    width: 80%;
    min-width: 280px;
    margin: 1rem auto;
}
.notice_box h3 {
    padding:0 1rem;
}
.rightText {
    text-align: right;
}
