/* styles.css */

/* Background image for the whole page */
body {
	margin: 0;
	padding: 0;
	/*background-color:black;*/
	background-image: url('media/bg.jpg');
	background-size: cover;
	font-family: Arial, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-attachment: fixed;
}

.separator-bar {
	height: 35px; /* Adjust thickness as needed */
	background-color: #b0421a; /* Replace with the color you want */
	width: 80%;
	max-width: 950px;
}

/* Banner at the top */
.banner img {
	width: 100%;
	display: block;
}

/* Container to hold both the menu and main content */
.container {
	display: flex;
	width: 80%;
	max-width: 950px;
	margin-top: 0px;
	min-height: 1000px;
}

/* Side Menu */
.side-menu {
	width: 200px;
	background-color: rgba(139, 57, 24, 0.7);
	padding: 20px;
	border-radius: 0px;
}

	.side-menu ul {
		list-style: none;
		padding: 0;
	}

	.side-menu li {
		margin-bottom: 10px;
	}

	.side-menu a {
		color: white;
		text-decoration: none;
		font-family: Avenir;
		font-size: 14px;
		display: block;
		padding: 10px;
		background: rgba(194, 157, 141, 0.2);
		border-radius: 0px;
		text-align: center;
	}

		.side-menu a:hover {
			background: rgba(255, 255, 255, 0.4);
		}

/* Centered Main Content */
.content {
	flex: 1;
	background: rgba(255, 255, 255, 0.9);
	padding: 20px;
	margin-left: 0px;
	border-radius: 0px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.detail-container {
	display: flex;
	background: rgba(175, 102, 70, .25);
	border-radius: 5px;
	border-top: 15px;
	padding: 10px;
	justify-content:space-evenly;
	width:100%
}

.inventory-container {
	display: flex;
	background: rgba(175, 102, 70, .25);
	border-radius: 5px;
	border-top: 15px;
	padding: 10px;
	justify-content: space-evenly;
	width: 100%
}

.inventory-text {
	font-size: 10px;
	color: black;
	margin-bottom: 5px;
}

.inventory-box {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 1);
	border-radius: 10px;
	width: 50px;
	height: 50px;
	padding: 5px;
	align-items: center;
	justify-content: center;
}

	.inventory-box:hover {
		background: rgba(237, 215, 213, 1);
	}

.inventory-icon {
	max-height: 40px; /* Adjust as needed */
	height: auto;
	display: block;
	margin-bottom: 10px;
	border-radius: 10px;
	margin-bottom: -5px;
}

.detail-container-left {
	display: flex;
	background: rgba(175, 102, 70, .25);
	border-radius: 5px;
	border-top: 15px;
	padding: 10px;
	width: 100%;
	column-gap: 30px;
}

.stat-box {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	background: rgba(175, 102, 70, 1);
	border-radius: 10px;
	width: 50px;
	height: 50px;
	padding: 5px;
	align-items: center;
	justify-content: center;
}

.stat-title {
	font-size: 10px;
	color:antiquewhite;
}

.stat-value {
	font-size: 14px;
	color:white;
}

button.resident-button {
	display: block;
	width: 100%;
	padding: 10px;
	margin: 5px 0;
	text-align: left;
	color: #e89f7d;
	border: 1px solid #8f5e47;
	background-color: #8f5e47;
	cursor: pointer;
}

	button.resident-button:hover {
		border: 1px solid white;
		background-color: #c98667;
		color: white;
	}

.health-bar-container {
	position: relative;
	width: 70%; /* Set a fixed width for the health bar */
	min-width: 15px;
	margin-top: 20px;
	height: 20px;
	padding: 10px;
}

.health-bar {
	width: 100%;
	height: 100%;
	min-width: 100px; /* Ensure the bar has a minimum width */
	min-height: 20px; /* Prevent the bar from disappearing */
	background-color: grey !important; /* Ensure it has a visible color */
	border-radius: 5px;
	position: relative;
}

.health-fill {
	height: 100%;
	background-color: green;
	width: 0; /* Will be set dynamically */
	border-radius: 5px;
	transition: width 0.5s ease-in-out;
}

