/****************************************************
*
*	Company: Pete Randall
*
*	Stylesheet: Main Application stylesheet
*
*	Date Created: 22/06/2010
*
****************************************************/
html {
    background-color: #dcdcdc;
}

body {
    font-family: Georgia, Times, Serif;
    color: #333;
}

/* HTML5 elements */
header, 
section,
aside,
article,
footer {
    display: block;
}

/****************************************************
* TYPOGRAPHY STYLES 

FOR PIXELS (PX)	DECLARE THIS PERCENT (%)
10	 77
11	 85
12	 93
13	 100
14	 108
15	 116
16	 123.1
17	 131
18	 138.5
19	 146.5
20	 153.9
21	 161.6
22	 167
23	 174
24	 182
25	 189
26	 197

****************************************************/
hgroup p {
    font-size: 131%;
    font-style: italic;
    line-height: 22px;
    margin-bottom: 5px;
}
h1 {
    border-bottom: 1px dashed #999;
    font-size: 174%;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
h2 {
    font-size: 123.1%;
    line-height: 22px;
    text-decoration: underline;
}
h3 {
    font-style: italic;
    font-size: 100%;
}
h4 {
    font-weight: bold;
}

p {
    font-size: 93%;
    line-height: 18px;
}

a {
    color: #E65900;
    outline: none;
    text-decoration: none;
}

a:hover {
    color: #E65900;
    text-decoration: underline;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

/* Content
-------------------*/
#main {
    margin: 20px;
    width: 590px;
}

article h3 {
    font-weight: bold;
    font-style: normal;
}

section.content-item {
    font-style: normal;
    font-family: helvetica, arial, sans-serif;
}

section.content-item h2 {
    border-top: 1px dashed #999;
    margin: 10px 0;
    padding-top: 10px;
}

section.content-item article,
#prize {
    border-left: 4px solid #BBB;
    margin: 0 0 20px 0;
    padding: 5px 10px;
    -moz-transition: background-color 0.3s linear;
    -webkit-transition: background-color 0.3s linear;
    -transition: background-color 0.3s linear;
}

section.content-item article:hover,
#prize:hover {
    background-color: #ccc;
    border-left-color: #E65900;
}

/* IE6 */
section#boo-ie6 {
    background-color: #F59996;
    margin-bottom: 20px;
    padding: 15px 15px 10px 15px;
}
section#boo-ie6 p {
    font-size: 108%;
    margin-bottom: 5px;
}

/* Employment */
section#employment article p.date {
    font-style: italic;
    line-height: 16px;
    margin-top: 5px;
}

section#employment article span {
    font-weight: normal;
}

/* About me */
section#about-me {
    border-top: 1px dashed #999;
    margin: 10px 0;
    padding-top: 10px;
}

section#about-me p {
    font-size: 123.1%;
    font-style: italic;
    line-height: 22px;
}

/* Work */
section#work article p {
    margin-bottom: 10px;
}

section#work article h3 {
    font-weight: normal;
    margin-bottom: 5px;
}

section#work article h3 a {
    font-weight: bold;
}

section#work ul {
    list-style: none;
}

section#work h4 {
    font-size: 93%;
    font-weight: bold;
    margin-bottom: 5px;
}

section#work ul li {
    background-color: #fff;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    color: #333;
    display: inline-block;
    font-size: 93%;
    margin-right: 5px;
    opacity: 0.8;
    padding: 2px 3px 3px 5px;
    text-align: center;
}

section#work ul li:hover {
    background-color: #eee;
}

section#work ul li a {
    color: #333;
    font-size: 93%;
    padding-left: 0;
}

section#work ul li a:hover {
    opacity: 1;
}

/* Education */
section#education p#prize {
    margin-top: 5px;
}

/* Contact information */
aside#contact-info {
    border-top: 1px dashed #999;
    margin-top: 10px;
    padding-top: 10px;
}
aside#contact-info p {
    font-size: 100%;
    margin-bottom: 10px;
}

/* Social media list
-------------------*/
ul {
    list-style-type: none;
    margin-bottom: 0px;
}

ul li {
    margin-bottom: 5px;
}

ul li a {
    padding: 3px 3px 3px 25px;
    font-size: 85%;
}

ul li span {
    font-size: 85%;
}

ul li a.icon_linkedin {
    background: url('../../site_media/images/linkedin.png') no-repeat left 50%;
}
ul li a.icon_twitter {
    background: url('../../site_media/images/twitter.png') no-repeat left 50%;
}
ul li strong.icon_email {
    background: url('../../site_media/images/email.png') no-repeat left 50%;
    padding: 3px 3px 3px 25px;
    font-size: 85%;
    font-weight: bold;
}

/* Footer
-----------------*/
footer {
    font-family: helvetica, arial, sans-serif;
    margin-top: 30px;
}
footer p {
    font-size: 85%;
    font-style: normal;
    float: left;
    display: block;
}

footer p a {
    color: #E65900;
    outline: none;
    text-decoration: none;
}

footer p#creds {
    float: right;
    text-align: right;
}

/* Mobile devices (iphone 3G / 3GS)
--------------------*/
@media all and (max-device-width: 320px) {
    section#main {
        margin: 0 10px;
        width: 300px;
    }
    section.content-item article,
    #prize {
        border-left: none;
        margin: 0 0 20px 0;
        padding: 5px 0;
    }
    section.content-item article:hover,
    #prize:hover {
        background-color: transparent;
    }
    footer p {
        float: none;
    }
    footer p#creds {
        float: none;
        padding-top: 10px;
        text-align: left;
    }
}

/****************************************************
* HACKS AND FILTERS
****************************************************/
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}