/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Mozilla Mobile Browser.
 *
 * The Initial Developer of the Original Code is
 * Mozilla Corporation.
 * Portions created by the Initial Developer are Copyright (C) 2008
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Mark Finkle <mfinkle@mozilla.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

html {
  background: white;
  font-family: "Nokia Sans", Tahoma, sans-serif !important;
  font-size: 24px;
  margin: 0px 20px;
}

#wrapper {
  max-width: 600px;
  margin: 0 auto;
}

#logo {
  float: right;
  margin-top: -24px;
  -moz-margin-end: -34px;
  /* Trick to ensure this is shown above the opacity transform happening to content*/
  -moz-transform: translate(0,0);
}

body[dir="rtl"] #logo {
  float: left;
}

#header {
  font-weight: bold;
  color: white;
  background: transparent -moz-linear-gradient(top, rgba(57,89,117,1) 0%, rgba(30,66,98,1) 50%, rgba(24,54,82,1) 90%);
  border-radius: 6px;
  padding: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  margin-top: 20px;
  box-shadow: inset rgba(0, 0, 0, 0.2) 0 -3px 0px, rgba(0, 0, 0, 0.1) 0px 2px 0px;
}

#header-suffix {
  color: rgb(112,136,156);
}

.section-box {
  background-color: white;
  padding: 0;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.3);
  box-shadow: 
    inset rgba(255, 255, 255, 0.5) 0 1px 0px,
    inset rgba(0, 0, 0, 0.1) 0 -3px 0px,
    rgba(0, 0, 0, 0.1) 0px 2px 0px;
  width: 100%;
  overflow: hidden;
}

.section-box > h1 {
  font-size: 18px;
  font-weight: normal;
  color: black;
  background: transparent -moz-linear-gradient(top, rgba(235,235,235,0.2) 0%, rgba(235,235,235,1) 90%);
  margin: 0;
  padding: 4px 12px 8px 12px;
  border-radius: 8px 8px 0 0;
}

.section-box > div,
.section-box > a {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 8px;
  padding-bottom: 12px;
  position: relative;
}

.section-box > a {
  display: block;
  text-decoration: none;
}

.section-box > div:last-child,
.section-box > a:last-child {
  border-bottom: 0;
}

/* Make room for the image */
.section-box > div > div,
.section-box > a > div,
.section-row > div > div {
  -moz-margin-start: 48px;
}

.section-box .title {
  color: black;
}

.section-box .openall {
  font-size: 18px;
  padding: 12px 8px;
  color: black;
}

body[dir="ltr"] .section-box .openall {
  text-align: right;
}

.section-box .version {
  /* The addon title is not localized, so keep the margin on the left side */
  margin-left: 12px;
  font-size: 18px;
  color: gray;
}

.section-box .inner {
  pointer-events: none;
}

.section-box .favicon {
  border: none;
  top: 8px;
  width: 32px;
  height: 32px;
  position: absolute;
  pointer-events: none;
}

body[dir="ltr"] .section-box .favicon {
  left: 12px;
}

body[dir="ltr"] .section-box .favicon {
  right: 12px;
}

body[dir="ltr"] #newAddons > div:not(.loading) {
  background: url("images/arrowright-16.png") 99% center no-repeat;
}

body[dir="rtl"] #newAddons > div:not(.loading) {
  background: url("images/arrowleft-16.png") 1% center no-repeat;
}

#remoteTabs[disabled=true] {
  pointer-events: none;
  color: #aaa;
}

#remoteTabs[disabled=true] > div > .favicon {
  opacity: 0.5;
}

.section-row {
  color: black;
  background: transparent -moz-linear-gradient(top, rgba(235,235,235,0.2) 0%, rgba(235,235,235,1) 90%);
  padding: 8px;
  padding-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.3);
  box-shadow: 
    inset rgba(255, 255, 255, 0.5) 0 1px 0px,
    inset rgba(0, 0, 0, 0.1) 0 -3px 0px,
    rgba(0, 0, 0, 0.1) 0px 2px 0px;
  margin: 24px auto;
}

.section-row > div {
  position: relative;
  pointer-events: none;
}

.section-row .favicon {
  border: none;
  top: 0;
  width: 32px;
  height: 32px;
  position: absolute;
}

#newAddons {
  margin-bottom: 0;
}

/* Make sure the button and list match up nicely */
#newAddons[showlist] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  margin: 0 -2px 0 0;
}

#newAddonsList {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

body[dir="ltr"] {
  left: 4px;
}

body[dir="rtl"] {
  right: 4px;
}

.loading > img {
  display: block;
  margin: 0 auto;
}

.no-items {
  text-align: center;
  -moz-margin-start: 0 !important;
}

#footer-wrapper {
  font-size: 18px;
  margin-top: 24px;
  text-align: center;
}

#feedback {
  display: inline-block;
  margin: 0;
}

#support {
  display: inline-block;
  margin: 0;
}

#sync-setup {
  font-size: 18px;
  margin-top: 24px;
  text-align: center;
}

#syncSetupSync,
#syncPairDevice {
  text-decoration: underline; 
  color: blue; 
} 

/* Lightbox for Aurora */
#lightbox {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  display: none;
}

#lightbox-background {
  background-color: #000;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

#lightbox-wrapper {
  background: transparent;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  position: fixed;
}

#lightbox-container {
  max-width: 300px;
  margin: 40px auto;
  background: #000 url("images/aurora-lightbox-bg.jpg") center top no-repeat;
  border-radius: 6px;
  padding: 26px 0px 0px;
  border: 1px solid #000;
  box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 10px 2px;
  position: relative;
}

#lightbox-logo {
  width: 65%;
  max-width: 195px;
  display: block;
  margin: 0px auto;
}

#lightbox-message {
  width: 100%;
  padding: 34px 0px 18px;
  text-align: center;
}

#lightbox-message > p,
#lightbox-button > p {
  font-family: Georgia;
  margin: 0px;
  padding: 0px;
}

#lightbox-message > p.title ,
#lightbox-button > p.title {
  font-size: 24px;
  line-height: 24px;
  color: #fff;
  padding-bottom: 10px;
}

#lightbox-message > p.message,
#lightbox-button > p.sub-title {
  font-size: 16px;
  line-height: 20px;
}

#lightbox-message > p.message {
  color: #c0b5b5;
}

#lightbox-container a,
#lightbox-container a:hover,
#lightbox-container a:visited {
  outline: 0px;
  border: 0px;
  text-decoration: none;
  display: block;
}

#lightbox-button {
  background: -moz-linear-gradient(center top , #84C63C 0%, #489615 100%) repeat scroll 0 0 transparent;
  margin: 10px;
  text-align: center;
  border-radius: 4px;
  padding: 18px 0px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px, inset rgba(0, 0, 0, 0.1) 0px -3px;
}

#lightbox-button > p.title,
#lightbox-button > p.sub-title {
  text-shadow: rgba(136, 136, 136, 0.39) 0px 0px 0px -1px;
}

#lightbox-button > p.sub-title {
  font-style: italic;
  color: #fff;
}

#lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 16px;
  height: 16px;
}

@media (max-width: 399px) {
  #support {
    margin-top: 8px;
  }
}

@media (min-width: 400px) {
  body[dir="ltr"]  #feedback {
    border-radius: 8px 0 0 8px;
  }

  body[dir="rtl"]  #feedback {
    border-radius: 0 8px 8px 0;
  }

  #support {
    -moz-border-start: none;
  }

  body[dir="ltr"]  #support {
    border-radius: 0 8px 8px 0;
  }

  body[dir="rtl"]  #support {
    border-radius: 8px 0 0 8px;
  }
}
