body, html {
    height: 100%;
}

body {
    padding: 0;
    color: #333132;
    font-size: 13px;
    font-family: "source-sans-pro", Helvetica, Arial, sans-serif;
    font-weight: 400;
    background: #FEFEFE;
}
body.transition {
    /*opacity: 0;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    transition: opacity 0.5s;
    */
}

p {
    line-height: 19px;
    letter-spacing: 0.05em;
}

header {
    position: fixed;
    top:0;
    left:0;
    right:0;
    z-index: 1000;
}

header .links {
    list-style: none;
    padding: 0;
    margin: 0;
    float: right;
    padding-top: 25px;
    padding-right: 30px;
    
}

header h1 {
    width:110px;
    margin: 35px auto 0;
    
}

header #logo {
    display: block;
    width: 110px;
    height: 110px;
    background: url("/static/img/pics/logo_black.png") top left no-repeat;
    background-size: 110px auto;
}

header #logo.active {
    height: 160px;
}

#the-factory #logo.active {
    background-image: url("/static/img/pics/logo_pink.png");
}

#the-company #logo.active {
    background-image: url("/static/img/pics/logo_blue.png");
}

#the-work #logo.active {
    background-image: url("/static/img/pics/logo_orange.png");
}

#the-company h2#side {
    background: #60b1c6;
}

#the-factory h2#side {
    background: #ef4171;
}

#home #logo.active.left {
    background-image: url("/static/img/pics/logo_blue.png");
}

#home #logo.active.right {
    background-image: url("/static/img/pics/logo_pink.png");
}

#home #logo.active.bottom {
    background-image: url("/static/img/pics/logo_orange.png");
}

header #logo:hover {
    height: 160px;
}

header .links li {
    float: left;
    margin-left: 20px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 30px;
    
}

h2 span {
    padding-bottom: 5px;
    border-bottom: 2px solid #333132;
}

a:link, a:visited, a:active {
    color: #f26531;
}

a:hover {
    color: #ff632a;
}

nav {
    margin: 0;
    padding: 0;
    z-index: 1001;
}

nav a:link, nav a:visited, nav a:active {
    color:#333132;
    font-size: 15px;
    font-family: "source-sans-pro", Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
}

nav a:hover {
    text-decoration: none;
}
nav a:hover span {
    color: #fff;
    background: #f26531;
}

nav a {
    display: block;
}

nav a span {
    display: block;
    padding: 4px;
    background: #fefefe;
}

nav#left {
    
    position: fixed;
    left:-20px;
    top:47%;
    width: 120px;
    text-align: center;
    
}

nav#left a {
    background: url("/static/img/icons/chevron_left.png") 40px 10px no-repeat;
    background-size: auto 20px;
}

nav#left a .inner {
    
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    -moz-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg); 
    padding-top: 15px;
    
}

nav#left a:hover {
    background: url("/static/img/icons/chevron_left_active.png") 40px 10px no-repeat;
    background-size: auto 20px;
}

nav#left a:hover span, nav#left a.active span {
    background: #60b1c6;
}


nav#right {
    
    position: fixed;
    right:-10px;
    top:47%;
    width: 120px;
    text-align: center;
}

nav#right a {
    
    background: url("/static/img/icons/chevron_right.png") 70px 10px no-repeat;
    background-size: auto 20px;
}

nav#right a .inner {
    padding-top: 15px;
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}


nav#right a:hover {
    
    background: url("/static/img/icons/chevron_right_active.png") 70px 10px no-repeat;
    background-size: auto 20px;
}

nav#right a:hover span, nav#right a.active span {
    background: #ef4171;
}


footer {
    bottom:0;
    height: 62px;
    background: #fefefe;
    left: 0;
    right: 0;
    position: fixed;
    z-index: 1001;
}

nav#bottom {
    position: fixed;
    bottom:20px;
    width: 12%;
    text-align: center;
    left:44%;
    z-index: 1002;
}

