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

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


h1, h2 {
    margin: 0;
    font-weight: normal;
}

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

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/**
 * Hidden yet accessible content
 * Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
 */
.accessibility { 
        position: absolute;
        overflow: hidden; 
        clip: rect(0 0 0 0); 
        height:  1px; 
        width:   1px; 
        margin: -1px;
        padding: 0;
        border: none; 
}

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


html, 
body {
    /*background-color: #f7f7f7;*/
    background-color: #ffffff;
    color: #FFFFFF;
    overflow-y: scroll;
    -ms-overflow-y: scroll;
}

.icon-button {
  display:-moz-inline-stack;
  display:inline-block;
  zoom:1;
  *display:inline;
  
  text-decoration: none;
  padding: 5px 10px;
  color: #ffffff;

  padding: 1px 12px 3px 0px;

  background-color: #F75C1E;

    -moz-border-radius: 13px;
    border-radius: 13px;
}
html.lt-ie8 .icon-button {
  padding: 10px 12px 10px 0px;
}
.icon-button span.link {
    background-image: url(../img/link.png);
    background-repeat: no-repeat;
    background-position: 13px 1px;
    padding: 1px 0px 0 37px;
    font-size: 11px;
    line-height: 11px;
}


#preloader {
    position: absolute;
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
    top: 50%;
    left: 50%;
}
    #preloader #percent {
        color: #000000;
        font-size: 20px;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 26px;
        margin-left: -50%;
        margin-top: -13px;
    }

#container {
    display: none;
    position: absolute;
    height: 100%;
    width: 100%;
    min-width: 768px;
    overflow: hidden;
}

#wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    /*max-width: 1420px;*/
    /*max-width: 1960px;*/
    min-width: 628px;
    margin-left: auto;
    margin-right: auto;
}

    header {
        position: relative;
        z-index: 100;

        width: 100%;
        height: 100px;
        background-color: #1d1d1d;
    }
        header #logo {
            float: left;
            height: 45px;
            background: url(../img/orange.jpg) no-repeat;
            margin: 26px 60px;
            padding-left: 62px;
            position: relative;
        }
            header #logo #subtitle {
                position: absolute; 
                bottom: 0;
                font-size: 22px;
                line-height: 18px;
                color: #FFFFFF;
            }
        
        header nav {
            position: absolute;
            bottom: 26px;
            right: 60px;
            font-size: 14px;
        }
        header nav > ul {
            margin: 0;
            padding-left: 0;
            white-space: nowrap;
        }

        header nav > ul > li {
            display: inline;
            list-style-type: none;
            /*border-left: dotted 1px #ff771e;*/
            background: url(../img/delim.png) repeat-y;
        }

        header nav > ul > li.first {
            background: none;
        }
        header nav > ul > li.delimiter {
            width: 1px;
            background: url(../img/delim.png) repeat-y;
        }

        header nav > ul > li > a {
            font-family: 'HelveticaNeueBold', Helvetica, Arial, sans-serif;
            padding: 0px 18px;
        }

        header nav > ul > li > a:link, nav > ul > li > a:visited {
            color: #777777;
            text-decoration: none;
        }

        header nav > ul > li > a:hover, nav > ul > li > a.active,
        header nav > ul > li > a:focus {
            color: #fff;
            text-decoration: none;
        }

    #languages {
        position: relative;
        top: 0;
        /*right: 0px;
        top: 0;*/
    }

    #languages.on {
        background-color: #1d1d1d;
    }

    #languages > a {
        /*text-transform: capitalize;*/
        /*display: block;*/
        width: 38px;
        /*font-size: 13px;*/
        color: #FFFFFF;
        border: none;
        text-decoration: none;
        /*padding-left: 20px;
        padding-top: 16px;*/
        /*padding-bottom: 16px;*/
        background-image: url("../img/select_triangle_bas.png");
        background-repeat: no-repeat;
        background-position: 40px 8px;
    }

    #languages > div.list {
        display: none;
        position: absolute;
        top: 25px;
        width: 94px;
        background-color: #1d1d1d;
        left: 0;
    }

    #languages.on > div.list {
         display: block;
    }

    #languages > div.list > ul {
        margin: 0;
        padding: 0;
    }

    #languages > div.list li {
        list-style-type: none;
        padding-top: 5px;
        padding-bottom: 8px;
        border-top: none;
        border-bottom: 1px solid #1A1A1A;
        margin-left: 9px;
        margin-right: 9px;
    }

    #languages > div.list li.last {
        border-bottom: none;
    }

    #languages > div.list li a {
        margin-left: 11px;
        font-size: 13px;
        color: #FFFFFF;
        text-decoration: none;
    }

    #controls {
        position: absolute;
        z-index: 2;
        top: 100px;
        right: 0px;
        width: 60px;
        height: 100%;
        background: #f7f7f7 url(../img/toolbar-shadow.png) repeat-y;
        color: #000000;
        text-align: center;
        font-size: 10px;
    }

        #controls #controls-slider {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 100%;
            padding-bottom: 154px;
            max-height: 388px;
        }

        #controls #slider-container {
            position: relative;
            z-index: 1;
        }

        #controls #min,
        #controls #max {
            margin-top: 7px;
            margin-bottom: 7px;
        }
        #controls #min {
            margin-top: 17px;
        }

        #controls #max {
            width: 100%;
            position: absolute;
            left: 0;
            z-index: 0;
        }

        #controls .stopper {
            width: 8px;
            height: 2px;
            margin-right: auto;
            margin-left: auto;
            background-color: #ef9b41;
        }

        #controls #track {
            height: 100%;
            background: url(../img/dot.png) repeat-y center;
            cursor: hand; 
            cursor: pointer; 
        }

        #controls #thumb, 
        #controls #current-thumb {
            z-index: 1;
            position: absolute;
            top: 2px;
            left: 0;
            height: 1px;
            width: 100%;
            background-color: #ef9b41;
        }
        #controls #thumb {
            cursor: hand; 
            cursor: pointer; 
        }
        #controls #current-thumb {
            background-color: #333333;
        }
            #controls #thumb .filler,
            #controls #current-thumb .filler {
                width: 100%;
                height: 20px;
                position: absolute;
                top: -20px;
            }
            #controls #thumb .filler.after,
             #controls #current-thumb .filler.after {
                top: 0px;
            }

        #controls #thumb .legend,
        #controls #current-thumb .legend {
            width: 48px;
            height: 43px;
            position: absolute;
            left: -58px;
            top: -22px;
            background: url(../img/slider-legend.png) no-repeat;
            color: #FFFFFF;
            line-height: 43px;
            padding-right: 20px;
            
        }

         #controls #thumb .legend {
            /*display: none;*/
         }
         .no-touch #controls-slider:hover #thumb .legend {
            /*display: block;*/
        }

        #controls #current-thumb .legend {
            background: url(../img/slider-current-legend.png) no-repeat;
            color: #FFFFFF;
        }

            #controls .legend > span {
                margin-left: -4px;
            }

        #controls-container {
            position: absolute;
            bottom: 0px;
            left: 0;
        }

        #controls #top {
            display: block;
            width: 59px;
            height: 30px;
            background-color: #FFFFFF;
            border: 1px solid #efefef;
            font-size: 10px;
            padding-top: 20px;
            cursor: hand; 
            cursor: pointer; 
            text-decoration: none;
            color: inherit;
        }

        #controls #down {
            display: block;
            bottom: 50px;
            width: 59px;
            height: 50px;
            border: 1px solid #efefef;
            border-bottom: none;

            background: #FFFFFF url(../img/arrow-down.png) no-repeat center;
            cursor: hand; 
            cursor: pointer; 
        }

         #controls #up {
            display: block;
            bottom: 100px;
            width: 59px;
            height: 50px;
            border: 1px solid #efefef;
            border-bottom: none;

            background: #FFFFFF url(../img/arrow-up.png) no-repeat center;
            cursor: hand; 
            cursor: pointer; 
        }

#notice {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.15);
    padding-top: 100px;

    color: #232323;
    text-align: center;
}

    #notice .container {
        position: absolute;
        top:50%;
        left:50%;
        padding: 50px;
        height: 178px; /*278 - 100*/
        width: 470px;

        margin-top: -89px; /*278 / 2 - 100 / 2 */
        margin-left: -285px;

        background-color: white;
    }

        #notice p {
            margin: 0 0 40px 0;
            font-size: 14px;
        }

        #notice img {
            margin: 0 15px;
        }

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


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

.nonborderbox *
{
	-webkit-box-sizing: content-box;
     -moz-box-sizing: content-box;
      box-sizing: content-box;
} 
