@charset "UTF-8";

.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: 50px;
	top: 70px;
	visibility: hidden;	
}        

#controls {
    text-align: center;
    margin-top: 20px;
    position: absolute;
    z-index: 110;
    top: 150px;
    right: 115px;
    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;
}         

/* Đặt vị trí button "Bản đồ ngập đô thị" ở trên cùng */
.toggle-button {
	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;
}

.icon {
	font-size: 20px;
}

/* Container của các lựa chọn */
.container {
	display: none;
	position: absolute;
	width: 700px;
	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;
}            

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: green;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
}
  