#devderby #content-main { background: transparent; border-radius: 0; padding: 0 20px; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; }

/* @Links *********/
:link, :visited { color: #369; }
#devderby a.button { color: #fff; }

.block .demo-submit { margin-top: .5em; }
.block .demo-submit .button { color: #fff; text-shadow: none; font-size: 1.428em; background-color: #f9b43a; background-position: 0 .75em; text-shadow: 1px 1px 0 rgba(0,0,0,.2); -moz-box-shadow: 1px 1px 0 rgba(0,0,0,.25); -webkit-box-shadow: 1px 1px 0 rgba(0,0,0,.25); box-shadow: 1px 1px 0 rgba(0,0,0,.25); }
.block .demo-submit .button:hover, .block .demo-submit .button:focus, .block .demo-submit .button:active { background-color: #ffc35a; }

/* @Layout *********/
.devderby .main { width: 620px; float: left; margin-top: 210px; border-right: 4px dotted #746b60; }
.devderby .sub { padding-top: 265px; width: 315px; float: right; }

/* @Branding *********/
#devderby.landing { background: url("../img/devderby/bg-devderby.jpg") center 25px no-repeat; }
#devderby { background: url("../img/devderby/bg-devderby-plain.jpg") center 25px no-repeat; min-width: 960px; }
#devderby #content-main { padding-top: 0; }

#devderby #page-head { padding: 0; margin: 10px 0 0; overflow: hidden; }
#page-head #nav-derby { width: 800px; float: right; text-align: right; }
#page-head #nav-derby ul { margin: 1.5em 20px 0; }
#page-head #nav-derby li { display: inline-block; margin: 0 10px; list-style: none; background: none; padding: 0; font: bold 1em/1 "Carto Bold", sans-serif; text-transform: uppercase; letter-spacing: 2px; }
#nav-derby a { color: #454545; text-shadow: -1px -1px 0 rgba(255,255,255,.25); }
#nav-derby a:before, #nav-derby em:before { content: "\203A"; font-size: 1.4em; margin-right: 3px; }
#nav-derby em { font-style: normal; }

#derby-head { position: relative; padding: 20px 200px 20px 360px; min-height: 130px; }
.plain #derby-head { padding: 40px 40px 20px 360px; min-height: 80px; }
#derby-head .presents { width: 140px; position: absolute; left: 0; top: -20px; font-size: .785em; text-align: right; }
#derby-head .presents a { display: block; text-indent: -999em; text-align: left; width: 122px; height: 34px; overflow: hidden; background: url("../img/demos/logo-demostudio-tiny.png") no-repeat; }
#derby-head h1 { position: absolute; top: 25px; left: 0; width: 335px; height: 100px; background: url("../img/devderby/logo-devderby.png") no-repeat; text-indent: -999em; overflow: hidden; }
#derby-head h1 a { display: block; width: inherit; height: inherit; }
#derby-head h2 { margin: 0 0 .15em; font: 200 40px/.95 "Bebas Neue", "League Gothic", Haettenschweiler, "Arial Narrow", sans-serif; color: #000; text-shadow: 0 0 10px #fff; }
#derby-head h2 span { font-size: 32px; color: #666; margin-right: 10px; }
#derby-head .submit { width: 180px; height: 130px; position: absolute; right: 0; top: 15px; background: url("../img/devderby/btn-submit-demo.png") no-repeat; }
#derby-head .submit a { display: block; position: absolute; top: 6px; left: 14px; width: 90px; height: 90px; padding: 16px 25px 12px 20px; text-align: center; font: normal 34px/.85 "Bebas Neue", sans-serif; color: #fff; 
text-shadow: -1px -1px 0 rgba(0,0,0,.1);
-moz-transform: rotate(18deg);
-webkit-transform: rotate(18deg);
-o-transform: rotate(18deg);
transform: rotate(18deg);
}
#derby-head .submit a b { font-size: 26px; font-weight: normal; }
#derby-head .submit a:hover, #derby-head .submit a:focus, #derby-head .submit a:active { text-decoration: none; text-shadow: -1px -1px 0 rgba(0,0,0,.05), 0 0 5px #ff6; }

/* @Upcoming challenges *********/
#upcoming { border-bottom: 4px dotted #746b60; margin-top: -210px; padding: 0 20px 20px 0; }
#upcoming:after { content: "."; display: block; clear: both; height: 0; visibility: hidden; }
#upcoming h1 { padding: .25em 85px; background: url("../img/devderby/upcoming-head.png") 50% .75em no-repeat; color: #e35915; font: bold 1.142em/1 "Carto Bold", sans-serif; text-transform: uppercase; letter-spacing: 3px; text-align: center; text-shadow: 5px 0 20px #fff, -5px 0 20px #fff, 0 0 5px #fff, 1px 1px 0 rgba(0,0,0,.1); }

#upcoming ol { list-style: none; margin: 0 auto; padding: 0; position: relative; width: 550px; min-height: 390px; }
#upcoming li { float: left; position: relative; }
#upcoming .first { width: 200px; margin-left: 175px; bottom: 20px; }
#upcoming .second { width: 150px; margin-left: -370px; bottom: 45px; }
#upcoming .third { width: 150px; margin-left: 20px; bottom: 45px; }

#upcoming .title { text-align: center; margin: 0 0 .15em; font: 200 30px/.95 "Bebas Neue", "League Gothic", Haettenschweiler, "Arial Narrow", sans-serif; color: #000; text-shadow: 0 0 20px #f1e8cf, 0 0 10px #fff, 1px 1px 0 rgba(0,0,0,.1); }
#upcoming .date { text-align: center; margin: 0; font: bold 1em/1 "Carto Bold", sans-serif; text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 0 10px #f1e8cf, 0 0 5px #fff; }
#upcoming .tagline { text-align: center; margin: .5em 0; text-shadow: -1px -1px 0 rgba(255,255,255,.1); }
#upcoming .desc { font-size: .857em; padding: 15px; background: #fff; background: rgba(255,255,255,.92); border: 2px solid #e8a52f; -moz-border-radius: 1em; -webkit-border-radius: 1em; border-radius: 1em; -moz-box-shadow: 2px 3px 0 rgba(0,0,0,.3), inset 0 0 8px rgba(200,180,145,.5); }

.hasJS #upcoming li { float: none; position: absolute; z-index: 10; }
.hasJS #upcoming .first { left: 175px; margin-left: 0; }
.hasJS #upcoming .second { left: 0; margin-left: 0; }
.hasJS #upcoming .third { right: 0; margin-left: 0; }
.hasJS #upcoming .desc { display: none; position: absolute; top: 30%; margin: 0 -15px; 
  background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,1) 30%, rgba(255,255,255,.8) 100%);
  background: radial-gradient(center, ellipse cover, rgba(255,255,255,1) 30%, rgba(255,255,255,.8) 100%);
}

