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

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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;
}

img,object {
    max-width:100%;
}

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

/* ==========================================================================
   Responsive Resets
   ========================================================================== */

@-o-viewport {
    width: device-width;
}
@-ms-viewport {
    width: device-width;
}
@viewport {
    width: device-width;
}

/* ==========================================================================
   Grid

Width: 980px
# of Columns: 10
Column: 80px
Gutter: 20px

Target / Context = Result

   ========================================================================== */

.container{
    width:auto;
    max-width: 980px;
    margin: 0 auto;
}

.grid_1 {width:8.163265%;} /* 80px / 980px = 0.08163265 = 8.163265% */
.grid_2 {width:18.367347%;} /* 180px / 980px = 0.18367347 = 18.367347% */
.grid_3 {width:28.571429%;} /* 280px / 980px = 0.28571429 = 28.571429% */
.grid_4 {width:38.77551%;} /* 380px / 980px = 0.3877551 = 38.77551% */
.grid_5 {width:48.979592%;} /* 480px / 980px = 0.48979592 = 48.979592% */
.grid_6 {width:59.183673%;} /* 580px / 980px = 0.59183673 = 59.183673% */
.grid_7 {width:69.387755%;} /* 680px / 980px = 0.69387755 = 69.387755% */
.grid_8 {width:79.591837%;} /* 780px / 980px = 0.79591837 = 79.591837% */
.grid_9 {width:89.795918%;} /* 880px / 980px = 0.89795918 = 89.795918% */
.grid_10 {width:100%;} /* 980px / 980px = 1 = 100%  */



.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10 {
    margin: 0 1.020408% 1em 1.020408%;
    float: left;
    display: block;
}

.first{margin-left:0;}
.last{margin-right:0;}
.nobott{margin-bottom:0;}
.floatright{float:right;}
.floatleft{float:left;}

.test{
    background-color:grey;
    height:3em;
}

/* ==========================================================================
   General Styles
   ========================================================================== */

body{
    background:rgb(252,252,252);
    font-family:Raleway, Arial, Helvetica, sans-serif;
}

/* ==========================================================================
   Header
   ========================================================================== */

#home{
    height:3em;
    margin:2em 0 3em 0;
}

.logohome{
    background:url(../img/logo.jpg) no-repeat;
    display:block;
    height:73px;
    width:287px;
    float:left;
}

a.backhome {
    text-decoration:none;
    color:rgb(113,113,113);
    font-size:0.9em;
    margin-top:1em;
}

a.backhome:hover{
    text-decoration:underline;
    color:rgb(32,130,200);
}



/* ==========================================================================
   Form Styles
   ========================================================================== */

.login, .pass-reset{
    background:rgb(255,255,255) no-repeat;
    padding:1em;
    border:1px solid rgb(234,234,234);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow:  0px 0px 4px 1px rgb(242,242,242);
    box-shadow:  0px 0px 4px 1px rgb(242,242,242);
}

.login legend{
    font-size:1.6em;
    font-weight:normal;
    padding:0;
    margin:0 0 1em 0;
    color: rgb(102,102,102);
}

.pass-reset legend{
    font-size:1.6em;
    font-weight:normal;
    padding:0;
    margin:0 0 0.5em 0;
    color: rgb(102,102,102);
}

.login p{
    margin:0;
    padding:0;
    color: rgb(91,90,88);
    font-size: 1em;
    font-weight: normal;
}

.pass-reset p{
    margin:0 0 0.8em 0;
    padding:0;
    color: rgb(91,90,88);
    font-size: 1em;
    font-weight: normal;
}

p.note{
    font-style:italic;
    margin:0 0 1em 0;
}

fieldset{
    margin:0 auto;
    width:100%;
}

label{
    float:left;
    width:95%;
    color:rgb(131,131,131);
    margin-bottom:0.4em;
    display:block;
}

form span{
    width:100%;
    display:block;
}

input[name=username], input[name=client_id], input[name=password], input[name=email]{
    float:left;
    width:95%;
    height:2em;
    margin-bottom:1em;
    padding:0 10px;
    border:1px solid rgb(213,213,213);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    color: rgb(195,194,194);
}

