		
/* New top-bar container to align input and buttons */
.top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between; /* Space between input and buttons */
	padding: 10px;
	background-color: #f3f3f3;
	border-bottom: 2px solid #ccc;
}

/* Ensure all interactive elements have the same height and padding */
.url-input-container .dropdown-btn,
.url-input-container input,
.url-input-container button {
	height: 36px; /* Match the height of your JS, CSS, HTML buttons */
	padding: 8px 15px; /* Match button padding */
	font-size: 14px; /* Match text size */
	border-radius: 5px; /* Consistency with buttons */
	border: 1px solid #ccc; /* Keep borders uniform */
	box-sizing: border-box;
}

/* Specific Fixes */
.url-input-container input {
	width: 200px; /* Maintain a good width for input */
}

/* Ensure the dropdown button matches button height */
.dropdown-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #3498db;
	color: white;
	cursor: pointer;
}

/* Adjust Go button */
.url-input-container button {
	background-color: #3498db;
	color: white;
	border: none;
	cursor: pointer;
}

.url-input-container button:hover {
	background-color: #2980b9;
}

/**/

/* Align the buttons in a row */
.button-container {
	display: flex;
	gap: 10px;
}

		/* Grid Layout */
		.container {
			display: grid;
			grid-template-columns: 1fr 1fr; /* Two equal columns */
			grid-template-rows: auto 1fr; /* Buttons row + flexible content */
			height: 100vh; /* Full viewport height */
			width: 100vw; /* Full viewport width */
			padding: 0;
			box-sizing: border-box;
		}
		
		/* Buttons Row */
		.button-container {
			grid-column: span 2; /* Span across both columns */
			display: flex;
			justify-content: center;
			gap: 10px;
			padding: 10px;
			background-color: #f3f3f3;
			/* border-bottom: 2px solid #ccc; */
		}
		
button {
	border: none; /* Removes the border */
	box-shadow: none; /* Removes any embossed/shadow effects */
	outline: none; /* Removes focus outline */
	background-color: #3498db; /* Keep your original button color */
	color: white;
	padding: 10px 15px;
	cursor: pointer;
	border-radius: 5px;
	font-size: 14px;
}

button:hover {
	background-color: #2980b9;
}
		
/* Fix Layout */
.content {
	display: grid;
	grid-template-columns: 1fr 1fr; /* Two equal columns */
	height: calc(100vh - 100px); /* Ensure content fits within the viewport */
	box-sizing: border-box;
	overflow: hidden; /* Prevent content from overflowing */
}

/* Left Panel - Preview */
.left {
	background: lightblue;
	display: flex;
	flex-direction: column;
	padding: 10px;
	box-sizing: border-box;
	flex-grow: 1;
	overflow: hidden; /* Ensure it doesn’t expand beyond the viewport */
	max-height: 100%;
}

/* Right Panel - Code Sections */
.right-container {
	display: flex;
	flex-direction: column;
	padding: 10px;
	box-sizing: border-box;
	flex-grow: 1;
	overflow: hidden;
	max-height: 100%;
}

/* Right Panel - Individual Sections */
.right {
	width: 100%;
	background: lightblue;
	display: none; /* Hidden by default */
	flex-direction: column;
	box-sizing: border-box;
	padding: 10px;
	flex-grow: 1;
	overflow-y: auto; /* Allow scrolling if needed */
	max-height: 100%;
}

/* Ensure Active Right Panel is Visible */
.right.active {
	display: flex;
}
		
		/* Code Sections */
		.grid-item {
			font-family: "Courier New", monospace;
			background-color: #3498db;
			color: white;
			font-size: 14px;
			padding: 10px;
			flex-grow: 1;
			overflow-y: auto; /* Enable scrolling */
			border-radius: 5px;
			width: 100%;
			box-sizing: border-box;
		}
		
		/* Ensure label positioning works */
		.left, .right {
			position: relative; /* Ensure the grid-label positions correctly inside */
		}
		
		/* Adjust the position of the labels */
		.grid-label {
			position: absolute;
			top: 5px;  /* Adjust for better alignment */
			right: 5px;
			font-weight: bold;
			background: rgba(0, 0, 0, 0.2);
			color: rgba(255, 255, 255, 0.2);
			padding: 4px 8px;
			border-radius: 3px;
			font-size: 14px;
			z-index: 10;
			pointer-events: none; /* Allow clicks to pass through */
		}
		
/* Adjust iframe container to prevent overflow */
.iframe-container {
	border: 1px solid #000;
	width: 100%;
	flex-grow: 1;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
	max-height: 100%;
}

/* Ensure iframe fits properly */
.iframe-container iframe {
	width: 200%;
	height: 200%;
	transform: scale(0.5);
	transform-origin: top left;
	border: none;
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
}
				
		/* Active button */
		button.active {
			background-color: #1f669a; /* Slightly darker than hover */
		}

/* Dropdown styling */
.dropdown {
	position: relative;
	display: inline-block;
	z-index: 1000; /* Ensure dropdown is above other elements */
}

.dropdown-list {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	background-color: white;
	border: 1px solid #ccc;
	padding: 0;
	margin: 0;
	list-style-type: none;
	width: 200px;
	z-index: 2000; /* Ensure dropdown list is above */
}

.dropdown-list li {
	padding: 8px;
	cursor: pointer;
	border-bottom: 1px solid #ddd;
}

.dropdown-list li:last-child {
	border-bottom: none;
}

.dropdown-list li:hover {
	background-color: #f3f3f3;
}

/* Tooltip Styling */
.tooltip {
	position: absolute;
	background-color: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 10px;
	border-radius: 5px;
	font-size: 14px;
	white-space: normal; /* Allow multi-line */
	max-width: 50vw; /* Limit to half the screen width */
	word-wrap: break-word; /* Ensure text wraps properly */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
	transform: translateX(10px);
	pointer-events: none;
	z-index: 3000; /* Highest z-index to ensure it's in front */
	text-align: center; /* Center text alignment */
	display: flex;
	flex-direction: column;
	width: max-content; /* Let the tooltip size dynamically */
	min-width: 200px; /* Ensure it's not too small */
	padding: 12px; /* More padding for better appearance */
}

/* Show tooltip when active */
.tooltip.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* Tooltip Header (Centered Bold) */
.tooltip-header {
	font-weight: bold;
	font-size: 16px;
	text-align: center;
	display: block;
	margin-bottom: 5px; /* Space between header and body */
	width: 100%; /* Stretch header to fit tooltip width */
}

/* Tooltip Body (Centered Text) */
.tooltip-body {
	display: block;
	width: 100%; /* Stretch the text to fit the tooltip width */
	word-wrap: break-word;
	text-align: center; /* Center the about text */
}