#upcoming .first .title { font-size: 40px; }
#upcoming .first .date { font-size: 18px; padding-bottom: 250px; background: url("../img/devderby/trophy-one.png") center bottom no-repeat; }
#upcoming .second .date { padding-bottom: 195px; background: url("../img/devderby/trophy-two.png") center bottom no-repeat; }
#upcoming .third .date { padding-bottom: 195px; background: url("../img/devderby/trophy-three.png") center bottom no-repeat; }

#upcoming .first .current { position: absolute; top: 170px; left: 0; width: 78px; height: 78px; background: url("../img/devderby/bg-burst-current.png") center center no-repeat; }
#upcoming .first .current span { display: block; text-align: center; position: absolute; top: 20px; width: 78px; padding: 0; font: 200 20px/.95 "Bebas Neue", "League Gothic", Haettenschweiler, "Arial Narrow", sans-serif; color: #000; 
  -moz-transform: rotate(-18deg);
  -webkit-transform: rotate(-18deg);
  -o-transform: rotate(-18deg);
  transform: rotate(-18deg);
}
#upcoming .first .current span b { font-size: 16px; }

/* @Current @Challenge *********/
#current-challenge { border: 0; padding-top: 4em; position: relative; min-height: 300px; }
#current-challenge .tabs { width: 100%; height: 3em; list-style: none; margin: 0; position: absolute; top: 0; left: 0; border-bottom: 3px solid #000; background: transparent none; }
#current-challenge .tabs li { border: 0; float: left; margin: 0; padding: 0; text-align: center; color: #333; background: transparent none; font: bold 1em/1 "Carto Bold", sans-serif; text-transform: uppercase; letter-spacing: 2px; }
#current-challenge .tabs li:hover { background: transparent none; }
#current-challenge .tabs li:focus { outline: 0; }
#current-challenge .tabs a { display: block; color: #333; text-decoration: none; padding: 1.5em 10px; margin-right: 3px; min-width: 80px; }
#current-challenge .tabs a:hover, .tabs a:focus, .tabs a:active { color: #2f2f2f; text-decoration: underline; }
#current-challenge .tabs li.current a { background: transparent url(../img/devderby/chal-tab-arrow.png) center bottom no-repeat; padding-bottom: 22px; }