.health-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 14px;
	font-weight: bold;
	color: white;
	pointer-events: none; /* Makes the text non-interactive */
}

/* The main container for both list and details */
.resident-container {
	display: flex; /* Align items horizontally */
	height: 100vh; /* Full height of the viewport */
	width: 100%; /* Full width */
	background-color: rgba(255, 255, 255, 0.5); /* White with 50% transparency */
}

/* Style for the resident list (left side) */
.resident-list {
	width: 25%; /* 25% of the page width */
	background-color: #66382d; /* Background color */
	padding: 20px;
	box-sizing: border-box; /* Prevents padding from affecting the width */
	overflow-y: auto; /* Enable scrolling if needed */
	max-height: 75vh;
}

/* Style for the resident details (right side) */
.resident-details {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-direction: column;
	width: 75%; /* 75% of the page width */
	padding: 20px;
	box-sizing: border-box; /* Prevents padding from affecting the width */
	overflow-y: auto; /* Enable scrolling if needed */
	background-color: #ffe1d9; /* Background color */
}

.resident-image {
	max-height: 500px; /* Adjust as needed */
	max-width: 100%;
	height: auto;
	display: block;
	margin-bottom: 10px;
	border-radius: 10px;
}

.health-status-panel {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.status-icon {
	max-height: 20px; /* Adjust as needed */
	height: auto;
	display: block;
	margin-bottom: 10px;
	border-radius: 10px;
}

.context-menu {
	display: none;
	position: absolute;
	background: rgba(148, 83, 55, 1);
	border: 1px solid #ccc;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	z-index: 1000;
	width: 150px;
}

	.context-menu ul {
		list-style: none;
		margin: 0;
		padding: 5px 0;
	}

		.context-menu ul li {
			color: white;
			padding: 8px 12px;
			cursor: pointer;
			transition: background 0.2s;
		}

			.context-menu ul li:hover {
				background: #ddd;
			}

.tab-container {
	display: flex;
	border-bottom: 2px solid #333;
}

.tab-button {
	padding: 10px 20px;
	cursor: pointer;
	border: none;
	background: #ddd;
	transition: background 0.3s;
}

	.tab-button:hover {
		background: #bbb;
	}

	.tab-button.active {
		background: #888;
		color: white;
	}

/* Style for tab content */
.tab-content {
	display: none;
	padding: 20px;
	border: 1px solid #ccc;
}

	.tab-content.active {
		display: block;
	}

.name-panel {
	display: flex !important;
	justify-content: space-evenly !important;
	background: rgba(175, 102, 70, 1) !important;
	border-radius: 10px !important;
	padding: 10px !important;
	margin: 5px 0 !important;
	color: white;
}

.name-dropdown {
	border-radius: 10px;
	background-color: #b0421a;
	width: 100%;
	height: 30px;
	color: white;
}

.remove-name-button {
	border-radius: 10px;
	background-color: #b0421a;
	width: 50%;
	color: white;
}

.do-it-btn {
	width: 50%;
	border-radius: 10px;
	background-color: #b1d6ff;
	height: 50px;
}

/* Collapsible button styling */
.collapsible {
	background-color: rgba(175, 102, 70, 1);
	color: white;
	cursor: pointer;
	padding: 10px;
	width: 100%;
	border: none;
	text-align: left;
	font-size: 18px;
	font-weight: bold;
	transition: 0.3s;
	border-radius: 5px;
}

	.collapsible:hover {
		background-color: rgba(166, 83, 58, 1);
	}

/* Hidden content initially */
.collapsible-content {
	width: 90%;
	display: none;
	background-color: #f1f1f1;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	margin-top: 5px;
}

.all-opponents {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 95%;
	align-content: center;
	overflow-y: auto; /* Enables vertical scroll only */
	overflow-x: hidden; /* Prevents horizontal scroll */
	height: 1000px;
}

.opponent-container {
	display: flex;
	background: rgba(175, 102, 70, .25);
	border-radius: 40px;
	border-top: 5px;
	justify-content: space-between;
	align-items: center;
	width: 100%
}