nav#bottom a {
    padding-bottom: 15px;
    background: url("/static/img/icons/chevron_down.png") center bottom no-repeat;
    background-size: 20px auto;
}

nav#bottom a:hover {    
    background: url("/static/img/icons/chevron_down_active.png") center bottom no-repeat;
    background-size: 20px auto;
}

nav#left a.active, nav#right a.active, nav#bottom a.active {
    background: none;
}

nav#left a:hover .inner, nav#right a:hover .inner {
    padding-top: 16px;
}

nav#left a:hover span, nav#right a:hover span {
    position: relative;
    top:-1px;
}

nav a.active span {
    color: #fff;
    background: #f26531;
}

nav#back {
    position: fixed;
    right:16px;
    top:16px;
    display: none;
}

nav#back a {
    text-indent: -9000px;
    outline: none;
    height: 38px;
    width: 28px;
    background: url("/static/img/icons/logo_back.png") 0 0 no-repeat;
    background-size: 28px auto;
}

nav#back a:hover {
    background: url("/static/img/icons/logo_back.png") 0 0 no-repeat;
    background-size: 28px auto;
}

#home nav#back {
    display: none;
}

#info {
    position: fixed;
    bottom:20px;
    left: 20px;
}

section#content {
    padding-top: 280px;
    padding-bottom: 65px;
}

.box {
    border:1px solid #333132;
    padding: 4px 6px;
    font-family: "minion-pro";
    font-weight: 600;
    font-style: italic;
    width: 207px;
    font-size: 12px;
    z-index: 1200;
    background: #fefefe;
}

.box dl {
    margin: 0;
}

.box dt {
    float: left;
    width: 100px;
    clear: left;
}
.box dd {
    display: block;
    
}

.box a:link, .box a:active, .box a:visited {
    color: #333132;
}

#info .box {
    position: absolute;
    top:-80px;
    z-index: 150000;
}


#phone.box ,#mail.box {
    margin-left: -160px;
    margin-top: 10px;
    position: fixed;
   
}

.feature-image {
    margin-bottom: 30px;
    cursor: pointer;
    position: relative;
}

.row.content {
    margin-bottom: 30px;
}

.image-caption {
    width: 300px;
    max-width: 70%;
    background: rgba(255,255,255,0.8);
    font-family: "minion-pro";
    font-weight: 600;
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.02em;
    float:right;
    margin-top: 20px;
    margin-left: 20px;
    height: 60px;
    padding: 10px 15px;
    display: none;
    opacity: 0;
    -moz-transition: opacity 0.2s, box-shadow 0.2s;
    -webkit-transition: opacity 0.2s, box-shadow 0.2s;
    transition: opacity 0.2s, box-shadow 0.2s;
    z-index: 100;
    position: absolute;
}

.feature-image.front {
    /* box-shadow: rgba(0,0,0,0.2) 0 0 15px; */
}

.feature-image.front:hover .image-caption {
    display: block;
    opacity: 1;
    
}


#home #content {
    position: relative;
    height: 700px;
}

#home #feature1 {
    width: 500px;
    position: absolute;
    margin-top: 0;
    margin-left: 0;
    z-index: 900;
}

#home #feature2 {
    width: 480px;
    position: absolute;
    margin-top: 40px;
    margin-left: 220px;
    z-index: 902;
}

#home #feature3 {
    width: 300px;
    position: absolute;
    margin-top: 100px;
    margin-left: 270px;
    z-index: 903;
}

#home #feature4  {
    width: 540px;
    position: absolute;
    margin-top: 140px;
    margin-left: 80px;
    z-index: 901;
}

#home .feature {
    cursor: pointer;
}
#home .feature:hover {
    z-index: 909 !important;
}

.column-left {
    padding-right: 28px;
}

.column-right {
    padding-left: 28px;
}

#the-company .content a:link, #the-company .content a:visited, #the-company .content a:active {
    background: #60b1c6;
    color: #fefefe;
}
/* sigh */

