/* 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
}
svg {
	width: 100%;
	height: 100%;
  }
#boundary path {
	stroke-dasharray: 3 5;
  }

path {
	fill:none;
	stroke: black;
	stroke-width: 0.5px;
  }

path.mouseover{
	stroke-width: 3px;
}

path.selected{
	stroke:red;
	stroke-width: 3px;
}


.linePoint.selected{
	fill:red;
	stroke-width: 2;
}

.scatterPoint{
	fill:black;
	opacity:0.5;

}

text{
	fill:black;
}

/* Style for selected marks (circles) */
.scatterPoint.selected{
	stroke: blue;
	fill: blue;
	stroke-width: 2;
	opacity: 5;
  }
/* Style for permanemtly selected marks (circles) */
circle.permaselected {
	fill: red;
	opacity: 5;
  }

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

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

.vis-container {
	width: 100%;  /* Make the container take full width */
	max-width: 800px; /* Optional: limit max width of map */
	height: 600px; /* Set a fixed height to keep the map's aspect ratio */
	overflow: visible; /* Prevent SVG from overflowing */
}

.flex-container {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap; /* Ensures the map and legend wrap on small screens */
}  

.vis-svg {
	width: 100%;  /* Make SVG responsive to container width */
	height: 100%; /* Keep the height consistent with the width to maintain aspect ratio */
	object-fit: contain; /* Ensures that the entire SVG fits without being cut off */
}
  

.map-legend-container{
	width:100%;
	height:100%;
	display:flex;
	flex-wrap: wrap;
	justify-content: space-evenly;

}
.legend-holder {
	width: 180px; /* Fixed width for the legend */
	background:#fff;
}

/* The line chart will take the left half of the screen */
.linechart-holder {
	display:flex;
	flex: 0 0 50%;
	flex-wrap: wrap
  }
  
  /* The scatterplot will take the right half of the screen */
  .scatterplot-holder {
	display:flex;
	flex: 1;  
	flex-wrap: wrap
  }

/* 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);
	}




 #scatterplot {
	width: 100%;
	height: 500px;
}


 #linechart {
	width: 100%;
	height: 500px;
}

/* This styles the screenshots of our final visualization */
#finalVisMap, #finalVisLineChart, #finalVisScatterPlot{
	width: 700px;
	height: 400 px;
	padding: 20px;
}

#figmaVisSketch, #handSketches{ /* styles the Figma image*/
	width: 100%; /* Set the width of the image */
	height: 500px;/* Set the height of the image */
}
}

.slider {
	-webkit-appearance: none;
	width: 100%;
	height: 15px;
	border-radius: 5px;  
	background: #d3d3d3;
	outline: none;
	opacity: 0.7;
	-webkit-transition: .2s;
	transition: opacity .2s;
      }
      
      .slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 25px;
	height: 25px;
	border-radius: 50%; 
	background: rgb(128,0,128);
	cursor: pointer;
      }
      
      .slider::-moz-range-thumb {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: rgb(128,0,128);
	cursor: pointer;
      }
	
	#tooltip {
		background-color: rgba(0, 0, 0, 0.7);
		color: light gray;
		padding: 8px;
		border-radius: 4px;
		font-size: 12px;
		text-align: center;
	  }


