body {
	font-family: 'Open Sans', sans-serif;
}

h1.title-page { 
	padding: 10px; 
	position: fixed; 
	display: block; 
	top: 10px; 
	margin: 0; 
}

.node {
	cursor: pointer;
}

.node circle {
	fill: #fff;
	stroke: #ccc;
	stroke-width: 3px;
}

.node text {
	font: 12px sans-serif;
	font-family: 'Open Sans', sans-serif;
}

.link {
	fill: none;
	stroke: #ccc;
	stroke-width: 2px;
}


/* legend */




.legend-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	font-family: sans-serif;
	width: 220px;
	overflow: hidden;
	border: 1px solid #eee;
}

.legend-header {
	padding: 12px 16px;
	background: #f8f9fa;
	cursor: pointer;
	font-weight: 600;
	user-select: none;
	outline: none;
}

.legend-content {
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

.legend-container[open] .legend-content {
	opacity: 1;
	transform: translateY(0);
}

.legend-container[open] .legend-header::after {
	transform: rotate(180deg);
}

.legend-header::-webkit-details-marker {
  	display: none;
}

.legend-group {
	margin-bottom: 10px;
}

.legend-group:last-child { 
	margin-bottom: 0; 
}

.legend-item {
	line-height: 20px;
    min-height: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #333;
}

.legend-item.sub {
	font-size: 13px;
	color: #666;
}

.legend-item:last-child { 
	margin-bottom: 0; 
}

.legend-item .label:before {
	width: 20px; 
	height: 20px; 
	display: inline-block; 
	float: left; 
	content: ''; 
	margin-right: 10px; 
}

.swatch {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	flex-shrink: 0;
}

/*
.lang { background: #e31e24; }
.lang-ext { background: #f9d2d4; }
.group { background: #2171b5; }
.group-ext { background: #c6dbef; }
.dialect { background: #41ab5d; }
.dialect-ext { background: #d7e8d5; }
*/

.lang { background: #ff0000; }
.lang-ext { background: #ffcccc; }
.group { background: #0091ea; }
.group-ext { background: #b3e5fc; }
.dialect { background: #00c853; }
.dialect-ext { background: #c8e6c9; }

.areal-sw {
	position: fixed;
	top: 100px;
	background-color: #2196F3;
	padding:10px 10px 0 10px;
}

.areal-sw a {
	display: block;
	color: #fff;
	padding: 0 3px;
	border-radius: 5px;
	margin-bottom: 5px;
	text-decoration: none;
	font-family: 'Open Sans', sans-serif;
}

.areal-sw a.active {
	display: block;
	background-color: #fff;
	color: #333;
}

.title-page a { 
	color:inherit; 
	text-decoration: none; 
	font-family: 'Open Sans', sans-serif; 
	font-size: 20px; 
}

.title-page a:hover { 
	text-decoration: underline; 
}