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

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

@import url(fonts.css);

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

body {
    font-family: "OpenSansRegular", "diamanteef-regular", Arial, Helvetica, Helvetica Neue, sans-serif;
    font-size: 0.8em;
    line-height: 1.4;
}

a {
    color: #00e;
}

a:visited {
    color: #551a8b;
}

a:hover {
    color: #06e;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

h1, h2 {
    font-family:"diamanteef-regular";
    font-weight: normal;
}
strong {
    font-family:"OpenSansBold";
    font-weight: normal;
}


#form-confirm {
    display:none;
    position:relative;
    background:#000;
    overflow: hidden;
    z-index:2;
}
#form-confirm:before,
#form-confirm:after {
    content:'';
    width:0;height:0;
    display:block;
    position:absolute;bottom:0;
    border-style:solid;border-width:5px;
}
#form-confirm:before {left:0;border-color: #000 #000 #fff #fff;}
#form-confirm:after {right:4px;border-color: #000 #fff #fff #000;}
#form-confirm P {
    color:#fff;
    text-align:center;
    margin:0;
    padding:1em 0;
}
/* ==========================================================================
   HEADER CONTAINER
   ========================================================================== */
.header-container {
    padding: 0 4px 4px 0;
    position: relative;
    background: #000;
}
.header-container P {
    font-size: 24px;
    margin: 0;
    padding: 0;
    background: #fff;
    display: block;
    position: relative;
}
.header-container P .call-button {
    font-family: 'diamanteef-regular';
    font-size: 0.9em;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    margin: 18px 0 18px 10px;
    display: block;
    position: relative;
    float: left;
    padding: 0 5px 0 0;
    background: #f39200;
}
.header-container P .call-button SPAN {
    color: #fff;
    padding: 0 5px;
    margin-right: 5px;
    display: block;
    position: relative;
    float: left;
    background: #000;
}
.header-container P .call-button:before,
.header-container P .call-button SPAN:before {
    content:'';
    width:0;height:0;
    display: block;
    position: absolute;
    bottom:0;right:0;
    border-style:solid;
    border-width:3px;
}
.header-container P .call-button:before {border-color: #f39200 #fff #fff #f39200;}
.header-container P .call-button SPAN:before {border-color: #000 #f39200 #f39200 #000;}
.head-img IMG {
    width: 100%;
    margin: -20% 0;
}
/* ==========================================================================
   TITLE
   ========================================================================== */
#title {
    /*width: 226px;*/
    width: 136px;
    height: 41px;
    margin: 20px 0 2px 10px;
    float: left;
    position: relative;
    z-index: 1;
}
#title IMG {
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}
/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main {
    padding: 4px;
    position: relative;
    background: #000;
    overflow: hidden;
}
.main ARTICLE {
    display: block;
    padding-bottom: 12px;
    position: relative;
    background: #fff;
}
.corner {
    content: '';
    width: 0;
    height: 0;
    display: block;
    position: absolute;
    border-style: solid;
    border-width: 6px;
}
.top-left {border-color: #000 transparent transparent #000;}
.top-right {border-color: #000 #000 transparent transparent;}
.bottom-left {border-color: transparent transparent #000 #000;}
.bottom-right {border-color: transparent #000 #000 transparent;}
.top-left, .top-right {top:0;}
.top-left, .bottom-left {left:0;}
.bottom-left, .bottom-right {bottom:0;}
.top-right, .bottom-right {right:0;}

/*article heading*/
.main ARTICLE HEADER {
    float: left;
    padding: 0.625em 0.89em 0.625em 1.875em;
    margin: 1em 0 1.875em 0;
    height: 4.25em;
    position: relative;
    background: #141414;
    clear: left;
}
.main ARTICLE HEADER:after {
    content: '';
    height: 100%;
    width: 12px;
    display: block;
    position: absolute;
    top: 0;
    right: -12px;
    background: transparent url(../img/continue-corners.png) -12px bottom no-repeat;
}
.main ARTICLE HEADER H2 {
    color: #fff;
    font-size: 2.25em;
    line-height: 0.9;
    padding: 0;
    margin: 2px 1px;
}
.main ARTICLE HEADER H2 SPAN {
    color: #f39200;
    display: block;
}
.main ARTICLE HEADER .number {
    font-family: 'diamanteef-regular';
    font-size: 4.25em;
    color: #000;
    line-height: 0.92;
    height: 1em;
    display: block;
    /*padding: 0.147058824em 0.147058824em 0.147058824em 0.470588235em;*/
    padding: 0.147058824em 0.047058824em 0.147058824em 0.470588235em;
    position: absolute;
    top: 0;
    left: 100%;
    background: #f39200;
}
.main ARTICLE HEADER .number .before {
    width: 0.485em;
    height: 0.485em;
    display: block;
    position: absolute;
    top: 0.19em;
    left: 0.44em;
    background: transparent url(../img/number-corner.png) 0 0 no-repeat;
    -webkit-background-size: 100% auto;
    -moz-background-size: 100% auto;
    -ms-background-size: 100% auto;
    -o-background-size: 100% auto;
    background-size: 100% auto;
}
.main ARTICLE HEADER .number .after {
    width: 12px;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    right: -12px;
    background: transparent url(../img/continue-corners.png) -24px bottom no-repeat;
}
/*article section*/
.main ARTICLE {
    /*width: 1em;*/
}
.main ARTICLE SECTION {float:left;margin-top: -20px;}
.main ARTICLE SECTION P SPAN,
.main ARTICLE SECTION P STRONG {
    color: #F69300;
    font-size: 1.3em;
    font-family: 'diamanteef-boldregular';
}
.main ARTICLE SECTION P SPAN,
.main ARTICLE SECTION P A {
    color: #000;
    font-size: 1em;
    font-family: 'OpenSansSemiboldRegular';
}
/*article paragraph*/
.main ARTICLE P {
    color: #262626;
    font-family: 'OpenSansRegular';
    margin: 1em;
    clear: left;
}
.main ARTICLE P A{color: #262626;}
.main ARTICLE .citation {
    color: #F69300;
    font-family:'OpenSansSemiboldItalic', 'OpenSansItalic';
    display: block;
    padding: 20px;
    position: relative;
    clear: both;
}
.main ARTICLE .citation:before,
.main ARTICLE .citation:after {
    content: '';
    height: 1px;
    width: 100%;
    display: block;
    left: 0;
    position: absolute;
    background: transparent url(../img/line.png) 0 0 repeat-x;
}
.main ARTICLE .citation:before {top: 0;}
.main ARTICLE .citation:after {bottom: 0;}


/*article list*/
.main ARTICLE UL {
    list-style: none;
    padding: 0 1em;
    clear:left;
}
.main ARTICLE UL LI H3 {
    font-family: 'diamanteef-boldregular';
    font-size: 1.3em;
    font-weight: normal;
    margin: 0;
    padding: 0.1em 0 0 0.5em;
    background: transparent url(../img/line.png) left top repeat-x;
}
.main ARTICLE UL LI UL {
    list-style: square;
    padding: .5em 1em 1em 2em;
    background: transparent url(../img/line.png) left top repeat-x;
}
.main ARTICLE UL LI UL LI {font-family: 'OpenSansRegular';}
/*article form*/
.main ARTICLE FORM {
    clear:left;
    margin: 0 1em;
    position:relative;
}
.main ARTICLE FORM .form-item {
    padding: 1.125em 0 1.125em 1.25em;
    margin: 0.375em 0;
    position: relative;
    background: #e5e5e5;
    border: 1px solid #c8c8c8;
}
.main ARTICLE FORM .form-item:before {
    content:'';
    height: 1px;
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background: #f7f7f7;
}
.main ARTICLE FORM .form-item LABEL {
    height: 1em;
    line-height: 1;
    display: block;
}
.main ARTICLE FORM .form-item LABEL SPAN {color: #f39100;}
.main ARTICLE FORM .form-item INPUT,
.main ARTICLE FORM .form-item TEXTAREA {
    -webkit-appearance: none; 
    color: #000;
    height: 1em;
    width: 100%;
    padding: 1.125em 0 1.125em 0;
    margin: 0 0 -1.125em 0;
    display: block;
    background: transparent;
    border: 0;
    outline: none;
}
.main ARTICLE FORM .form-item TEXTAREA {height: 2em;}
.main ARTICLE FORM INPUT[type=submit] {
    width: 220px;
    height: 60px;
    display: block;
    margin: 6px 0;
    background: transparent url(../img/send-button.png) 0 0 no-repeat;
    border: 0;
}
.main ARTICLE FORM P {
    color: #f39200;
    font-size: 0.9em;
    font-family: 'OpenSansSemiboldItalic', 'OpenSansItalic';
    float: right;
}
.main ARTICLE FORM .form-loader {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent url(../img/nice-shadow_px.png) 0 0 repeat;
}
.main ARTICLE FORM .form-loader P {
    color: #fff;
    text-align: center;
    float: none;
    margin: 100px 0 0 0;
}

/*article aside*/
.main ARTICLE ASIDE {
    margin: 0 0.5em 0.5em 0.5em;
    padding: 1px;
    clear: left;
    float: right;
    position: relative;
}
.main ARTICLE ASIDE IMG {width: 10em;}
.main ARTICLE ASIDE .mask {
    width: 100%;
    position: absolute;
    top:0;
    left:0;
}

    
/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-container {
    padding: 4em 10px 0 10px;
    position: relative;
    background: #000;
}
.footer-container > A {
    color: #000;
    font-size: 1.25em;
    font-family: 'diamanteef-regular';
    text-decoration: none;
    text-align: center;
    width: 7em;
    display: block;
    margin-left: -4.5em;
    padding: .5em 1em;
    position: absolute;
    top: -4px;
    left: 50%;
    background: #fff;
}
.footer-container > A:before,
.footer-container > A:after {
    content: '';
    width: 0;
    height: 0;
    display: block;
    position: absolute;
    bottom: 0;
    border-color: transparent;
    border-width: 0.2em;
    border-style: solid;
}
.footer-container > A:before {left:0;border-color: #fff #fff #000 #000;}
.footer-container > A:after {right:0;border-color: #fff #000 #000 #fff;}

.footer-container P {
    color: #fff;
    font-family: 'diamanteef-regular';
    text-align: center;
}
.footer-container .incube {margin: 0;}
.footer-container .incube A {
    color: #fff;
    text-decoration: none;
}
.footer-container .incube A {
    width: 50px;
    height: 59px;
    display: block;
    margin: 0 auto;
    background: transparent url(../img/incube_logo.png) 0 0 no-repeat;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/* Prevent callout */

.nocallout {
    -webkit-touch-callout: none;
}

.pressed {
    background-color: rgba(0, 0, 0, 0.7);
}

/* A hack for HTML5 contenteditable attribute on mobile */

textarea[contenteditable] {
    -webkit-appearance: none;
}

/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if
   they have been set as display: none */

.gifhidden {
    position: absolute;
    left: -100%;
}

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    background-repeat: no-repeat;
    border: 0;
    direction: ltr;
    display: block;
    overflow: hidden;
    text-align: left;
    text-indent: -999em;
}

.ir br {
    display: none;
}

/*
 * 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 helper
 * Used to contain floats: h5bp.com/q
 */

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.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.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width:480px) {
    #title {width:226px;margin-top:10px;margin-left:10px;margin-right:10px;}
    .header-container P .call-button {
        font-size: 1em;
        padding: 0 10px 0 0;
        margin-right: 20px;
    }
    .header-container P .call-button SPAN {
        padding: 0 10px;
        margin-right: 10px;
    }
    .main ARTICLE ASIDE IMG {width: 12.125em;}
}
@media only screen and (min-width: 624px) {BODY {font-size: 0.9em;}}
@media only screen and (min-width: 768px) {BODY {font-size: 1em;}}

@media only screen and (min-width: 800px) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for viewports that meet the condition */
}