#current-challenge .block { padding: 1em 40px 3em; margin-bottom: 2em; border-bottom: 2px dotted #746b60; }
#current-challenge .block.block-hidden { display: none; visibility: hidden; }
#current-challenge .block:after { content: "."; clear: both; display: block; height: 0; visibility: hidden; }
.hasJS #current-challenge .block { margin: 0; border: 0; }

#tab-challenge header { min-height: 70px; padding: .25em 0 .25em 70px; margin: 0 0 1em -15px; background: url("../img/devderby/trophy-one-sm.png") no-repeat; }
#tab-challenge .title { font: 200 40px/.95 "Bebas Neue", "League Gothic", Haettenschweiler, "Arial Narrow", sans-serif; color: #000; margin: 0 0 .15em; }
#tab-challenge .date { font: bold 1.142em/1 "Carto Bold", sans-serif; text-transform: uppercase; letter-spacing: 4px; color: #000; }
#tab-challenge .tagline { font-weight: bold; }

/* @Submissions *********/
#tab-submissions .gallery { margin: 0 -20px 1em -40px; }
#tab-submissions .gallery .demo { width: 170px; margin: 0 0 1.4em 25px; padding: 150px 5px 0; }
#tab-submissions .gallery .row-first { margin-left: 0; }

#tab-submissions .demo .demo-title img { position: absolute; top: 0; left: 0; max-width: 170px; max-height: 127px; padding: 3px; background: #fff; }
#tab-submissions .demo .launch { position: absolute; top: 95px; right: 12px; font-size: 1.2em; }

#devderby.landing .demohover .in { position: relative; width: 166px; padding-top: 157px; }
#devderby.landing .demohover .demo-title img { max-width: 170px; max-height: 127px; left: 8px; top: 8px; }
#devderby.landing .demohover .extra { display: block; }
#devderby.landing .demohover .launch { top: 100px; right: 16px; }

/* @Judges *********/
#current-challenge .judges { list-style: none; margin: 0 0 1em; font-size: .857em; }
#current-challenge .judges .vcard { list-style: none; margin: 0; position: relative; min-height: 100px; padding: 15px 0 15px 120px; border-top: 2px dotted #746b60; }
#current-challenge .judges h3 { font-size: 16px; margin: 0 0 .15em; text-transform: uppercase; }
#current-challenge .judges .title { text-transform: uppercase; margin: 0 0 .15em; }
#current-challenge .judges .photo { position: absolute; left: 0; top: 15px; }
#current-challenge .judges cite { font-style: italic; }
#current-challenge .judges p { margin: 1.25em 0 0; }
#current-challenge .judges .twitter { margin-top: 0; }

