/********************/
/* Font Declaration */
/********************/

@font-face {
  font-family: 'DaxOt';
  src: url("../external/fonts/DaxOT-CondMedium.eot");
  src: url("../external/fonts/DaxOT-CondMedium.eot?#iefix") format("embedded-opentype"), url("../external/fonts/DaxOT-CondMedium.woff") format("woff"), url("../external/fonts/DaxOT-CondMedium.ttf") format("truetype"), url("../external/fonts/DaxOT-CondMedium.svg#") format("svg");
  font-style: normal;
  font-weight: bold;
}

@font-face {
  font-family: 'DaxOt';
  src: url("../external/fonts/DaxOT-CondRegular.eot");
  src: url("../external/fonts/DaxOT-CondRegular.eot?#iefix") format("embedded-opentype"), url("../external/fonts/DaxOT-CondRegular.woff") format("woff"), url("../external/fonts/DaxOT-CondRegular.ttf") format("truetype"), url("../external/fonts/DaxOT-CondRegular.svg#") format("svg");
  font-style: normal;
  font-weight: normal;
}

/**************************************/
/* Predeclarations in index.html file */
/**************************************/
/*
 body {
 padding-top: 100px;
 }

 .welcomeScreen {
 margin-top: -50px;
 display: block;
 }

 .welcomeLogo {
 background: rgba(0, 0, 0, 0) url("images/logo_large.png") repeat scroll 0 0 /260px 260px;
 display: block;
 height: 260px;
 margin: auto;
 width: 260px;
 }
 */
/*********************/
/* Global Properties */
/*********************/

body, html {
  height: 100%;
}

body {
  font-family: "DaxOT";
  font-size: 16px;
  color: #757575;
  /* background-color: #e4e9ed; */
}

h1, h2, h3, h4, h5 {
  font-weight: bold;
}

h5 {
  font-size: 16px
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }
}

a {
  color: #4a8da1;
}

::-moz-selection{
  background-color:transparent;
  color: inherit;
}

::selection {
  background-color:transparent;
  color: inherit;
}

/************************/
/* Bootstrap Properties */
/************************/

.row {
  margin-right: 0px;
  margin-left: 0px;
}

@media screen and (max-width: 768px) {
  .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 {
    padding-right: 0px;
    padding-left: 0px;
  }
}

@media screen and (max-width: 768px) {
  .container-fluid {
    padding-right: 8px;
    padding-left: 8px;
  }
}

.panel-default > .panel-heading, .panel-footer {
  background-color: #e4e9ed;
  /* background-color: #4a8da1; */
  /* color: #ffffff; */
}

.panel-footer {
  text-align: center;
}

.text-danger {
  color: #f36e65;
}

.text-info {
  color: #4a8da1;
}

.btn-primary, .btn-primary:focus, .btn-primary:hover {
  background-color: #4a8da1;
}

/******************/
/* Own Properties */
/******************/

.hidden {
  visibility: hidden;
}

.clickable {
  cursor: pointer;
}

.parallaxHolder {
  height: 100%;
}

#airVisualId {
  height: 100%;
}

/******************/
/* Welcome screen */
/******************/

.welcomeProgress {
  width: 224px;
  height: 4px;
  margin: auto;
}

#welcomeScreen .progress-bar {
  background-color: #4a8da1;
}

/****************/
/* Intro screen */
/****************/

.introScreen {
  text-align: center;
  color: #4a8da1;
  font-size: 20px;
  /* background-color: #e4e9ed; */
  height: 100%;
}

@media screen and (max-width: 768px) {
  .introScreen {
    font-size: 16px;
  }
}

.introScreen h1 {
  margin-left: 40px;
  margin-right: 40px;
  margin-bottom: 96px;
}

@media screen and (max-width: 768px) {
  .introScreen h1 {
    margin-bottom: 36px;
  }
}

.introScreen h2 {
  margin: 0;
  padding-bottom: 64px;
}

@media screen and (max-width: 768px) {
  .introScreen h2 {
    padding-bottom: 36px;
  }
}

.introScreen img {
  width: 100%;
}

.introScreen .introBlock {
  display: block;
  min-height: 90%;
  padding-top: 48px;
  padding-bottom: 48px;
}

