/*
	General styles
*/
body {
	font-family: "Source Sans Pro", Courier New, sans-serif;
	background-color: #white;
	font-size: 13px;
}

body, html {
	height: 100%
}

#content-wrapper, #parts-wrapper {
  height: 100%;
  width: 100%;
}

div#content-wrapper {
	height: 100%;
	min-width: 900px;
	min-height: 500px;
}
html.touch div#content-wrapper {
	min-width: 700px;
}

.sections {
  height: 100%;
  width: 100%;
  background-image: none;
}

.sections .panel > b {
  font-size: 15px;
  color: white;
  position: relative;
  display: block;
  height: 0;
  overflow: visible;
  top: 50%;
}
.sections .panel > div {
  font-size: 15px;
  color: black;
  position: relative;
  display: block;
  height: 0;
  overflow: visible;
  top: 5%;
}

.sections .panel > h1 {
  font-size: 60px;
  color: black;
  position: relative;
  display: block;
  height: 0;
  overflow: visible;
  top: 2%;
  text-align: center;
  text-decoration: underline;
  color: #a7c957;
}

.sections .panel > p {
  font-size: 10px;
  color: black;
  position: relative;
  display: block;
  height: 0;
  overflow: visible;
  top: 50%;
  text-align: center;
}

section {
	height: 100vh;
	position: relative;
	z-index: 10;
	border-radius: 10px;
	box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.intro_color {
	background-color: white;
}
.overview_color {
	background-color: #a7c957;
}

.energy_color {
	background-color: #f9c74f;
}

.industry_color {
	background-color: #8d99ae;
}

.agriculture_color {
	background-color: #cbdfbd;
}

.transport_color {
	background-color: #a44a3f;
}

#worldmap {
	margin: auto;
  width: 70%;
  height:50%;
  font-size: 15px;
  color: black;
  position: relative;
  display: block;
  height: 0;
  overflow: visible;
  top: 15%;
}

#transportation {
  margin: auto;
  width: 35%;
  height:50%;
  font-size: 15px;
  color: black;
  position: relative;
  display: block;
  height: 0;
  overflow: visible;
  top: 15%;
}

#industryPlot {
  margin: auto;
  width: 45%;
  height:40%;
  font-size: 15px;
  color: black;
  position: relative;
  display: block;
  height: 0;
  overflow: visible;
  top: 5%;
}

#stackedBarChart {
  margin: auto;
  width: 80%;
  height:50%;
  font-size: 15px;
  color: black;
  position: relative;
  display: block;
  height: 0;
  overflow: visible;
  top: 10%;
}

#bubbleplot {
  width: 100%;
  height:60%;
}

#bubbleplot > svg {
  margin:auto;
  display: block;
}

.sections .panel > #emissions-bar {
	margin:auto;
   width:80%;
   height:5%;
   background:#f94144;
   position:relative;
   display: table;
   top: 10%;
   text-align: center;
   color: white;
   line-height: 200%;
}

.sections .panel > #sectors-bar {
	margin:auto;
  width:80%;
  height:5%;
  position:relative;
  display: table;
  top: 10%;
  line-height: 200%;
}

#energy-sector {
	width:50%;
	height:100%;
  background:#f9c74f;
  display: inline-block;
  text-align: center;
  color: white;
}

#industry-sector {
	width:20%;
	height:100%;
  background:#8d99ae;
  display: inline-block;
  text-align: center;
  color: white;
}

#agriculture-sector {
	width:15%;
	height:100%;
  background:#cbdfbd;
  display: inline-block;
  text-align: center;
  color: white;
}

#transport-sector {
	width:15%;
	height:100%;
  background:#a44a3f;
  display: inline-block;
  text-align: center;
  color: white;
}

/*----------------------  D3 JS MAP ------------------------------*/


  .names {
    stroke: #fff;
    stroke-linejoin: round;
  }
  
  /* Tooltip CSS */
  .d3-tip {
    line-height: 1.5;
    font-weight: 400;
    font-family:"avenir next", Arial, sans-serif;
    padding: 6px;
    background: white;
    color: #a7c957;
    border-radius: 1px;
    pointer-events: none;
    position:absolute;
    z-index: 100000;
  }

  /* Creates a small triangle extender for the tooltip */
  .d3-tip:after {      
    box-sizing: border-box;
    display: inline;
    font-size: 8px;
    width: 100%;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.6);
    position: absolute;
    pointer-events: none;
    
  }

  /* Northward tooltips */
  .d3-tip.n:after {
    content: "\25BC";
    margin: -1px 0 0 0;
    top: 100%;
    left: 0;
    text-align: center;
  }

  /* Eastward tooltips */
  .d3-tip.e:after {
    content: "\25C0";
    margin: -4px 0 0 0;
    top: 50%;
    left: -8px;
  }

  /* Southward tooltips */
  .d3-tip.s:after {
    content: "\25B2";
    margin: 0 0 1px 0;
    top: -8px;
    left: 0;
    text-align: center;
  }

  /* Westward tooltips */
  .d3-tip.w:after {
    content: "\25B6";
    margin: -4px 0 0 -1px;
    top: 50%;
    left: 100%;
  }
      
  text{
    pointer-events:none;
  }

  .details{
    color: black;
  }



/* -------------------------- D3 BUBBLE PLOT -------------------------- */

.tooltip {
  position: absolute;
  top: 100px;
  left: 100px;
  -moz-border-radius:5px;
  border-radius: 5px;
  border: 2px solid #000;
  background: #fff;
  opacity: .9;
  color: black;
  padding: 10px;
  width: 300px;
  font-size: 12px;
  z-index: 120000;
}

.tooltip .title {
  font-size: 13px;
}

.tooltip .name {
  font-weight:bold;
}