@import url("reset.css");
@import url("fonts.css");
@import url("carousel.css");

/* General */

body {
    background: url('../img/bg.png.notrans') repeat-x #191815;
    margin-bottom: 1em;
    
    font-family: Museo,Arial,sans-serif;
    font-weight: 100;
    font-size-adjust: 0.51;
    color: #d1a550;
    width: 900px;
    margin: 0 auto;
}
a {
    color: #d1a550;
    -moz-transition: background 0.25s; -webkit-transition: background 0.25s; -o-transition: background 0.25s;
}
a:hover {
    background-color: rgba(30, 30, 30, 0.7);
}
p {
    margin-bottom: 1em;
    font-weight: 100;
}

::-moz-selection { background: grey; }
::selection { background: grey; }

/* Top bar */
#topbar {
    position: relative;
    height: 50px;
    z-index: 1000;
}

#topbar h1 {
    float: left;
    color: white;
    font-size: 2.8em;
    background: url(../img/xuba_small.png) no-repeat;
    background-position: 0px center;
    height: 50px;
    width: 116px;
    margin-top: 0px;
}
#topbar h1 a {
    display: block;
    width: 100%;
    height: 100%;
}
#topbar h1 a:hover {
    background: none;
}
/* Change small XUBA logo on the bar depending on the page */
/* Home Page */
body#home #topbar h1 { background-position: 0px center; }
/* Uber Xuba */
body.Default #topbar h1 { background-position: -116px center; }
/* Gallery */
body.Gallery #topbar h1 { background-position: -116px center; }
/* Contact Us */
body#contact #topbar h1 { background-position: -116px center; }
body#contact #send {
    background: url(/addons/themes/xuba/img/send.png);
    height: 40px;
    width: 312px;
}
body#contact #send:hover {
    background: url(/addons/themes/xuba/img/send.png) 0px -40px;
}
#topbar > nav {
    position: absolute;
    top: 0px; right: 0px;
}
#topbar > nav > ul {
    position: relative;
    float: right;
    right: -25px;
    z-index: 100;
    
}
#topbar > nav > ul > li {
    float: left;
    text-align: center;
}
#topbar > nav a {
    display: block;
    line-height: 50px;
    font-size: 15px;
    width: 180px;
    font-weight: 300;
    color: #cdc6b8;
    text-transform: uppercase;
    text-decoration: none;
    -moz-transition: none; -webkit-transition: none; -o-transition: none;
}
#topbar > nav > ul > li:hover > a {
    background: #000000; /* old browsers */   
    background: -moz-linear-gradient(top, #000000 0%, #303030 100%); /* firefox */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#000000), color-stop(100%,#303030)); /* webkit */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000D9', endColorstr='#303030',GradientType=0 ); /* ie */
    color: white;
    
    -moz-box-shadow: inset 0 0 1em black; -webkit-box-shadow: inset 0 0 1em black; -o-box-shadow: inset 0 0 1em black; box-shadow: inset 0 0 1em black; 
}
#topbar > nav > ul > li > ul > li > a:hover {
    background: black !ie;
}

#topbar > nav > ul > li > ul {
    display: none;
}
#topbar > nav > ul > li:hover > ul {
    display: block;
}

#topbar > nav > ul > li > ul {
    -moz-box-shadow: 0px 0px 10px black; -webkit-box-shadow: 0px 0px 10px black; -o-box-shadow: 0px 0px 10px black; box-shadow: 0px 0px 10px black;
    z-index: 1000;
}
#topbar > nav > ul > li > ul > li a {
    background-color: rgb(100, 100, 100);
    background-color: rgba(100, 100, 100, 0.85);
    background-color: rgb(100, 100, 100) !ie;
    
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9646464,endColorstr=#D9646464);
    -moz-box-shadow: inset 0 0 0.5em #444; -webkit-box-shadow: inset 0 0 0.5em #444; -o-box-shadow: inset 0 0 0.5em #444; box-shadow: inset 0 0 0.5em #444; 
    -moz-transition: background .15s; -webkit-transition: background .15s; -o-transition: background .15s; transition: background .15s;
}
#topbar > nav > ul > li > ul > li a:hover {
    background-color: black;
    -moz-box-shadow: none; -webkit-box-shadow: none; -o-box-shadow: none; box-shadow: none; 
    -moz-transition: none; -webkit-transition: none; -o-transition: none; transition: none;
}