@media screen and (max-width: 768px) {
  .introScreen .introBlock {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

.introScreen .sideLegend {
  padding-top: 36px;
}

@media screen and (max-width: 768px) {
  .introScreen .sideLegend {
    padding-top: 12px;
  }
}

.introScreen .introduction {
  padding-top: 48px;
  padding-right: 15%;
  padding-left: 15%;
  font-size: 20px;
}

.introScreen button {
  font-size: 20px;
  margin-top: 48px;
}

.parallax {
  position: relative;
  width: 100%;
  display: block;
  /* opacity: 0.7; */
  background-position: center;
  background-repeat: no-repeat;
  /* background-size: cover; */
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .parallax {
    background-attachment: fixed;
    background-position-y: 70px;
  }
}

.coloredLine {
  background-color: #4a8da1;
  color: #ffffff;
}

#separator1 {
  background-image: url("../images/logo_large.png");
  min-height: 40%;
}

@media screen and (max-width: 768px) {
  #separator1 {
    background-size: 50%;
  }
}

/**************/
/* Header Bar */
/**************/

.headerBar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
  background-color: #e4e9ed;
  border-color: #e7e7e7;
  box-shadow: 0 0 8px 0 #000;
  -webkit-transition: line-height 0.3s;
  -moz-transition: line-height 0.3s;
  -ms-transition: line-height 0.3s;
  -o-transition: line-height 0.3s;
  transition: line-height 0.3s;
}

.headerBar img {
  height: 65px;
  display: block;
  -webkit-transition: height 0.2s;
  -moz-transition: height 0.2s;
  -ms-transition: height 0.2s;
  -o-transition: height 0.2s;
  transition: height 0.2s;
}

.headerBar.shrinked img {
  height: 50px;
}

@media screen and (max-width: 500px) {
  .headerBar img, .headerBar.shrinked img {
    height: 50px;
    margin-top: 10px;
  }
}

.headerBrand {
  display: inline-block;
}

.headerBar .headerLine {
  display: inline-block;
  line-height: 1.5;
  font-size: 24px;
  font-weight: bold;
  vertical-align: top;
  padding-top: 24px;
  color: #4a8da1;
  padding-left: 6px;
  -webkit-transition: padding-top 0.2s;
  -moz-transition: padding-top 0.2s;
  -ms-transition: padding-top 0.2s;
  -o-transition: padding-top 0.2s;
  transition: padding-top 0.2s;
}

.headerBar.shrinked .headerLine {
  padding-top: 16px;
}

.headerBar .headerLink {
  display: inline-block;
  margin-left: 2px;
  padding-top: 20px;
  -webkit-transition: padding-top 0.2s;
  -moz-transition: padding-top 0.2s;
  -ms-transition: padding-top 0.2s;
  -o-transition: padding-top 0.2s;
  transition: padding-top 0.2s;
}

.headerBarButton i {
  font-size: 18px;
}

.headerBar .headerLink.active button {
  background-color: #4a8da1;
}

.headerBar.shrinked .headerLink {
  padding-top: 10px;
}

@media screen and (max-width: 500px) {
  .headerBar.shrinked .headerLink {
    padding-top: 20px;
  }
}

/**************/
/* Map Screen */
/**************/

#aqiMapGroup {
  height: 400px;
  margin: auto;
}

#aqiMap {
  height: 100%;
  margin: auto;
}

.legendLink {
  display: block;
  font-size: 70%;
  line-height: 0.8;
}

.panel-footer.topRankList {
  text-align: left;
}

.mapScreen .marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  height: 24px;
}

.mapScreen .marquee p {
  transform: translateX(100%);
  animation: marqueeLeft 20s linear infinite;
}

.mapScreen .marquee p:hover {
  animation-play-state: paused;
}

@-webkit-keyframes marqueeLeft {
0% {
transform: translateX(100%)
}
100% {
transform: translateX(-100%)
}
}

@keyframes marqueeLeft {
0% {
transform: translateX(100%)
}
100% {
transform: translateX(-100%)
}
}

.mapScreen  .badge {
  min-width: 30px;
}

/*****************/
/* Select Screen */
/*****************/

@media screen and (min-width: 992px) {
  .aqiSelectRow {
    position: fixed;
    width: 260px;
    overflow-y: auto;
    height: 80%;
    padding-right: 12px;
  }
}

.removeLink {
  float: right;
  padding-top: 6px;
  cursor: pointer;
}

.selectedStar {
  font-size: 26px;
  vertical-align: bottom;
}

.selectedCity {
  display: inline-block;
  padding-left: 8px;
}

.selectedCity .small {
  font-size: 65%;
}

.selectedSource {
  font-size: 12px;
  padding-top: 2px;
  padding-bottom: 2px;
  color: #757575;
  text-align: right;
}

