html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#main-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100%;
}

.article {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 auto;
          flex: 0 1 auto;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 19px;
  color: #000;
}

h1 {
  font-size: 48px;
  line-height: 48px;
  padding-bottom: 10px;
}

h2 {
  font-size: 26px;
  line-height: 30px;
}

h3 {
  font-size: 17px;
  line-height: 20px;
}

a:hover {
  color: #4a4a4a;
}

/* Global classes */

.bold {
  font-weight: bold;
}

.image-subtitle {
  font-weight: bold;
  font-size: 11px;
}

.left {
  float: left;
}

.right {
  float: right;
}

.left-align {
  text-align: left;
}

.right-align {
  text-align: right;
}

.center {
  text-align: center;
}

.grey {
  color: grey;
}

.sc-em {
  background-color: rgba(100, 181, 246, 0.3);
}

.page-container {
  text-align: center; /* to center page-content */
}

.page-content {
  display: inline-block;
  text-align: left; /* reset to default */
}

.section {
  margin: 0 auto;
  background-color: white; /* default section background-color */
}

.section-background {
  min-width: 960px;
}

.section-container {
  width: 960px;
  margin: 0 auto;
  overflow: hidden; /* to expand around its floating children */
}

/**
 * Autoprefixer CSS
 *
 * These classes are modified by gulp-autoprefixer and can't be
 * kept in polymer files, or they won't show up in non-chrome browsers.
 */

 .transition {
  -webkit-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
 }

.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

.flex.justify-start {
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}

.flex.justify-between {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.flex.justify-center {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.flex.align-center {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.flex.row {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

.flex.flex-wrap {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.half-box {
  width: 40%;
  padding: 5%;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.double-width-box {
  width:90%;
  padding:5%;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.user-select {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.section-background.splash {
  background-image: url("/images/splash.jpg");
  background-size: cover;
  background-position: 0% 40%;
}

.section-container.splash {
  height: 400px;
}

.splash-container {
  width: 535px;
  margin: 0 auto;
  margin-top: 150px;
  text-align: center;
  line-height: 1.2;
}

.splash-container p {
  margin-top: -14px;
  font-size: 21px;
}

.explore-button {
  width: 386px;
  height: 66px;
  margin: 0 auto;
  margin-top: 20px;
  background-color: #64B5F6;
  line-height: 66px;
  font-size: 21px;
  color: white;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.5);
  -webkit-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
}

.explore-button:hover {
  opacity: 0.75;
}

.mission-container {
  width: 772px;
  margin: 0 auto;
  margin-top: 48px;
  text-align: center;
  line-height: 1.2;
  color: white;
}

.mission-container p {
  font-size: 21px;
}

.section-background.mission {
  background-image: url("/images/footer_lodyas.png");
  opacity: 0.9;
}

.section-container.mission {
  opacity: 1.0;
  height: 240px;
}

.section-container.cards {
  height: 325px;
}

ul.cards-container li {
  display: inline-block;
  width: 317px;
  height: 320px;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.5);
}

ul.cards-container a:hover li {
  background-color: #64B5F6;
}

ul.cards-container a:hover li .card .card-content {
  color: white;
}

ul.cards-container a:first-child {
  margin-left: 2px;
}

ul.cards-container a:not(:first-child) {
  margin-left: -3px;
}

.card-content {
  color: #4D4D4D;
  text-align: left;
  width: 250px;
  height: 200px;
  margin: 0 auto;
  margin-top: 75px;
}

.card-content h2 {
  padding-left: 0;
  padding-bottom: 4px;
  border-bottom: 4px solid #4D4D4D;
  border-color: inherit;
  position: relative;
}

.card-content h2 span {
  position: absolute;
  right: 0px;
}

.card-content p {
  font-size: 18px;
  margin-top: 10px;
  line-height: 1.2;
}

.section-container.who {
  height: 440px;
}

/* methodology and about splash */

.contrast-splash {
  margin: auto;
  height: 100%;
}

.contrast-splash.contrast-white {
  width: 620px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.contrast-splash.right p,
.contrast-splash.right h3,
.contrast-splash.right ol {
  padding-top: 5px;
  padding-bottom: 5px;
}

.contrast-splash.right .padding-section {
  padding-top: 15px;
}

.contrast-splash.grey-revsd-out {
  width: 250px;
  background-color: #4D4D4D;
  color: white;
  font-size: 26px;
  line-height: 30px;
  font-weight: bold;
  padding: 30px;
  margin-top: 33px;
}

.contrast-splash.grey-revsd-out.right {
  margin-top: 13px;
}

.intro-copy {
  font-size: 19px;
  line-height: 28px;
  font-weight: bold;
}

/* search page (styling in polymer elements and in search.html) */

.download-csv-button {
  text-align: center;
  cursor: pointer;
  color: white;
  width: 250px;
  margin: 5px 20px 5px 0px;
  border-radius: 4px;
  background-color: rgb(100, 181, 246);
  box-shadow: 0px 2px grey;
  -webkit-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  padding: 8px 4px 0px 4px;
  height: 32px;
  text-decoration: none;
}
.download-csv-button:hover {
  opacity: 0.75;
  color: white; /* overwrites setting of e8e8e8 */
}
.download-csv-wrapper {
  padding: 20px 0px;
}


/* composition and residuals table */

.tree-cell div {
  padding: 0;
}

.tree-cell.name {
  width: 360px;
}

.tree-cell.even-sixth {
  width: 89px;
}
.tree-cell.lca {
  width: 40px;
}
.tree-cell.function {
  width: 129px;
}

.tree-header .name {
  width: 375px;
}
.tree-header .tree-cell {
  color: grey;
  font-weight: bold;
  font-size: 12px;
}
.tree-header .tree-cell:not(:first-child) {
    padding-left: 8px;
}

.spacer {
  background-color: white!important;
}
.level-1 .spacer {
  width: 20px;
}
.level-2 .spacer {
  width: 40px;
}
.level-3 .spacer {
  width: 60px;
}
.level-4 .spacer {
  width: 80px;
}
.level-5 .spacer {
  width: 100px;
}

.level-0 .left-detail {
  width: 599px;
}
.level-1 .left-detail {
  width: 579px;
}
.level-2 .left-detail {
  width: 559px;
}
.level-3 .left-detail {
  width: 539px;
}
.level-4 .left-detail {
  width: 519px;
}
.level-5 .left-detail {
  width: 449px;
}

.level-0 .name {
  width: 360px;
}
.level-1 .name {
  width: 340px;
}
.level-2 .name {
  width: 320px;
}
.level-3 .name {
  width: 300px;
}
.level-4 .name {
  width: 280px;
}
.level-5 .name {
  width: 260px;
}

/* Tooltip styling */
.tooltiptext {
  display: none;
}
