:root {
	--bg: #fefefe;
	--bg-gray: #F7F7F7;
	--bg-btn: #e5e5e8;
	--bg-tooltype: #fefefe;
	--color: #888;
	--text-color: #444;
	--invert: invert(0);
}

/* @media (prefers-color-scheme: dark) {
	:root {
		--bg: #282828;
		--bg-gray: #393939;
		--bg-btn: #393939;
		--color: #dadada;
		--text-color: #f5f5f5;
		--invert: invert(0.86);
	}
} */

body {
	background: var(--bg);
	color: var(--text-color);
	font-family: Helvetica;
}

body.dark-theme {
	--bg: #19262b;
	--bg-gray: #232f35;
	--bg-btn: #2a373e;
	--bg-tooltype: #303d42;
	--color: #dadada;
	--text-color: #e4e4e4;
	--invert: invert(0.86);
}

#main_chart {
	background: var(--bg);
}

.highcharts-button rect {
	fill: var(--bg-btn);
}

.highcharts-button text {
	fill: var(--color) !important;
}

.highcharts-title,
.highcharts-data-label text {
	fill: var(--text-color) !important;
}

.highcharts-tooltip-box {
	fill: var(--bg-tooltype);
}

.highcharts-tooltip text {
	fill: var(--text-color) !important;
}

h1,
h2 {
	font-size: 12px;
	color: var(--color);
	text-align: right;
	font-weight: normal;
	margin: 0 10px;
	width: 340px;
}

.buttons-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: 13px;
	margin: 30px 0;
}

/* radio */
.radio-items {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	margin-right: 20px;
}

.radio-items .radio-btn {
	border: 2px solid var(--bg-btn);
	background: var(--bg);
	margin: 0 2px;
	border-radius: 2px;
}

.radio-items .radio-btn label {
	background-color: transparent;
	color: var(--color);
	display: block;
	padding: 6px 18px;
	text-align: center;
	cursor: pointer;
}

.radio-items .radio-btn input {
	display: none;
}

.radio-items .radio-btn input:checked+label {
	background-color: var(--bg-btn);
}

.btn {
	background: var(--bg-btn);
	border: none;
	cursor: pointer;
	font-size: 13px;
	color: var(--color);
	width: 150px;
	height: 31px;
	margin: 0 5px;
	border-radius: 2px;
	outline: none;
}

.description {
	margin-left: auto;
	margin-bottom: 3px;
}

.gaudge-box {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
	overflow: hidden;
	margin: 15px 0;
	padding: 15px 0;
	background: var(--bg-gray);
}

figure {
	margin: 0;
}

.img-box {
	width: 100%;
	filter: var(--invert);
}

.img-temp {
	display: block;
	margin: 0 auto;
	width: 800px;
}

/* table */
.highcharts-data-table table {
	border-collapse: collapse;
	border-spacing: 0;
	background: var(--bg);
	min-width: 100%;
	margin-top: 10px;
	font-size: 0.9em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
	border: 1px solid silver;
	padding: 0.5em;
}

.highcharts-data-table tr:nth-child(even),
.highcharts-data-table thead tr {
	background: var(--bg);
}

.highcharts-data-table tr:hover {
	background: var(--bg-btn);
}

.highcharts-data-table caption {
	border-bottom: none;
	font-size: 1.1em;
	font-weight: bold;
}

@media (max-width: 800px) {
	.img-temp {
		width: 100%;
	}
}