 /* Reset body so flex works cleanly */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;           /* make body stretch full viewport */
  display: flex;
  flex-direction: column; /* stack header + main wrapper */
}

body {
	background-color: rgb(225,232,232);
	font-family: "Calibri",sans-serif;
}

.node text {
	font-size: 14px;
	font-family: "Arial",sans-serif;
	font-weight: bold;
	text-shadow: 0px 0px 2px rgba(255, 255, 255, 1);
}
.node:hover text {
  fill: white; /* text turns white when node group is hovered */
}

/* Header full width, fixed height */
#header {
  width: 100%;
  height: 100px;           		
  background: rgb(2,135,153); 	/* WRC teal */      
  color: white;
  display: flex;
  align-items: center;    /* vertically center text */
  justify-content: flex-start; /* left align text */
  
}
	
#header h1 {
  margin: 0;
  color: white;
  font-size: 2rem;
  font-weight: normal;
  padding-left: 2rem;   /* left padding only for text */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

#logo{
	max-height: 60px;
	display: block;
	margin-left: auto;
	margin-right: 20px;
}

/* The sankey wrapper fills everything below the header */
#sankey-wrapper {
  flex: 1;               /* take all remaining vertical space */
  display: flex;         /* side-by-side layout */
  width: 100%;
  min-height: 0;         /* prevents flexbox children from overflowing */
}

/* Left control panel */
#sankey-control {
  flex: 0 0 20%;         /* fixed 20% width */
  padding: 1rem;
  box-sizing: border-box;
  background: #fff;
  overflow-y: auto;
}

h2 {}

#scenario_select {
	width: 150px;
}

#sankey-container {
  flex: 1;               
  padding: 2rem;          /* adds space inside the panel */
  box-sizing: border-box; 
  background: white;
  overflow: hidden;
}

/* Year control slider below the Sankey diagram */
#yearControl {
  width: 100%;
  background: #fff;
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

#yearControl label {
  font-weight: bold;
  margin-right: 0.5rem;
}

#yearControl input[type="range"] {
  width: 70%;
  vertical-align: middle;
}

#yearControl span {
  font-weight: bold;
  margin-left: 0.5rem;
}

#yearControl button {
	background: rgb(2,135,153);    /* WRC teal */
	color: white;
	border: none;
	border-radius: 4px;
	padding: 0.3rem 0.6rem;
	font-size: 1.2rem;
	cursor: pointer;
	margin: 0 0.3rem;
	transition: background 0.2s;
}

#yearControl button:hover {
	background: rgb(1,100,115);
}

#footer {
  width: 100%;
  height: 80px;            /* fixed footer height */
  background: #333;			/* dark grey */
  display: flex;
  align-items: center;     /* vertical centering */
}

#footer p{
	color: white;
	text-align: center;
	padding-left: 2rem;
}
 