#the-company nav#right a:hover {
    background: url("/static/img/icons/chevron_right_active_blue.png") 70px 10px no-repeat;
    background-size: auto 20px;
}

#the-company nav#right a:hover span {
    background: #60b1c6;
}

#the-company nav#bottom a:hover {
    background: url("/static/img/icons/chevron_down_active_blue.png") center bottom no-repeat;
    background-size: 20px auto;
}

#the-company nav#bottom a:hover span {
    background: #60b1c6;
}

#the-factory .content a:link, #the-factory .content a:visited, #the-factory .content a:active {
    background: #ef4171;
    color: #fefefe;
}

#the-factory nav#left a:hover {
    background: url("/static/img/icons/chevron_left_active_pink.png") 30px 10px no-repeat;
    background-size: auto 20px;
}

#the-factory nav#left a:hover span {
    background: #ef4171;
}

#the-factory nav#bottom a:hover {
    background: url("/static/img/icons/chevron_down_active_pink.png") center bottom no-repeat;
    background-size: 20px auto;
}

#the-factory nav#bottom a:hover span {
    background: #ef4171;
}

#the-work .content a:link, #the-work .content a:visited, #the-work .content a:active {
    background: #f26631;
    color: #fefefe;
}


#the-work nav#left a:hover {
    background: url("/static/img/icons/chevron_left_active_orange.png") 30px 10px no-repeat;
    background-size: auto 20px;
}

#the-work nav#left a:hover span {
    background: #f26531;
}

#the-work nav#right a:hover {
    background: url("/static/img/icons/chevron_right_active_orange.png") 70px 10px no-repeat;
    background-size: auto 20px;
}

#the-work nav#right a:hover span {
    background: #f26531;
}

h2#side {
    display: none;
    background: 
    position: fixed;
    left:-30px;
    bottom: 20px;
    width: 110px;
    text-align: center;    
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    -moz-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    transform: rotate(-90deg); 
    color: #fff;
    background: #f26531;
    font-size: 15px;
    font-family: "source-sans-pro", Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    position: fixed;
    
}

#tel {
    display: none;
}

#non-tel {
    display: inline;
}

.imagegroup {
    margin-bottom: 30px;
}

@media (max-width:1199px){
    #home #content {
        height: 600px;
    }
    
    #home #feature1 {
        width: 400px;
        position: absolute;
        margin-top: 0;
        margin-left: 0;
        z-index: 900;
    }
    
    #home #feature2 {
        width: 380px;
        position: absolute;
        margin-top: 40px;
        margin-left: 220px;
        z-index: 902;
    }
    
    #home #feature3 {
        width: 250px;
        position: absolute;
        margin-top: 100px;
        margin-left: 270px;
        z-index: 903;
    }
    
    #home #feature4  {
        width: 440px;
        position: absolute;
        margin-top: 140px;
        margin-left: 80px;
        z-index: 901;
    }
}


@media (max-height:900px){
    #home #content {
        padding-top: 250px;
        height: 500px;
    }
    
    #home #feature1 {
        width: 300px;
        position: absolute;
        margin-top: 0;
        margin-left: 0;
        z-index: 900;
    }
    
    #home #feature2 {
        width: 300px;
        position: absolute;
        margin-top: 40px;
        margin-left: 220px;
        z-index: 902;
    }
    
    #home #feature3 {
        width: 180px;
        position: absolute;
        margin-top: 100px;
        margin-left: 270px;
        z-index: 903;
    }
    
    #home #feature4  {
        width: 300px;
        position: absolute;
        margin-top: 140px;
        margin-left: 80px;
        z-index: 901;
    }
    
    #home #feature-wrapper {
        width:476px;
        margin: 0 auto;
    }
}

