body {
  background: #FFF;
}

#pageheader {
  position: absolute;
  top: 0;
  left: 0;
}

#globalheader h1 {
  display: none;
}

#nav-main-menu:not([aria-hidden]) li a {
  color: #FFF !important;
}

#doc-outer {
  margin-bottom: 0;
}

#doc {
  width: 100%;
}

main li {
  padding: 0;
  background: transparent none;
}

main em {
  display: inline-block;
  text-decoration: inherit;
}

main .outer,
main [id^="outer-"] {
  position: relative;
  overflow: hidden;
}

main .inner {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 960px;
  margin: 0 auto;
}

main a.wrapper {
  display: block;
  position: relative;
  box-sizing: border-box;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

main a.button,
main a.button:link,
main a.button:hover {
  padding: 12px 40px;
  height: auto;
  box-shadow: none !important;
  font-size: 20px;
  line-height: 1.5;
}

#outer-header {
  padding: 96px 0 24px;
  color: #FFF;
  background: #C3372D;
}

#main-header h1 {
  margin: 0 auto;
  width: 313px;
  height: 82px;
  background-image: url(/static/images/home/mozilla-wordmark-white.png);
  background-repeat: no-repeat;
  background-size: contain;
  text-indent: -99999px;
}

#outer-promos {
  margin: 8px 0 0;
  height: 280px;
}

#outer-promos [role="tablist"] {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 10;
  margin: 0 0 0 -48px;
  width: 96px;
}

#outer-promos [role="tablist"] li {
  position: relative;
  float: left;
  margin: 0;
  width: 24px;
  height: 24px;
  text-indent: -99999px;
}

#outer-promos [role="tab"] {
  display: block;
  width: 100%;
  height: 100%;
}

#outer-promos [role="tab"]::after {
  position: absolute;
  top: 6px;
  left: 6px;
  border-radius: 12px;
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, .2);
  box-shadow: 0 0 4px rgba(255, 255, 255, .4);
  transition: all .3s;
  content: "";
}

#outer-promos [role="tab"][aria-selected="true"]::after {
  background: rgba(0, 0, 0, .4);
}

#outer-promos .tabpanels {
  position: absolute;
  overflow: hidden;
  top: 0;
  width: 100%;
  height: 100%;
}

#outer-promos [role="tabpanel"] {
  position: relative;
  width: 100%;
  height: 280px;
}

#outer-promos .inner {
  padding: 40px 320px 40px 0;
  height: 100%;
}

#outer-promos .inner::after {
  position: absolute;
  bottom: 0;
  right: 0;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

#outer-promos h2 {
  font-size: 64px;
  line-height: 1.1;
  text-shadow: none;
}

#outer-promos h3 {
  margin: 16px 0 0;
  font-size: 24px;
  text-shadow: none;
}

#outer-promos a:hover h3,
#outer-promos a:focus h3 {
  text-decoration: underline;
}

#sec-promo-firefox-ios {
  color: #FFF;
  background-color: #0C99D5;
  background-image: linear-gradient(to bottom, rgba(12, 153, 213, 0) 0, rgba(12, 153, 213, 0) 100px, #0C99D5 450px, #0C99D5),
    repeating-linear-gradient(118deg, rgba(12, 153, 213, 0) 0, #00A7E0 550px, rgba(12, 153, 213, 0) 550px, #00A7E0 800px, rgba(12, 153, 213, 0) 800px, #00A7E0 950px);
}

#sec-promo-firefox-ios .inner::after {
  bottom: -10px;
  width: 382px;
  height: 300px;
  background-image: url(/static/images/home/firefox-family-sprite.png);
  background-position: 0 -815px;
  background-size: 535px 1117px;
}

#sec-promo-tech-talks {
  color: #FFF;
  background: #000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .4)),
              url(/static/images/events/tech-talks/bg-photo-1.jpg) no-repeat center -360px;
}

#sec-promo-tech-talks .inner {
  padding-right: 160px;
}

#sec-promo-tech-talks * {
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .6) !important;
}

#sec-promo-smarton-tracking {
  color: #FFF;
  background: #AA41A4 url(/static/images/home/smarton-tracking-bg.png) repeat center;
  background-size: 500px 368px;
}

