@charset "utf-8";
/* CSS Document */

/* Popup Styles */
.popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	/* Dark overlay */
	justify-content: center;
	align-items: center;
	z-index: 999;
}

.popup-content {
	position: relative;
	background-color: #2e0c0c;
	width: 350px;
	height: 210px;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
	border: 3px solid gold;
}

/* Title and Text */
.popup-title {
	color: white;
	font-size: 18px;
	margin-bottom: 10px;
}

.popup-text {
	color: white;
	font-size: 21px;
	margin-bottom: 20px;
}

.popup-icon {
	vertical-align: middle;
	width: 24px;
	height: 24px;
}

/* Number adjustment section */
.number-adjust {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
}

.adjust-btn {
	border: none;
	padding: 5px 10px;
	background-color: #444;
	color: white;
	cursor: pointer;
	font-size: 20px;
	margin: 0 10px;
}

.adjust-value {
	color: white;
	font-size: 18px;
	width: 80px;
	text-align: center;
}

/* Button Styles */
.popup-btn {
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
}

.confirm-btn {
	background: linear-gradient(to right, #007bff, #00d4ff);
	color: white;
}

.cancel-btn {
	background: linear-gradient(to right, #ff4d4d, #ff0000);
	color: white;
}

.close-btn-gray {
	background: linear-gradient(to right, #999999, #666666);
	color: white;
}

/* Close button (X) */
.close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 24px;
	color: white;
	cursor: pointer;
}

.popup-btn:hover,
.adjust-btn:hover {
	opacity: 0.9;
}

.button-group {
	display: flex;
	justify-content: center;
	gap: 10px;
}




/* Popup content for larger size */
.popup-content-large {
	position: relative;
	background-color: #2e0c0c;
	width: 500px;
	height: 500px;
	padding: 20px;
	border-radius: 8px;
	border: 2px solid gold;
	text-align: center;
}



/* Popup image */
.popup-image {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}



/* 共同樣式 */
div[class^="water_"] {
	position: relative;
	display: inline-block;
	width: 140px;
	height: 110px;

}

div[class^="tooltip_"] {
	visibility: hidden;
	width: 290px;
	height: 50px;
	background-color: black;
	color: white;
	text-align: center;
	padding: 10px;
	position: absolute;
	bottom: 100%;
	/* 說明文區塊顯示在區塊上方 */
	left: 50%;
	transform: translateX(-50%);
	border: 2px solid;
	border-image: linear-gradient(to right, gold, darkgoldenrod) 1;
	font-size: 18px;
	line-height: 1.5;
	/* 確保可以放兩行文字 */
	z-index: 1;
	opacity: 0;
	transition: opacity 0.3s;
}

/* 滑鼠移到區塊上時顯示 tooltip */
.water_1_1:hover .tooltip_1_1,
.water_2_1:hover .tooltip_2_1,
.water_3_1:hover .tooltip_3_1 {
	visibility: visible;
	opacity: 1;
}