/* @Previous @Challenges *********/
#current-challenge .previous { list-style: none; margin: 0 0 1em; font-size: .857em; border-bottom: 2px dotted #746b60; }
#current-challenge .previous li { list-style: none; margin: 0; padding: 20px 0 5px; border-top: 2px dotted #746b60; }
#current-challenge .previous h3 { font-size: 16px; margin: 0 0 .15em; text-transform: uppercase; }
#current-challenge .previous h3 span { font-size: 13px; color: #666; margin-right: 8px; }

/* @Previous @Winner *********/
#prev-winner { position: relative; border-bottom: 4px dotted #746b60; padding: 20px 30px 20px 120px; }
#prev-winner h1 { margin: 0 0 1em -100px; color: #000; background: url("../img/devderby/bg-head-banner.png") center top no-repeat; padding: 13px 20px; text-align: center; font: bold 1em/1 "Carto Bold", sans-serif; text-transform: uppercase; letter-spacing: 2px; }
#prev-winner .title { position: relative; left: -80px; width: 225px; margin: 0 0 .25em; font: 200 25px/1 "Bebas Neue", "League Gothic", Haettenschweiler, "Arial Narrow", sans-serif; }
#prev-winner .title a { color: #000; }
#prev-winner .author { font-size: 1em; margin: 0 0 .25em; }
#prev-winner .author img { float: left; margin: 0 15px .5em -80px; }
#prev-winner .desc { font-size: .857em; }
#prev-winner .launch { position: relative; left: -80px; width: 225px; text-align: center; }
#prev-winner .launch a { display: inline-block; padding: .35em 15px; background: #f9b43a; border: 1px solid #a97a27; font: 14px/1 "Milk", Georgia, Times, serif; text-transform: none; color: #000; text-shadow: -1px -1px 1px rgba(255,255,255,.2); -moz-border-radius: .75em; -webkit-border-radius: .75em; border-radius: .75em; -moz-box-shadow: inset 0 0 4px rgba(200,145,45,.5), 2px 2px 0 rgba(0,0,0,.2); -webkit-box-shadow: inset 0 0 4px rgba(200,145,45,.5), 2px 2px 0 rgba(0,0,0,.2); box-shadow: inset 0 0 4px rgba(200,145,45,.5), 2px 2px 0 rgba(0,0,0,.2); }
#prev-winner .launch a:hover { background: #ffc358; text-shadow: -1px -1px 1px rgba(255,255,255,.2), 0 0 3px #ff6; text-decoration: none; }

/* @Prizes *********/
#challenge-prizes { padding: 20px 30px; }
#challenge-prizes h1 { margin: 0 0 1em; color: #000; background: url("../img/devderby/bg-head-banner.png") center top no-repeat; padding: 13px 20px; text-align: center; font: bold 1em/1 "Carto Bold", sans-serif; text-transform: uppercase; letter-spacing: 2px; }
#challenge-prizes img.prize { float: right; margin: 0 -35px .5em 10px; }
#challenge-prizes ol { list-style: none; margin: 0; padding: 0; }
#challenge-prizes li { padding-left: 35px; position: relative; font-size: .857em; }
#challenge-prizes h3 { margin: 0 0 .25em; font: 200 20px/1 "Bebas Neue", "League Gothic", Haettenschweiler, "Arial Narrow", sans-serif; color: #000; }
#challenge-prizes li h3:before { content: "."; display: block; background: #f9b43a; color: #fff; text-align: center; padding: 5px 3px 3px 6px; width: 16px; height: 18px; border-radius: 13px; font: bold 18px/20px "Carto Bold", sans-serif; text-shadow: -1px -1px 0 rgba(0,0,0,.1); position: absolute; left: 0; top: -3px; -moz-box-shadow: 1px 1px 0 rgba(0,0,0,.2); -webkit-box-shadow: 1px 1px 0 rgba(0,0,0,.2); box-shadow: 1px 1px 0 rgba(0,0,0,.2); }
#challenge-prizes li.first h3:before { content: "1"; }
#challenge-prizes li.second h3:before { content: "2"; }
#challenge-prizes li.third h3:before { content: "3"; }
#challenge-prizes li.fourth h3:before { content: "4"; }
#challenge-prizes li.fifth h3:before { content: "5"; }
#challenge-prizes li.sixth h3:before { content: "6"; }