.selectedSourceImage {
  vertical-align: text-bottom;
  margin-left: 2px;
}

.aqiAdvertising {
  margin-bottom: 24px;
  max-width: 336px;
  margin-left: auto;
  margin-right: auto;
}

/****************/
/* Chart Screen */
/****************/

.chartPanel {
  margin-bottom: 0;
}

#aqiChart {
  /* height: 300px; */
  width: 100%;
  margin-top: 10px;
}

#aqiChart.fixedHeight{
  height: 300px;
}

.aqiChartCity {
  text-align: center;
  width: 100%;
  display: block;
  margin-top: 12px;
  text-decoration: underline;
  margin-bottom: 8px;
}

#aqiChartBar {
  /* height: 150px; */
  width: 100%;
  margin-top: 10px;
}

.zoomLink {
  float: right;
  font-size: 20px;
  cursor: pointer;
  margin-left: 16px;
  margin-top: 4px;
}

.moveLink {
  font-size: 36px;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1.2;
  margin-top: -6px;
}

.noScale {
  cursor: initial;
  color: #CCCCCC;
}

#displayType .btn-primary {
  background-color: #FFFFFF;
  color: #000000;
}

#displayType .btn-primary.active {
  background-color: #4a8da1;
}

.aqiSliderHeader {
  text-align: center;
  background-color: #e4e9ed;
  padding-top: 6px;
  padding-bottom: 0px;
  padding-left: 15px;
  padding-right: 15px;
  color: #333;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #BABABA;
}

.aqiChartBarHeader {
  background-color: #e4e9ed;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 15px;
  padding-right: 15px;
  color: #333;
}

#sliderPicker {
  vertical-align: middle;
}

#sliderPicker .input-group-addon {
  display: block;
  width: 100%;
}

.sliderLegendGroup {
  margin-bottom: 10px;
}

.sliderLegend {
  display: inline-block;
}

.slider.slider-horizontal {
  height: 30px;
  width: 100%;
}

.slider-selection {
  background: #BABABA;
}

.slider.slider-horizontal .slider-track {
  margin-top: -4px;
}

.slider-handle {
  width: 30px;
  height: 30px;
  background-color: #4a8da1;
  background-image: none;
}

.slider.slider-horizontal .slider-tick, .slider.slider-horizontal .slider-handle {
  margin-left: -15px;
}

.sliderInfo {
  background-color: #000000;
  color: #FFFFFF;
}

.input-group .sliderInput {
  width: 0;
  padding: 0;
  visibility: hidden;
}

.sliderValue {
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
}

#pickerContainer {
  position: relative;
}

.datepicker table tr td span.disabled, .datepicker table tr td span.disabled:hover, .datepicker table tr td.disabled, .datepicker table tr td.disabled:hover {
  color: #ccc;
}

/**************/
/* AQI Legend */
/**************/

#aqiLegendContainer {
  text-align: center;
}

#aqiLegendFooter.panel-body {
  padding-top: 2px;
  padding-bottom: 2px;
}

#aqiLegendGroup table {
  margin-bottom: 0;
}

.aqiColor {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin-right: 6px;
  vertical-align: middle;
}

.aqiLegend {
  margin-bottom: 0px;
  padding-left: 6px;
  list-style: outside none none;
  position: relative;
  text-align: left;
  display: inline-block;
}

.aqiLegend li {
  display: inline-block;
  margin-bottom: 3px;
  margin-right: 10px;
  position: relative;
}

.aqiSource {
  font-size: 12px;
  padding-top: 2px;
  padding-bottom: 2px;
  color: #757575;
  text-align: right;
}

/**************/
/* Footer Bar */
/**************/

.footerBar {
  margin-bottom: 30px;
  /* background-color: #e4e9ed; */
}

.footerBar hr {
  margin-bottom: 12px;
}

/*****************/
/* Account Modal */
/*****************/

.bootstrap-tagsinput {
  width: 100% !important;
}

.label-info {
  background-color: #4a8da1;
}

.tag.label {
  padding: .3em .6em .3em;
}

/**************/
/* Help Modal */
/**************/

.helpTitle {
  display: inline-block;
  margin-right: 6px;
}

.helpContent {
  height: 100%;
  overflow-y: auto;
}

.helpContent hr {
  width: 50%;
}

.helpContent h4 {
  margin-top: 24px;
}

.helpImage {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 12px;
  width: 100%;
}


/*********************/
/* Shaking animation */
/*********************/

.shakingAnimation {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}