input[name=username]:focus, input[name=client_id]:focus, input[name=password]:focus{
    border:1px solid rgb(32,130,200);
    background-color:rgb(250,252,254);
    color: rgb(131,131,131);
}

input[name=submit], input[name=reset-password]{
    float:left;
    width:99%;
    background-color:rgb(11,107,221);
    color:rgb(255,255,255);
    font-weight:bold;
    margin:0 auto 1em auto;
    padding:1em 0;
    border:1px solid rgb(11,107,221);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

input[name=submit]:active, input[name=reset-password]:active{
    background-color:rgb(36,125,189);
    -webkit-box-shadow: inset 0px 0px 2px 1px rgb(20,78,119);
    box-shadow: inset 0px 0px 2px 1px rgb(20,78,119);
}

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

#bottomlinks{
    margin:0 auto;
    width:74%;
}

#bottomlinks a{
    float:left;
    font-size: 0.8em;
    color:rgb(131,131,131);
    text-decoration:none;
}

#bottomlinks a:hover{
    color:rgb(32,130,200);
    text-decoration:underline;
    cursor:pointer;
}

#bottomlinks p{
    float:left;
    padding:0 0.5em;
    margin:0;
    font-size: 0.8em;
    color:rgb(195,194,194);
    text-decoration:none;
}

/* ==========================================================================
   Info Pods
   ========================================================================== */

.info-pod{
    border-bottom:1px solid rgb(213,213,213);
    padding-bottom:1em;
}

.info-pod:last-child{
    border:none;
}

.info-pod h1{
    font-size:1.4em;
    font-weight:normal;
    padding:0;
    margin:1em 0 1em 0;
    color: rgb(102,102,102);
}

.info-pod p{
    font-size:1em;
    color:rgb(113,113,113);
}

.info-pod a{
    color:rgb(32,130,200);
    text-decoration:none;
}

.info-pod a:hover{
    text-decoration:underline;
}

/* ==========================================================================
   Errors
   ========================================================================== */

.incorrect-input{
    background: none no-repeat scroll 0 0 #F1BEBE;
    border: 2px dashed rgb(246,53,53);
    border-radius: 5px 5px 5px 5px;
    padding:0.8em;
    margin:0 0 1em 0;


    display:none; /*This hides the error, it will need to turn to "display:block" when it is turned on via the server info*/
}

.incorrect-input h2{
    margin:0 0 0.3em 0;
    padding:0;
    color: rgb(91,90,88);
    font-size: 1.2em;
    font-weight: normal;
}

.incorrect-input p{
    margin:0;
    padding:0;
    color: rgb(91,90,88);
    font-size: 0.8em;
    font-weight: normal;
}

.incorrect-input a{
    color: rgb(91,90,88);
    font-size: 1em;
    font-weight: normal;
    text-decoration: underline;
}

.incorrect-input a:hover{
    color:rgb(0,0,0);
    text-decoration:none;
}

.error_message p{
    margin:0 0 0.5em 0;
    padding:0;
    color: rgb(246,53,53);
    font-size: 0.8em;
    font-weight: normal;
    display:block;
}

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

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

/* ==========================================================================
    Media Queries
   ========================================================================== */


/* Larger ----------- */
@media screen and (max-width:1000px) {

    #bottomlinks{
        width:100%;
    }

    #bottomlinks a{
        width:100%;
        padding:0.25em 0;
    }

    #bottomlinks p {
        display:none;
    }

}

/* Smaller ----------- */
@media screen and (max-width : 650px) {

    .grid_1,
    .grid_2,
    .grid_3,
    .grid_4,
    .grid_5,
    .grid_6,
    .grid_7,
    .grid_8,
    .grid_9,
    .grid_10,
    .grid_11,
    .grid_12 {
        width:100%;
    }

    .floatright{
        float:left;
    }

    .backhome{
        margin-top:1em;
    }

}



@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-resolution: 144dpi) {
    /* 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;
    }
}