#sec-promo-smarton-tracking .inner::after {
  width: 260px;
  height: 260px;
  background-image: url(/static/images/home/smarton-tracking.png);
}

#sec-promo-firefox-developer {
  color: #FFF;
  background: #142C43 url(/static/images/home/firefox-devedition-bg.jpg) no-repeat center;
}

#sec-promo-firefox-developer .inner::after {
  bottom: 50%;
  margin-bottom: -114px;
  width: 416px;
  height: 228px;
  background-image: url(/static/images/home/firefox-devedition-screenshot.jpg);
}

#sec-promo-factory {
  background: #F5F1E8 url(/static/images/home/factory-bg.png) repeat-x;
}

#sec-promo-factory .inner::after {
  bottom: 50%;
  margin-bottom: -160px;
  width: 340px;
  height: 320px;
  background-image: url(/static/images/home/factory-logo.png);
}

#outer-download {
  margin: 8px 0 0;
  padding: 24px 0;
  color: #FFF;
  background: #565A5C;
}

#sec-firefox-download {
  overflow: hidden;
}

#sec-firefox-download a.wrapper {
  float: left;
  width: 640px;
}

#sec-firefox-download h2 {
  float: left;
  width: 288px;
  height: 107.52px;
  background-image: url(/static/images/home/firefox-logo-wordmark-white.png);
  background-size: contain;
  text-indent: -99999px;
}

#sec-firefox-download h3 {
  float: left;
  margin: 16px 32px;
  font-size: 24px;
  line-height: 1.5;
  text-shadow: none;
}

#sec-firefox-download a.wrapper:hover h3,
#sec-firefox-download a.wrapper:focus h3 {
  text-decoration: underline;
}

#sec-firefox-download h3 em {
  display: block;
}

#sec-firefox-download .download-button {
  float: right;
}

#sec-firefox-download .download-button p.primary {
  margin: 16px 0 8px;
}

#sec-firefox-download .download-button a.button {
  background: #4CAF50;
}

#sec-firefox-download .download-button a.button:hover,
#sec-firefox-download .download-button a.button:focus {
  background: #66BB6A;
}

#sec-firefox-download .download-button p.secondary {
  margin: 0;
  text-align: center;
}

#sec-firefox-download .download-button p.secondary a {
  color: #FFF !important;
}

#outer-news {
  padding: 40px 0;
  background: #F6F4EC;
  text-align: center;
}

#sec-news h2,
#sec-events h2 {
  font-size: 48px;
}

#sec-news li {
  margin: 16px 0;
  font-size: 16px;
  line-height: 1.5;
}

#outer-community {
  height: 320px;
  color: #FFF;
  background: #333 url(/static/images/home/community-bg.jpg) no-repeat center;
  text-align: center;
}

#sec-community h2 {
  margin: 80px 0 40px;
  border-radius: 4px;
  font-size: 40px;
  text-shadow: 0 1px 0 rgba(0,0,0,.75);
}

#sec-community a.button {
  background: #0095DD;
  text-shadow: none;
}

#sec-community a.button:hover,
#sec-community a.button:focus {
  color: #0095DD !important;
  background: #FFF;
}

#outer-events {
  padding: 40px 0;
  background: #F6F4EC;
  text-align: center;
}

#outer-events p,
#outer-firefox p,
#outer-thunderbird p,
#outer-secondary p {
  margin: 8px 0 0;
  line-height: 1.5;
}

#sec-events h3 {
  font-size: 24px;
}

#outer-firefox {
  color: #FFF;
  background: #00A6E3;
  text-align: center;
}

#outer-firefox section,
#outer-secondary section {
  overflow: hidden;
  float: left;
  width: 320px;
}

#outer-firefox h2,
#outer-thunderbird h2,
#outer-secondary h2 {
  font-size: 24px;
  text-shadow: none;
}

#outer-firefox a:hover h2,
#outer-firefox a:focus h2,
#outer-thunderbird a:hover h2,
#outer-thunderbird a:focus h2,
#outer-secondary a:hover h2,
#outer-secondary a:focus h2 {
  text-decoration: underline;
}