/* @Resources *********/
#resources { clear: both; border-top: 4px dotted #746b60; padding: 20px 40px; }
#resources h3 { font: bold 1.142em/1 "Carto Bold", sans-serif; text-transform: uppercase; letter-spacing: 2px; }
#resources ul li { display: inline-block; background: none; margin: 0 20px 0 0; }
#resources li a { display: inline-block; min-height: 14px; padding: 30px 85px 30px 0; font: 200 1.142em/1 "Bebas Neue", "League Gothic", Haettenschweiler, "Arial Narrow", sans-serif; color: #000; background: url("../img/devderby/icons-resources.png") 100% 0 no-repeat; }

#resources .res-docs a { background-position: 100% 0; }
#resources .res-docs a:hover, #resources .res-docs a:focus, #resources .res-docs a:active { background-position: 100% -100px; }
#resources .res-demos a { background-position: 100% -200px; }
#resources .res-demos a:hover, #resources .res-demos a:focus, #resources .res-demos a:active { background-position: 100% -300px; }
#resources .res-articles a { background-position: 100% -400px; }
#resources .res-articles a:hover, #resources .res-articles a:focus, #resources .res-articles a:active { background-position: 100% -500px; }

/* @Winners *********/
#derby-winners { margin: 0 0 2em; padding: 20px 30px 10px; border: 1px solid #faf3e8; -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; -moz-box-shadow: 1px 1px 4px rgba(0,0,0,.1); -webkit-box-shadow: 1px 1px 4px rgba(0,0,0,.1); box-shadow: 1px 1px 4px rgba(0,0,0,.1); 
  background: #f1eae0; 
  background: rgba(255,255,255,.5); 
  background: -moz-linear-gradient(top, rgba(255,255,255,.65) 0, rgba(255,255,255,.1) 100%); 
  background: -webkit-linear-gradient(top, rgba(255,255,255,.65) 0, rgba(255,255,255,.1) 100%); 
  background: linear-gradient(top, rgba(255,255,255,.65) 0, rgba(255,255,255,.1) 100%);
}
#derby-winners h1 { margin: 0 0 20px; color: #000; text-align: center; font: 200 46px/1 "Bebas Neue", "League Gothic", Haettenschweiler, "Arial Narrow", sans-serif; letter-spacing: 1px; text-transform: uppercase; text-shadow: 3px 3px 0 rgba(170, 160, 130, 0.5); }

#derby-winners .gallery { margin: 0 auto; padding-left: 5px; }
#derby-winners .gallery .demo { position: relative; float: left; width: 240px; margin: 0 0 1.4em 30px; padding: 200px 5px 0; }

.demo.winner .flag { font-size: 15px; }
.demo.first-place .flag { background: #37b0e2; border-color: #2f96c1; }
.demo.second-place .flag { background: #ebb81d; border-color: #d2a416; }
.demo.third-place .flag { background: #78cb54; border-color: #73b755; }
.demo.finalist .flag { background: #999; border-color: #909090; }

.demohover.winner { width: 259px; }
.demohover.winner .in { position: relative; width: 235px; padding: 207px 12px 1px; background: #fff; background: rgba(255,255,255,.95); -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; }
.demohover.winner .launch { top: 147px; right: 17px; }
.demohover.winner .flag { font-size: 15px; left: 17px; top: 5px; }
