/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

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

body {
    font-size: 0.95em;
    line-height: 1.4;
    background-color: #000;
    color: #fff;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

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

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
    font-family: 'sosaregular';
    src: url('../fonts/sosa-regular-webfont-webfont.eot');
    src: url('../fonts/sosa-regular-webfont-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/sosa-regular-webfont-webfont.woff') format('woff'),
         url('../fonts/sosa-regular-webfont-webfont.ttf') format('truetype'),
         url('../fonts/sosa-regular-webfont-webfont.svg#sosaregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

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

/* Typography */
a:link, a:visited {color: #fff; text-decoration: none;}
a:hover {color: #c4f28f;}

h1,h2,h3,h4,h5, h6 {margin: 0; line-height: 1em;}
h1 {font-size: 60px; opacity: 0.3;}
h2 {font-size: 120%; margin-bottom: 2px; opacity: 0.7; font-weight: 100;}

address {
    font-size: 90%;
}

.mobile {
    display: none;
}

/* Layout */
.container {
    width: 950px;
    height: 462px;
    margin: 20px auto 0 auto;
}

header {
    display: none;
}

section {
    position: relative;
    width: 950px;
    height: 462px;
    -webkit-border-radius: 40px 40px 0 0;
    border-radius: 40px 40px 0 0;
}

article {
    position: absolute;
    font-size: 14px;
    background: rgba(0,0,0,0.6);
    padding: 20px;
    top: 20px;
    left: 30px;
     -webkit-border-radius: 30px 30px 30px 30px;
    border-radius: 30px 30px 30px 30px;
}

/* Fade Transition */
#preloader {
    background: #000000;
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 999;
}

/* Home */
.home section {
    background: url('../img/cut-n-roll-painting-home.jpg');
}

/* About */
.about section {
    background: url('../img/cut-n-roll-painting-about.jpg');
}

.about article {
    width: 550px; 
}

.bbb {
    position: absolute;
    top: 70px;
    right: 155px;
}

/* Links */
.links section {
    background: url('../img/cut-n-roll-painting-links.jpg');
}

.links article ul {
    float: left;
    list-style-type: none;
    padding-left: 15px;
}

.links article li {
    margin-bottom: 15px;
    padding-left: 90px;
}

.bm {
    background-image: url('../img/Benjamin_Moore_Logo.png');
    background-size: 80px 41px;
    background-repeat: no-repeat;
    background-position: 0px 0px;
}

.inline h2 {
    display: inline;
    margin-right: 10px;
}

.highlight {
    font-size: 17px;
    font-weight: 100;
}

.highlight h2{
    color: #c4f28f;
    opacity: 1.0;
    font-size: 85%;
}

/* Contact */
.contact section {
    background: url('../img/cut-n-roll-painting-contact.jpg');
} 

.contact article {
    position: relative;
    width: 550px;
    height: 360px;
}

.contact img[alt="BBB"] {
    position: absolute;
    top: 100px;
    left: 50px;
}

.contact-info {
    position: absolute;
    bottom: 0px;
    left: 50px;
    list-style-type: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 6px;
}

.contact form {
    width: 400px;
    position: absolute;
    top: 100px;
    right: 40px;
}

.contact input, .contact textarea {
    margin: 8px 0;
}

.contact input[type="text"],
.contact input[type="email"],
textarea {
    width: 300px;

}

.contact textarea {
    height: 100px;
}

.contact label {
    text-align: right;
    display: inline-block;
    width: 70px;
    padding-right: 5px;
}

.contact input[type="submit"] {
  margin-left: 180px;  
   -webkit-box-shadow:rgba(0, 0, 0, 0.701961) 0 1px 2px 0;
  background-color:#FFFFFF;
  background-image:-webkit-gradient(linear, 0 0%, 0 100%, from(#FFFFFF), to(#BBBBBB));
  border:none;
  border-bottom-left-radius:5px;
  border-bottom-right-radius:5px;
  border-top-left-radius:5px;
  border-top-right-radius:5px;
  box-shadow:rgba(0, 0, 0, 0.701961) 0 1px 2px 0;
  color:#444444;
  cursor:pointer;
  font-weight:bold;
  line-height:1;
  padding:4px 15px;
}

/* Navigation */
nav {
    display: table;
    margin: -8px auto 0 auto;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin-left: -20px;
}

nav ul li {
    display: inline;
    padding-left: 38px;
    background-image: url(../img/divider.gif);
    background-repeat: no-repeat;
    background-position: 16px 0px; 
}

nav ul li:first-child {
    padding-left: 22px;
    background: none;
}

nav ul li a {
    text-decoration: none;
}

/* Footer */
footer {
    height: 100px;
    margin-top: -25px;
    background: url('../img/cut-n-roll-painting-footer.jpg');
    -webkit-border-radius: 0 0 40px 40px;
    border-radius: 0 0 40px 40px;
}


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

@media (max-width: 950px) {

    h1 {font-size: 40px;}

    .container {
        width: 640px;
        margin: 5px auto;
    }

    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    header {
        display: block;
        position: relative;
        height: 145px;
    }

    header a[title="Home Link"] {
        position: absolute;
        top: 5px;
        left: 10px;
        font-family: "sosaregular";
        font-size: 45px;
        opacity: 0.6; 
    }

    header a[title="Home Link"]:hover {
        opacity: 1.0; 
    }

    header img[alt="Cut N Roll Logo"] {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    section {
        position: static;
        width: 640px;
        height: auto;
    }

    article.page {
        position: static;
        width: 600px;
        margin: 0;
        background: none;
    }

    footer {
        text-align: right;
        margin: 0;
    }

    footer img {
        padding: 10px;
    }


    /* Home */

    .home header img[alt="Cut N Roll Logo"] {
        position: static;
        margin-left: -4px; /* Center the logo perfectly */
    }

    .home header {
        text-align: center;
        height: 90px;
    }

    .home section {
        width: 640px;
        height: 311px;
        background: url('../img/tablet-home.jpg');
        background-size: 640px 311px;
        background-repeat: no-repeat;
        -webkit-border-radius: 0;
        border-radius: 0;
    }

    nav {
        display: block;
        margin: 0;
        font-size: 18px;
        font-weight: 100;
    }

    nav ul {
        margin: 0;
        width: 100%;
    }

    nav ul li a:before {
        content: "›";
        font-family: "sosaregular";
        padding-right: 15px;
        opacity: 0.6;

    }

    nav ul li {
        display: block;
        background: none;
        padding: 0;
        border-top: 1px solid #4f4f4f;
         background-color: #3b3b3b; background-image: -webkit-gradient(linear, left top, left bottom, from(#3b3b3b), to(#000000));
         background-image: -webkit-linear-gradient(top, #3b3b3b, #000000);
         background-image: -moz-linear-gradient(top, #3b3b3b, #000000);
         background-image: -ms-linear-gradient(top, #3b3b3b, #000000);
         background-image: -o-linear-gradient(top, #3b3b3b, #000000);
         background-image: linear-gradient(to bottom, #3b3b3b, #000000);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#45484d, endColorstr=#000000);
        
    }

    nav ul li:hover {
        display: block;
        background: none;
        border-top: 1px solid #4f4f4f;
         background-color: #999999; background-image: -webkit-gradient(linear, left top, left bottom, from(#999999), to(#333333));
         background-image: -webkit-linear-gradient(top, #999999, #333333);
         background-image: -moz-linear-gradient(top, #999999, #333333);
         background-image: -ms-linear-gradient(top, #999999, #333333);
         background-image: -o-linear-gradient(top, #999999, #333333);
         background-image: linear-gradient(to bottom, #999999, #333333);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#45484d, endColorstr=#000000);
        
    }

    nav ul li a {
        padding: 0 0 0 18px;
        display: table-cell;
        vertical-align: middle;
        height: 55px;
        width: 640px;
        
    }

    nav ul li:first-child {
        display: none;       
    }

    footer {
        background: none;
    }

    /* About */
    .about header {
        background-image: url('../img/tablet-about.jpg');
        background-position: center bottom;
        background-size: 640px 73px;
        background-repeat: no-repeat;

    }

    .about section {
        background: none;
    }

    .about img[alt="Better Business Bureau"] {
        display: none;
    }

    /* Links */
    .links header {
        background-image: url('../img/tablet-links.jpg');
        background-position: center bottom;
        background-size: 640px 73px;
        background-repeat: no-repeat;

    }

    .links section {
        background: none;
    }

    /* Contact */
    .contact header {
        background-image: url('../img/tablet-contact.jpg');
        background-position: center bottom;
        background-size: 640px 73px;
        background-repeat: no-repeat;

    }

    .contact section {
        background: none;
    }

    .contact article {
        height: auto;
    }

    .contact img[alt="BBB"],
    .contact-info,
    .contact form {
        position: static;


    }

    .contact form {
        width: 100%;

    }

    .contact input[type="text"],
    .contact input[type="email"],
    .contact input[type="phone"],
    textarea {
        width: 80%;
        padding: 10px;

    }

    .contact textarea {
        height: 100px;
    }

    .contact input[type="submit"] {
        margin-left: 80px;
        padding: 10px 20px;
    }



} /* END TABLET */

@media (max-width: 640px) {

    .container {
        width: 320px;
    }

    header {
        height: 108.5px;
    }

    .about header,
    .links header,
    .contact header {
        background-size: 320px 36.5px;
    }    

    section {
        position: static;
        width: 320px;
        height: auto;
    }

    article.page {
        position: static;
        width: 300px;
        padding: 10px;
        margin: 0;
        background: none;
    }

    /* Home */

    .home section {
        width: 320px;
        height: 156px;
        background: url('../img/tablet-home.jpg');
        background-size: 320px 156px;
        background-repeat: no-repeat;
        -webkit-border-radius: 0;
        border-radius: 0;
    }

    /* Links */

    li.inline h2 {
        display: block;
    }

    .links li.highlight {
        margin-left: -60px;
    }

    /* Contact */
    .contact label {
        width: auto;
    }

    .contact input[type="text"],
    .contact input[type="email"],
    .contact input[type="phone"],
    textarea {
        width: 275px;
        padding: 10px;

    }

    .contact input[type="submit"] {
        margin-left: 0;

    }


} /* END MOBILE */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@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;
    }
}

