/*
    Codefocus.ca style
    
*/
body, div, img, p, h1, h2, h3, h4, h5, h6, input, label, table, tr, th, td {
    margin: 0px;
    padding: 0px;
    border: none;
    vertical-align: middle;
    text-align: left;
}
body {
    text-align: center;
    background-color: #18407A;
    background-image: url(/gfx/bg-gradient.png);
    background-repeat: repeat-x;
    background-attachment: fixed;
    
    
    font-size: 10.5pt;
    text-align: center;
}
a {
    color: #A36700;
    color: #004BB8;
    color: #EB9300;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/*
    Typography
*/
body, div, p, h1, h2, h3, h4, h5, h6, input, textarea, ul, li {
    font-family: "Tahoma", "Arial Unicode MS", "Arial", "Helvetica", "Lucida Sans Unicode";
    color: #383838;
    color: #99B6E0;
}
h1, h2, h3, h4, h5, h6, table.domains {
    margin: 0px 0px 10px 0px;
    font-weight: normal;
}
p {
    margin: 0px 0px 20px 0px;
}

/*
    Full page wrapper prevents h-scrolling
*/
#wrapper {
    width: 100%;
    overflow: hidden;
}

/*
    960 width
*/
.top {
    width: 960px;
    margin: 0px auto 0px auto;
}

/*
    All content areas
*/
.fg {
    padding: 20px 20px 10px 20px;
    margin-bottom: 10px;
}

/*
    Header
*/
#head {
    margin-top: 20px;
    overflow: hidden;
}
#logo {
    margin-left: 20px;
    padding: 20px 0px 40px 0px;
    width: 432px;   /* 424 + period */
    letter-spacing: 0.1em;
}
#logo span.tagline {
    float: right;
    color: #FFF;
    text-shadow: 1px 1px 0px #1d3252;
}

/*
    Navigation
*/
#nav {
    margin: 5px 0px 10px 20px;
}
#nav a {
    float: left;
    margin-right: 20px;
    padding: 5px 10px 5px 10px;
    text-transform: uppercase;
    font-size: 1.1em;
    font-weight: normal;
    height: 20px;
    line-height: 20px;
    color: #FFFFFF;
    text-decoration: none;
}
#nav a:hover {
    color: #EB9300;
    text-decoration: none;
    
}
#nav a.active {
    background-color: #EB9300;
    color: #FFF !important;
    text-decoration: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-shadow: 0px 1px 0px #A36700;
}





/*
    Content
*/
#content {
    margin: 10px auto 0px auto;
    padding-bottom: 10px;
    overflow: visible;
}
h1 {
    color: #5C9DFF;
    font-size: 1.7em;
    font-size: 2.2em;
    text-shadow: 0px 1px 1px #082E66;
}
h2 {
    color: #FFFFFF;
    font-size: 1.2em;
    font-size: 1.6em;
}
h3,
table.domains th {
    color: #FFFFFF;
    font-size: 1.1em;
    font-weight: normal;
}
h2 a {
    color: #FFFFFF;
}
h2 em,
h3 em {
    color: #EB9300;
    font-style: normal;
}



ul, ol {
    list-style: none;
    margin: 0px;
    padding: 0px 0px 0px 0px;
}

img.left {
    margin: 0px 20px 20px 0px;
    float: left;
    clear: left;
}
img.right {
    margin: 0px 0px 20px 20px;
    float: right;
    clear: right;
}
div.right {
    float: right;
}
p.right {
    text-align: right;
}
p.center {
    text-align: center;
}

code {
    color: #FFFFFF;
    font-weight: bold;
}
hr {
    height: 1px;
    line-height: 1px;
    border: none;
    border-bottom: 1px dotted #264675;
    margin: 20px 0px 20px 0px;
}

table.domains {
    width: 100%;
}
table.domains tr:nth-child(even) {
    background-color: #112f5b;
}