#outer-firefox a.wrapper {
  padding: 32px 0 80px;
  height: 280px;
}

#outer-firefox a::after {
  position: absolute;
  left: 50%;
  background: url(/static/images/home/firefox-family-sprite.png) no-repeat;
  background-size: 535px 1117px;
  content: "";
}

#outer-firefox p {
  color: #BEE1F5;
}

#sec-firefox-desktop a::after {
  bottom: -90px;
  margin-left: -189px;
  width: 378px;
  height: 220px;
}

#sec-firefox-ios {
  color: #E14164;
  background: #FFCD02 url(/static/images/home/firefox-ios-bg.png) no-repeat left top;
  background-size: 700px 440px;
}

#sec-firefox-ios p {
  color: #E14164;
}

#sec-firefox-ios a::after {
  bottom: -50px;
  margin-left: -134px;
  width: 268px;
  height: 181px;
  background-position: -268px -644px;
}

#sec-firefox-android a::after {
  bottom: -50px;
  margin-left: -134px;
  width: 268px;
  height: 181px;
  background-position: 0 -644px;
}

#outer-thunderbird {
  background: #EFEFEF;
  text-align: center;
}

#sec-thunderbird a.wrapper {
  padding: 40px 0 40px 560px;
}

#sec-thunderbird a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 524px;
  height: 130px;
  background: url(/static/images/home/thunderbird-screenshot.png) no-repeat;
  background-size: 524px 130px;
  content: "";
}

#sec-thunderbird p {
  color: #787878;
}

#outer-secondary {
  text-align: center;
}

#outer-secondary section {
  margin: 40px 0;
}

#outer-secondary a.wrapper {
  padding: 120px 32px 0;
}

#outer-secondary a::after {
  position: absolute;
  top: 0;
  left: 50%;
  box-sizing: border-box;
  margin-left: -50px;
  border: 4px solid #D26F6A;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  color: #C1382D;
  font-size: 56px;
  line-height: 100px;
  font-family: FontAwesome;
}

#sec-addons a::after {
  line-height: 92px !important;
  content: "\F0AD";
}

#sec-support a::after {
  content: "\F004";
}

#sec-developers a::after {
  line-height: 92px !important;
  content: "\F121";
}

#pagefooter {
  margin-top: 0;
  padding-top: 0;
}

#globalfooter {
  color: #FFF;
  background-color: #565A5C;
}

#pagefooter a:link,
#pagefooter a:visited {
  color: #CCC;
}

#pagefooter a:hover,
#pagefooter a:focus,
#pagefooter a:active {
  color: #FFF;
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx), (min-resolution: 144dpi) {
  #main-header h1 {
    background-image: url(/static/images/home/mozilla-wordmark-white@2x.png);
  }

  #sec-promo-smarton-tracking {
    background-image: url(/static/images/home/smarton-tracking-bg@2x.png);
  }

  #sec-promo-smarton-tracking .inner::after {
    background-image: url(/static/images/home/smarton-tracking@2x.png);
  }

  #sec-promo-firefox-developer .inner::after {
    background-image: url(/static/images/home/firefox-devedition-screenshot@2x.jpg);
  }

  #sec-promo-factory inner::after {
    background-image: url(/static/images/home/factory-logo@2x.png);
  }

  #sec-firefox-download h2 {
    background-image: url(/static/images/home/firefox-logo-wordmark-white@2x.png);
  }

  #sec-promo-firefox-ios .inner::after,
  #outer-firefox a::after {
    background-image: url(/static/images/home/firefox-family-sprite@2x.png);
  }

  #sec-thunderbird a::after {
    background-image: url(/static/images/home/thunderbird-screenshot@2x.png);
  }

  #sec-firefox-ios {
    background-image: url(/static/images/home/firefox-ios-bg@2x.png);
  }
}

@media only screen and (min-width: 1280px) {
  #outer-firefox .inner,
  #outer-secondary .inner {
    width: 1200px;
  }

  #outer-firefox section,
  #outer-secondary section {
    width: 400px;
  }
}

