/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.


*/
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto";
  font-weight: normal;
}

#once_loaded {
  display: none;
}

#loading {
  position: fixed;
  right: 0;
  top: 0;
  background-color: yellow;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
  padding: 5px;
  z-index: 1000;
  display: none;
}

#loading.show {
  display: block;
}

#to_the_controls {
  position: fixed;
  bottom: 5px;
  right: 5px;
  display: block;
  padding: 3px;
  box-shadow: 0px 0px 3px 3px #000;
  border-radius: 3px;
  background-color: black;
  color: white;
  text-decoration: none;
}

.label {
  width: 175px;
  vertical-align: top;
  line-height: 36px;
}

.control div {
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
}

.option {
  border: solid 1px black;
  padding: 0px 10px 0px 10px;
  line-height: 34px;
  height: 36px;
  min-width: 46px;
  text-align: center;
  box-shadow: 0px 0px 3px 0px #000;
  cursor: pointer;
  border-radius: 3px;
  background-color: white;
}

.option:hover {
  background-color: #ccc;
}

.option.selected {
  background-color: black;
  color: white;
  box-shadow: 0px 0px 0px 0px #000;
}

#controls .unit {
  margin-left: 2px;
}

#controls .help {
  display: block;
  font-size: x-small;
}

#header {
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: #f99b0c;
  width: 100%;
  height: 86px;
  box-shadow: 0px 0px 3px 3px #000;
}

#logo {
  margin-left: 5%;
  position: relative;
  top: 10px;
}

@media (max-width: 754px) {
  #logo {
    display: none;
  }
}

#logo img {
  width: 68px;
  height: 68px;
}

#description {
  background-color: #000;
  padding: 50px 5% 50px 5%;
  color: white;
}

#description img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto 0 auto;
}

#description h3 {
  font-family: "Oswald",sans-serif;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 400;
  color: white;
}

#more_charts {
  padding-top: 100px;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  padding: 0;
  position: fixed;
  top: 10px;
  left: 0px;
  width: 100%;
  text-align: center;
  font-size: 56px;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

#footer1 {
  border-top: solid 2px white;
  margin: 0px;
  padding: 100px;
  text-align: center;
  background-color: #323232;
  color: #fff;
}

#footer1 a, #footer1 a:visited {
  color: #fff;
}

#footer1 a:hover {
  color: #E02727;
}

#footer2 {
  margin: 0px;
  padding: 100px;
  text-align: center;
  background-color: #4d4d4d;
}

#footer2 p {
  color: white;
  margin: 0;
  padding: 0;
}

#footer2 a {
  color: white;
  text-decoration: none;
}

svg {
  overflow:visible;
}

#map svg {
  overflow: hidden;
}

#table td, th {
  text-align: right;
}
#table td:first-child, th:first-child {
  text-align: left;
}
#table tbody tr:even td {
  background-color: #eee;
}

#map path {
  stroke: #fff;
  fill: none;
}

#map {
  padding-top: 86px;
  background-color: #008ed6;
  padding-bottom: 10px;
}

#map h2 {
  color: #4d4d4d;
  font-size: 24px;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  font-weight: 400;
}

.tooltip {
  background-color: white;
  border: solid 1px black;
  padding: 10px; 
  border-radius:3px;
}

#compared {
  background-color: #009e49;
}

#compared path {
  stroke: #fff;
}

#compared rect {
  fill: #fff;
}

#compared text {
  fill: #fff;
}

#compared .axis line {
  display: none;
}

#overtime {
  background-color: #fffaec;
}

#table {
  background-color: #de2727;
  color: #fff;
  padding-top: 150px;
  padding-bottom: 150px;
  padding-left: 5%;
  padding-right: 5%;
}

#table table {
  width: 100%;
}

#controls {
  background-color: #f99b0c;
  padding-top: 150px;
  padding-bottom: 150px;
  padding-left: 5%;
  padding-right: 5%;
}

.axis path, .axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

.series path {
  fill: none;
  stroke-width: 3px;
}

.series circle {
  stroke: none;
  fill-opacity: 0.5;
}

.series text {
  stroke: none;
}

.no_highlight path {
  stroke: grey;
  stroke-opacity: 0.1;
}

.no_highlight circle {
  fill: grey;
  fill-opacity: 0.1;
}

.no_highlight text {
  fill: grey;
  fill-opacity: 0.1;
}

.highlight path {
  stroke: black;
  stroke-opacity: 1.0;
}

.highlight circle {
  fill: black;
  fill-opacity: 1.0;
}

.highlight text {
  fill: black;
  fill-opacity: 1.0;
}

.australia path { stroke: #1f77b4; }
.australia text { fill: #1f77b4; }
.thailand path { stroke: #aec7e8; }
.thailand text { fill: #aec7e8; }
.brazil path { stroke: #ff7f0e; }
.brazil text { fill: #ff7f0e; } 
.vietnam path { stroke: #ffbb78; } 
.vietnam text { fill: #ffbb78; } 
.china path { stroke: #2ca02c; }
.united_states path { stroke: #98df8a; }
.bangladesh path { stroke: #d62728; }
.ukraine path { stroke: #ff9896; }
.indonesia path { stroke: #9467bd; }
.mexico path { stroke: #c5b0d5; }
.india path { stroke: #8c564b; }
.russia path { stroke: #c49c94; }
.argentina path { stroke: #e377c2; }
.pakistan path { stroke: #f7b6d2; }
.turkey path { stroke: #7f7f7f; }
.egypt path { stroke: #843c39; }
.canada path { stroke: #bcbd22; }
.poland path { stroke: #8c6d31; }
.france path { stroke: #17becf; }
.china text { fill: #2ca02c; }
.united_states text { fill: #98df8a; }
.bangladesh text { fill: #d62728; }
.ukraine text { fill: #ff9896; }
.indonesia text { fill: #9467bd; }
.mexico text { fill: #c5b0d5; }
.india text { fill: #8c564b; }
.russia text { fill: #c49c94; }
.argentina text { fill: #e377c2; }
.pakistan text { fill: #f7b6d2; }
.turkey text { fill: #7f7f7f; }
.egypt text { fill: #843c39; }
.canada text { fill: #bcbd22; }
.poland text { fill: #8c6d31; }
.france text { fill: #17becf; }

@media print {
  @page {
    size: A4;
  }
  
  * {
    background-color: white !important;
    color: black !important;
  }

  #header {
    box-shadow: none;
  }

  #to_the_controls {
    display: none;
  }

  #map path {
    stroke: #000;
  }

  #compared text {
    fill: #000;
  }

  #compared line, #compared path {
    stroke: #000;
  }

  #compared rect {
    fill: #000;
  }

  #map, #compared, #overtime, #controls {
    page-break-inside: avoid;
  }

  #description {
    display: none;
  }
  .option {
    display: none !important;
  }
  .option.selected {
    display: inline-block !important;
  }
}