/*
    Blog
*/
div.blog-date {
    float: left;
    text-align: justify;
    width: 50px;
    margin: 0px 10px 0px 0px;
    overflow: hidden;
}
div.blog-date * {
    text-align: center;
}
div.blog-date div.month {
    background-color: #EB9300;
    color: #FFFFFF;
    text-shadow: 0px 1px 0px #A36700;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    text-transform: uppercase;
    font-size: 1em;
}
div.blog-date div.day {
    background-color: #FFFFFF;
    color: #5C9DFF;
    font-size: 2.5em;
    line-height: 0.9em;
}
div.blog-date div.year {
    background-color: #FFFFFF;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    color: #5C9DFF;
    font-size: 1em;
}



/*
    Partial boxes
*/
div.content-left {
    width: 538px;
    float: left;
    clear: left;    
}
div.content-right {
    width: 328px;
    float: right;
    clear: right;
    border-left: 1px dotted #264675;
    background-image: url(/gfx/body-bg.png);
    background-position: right top;
    background-repeat: no-repeat;
}
img.content-right {
    width: 368px;
    float: right;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
    -webkit-box-shadow: #6a8cba 0px 5px 5px;
    -moz-box-shadow: #6a8cba 0px 5px 5px;
    box-shadow: #6a8cba 0px 5px 5px;
    clear: right;
}

/*
    Forms
*/
label {
    display: block;
    clear: both;
    color: #FFF;
    color: #EB9300;
    font-size: 1.1em;
    margin-bottom: 0px;
}
input[type=text],
textarea {
    display: block;
    width: 280px;
    clear: both;
    font-size: 1em;
    color: #18407A;
    padding: 5px;
    background-color: #FFFFFF;
    border: 1px solid #AAAAAA;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
textarea {
    width: 420px;
    height: 200px;
}
input[type=text]:focus,
textarea:focus {
    color: #0F2A52;
    -webkit-box-shadow: #FFF 0px 0px 10px;
    -moz-box-shadow: #FFF 0px 0px 10px;
    box-shadow: #FFF 0px 0px 10px;
}
input[type=submit] {
    font-size: 1em;
    padding: 5px 20px 5px 20px;
    background-color: #EB9300;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    color: #FFF;
    text-shadow: 0px 1px 0px #000;
}
input[type=submit]:hover,
input[type=submit]:focus {
    -webkit-box-shadow: #FFF 0px 0px 10px;
    -moz-box-shadow: #FFF 0px 0px 10px;
    box-shadow: #FFF 0px 0px 10px;
    color: #FFF;
}


/*
    Errors
*/
ul.error {
    background-color: #FFAAAA;
    border: 1px solid #CC2222;
    padding: 10px;
    list-style: none;
}
ul.error li {
    list-style: none;
    color: #662222;
}



/*
    Selected text
*/
*::-moz-selection {
    background-color: #0B3C85;
    color: #FFF;
    
}


/*
    Portfolio scroller
*/
#portfolio-preview {
    width: 328px;
    overflow: hidden;
}
.blockfader-loading {
    background-image: url(/gfx/ajax-loader.gif);
    background-position: center center;
    background-repeat: no-repeat;
    height: 200px;
}

/*
    Footer
*/
#foot {
    font-size: 0.8em;
    background-color: #0f2a52;
    min-height: 200px;
}
#foot p {
    color: #8BA5CC;
}
#foot a {
    color: #EB9300;
    text-decoration: none;
}



/*
    Screen sizes
    Default width: 960px;
*/
@media screen and (max-width: 1000px) {
/*  800 x 600 and iPhone horizontal
*/
    div.top { width: 720px; }
    div.content-left {
        float: none;
        clear: both;
        width: auto;
    }
    div.content-right { display: none; }
}
@media screen and (max-width: 740px) {
/*  iPhone vertical */
    div.top { width: 620px; }
    div.content-left {
        float: none;
        clear: both;
        width: auto;
    }
    div.content-right { display: none; }
}
@media screen and (min-width: 1200px) {
/*  High resolution screens */
    div.top { width: 1100px; }
    div.content-left { width: 678px; }
    div.content-right { width: 328px; }
}