@media only screen and (max-width: 1023px) {
  #sec-promo-firefox-developer .inner::after {
    margin-bottom: -120px;
    width: 240px;
    height: 240px;
    background-size: cover;
  }

  #sec-promo-firefox-ios h3 em {
    display: block;
  }

  #sec-firefox-download a.wrapper {
    width: 288px;
  }

  #sec-firefox-download h3 {
    display: none;
  }

  #outer-firefox .inner,
  #outer-thunderbird .inner {
    width: 100%;
  }

  #outer-firefox section {
    width: 100%;
    float: none;
  }

  #outer-firefox a.wrapper {
    height: 240px;
  }

  #sec-thunderbird a.wrapper {
    padding: 32px 0 80px;
    height: 240px;
  }

  #sec-thunderbird a::after {
    left: 50%;
    margin-left: -262px;
  }

  #sec-news h2,
  #sec-events h2 {
    font-size: 40px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  main .inner {
    width: 720px;
  }

  #outer-promos .inner {
    padding: 40px 200px 40px 0;
  }

  #sec-promo-tech-talks .inner {
    padding-right: 0;
  }

  #outer-promos h2 {
    font-size: 56px;
  }

  #outer-download .inner {
    width: 640px;
  }

  #outer-secondary section {
    width: 240px;
  }

  #outer-secondary a.wrapper {
    padding: 120px 16px 0;
  }
}

@media only screen and (max-width: 767px) {
  #main-header h1 {
    width: 260px;
    height: 68px;
  }

  #outer-secondary section {
    float: none;
    width: auto;
  }

  #outer-secondary a.wrapper {
    padding: 120px 0 0;
  }

  #outer-secondary a::after {
    top: 0;
  }
}

@media only screen and (min-width: 640px) and (max-width: 767px) {
  main .inner  {
    width: 608px;
  }

  #outer-promos .inner {
    padding: 40px 200px 40px 0;
  }

  #sec-promo-tech-talks .inner {
    padding-right: 80px;
  }

  #outer-promos h2 {
    font-size: 40px;
  }

  #sec-promo-firefox-ios .inner::after {
    bottom: 32px;
    width: 286.5px;
    height: 225px;
    background-position: 0 -611.25px;
    background-size: 401.25px 837.75px;
  }

  #sec-promo-factory .inner::after {
    margin-bottom: -120px;
    width: 255px;
    height: 240px;
  }

  #sec-community h2 {
    font-size: 32px;
  }
}

@media only screen and (max-width: 639px) {
  main .inner {
    width: 288px;
  }

  #outer-promos .inner {
    padding: 32px 0;
    text-align: center;
  }

  #outer-promos h2 {
    font-size: 32px;
  }

  #outer-promos h3 {
    display: none;
  }

  #sec-promo-tech-talks h3 {
    display: block;
  }

  #sec-promo-firefox-ios .inner::after {
    bottom: 40px;
    left: 50%;
    margin: 0 0 0 -95.5px;
    width: 191px;
    height: 150px;
    background-position: 0 -407.5px;
    background-size: 267.5px 558.5px;
  }

  #sec-promo-smarton-tracking .inner::after {
    bottom: 32px;
    left: 50%;
    margin: 0 0 0 -80px;
    width: 160px;
    height: 160px;
  }

  #sec-promo-firefox-developer .inner::after {
    bottom: 40px;
    left: 50%;
    margin: 0 0 0 -60px;
    width: 120px;
    height: 120px;
    background-size: cover;
  }

  #sec-promo-factory .inner::after {
    bottom: 40px;
    left: 50%;
    margin: 0 0 0 -85px;
    width: 170px;
    height: 160px;
  }

  #outer-download {
    padding: 32px 0;
  }

  #sec-firefox-download a.wrapper,
  #sec-firefox-download h2,
  #sec-firefox-download .download-button {
    float: none;
    margin: 0 auto;
    text-align: center;
  }

  #sec-news h2,
  #sec-events h2 {
    font-size: 32px;
  }

  #outer-firefox a.wrapper,
  #sec-thunderbird a.wrapper {
    height: 280px;
  }

  #sec-community h2 {
    margin: 48px 0;
    font-size: 24px;
  }
}
