
/* Map CSS starts here */
names {
    fill: none;
    stroke: #fff;
    stroke-linejoin: round;
    }
  
.colorscaleTitle {
  font-size: 1.5em;
  font-weight: bold;
}

/* Tooltip CSS */
.d3-tip {
  line-height: 1.5;
  font-weight: 400;
  font-family:"avenir next", Arial, sans-serif;
  padding: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFA500;
  border-radius: 1px;
  pointer-events: none;
}
  
/* 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%;
}
  
.details{
  color:white;
}
/* Map CSS ends here */

/* Pie CSS starts here */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
  
h1 {
  text-align: center;
  margin-top: 20px;
}
  
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
  
.chart-container {
  position: relative;
  width: calc(20vw);
  height: calc(20vw);
  margin: 20px auto;
}
  
.pie-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#ddd 0%, #ddd 100%);
  position: relative;
  transform: rotate(90deg);
} 

.tooltip {
  position: sticky;
  padding: 20px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 15px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}
  
.legend ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
  
.legend li {
  display: flex;
  align-items: center;
  margin: 5px 0;
}
  
.color-box {
  width: calc(2vw);
  height: calc(2vw);
  margin-right: 10px;
}
  
.geo-area-list {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  background-color: #f9f9f9;
  padding: 10px 0;
  border-top: 1px solid #ccc;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}
  
.geo-area {
  background-color: #ddd;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
  
.geo-area:hover {
  background-color: #ccc;
  transform: scale(1.1);
}
  
.geo-area.selected {
  background-color: #bbb;
  font-weight: bold;
}
/* Pie CSS ends here */

/* General formatting */
body {
	padding: 0 10px;
	font: 18px/1.5 -apple-system, BlinkMacSystemFont, "avenir next",avenir, "Segoe UI", "lucida grande", "helvetica neue", helvetica, "Fira Sans",roboto, noto, "Droid Sans", cantarell, oxygen, ubuntu, "franklin gothic medium", "century gothic", "Liberation Sans",
	sans-serif;
}

h1, h2, h3 {
	line-height: 1.2
}

/* Your text should be in a nice narrow column */
.content-column {
	max-width: 650px;
	margin: 40px auto;
}

/* The scatterplot and map will take the left half of the screen */
.scatterplot-holder, .map-holder {
	flex: 0 0 50%;  
}


/* The bar and pie charts will take the right half of the screen */
.barchart-holder, .piechart-holder {
	flex: 1; 
  /* background-color: #c3c5cf;  */
}

/* Don't also do text drag selection */
.text-unselectable {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	cursor: default;
  }

/* Default style for marks and channels used for the scatter plot */
.point {
	/* fill: white; */
	stroke: black;
	stroke-width: 0.5;
	opacity: 0.35;
  }

.sizeLegendPoint {
  stroke-width: 0.5;
  stroke: black;
  fill: white;
}

.colorLegendPoint {
  stroke-width: 0.5;
  stroke: black;
}
  
  .axisLabel {
	fill: #475d7c;
  }
  
  /* Style for selected marks (circles) */
  circle.selected {
	opacity: 1;
  }

/* But your visualization should be full-width and full-height */
.vis-holder {
  width: 100%;
  height: 100%;
  display: flex;
}


/* Fork on GitHub ribbon via https://codepo8.github.io/css-fork-on-github-ribbon/# */  
#forkongithub a{
	background:#00F;
	color:#fff;
	text-decoration:none;
	font-family:arial,sans-serif;
	text-align:center;
	font-weight:bold;
	padding:5px 40px;
	font-size:1rem;
	line-height:1.4rem;
	position:relative;
	transition:0.5s;
}
#forkongithub a:hover{
	background:#118;
	color:#fff;
}
#forkongithub a::before,#forkongithub a::after{
	content:"";
	width:100%;
	display:block;
	position:absolute;
	top:1px;
	left:0;
	height:1px;
	background:#fff;
}
#forkongithub a::after{
	bottom:1px;
	top:auto;
}
@media screen and (min-width:1000px){
	#forkongithub{
		position:fixed;
		display:block;
		top:0;
		right:0;
		width:200px;
		overflow:hidden;
		height:200px;
		z-index:9999;
	}
	#forkongithub a{
		width:200px;
		position:absolute;
		top:60px;
		right:-60px;
		transform:rotate(45deg);
		-webkit-transform:rotate(45deg);
		-ms-transform:rotate(45deg);
		-moz-transform:rotate(45deg);
		-o-transform:rotate(45deg);
		box-shadow:4px 4px 10px rgba(0,0,0,0.8);
	}
}

.resizable {
  font-size: calc(2vw);
  align-self: center;
  margin-bottom: 0;
}

.row {
  display: flex;
}

.column {
  flex: 33.33%;
  padding: 5px;
}