* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font: 1.5rem "Source Serif Pro", serif;
  line-height: 1.4;
  color: #333;
  -webkit-text-size-adjust: none;
  /* background-image: url("https://media.giphy.com/media/3o6EhOYMhOTANYgHMk/giphy.gif");
  background-size: cover; */
}

body {
  width: 20%;
  margin: 0 auto;
  padding: 32px;
  /* background: rgba(255, 255, 255, 0.8);
  height: 100vh; */
}
article {
  margin-bottom: 48px;
}
a {
  color: #2F80ED;
}

a:hover {
  opacity: 0.75;
}

a.primary-button, input.primary-button {
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  background: #2F80ED;
  border-radius: 8px;
  color: white;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  text-decoration: none;
  margin: 0 0 1rem 0;
  border: 0;
  cursor: pointer;
}

input.primary-button {
  margin-top: 32px;
}

a.primary-button:hover {

}

a.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  background: #FFF;
  border-radius: 8px;
  border: 2px solid #2F80ED;
  color: #2F80ED;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  text-decoration: none;
}

a.primary-button:hover {

}

p {
  font-weight: 400;
  margin: 16px 0;
}

h1 {
  font-weight: 400;
  font-size: 2rem;
}

hr {
  background: #333;
  width: 33%;
  height: 2px;
  border: none;
  margin: 16px 0 24px 0;
}

div.form {
  margin-top: 32px;
}

div.form p {
  font-size: 0.8rem;
  font-family: "Source Sans Pro", sans-serif;
  margin-bottom: 8px;
  color: #4f4f4f;
}

a.inline {
  font: 0.8rem "Source Sans Pro", sans-serif;
  display: block;
  margin: 16px 0;
}

div.form input.text{
  width: 100%;
  min-height: 64px;
  border-radius: 8px;
  background: #F2F2F2;
  border: 1px solid #E0E0E0;
  font: 0.8rem "Source Sans Pro", sans-serif;
  padding: 8px;
}

.twitter-typeahead {
  width: 100%;
}

.tt-query {
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
     -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
  color: #999
}

.tt-menu {    /* used to be tt-dropdown-menu in older versions */
  width: 100%;
  margin-top: 4px;
  padding: 4px 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.2);
  -webkit-border-radius: 8px;
     -moz-border-radius: 8px;
          border-radius: 8px;
  -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
     -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
          box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.tt-suggestion, .empty-message {
  padding: 3px 20px;
  line-height: 24px;
}

.tt-suggestion.tt-cursor,.tt-suggestion:hover {
  color: #fff;
  background-color: #2F80ED;

}

.tt-suggestion p {
  margin: 0;
}

body.results {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

body.results section header {
  width: 100%;
  height: 30%;
  background: #219653;
  color: white;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
}

body.results section header.red {
  background: #EB5757;
}

body.results section header.orange {
  background: #F2994A;
}

body.results section header.green {
  background: #219653;
}

body.results section header.black {
  background: #4F4F4F;
}

body.results section header h2 {
  text-transform: uppercase;
  font-family: 'Source Sans Pro', sans-serif;
  letter-spacing: 0.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

body.results section header h1 {
  font-size: 11rem;
  line-height: 11rem;
  font-weight: 700;
}

body.results section header p {
  font-size: 1rem;
  letter-spacing: 0.0125rem;
  margin: 0;
}

body.results section main {
  width: 22%;
  margin: 0 auto;
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

body.results section main div.row {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

body.results section div.row div.remaining {
  align-self: flex-start;
  display: inline-flex;
  /* justify-content: flex-start; */
  width: 48%;
  min-height: 64px;
  background: #E0E0E0;
  border-radius: 8px;
  color: #4F4F4F;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
}

body.results section div.row div.remaining h3 {
  font-family: 'Source Serif Pro', serif;
  font-size: 3rem;
  line-height: 3rem;
  margin: 1rem;
  font-weight: 400;
  display: flex;
}

body.results section div.row div.remaining p {
  margin: 1.2rem 0;
  display: flex;
}

body.results a {
  width: 100%;
}

body.log {
  width: 100%;
  margin: 0 auto;
  padding: 32px;
  background-image: url("../img/bg.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top left;
}

body.log h1 {
  font-size: 2rem;
  font-weight: 600;
}

body.log p {
  font-family: "Source Sans Pro", sans-sans-serif;
  font-size: 0.84rem;
  line-height: 1rem;
}

body.log ul {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
}

body.log ul li {
  width: 100%;
  background: white;
  height: 80px;
  margin: 8px 0;
  list-style: none;
  padding: 0 48px;
  border: 1px solid #E0E0E0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #4F4F4F;
  border-radius: 2px;
}

body.log ul li.header {
  border: none;
  background: none;
  height: 24px;
  font-size: 0.75rem;
  font-variant: small-caps;
  letter-spacing: 0.05rem;
  font-weight: 600;
  color: #828282;
}

body.log ul li span {
  width: 25%;
}

body.log ul li span.fee {
  text-align: right;
}

body.log ul li span.fee.orange {
  color: #F2994A;
  font-weight: 600;
}

body.log ul li span.fee.red {
  color: #EB5757;
  font-weight: 600;
}
body.log ul li span.co2 {
  text-align: center;
}

body.log ul li div.quota {
  width: 25%;
  background: #F2F2F2;
  height: 32px;
  border-radius: 2px;
  position: relative;
}

body.log ul li div.quota div.quota-bar {
  position: absolute;
  background: #BDBDBD;
  height: 32px;
  border-radius: 2px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

body.log ul li div.quota div.quota-bar.red {
  background: #EB5757;
}

body.log ul li div.quota div.quota-bar.orange {
  background: #F2994A;
}

body.log ul li div.quota div.quota-bar span {
  text-align: center;
  width: 100%;
  font-size: 0.75rem;
  margin-top: -0.1rem;
  font-variant: small-caps;
  letter-spacing: 0.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

meter {
  /* Reset the default appearance */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 25%;
  background: none;
  background: #F2F2F2;
  height: 32px;
  border-radius: 2px;
}

meter::-webkit-meter-bar {
  background: none; /* Required to get rid of the default background property */
  border-radius: 2px;
}

meter::-webkit-meter-optimum-value {
  background: none;
  background: #bdbdbd;
  border-radius: 2px;
}

meter::-webkit-meter-suboptimum-value {
  background: none;
  background: #bdbdbd;
  border-radius: 2px;
}

meter::-webkit-meter-inner-element {
  background: none;
  background: #f2f2f2;
  border-radius: 2px;
}

meter::after {
 content : attr(value);
 width: 25%;
 text-align: center;
 top: -25px;
 left:40px;
 position:relative;
}

@media (max-width: 2100px) {
  body {
    width: 35%;
  }
  body.results section main {
    width: 30%;
  }
}

@media (max-width: 1850px) {
  body {
    width: 35%;
  }
  body.results section main {
    width: 40%;
  }
}

@media (max-width: 1600px) {
  body {
    width: 40%;
  }
  body.results section main {
    width: 45%;
  }
}

@media (max-width: 1200px) {
  body {
    width: 50%;
  }
  body.results section main {
    width: 50%;
  }
}

@media (max-width: 1000px) {
  body {
    width: 100%;
  }

  body.results section main {
    width: 100%;
  }
}

@media (max-width: 815px) {
  body {
    width: 100%;
  }

  body.results section main {
    width: 100%;
  }

  body.results section main div.row {
    display: block;
  }

  body.results section div.row div.remaining {
    width: 100%;
    display: flex;
    margin: 0 0 1rem 0;
  }

  body.results section header h1 {
    font-size: 7em;
  }

}