@media (max-width:979px){
    #home #content {
        padding-top: 250px;
        height: 500px;
    }
    
    #home #feature1 {
        width: 300px;
        position: absolute;
        margin-top: 0;
        margin-left: 0;
        z-index: 900;
    }
    
    #home #feature2 {
        width: 300px;
        position: absolute;
        margin-top: 40px;
        margin-left: 220px;
        z-index: 902;
    }
    
    #home #feature3 {
        width: 180px;
        position: absolute;
        margin-top: 100px;
        margin-left: 270px;
        z-index: 903;
    }
    
    #home #feature4  {
        width: 300px;
        position: absolute;
        margin-top: 140px;
        margin-left: 80px;
        z-index: 901;
    }
}

@media (max-width:979px){
    
    .feature-image {
        cursor: auto;
        display: block;
        position: static;
    }
    
    .feature-image .image-caption {
        display: block;
        position: inherit;
        margin-top: 10px;
        padding: 0;
        width: auto;
        opacity: 1;
        margin-bottom: 20px;
        margin-right: 0;
        margin-left: 0;
        height: auto;
        float: none;
    }
    .imagegroup {
        margin-bottom: 0;
    }
}

@media (max-width:767px){
    body {
        padding:0 20px;
    }
    
    header .links {
        margin: 0 auto;
        float: none;
        text-align: center;
    }
    
    header .links li {
        float: none;
        display: inline-block;
    }
    
    header .links li:first-child {
        margin-left: 0;        
        
    }
    
    #home header h1 {
        width: 100%;
        position: fixed;
        top: 35%;
        text-align: center;
        vertical-align: 
        
    }
    
    #home #content {
        display: none;
    }
    h2#side {
        display: block;
    }
    
    header .links {
        padding-right: 0;
    }
    
    nav#back {
        display: block;
    }
    
    section#content {
        padding-top: 40px;
        padding-bottom: 20px;
    }
    
    header, footer {
        display: none;
    }
    
    nav#left, nav#right {
        display: none;
    }
    
    #home nav#left, #home nav#right {
        display: block;
    }
    
    #home header, #home footer {
        display: block;
    }
    
    #home header h1 {
        width: 100%;
        position: fixed;
        top: 25%;
        text-align: center;
        
    }
    
    #home #logo {
        background-image: url("/static/img/pics/logo_blue.png");
        margin: 0 auto;
        height: 160px;
    }
    
    #phone.box {
        margin-left: -50px;
    }
    
    body {
        padding: 0 60px;
    
    }
    
    .feature-image {
        cursor: auto;
    }
    
    .feature-image .image-caption {
        display: block;
        position: inherit;
        margin-top: 10px;
        padding: 0;
        width: auto;
        opacity: 1;
        margin-bottom: 20px;
        height: auto;
        margin-right: 0;
        float: none;
    }
    
    nav#bottom {
        position: fixed;
        bottom:20px;
        width: 40% !important;
        text-align: center;
        left:30% !important;
    }
    
    .column-left {
        padding-right: 0;
        
    }
    
    .column-right {
        padding-left: 0;
    }
    
    #tel {
        display: inline;
    }
    
    #non-tel {
        display: none;
    }
}

@media (max-width:480px){
    
    header .links {
        padding-right: 0;
    }
    
    nav#back {
        display: block;
    }
    
    section#content {
        padding-top: 40px;
        padding-bottom: 20px;
    }
    
    header, footer {
        display: none;
    }
    
    nav#left, nav#right {
        display: none;
    }
    
    #home nav#left, #home nav#right {
        display: block;
    }
    
    #home header, #home footer {
        display: block;
    }
    
    #home header h1 {
        width: 100%;
        position: fixed;
        top: 25%;
        text-align: center;
        
    }
    #phone.box {
        z-index: 900000;
        margin-left: -60px; 
        text-align: left;
    }
    
    
    body {
        padding: 0 60px;
    
    }
    
    .feature-image {
        cursor: auto;
    }
    
    .feature-image .image-caption {
        display: block;
        position: inherit;
        margin-top: 10px;
        padding: 0;
        width: auto;
        opacity: 1;
        margin-bottom: 20px;
        height: auto;
    }
    
    nav#bottom {
        position: fixed;
        bottom:20px;
        width: 40%;
        text-align: center;
        left:30%;
    }
}