.boxdraw {
	background: rgba(56, 135, 190, 0.1);
	border: 2px solid #3887be;
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
}

.resizable {
	background-color: lightblue;
	position: relative;
	overflow: hidden;
	border: 2px solid #007BFF;
}

.resizer {
	width: 5px;
	height: 100%;
	background-color: #007BFF;
	position: absolute;
	right: 0;
	top: 0;
	cursor: ew-resize; /* Chỉ cho phép resize theo chiều ngang */
}

#container_semicircle {
	width: 260px;
	height: 80px;
	position: absolute;
	z-index: 110;
	right: 150px; /*50px*/
	top: 70px;
	visibility: hidden;
	text-align: center;
}

#controls {
	text-align: center;
	margin-top: 20px;
	position: absolute;
	z-index: 110;
	top: 150px;
	right: 175px; /*75px;*/ 
	visibility: hidden;
}

#controls button {
	padding: 5px;
	margin: 0 2px;
	font-size: 15px;
	cursor: pointer;
}

#overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

/*Chọn bản đồ ô nhiễm*/
/* Đặt vị trí button "Hours" ở trên cùng */
.toggle-button {
	/*position: fixed;  Cố định vị trí trên cùng */
	/*top: 70px;  Cách mép trên 5px */
	/*left: 50%;  Canh giữa theo chiều ngang */
	transform: translateX(-50%); /* Giữ button ở giữa */
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	font-size: 14px;
	background-color: #1a73e8;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	z-index: 100;
	margin-left: 90px;
}

.toggle-button:hover {
	background-color: #0c5fc0;
}

.pixel-button {
	/*position: fixed;  Cố định vị trí trên cùng */
	/*top: 70px;  Cách mép trên 5px */
	/*left: 60%;  Canh giữa theo chiều ngang */
	transform: translateX(-50%); /* Giữ button ở giữa */
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	font-size: 14px;
	background-color: #1a73e8;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	z-index: 100;
	margin-left: 30px;
}

.pixel-button:hover {
	background-color: #0c5fc0;
}

.icon {
	font-size: 20px;
}

/* Container của các lựa chọn */
.container {
	display: none;
	position: absolute;
	width: 300px;
	max-height: 600px; /* Giới hạn chiều cao của container */
	background-color: transparent;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	overflow-y: auto;
	z-index: 10;
}

.content {
	display: flex;
	flex: 1;
	overflow-y: auto; /* Cho phép cuộn nếu nội dung quá lớn */
}

.column {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 10px;
}

.column-left {
	background-color: #e8f0fe;
	gap: 10px;
}

.column-right {
	display: flex;
	flex-direction: row;
	flex: 2;
	gap: 10px;
	padding: 10px;
	background-color: #f1f3f4;
}

.hour-subcolumn {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.button {
	background-color: white;
	color: black;
	border: 2px solid transparent;
	padding: 5px;
	text-align: center;
	font-size: 14px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.button:hover {
	background-color: #f0f0f0;
}

.button.selected {
	background-color: #d0e7ff;
	border-color: #1a73e8;
	color: #1a73e8;
}

.footer {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	background-color: #f1f3f4;
	border-top: 1px solid #ddd;
}

.footer button {
	flex: 1;
	margin: 0 5px;
	padding: 5px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	border: none;
	transition: background-color 0.3s;
}

.footer button:hover {
	background-color: #e0e0e0;
}

.clear-button {
	background-color: #ffcccc;
}

.apply-button {
	background-color: #cce5ff;
}

/* CSS cho nội dung Popup */
.aqi-popup {
    width: 200px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: white;
}

.aqi-button {
    width: 220px;
    padding: 2px;
    border-radius: 8px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: white;
    margin-bottom: 3px;
}

.good { background-color: #4CAF50; }
.moderate { background-color: #FFEB3B; color: black; }
.sensitive { background-color: #FF9800; }
.unhealthy { background-color: #F44336; }
.very-unhealthy { background-color: #9C27B0; }
.hazardous { background-color: #795548; }

.aqi-icon { font-size: 18px; margin-bottom: 1px; }
.aqi-value { font-size: 15px; font-weight: bold; font-family: Tahoma;}
.aqi-text { font-size: 15px; }

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

/*Xếp hạng AQI*/
.newtable {
    width: 98%;
    border-collapse: collapse;
    margin-top: 20px;
    border-left: none;
    border-right: none;
}
.newtable th, .newtable td {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}
.newtable th {
    background-color: #f2f2f2;
}
.newtable td:first-child, .newtable th:first-child {
    border-left: none;
}
.newtable td:last-child, .newtable th:last-child {
    border-right: none;
}
.newtable td.name-column {
    text-align: left;
}
.newtable td.center-column {
    text-align: center;
}
.aqi-box {
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    padding: 5px;
    display: inline-block;
    width: 60px;
    text-align: center;
}

/*Phục vụ dropdown*/
.combobox-container {
    position: relative;
    width: 280px;
}

#provinceInput {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.dropdown-content {
    display: none;
    position: relative;
    background-color: #f1f1f1;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    width: 100%;
    top: 100%;
    z-index: 1;    
}

.dropdown-content div {
    padding: 8px;
    cursor: pointer;
}

.dropdown-content div:hover {
    background-color: #ddd;
}

/*Chú giải bản đồ*/
.legendbando {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 360px;
    right: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1000;
}
.legendbando-title {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: bold;
}
.legendbando-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.color-box {
    width: 30px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid #808080;
}
.label {
    font-size: 14px;
}

/* Tạo context menu */
.context-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
}
.context-menu-item:hover {
    background-color: #f0f0f0;
}