/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

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

html {
    font-size: 1em;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
    background: #f7f7f7;
}

/*
 * 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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

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

body {
    background-repeat:no-repeat;
    background-position: top center;
    background-size: 100% auto;
}

.morning {
    background-image: url(../img/01.png);
    background-color: #385723;
}

.late-morning {
    background-image: url(../img/02.png);
    background-color: #578737;
}

.afternoon {
    background-image: url(../img/03.png);
    background-color: #83CB53;    
}

.late-afternoon {
    background-image: url(../img/04.png);
    background-color: #456A2B;    
}


.evening {
    background-image: url(../img/05.png);
    background-color: #2D451C;    
}


.late-evening {
    background-image: url(../img/06.png);
    background-color: #1A081D;    
}

.night {
    background-image: url(../img/07.png);
    background-color: #07060B;    
}


.late-night {
    background-image: url(../img/08.png);
    background-color: #0B090E;    
}

.orange {
    color: #dd4814;
}

header {
    background: #dd4814;
    top:0;
position: fixed;
z-index: 2;
width: 100%;
margin-bottom: 20px;
display: inline-block;
border-top: 0;
box-shadow: 0 0 5px #000;
}

header li:active a, header li.active a {
    border-left: 1px solid rgb(167, 56, 18);
    background-color: rgb(77.497%,25.248%,7.013%);
} 

header h1 {
    font-size:24px;
    display: inline-block;
    margin: 5px 20px;
    padding: 0px;
    color: #fff;
    float: left;
}

header h1 .light {
    font-weight: lighter;
}

header ul {
    margin-top: 0;
    list-style: none;
    list-style-image: none;
}

header li {
    border-left: 1px solid rgb(77.497%,25.248%,7.013%);
float: left;
list-style-image: none;
margin: 0;
text-indent: 0;
vertical-align: bottom;

}

header li a {
    font-size: 14px;
border-left: 1px solid rgb(92.407%,35.843%,16.102%);
color: #fff;
display: block;
margin-bottom: 0;
padding: 12px 14px 14px;
position: relative;
text-align: center;
text-decoration: none;
-webkit-font-smoothing: subpixel-antialiased;
-moz-font-smoothing: subpixel-antialiased;
-o-font-smoothing: subpixel-antialiased;
font-smoothing: subpixel-antialiased;
}

#content {
    margin-top:45px;
    text-align: center;
    line-height: 150%;
    padding: 10px;
}

.page {
    padding: 40px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0px 1px 6px 0 RGBA(0,0,0,0.5);
}

.page a {
    text-decoration: none;
    color: #dd4814;
}

.backwards {
    unicode-bidi:bidi-override;
    direction: rtl;
}

#content h2 {
    text-align: left;
    padding: 5px;
    color: #fff;
    background-color: #dd4814;
    display: inline-block;
    float: left;
    margin-top: 0;
    margin-bottom: 40px;
}
.clear {
    clear:both;
}

#content ul, #content p, #content textarea {
    margin: auto;
    padding: 20px;
    background: #333;
    border-radius: 20px;
    color: #fff;
    -webkit-box-shadow:inset 2px 2px 0 2px rgba(0,0,0,0.5);
    box-shadow:inset 1px 1px 0 1px rgba(0,0,0,0.5);
}

#content li {
    margin-left:20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#about-me {
    margin-top:250px;
}

#about-me h2 {
    text-align: center;
}

.photo.circle
{
    border: 10px solid #fff;
    box-shadow: 0 0 5px #000;
background: url('../img/markdavison.png') no-repeat;
background-size: 208px 267px;
background-position: -8px -10px;
height: 200px;
width: 200px;
border-radius: 50%;
overflow: hidden;
margin: auto;  
    margin-top:-150px;
}

#employment .job, #projects .project{
    margin: 40px auto;
}

#employment h3 {
    position: relative;
}

#employment .company {
    position: absolute;
    left:0;
    font-size: 14px;
}

#employment .job-title {
    font-size: 18px;
    color: #dd4814;
}

#employment .dates {
 position: absolute;
    right:0;
    font-size: 14px;   
}


#skills ul {
    list-style: none;
}

#skills ul li {
    margin: 0;
}

.progress-bar
{
    height:18px;
    padding:1px;
    width:100%;
    border-radius: 10px;
    background: #666;
    text-align: left;
    border: 1px solid #fff;
}

.progress-bar span
{
    display: inline-block;
    height:18px;
    border-radius: 9px;
    background: #dd4814;
}

#contact-form {
    overflow: hidden;
}

#contact input, #contact textarea {
    margin: 10px 0;
}

#contact textarea
{
    width:90%;
    height:300px;

}

#contact input.email
{
    border-radius: 20px;
    height:40px;
    background-color: #333;
    color: #fff;
    width: 100%;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
        -webkit-box-shadow:inset 2px 2px 0 2px rgba(0,0,0,0.5);
    box-shadow:inset 2px 2px 0 2px rgba(0,0,0,0.5);
    padding: 0 20px;
}

#contact input[type=submit], .button
{
    border-radius: 20px;
    height:40px;
    background-color: #dd4814;
    color: #fff;
    width: 100%;
    cursor: pointer;
}

.null {
    display: none;
}








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

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

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

@media all and (min-width: 620px) {
    .page {
        width:520px;
    }
}

@media all and (max-width: 620px) {
    header ul {
        padding:0;
        border-top: 1px solid rgb(77.497%,25.248%,7.013%);
        text-align: center;
        margin-bottom: 0;
    }
    header li {
        float: none;
        display: inline-block;
    }

    header li:last-child {
        border-right:  1px solid rgb(77.497%,25.248%,7.013%);
    }

    header li a {
        font-size:12px;
        padding: 10px 12px 12px;
    }
    header h1 {
        font-size: 20px;
        display: block;
        float: none;
text-align: center;
margin: 5px 11px;
    }

    #employment .company {
  top:35px;
  }

#employment .job-title {
    font-size: 18px;
    color: #dd4814;
}

#employment .dates {
 top:35px; 
}

#employment h3 {
    height: 50px;
}
}
