/*! 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;
    font-family: 'Verdana', Arial, sans-serif; 
}

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


/* main elements */

#main {
  padding: 0;
  
  /* Only to use with Sticky Footer */
  padding-bottom: 155px;
}

h1 { 
  color:#004b85; 
  font-size:120%; 
  font-weight:bold;   
  margin-bottom:14px; 
  margin-top:25px; 
  padding-bottom:10px; 
  border-bottom:dotted 2px #004b85; 
}

h2 {
  border-bottom:solid 2px #e6ae5b; 
  color:#004b85; 
  font-size:100%; 
  font-weight:bold;   
  margin-bottom:14px; 
  margin-top:25px; 
  padding-bottom:10px; 
}

h3 {
  color:#666;
  font-size:90%; 
  font-weight:bold;   
  margin-bottom:10px; 
  margin-top:25px; 
}

.float-left {
    float: left;
}
.float-right {
    float: right;
}

a {text-decoration: none;}

.linkparagr, a.important, a.lead, a.sublink {
  display: inline-table;
  margin-right: 25px;
}

a.important, a.lead, a.sublink { 
  cursor: pointer;
  margin-top:5px; 
  margin-bottom:5px; 
  width:200px; 
  text-decoration:none; 
  padding-left:18px;
}

  a.important { 
    color:#004b85; 
    font-weight: bold; 
    background: url('../img/icon.jpg') no-repeat 3px 1px; 
  }
  a.lead, a.sublink {  
    background: url('../img/bullet.png') no-repeat 3px 5px;   
    color:#666; 
  }
  
  a.lead { font-weight:bold; }
  
  a.intext { font-weight:700; cursor: pointer; color:#666; }
  
  a:hover {
    text-decoration: underline;
  }


/* Web colors boxes */

.color {
  display: inline-table;
  margin: 0 20px 20px 0;
  padding: 30px;
  width: 150px;
}

.primary { background-color: #004b85; color:#fff; }
.secondary { background-color: #e6ae5b; color:#fff; }
.text { background-color: #4b4b4b; color:#fff; }
.grey0 { background-color: #999; color:#fff; }
.grey1 { background-color: #e9e9e9; color:#4b4b4b; }
.grey2 { background-color: #f0f0f0; color:#4b4b4b; }

.box {
  display:  block;  
}

.box.grey {
  background-color: #f0f0f0;
}


/* BUTTON SAMPLEs */

  .sampleblue-btn {
    vertical-align: bottom;
    text-align: center;
    border:1px solid #004b85; 
    -webkit-border-radius: 1px; -moz-border-radius: 1px;
    border-radius: 3px;
    font-size:120%;
    font-family:arial, helvetica, sans-serif; 
    padding: 10px 10px 10px 10px; 
    text-decoration:none; 
    display:inline-block;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
    color: #FFFFFF;
    background-color: #1574bf; 
    background-image: -webkit-gradient(linear, left top, left bottom, from(#1574bf), to(#004b85));
    background-image: -webkit-linear-gradient(top, #1574bf, #004b85);
    background-image: -moz-linear-gradient(top, #1574bf, #004b85);
    background-image: -ms-linear-gradient(top, #1574bf, #004b85);
    background-image: -o-linear-gradient(top, #1574bf, #004b85);
    background-image: linear-gradient(to bottom, #1574bf, #004b85);
    filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#1574bf, endColorstr=#004b85);
    -webkit-box-shadow: inset 0 1px 0 0 #68a6d7;
    box-shadow: inset 0 1px 0 0 #68a6d7;
  }
  .sampleblue-btn:hover{
    cursor: pointer;
    border:1px solid #053c66;
    background-color: #004b85; 
    background-image: -webkit-gradient(linear, left top, left bottom, from(#004b85), to(#053c66));
    background-image: -webkit-linear-gradient(top, #004b85, #053c66);
    background-image: -moz-linear-gradient(top, #004b85, #053c66);
    background-image: -ms-linear-gradient(top, #004b85, #053c66);
    background-image: -o-linear-gradient(top, #004b85, #053c66);
    background-image: linear-gradient(to bottom, #004b85, #053c66);
    filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#004b85, endColorstr=#053c66); 
  }
  
  .samplegrey-btn {
    vertical-align: bottom;
    text-align: center;
    border:1px solid #ccc; 
    -webkit-border-radius: 1px; -moz-border-radius: 1px;
    border-radius: 3px;
    font-size:120%;
    font-family:arial, helvetica, sans-serif; 
    padding: 10px 10px 10px 10px; 
    text-decoration:none; 
    display:inline-block;
    text-shadow: 1px 1px 0 white;
    color: #4b4b4b;
    background-color: #e9e9e9; 
    background-image: -webkit-gradient(linear, left top, left bottom, from(#e9e9e9), to(#ccc));
    background-image: -webkit-linear-gradient(top, #e9e9e9, #ccc);
    background-image: -moz-linear-gradient(top, #e9e9e9, #ccc);
    background-image: -ms-linear-gradient(top, #e9e9e9, #ccc);
    background-image: -o-linear-gradient(top, #e9e9e9, #ccc);
    background-image: linear-gradient(to bottom, #e9e9e9, #ccc);
    filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#e9e9e9, endColorstr=#ccc);
    -webkit-box-shadow: inset 0 1px 0 0 #fff;
    box-shadow: inset 0 1px 0 0 #fff;
  }
  .samplegrey-btn:hover{
    cursor: pointer;
    border:1px solid #999;
    background-color: #ccc; 
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#999));
    background-image: -webkit-linear-gradient(top, #ccc, #999);
    background-image: -moz-linear-gradient(top, #ccc, #999);
    background-image: -ms-linear-gradient(top, #ccc, #999);
    background-image: -o-linear-gradient(top, #ccc, #999);
    background-image: linear-gradient(to bottom, #ccc, #999);
    filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#ccc, endColorstr=#999); 
  }
  
  input.sampleorange-btn {
    text-align: center;
    border:1px solid #c88a30; 
    -webkit-border-radius: 1px; -moz-border-radius: 1px;
    border-radius: 3px;
    font-size:120%;
    font-family:arial, helvetica, sans-serif; 
    padding: 10px 10px 10px 10px; 
    text-decoration:none; 
    display:inline-block;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
    color: #FFFFFF;
    background-color: #e4ab58; 
    background-image: -webkit-gradient(linear, left top, left bottom, from(#e4ab58), to(#c88a30));
    background-image: -webkit-linear-gradient(top, #e4ab58, #c88a30);
    background-image: -moz-linear-gradient(top, #e4ab58, #c88a30);
    background-image: -ms-linear-gradient(top, #e4ab58, #c88a30);
    background-image: -o-linear-gradient(top, #e4ab58, #c88a30);
    background-image: linear-gradient(to bottom, #e4ab58, #c88a30);
    filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#e4ab58, endColorstr=#c88a30);
    -webkit-box-shadow: inset 0 1px 0 0 #f3c889;
    box-shadow: inset 0 1px 0 0 #f3c889;
  }
  
  input.sampleorange-btn:hover{
    cursor: pointer;
    border:1px solid #a46e1d;
    background-color: #c88a30; 
    background-image: -webkit-gradient(linear, left top, left bottom, from(#c88a30), to(#a46e1d));
    background-image: -webkit-linear-gradient(top, #c88a30, #a46e1d);
    background-image: -moz-linear-gradient(top, #c88a30, #a46e1d);
    background-image: -ms-linear-gradient(top, #c88a30, #a46e1d);
    background-image: -o-linear-gradient(top, #c88a30, #a46e1d);
    background-image: linear-gradient(to bottom, #c88a30, #a46e1d);
    filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#c88a30, endColorstr=#a46e1d); 
  }   


/* Banner Container */
#main .MainBanner {
    width: auto;
}

  
/* Tabs CSS to use with jQuerTools.min.js */

  .main-tabs {
    position: relative;
    display: inline-table;
    width: 100%;
  }
  
  /* tabs buttons */
  .main-tabs .tabs ul { 
    position: absolute; 
    text-align: left; 
    top: 13px;
    margin: 0;
    padding:  0;
    z-index:  4;
  }
  .main-tabs .tabs ul li { 
    list-style:none; 
    display: inline-block; 
    margin-right: 2px; 
  }
  .main-tabs .tabs ul li a { 
    background: url('../img/bullet.png') no-repeat 8px 3px; 
    padding: 0 17px 0 20px; 
    line-height:  29px; 
    color:  #4b4b4b;  
    font-weight:  bold; 
    text-decoration:  none; 
  }
  
  /* tabs buttons - current state */
  .main-tabs .tabs ul li a.current { 
    cursor: default; 
    background: url('../img/bullet-active.png') #f6f6f6 no-repeat 8px 12px; 
    height: 34px; 
    padding:  6px 17px 13px 20px;  
    font-weight:  bold; 
    text-decoration:  none; 
    border-top: solid 2px #e6ae5b;
    color:  #004b85;
  }
  
  /* active bullet on/off */
  .main-tabs .tabs ul li a img { 
    display:  none; 
    border: none;
  }
  .main-tabs .tabs ul li a.current img { 
    display:  inline-block; 
    margin-left: -10px;
  }
  
  /* content of the tabs */
  .main-tabs .box { 
    border-top: solid 2px #e6ae5b;
    position: relative; 
    margin-top: 45px; 
    padding-top: 15px;
    background-color: #f6f6f6; 
  }
  .main-tabs .search_cont { 
    height: 285px; 
    overflow: auto; 
    padding: 0px 10px 0px 10px; 
    color:  #4b4b4b; 
  }
  .main-tabs .search_cont a {
    color:  #666;
  }
  .main-tabs .search_cont a:hover {
    text-decoration:  underline;
  }
  .main-tabs .search_cont p {
    font-weight:  bold;
  }
  
  /* bottom subtitle */
  .main-tabs .subtitle { 
    position: relative;
    display:  block;
    color:  #666; 
    bottom: 0px; 
    padding:  8px 10px;
    margin-top: 15px;  
    background-color: #e9e9e9;
  }


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