#topbar > nav {
    text-shadow: black 1px 1px 0.5px;
    height: 50px;
}
#flash h2 {
    display: block;
    width: 100%;
    height: 300px;
    font-size: 22em;

    background: url(../img/xuba_big.png) no-repeat;
    background-position: 0px 40px;
    text-align: center;
}
.replaced {
    display: none;
}

#gallery-thumbnail-container {
    clear: both;
    padding-top: 2em;
}

#home #main #gallery-thumbnail-container h4 {
    text-transform: none;
    margin: 0; padding: 0em 0em 0.75em 0em;
    font-size: 1em;
    
}
#gallery-thumbnail-container div {
    position: relative;
}
#gallery-thumbnail-container ul li a {
    -moz-box-shadow: inset 0 0 1em black; -webkit-box-shadow: inset 0 0 1em black; -o-box-shadow: inset 0 0 1em black; box-shadow: inset 0 0 1em black; 
    width: 100%;
    height: 100%;
}
.gallery-image-full figure img {
    width: 100%;
    height: 300px;
    position: absolute;
}
#prev, #next {
    position: absolute;
    width: 40px;
    height: 150px;
    outline: none;
    display: none;
    -moz-transition: all 0.25s; -webkit-transition: all 0.25s; -o-transition: all 0.25s; transition: all 0.25s;    
    background-repeat: no-repeat;
    background-position: center;
}

#prev { 
    left: -40px; top: 0px; 
    background-image: url('../img/prev.png');
    background-image: url('../img/prev.gif') !ie; 
}
#next { 
    right: -40px; top: 0px; 
    background-image: url('../img/next.png'); 
    background-image: url('../img/next.gif') !ie; 
}

/* GALLERY */

#main {
    margin: 3em 0; 
}
h1, h2, h3, h4, h5, h6 { font-weight: 500; margin-bottom: 1em; }
h3, h4, h5, h6 {
    margin-top: 2em;
    text-transform: uppercase;
}
#main h1 { font-size: 2em; }
#main h2 { font-size: 1.5em; }
#main h3 { font-size: 1em; }
#main h4 { font-size: 0.9em; }
#main h5 { font-size: 0.8em; }
#main h6 { font-size: 0.7em; }

#main ul {
    margin-bottom: 1em;
    margin-left: 1em;
}
#main ul li {
    list-style: disc;
}

.gallery-image-full, .case-studies-image-full {
    float: left;
    width: 50%;
    height: 320px;
}
.gallery-image-description, .case-studies {
    float: right;
    padding-left: 4.5%;
    width: 43.5%;
}
figure {
    position: relative;
    min-height: 320px; 
    max-height: 320px;
}
figure figcaption {
    font-size: smaller;
    margin-top: 0.5em;
}
#main .contact-left label {
    margin-right: 30px;
}
#main .contact-left input, #main .contact-left textarea {
    width: 300px;
    font-size: 105%;
    padding: 0.25em;
    margin: 0.5em 0;
    background-color: #FFF8DC;
    -moz-transition: background 0.2s; -webkit-transition: background 0.2s; -o-transition: background 0.2s; transition: background 0.2s;
    outline: none;
}
#main .contact-left input:focus, #main .contact-left textarea:focus {
    background-color: white;
    -moz-transition: none; -webkit-transition: none; -o-transition: none; transition: none;
}
#contact #submit {
    background: url(../img/send.png);
    height: 40px;
    width: 312px;
    -moz-transition: none; -webkit-transition: none; -o-transition: none; transition: none;
}
#contact #submit:active {
    background: url(../img/send.png) 0px -40px;
}
.button {
    background-color: #aaa;
    border: none;
}
.error-box {
    background: #552222;
    padding: 1em;
    margin: 2em 0;
}


/* IE Crutches */
body { behavior:url("csshover3.htc"); }

