:root {
	--background-color:#f4f4f4;
	/* Light theme background */
  --text-color:#333;
	/* Light theme text */
  --container-bg-color:#fff;
	/* Light theme container background */
  --footer-bg-color:#333;
	/* Light theme footer background */
  --input-bg-color:#fff;
	/* Light theme input background */
  --input-border-color:#ddd;
	/* Light theme input border */
}
.dark-theme {
	--background-color:#121212;
	/* Dark theme background */
  --text-color:#ffffff;
	/* Dark theme text */
  --container-bg-color:#222222;
	/* Dark theme container background */
  --footer-bg-color:#1a1a1a;
	/* Dark theme footer background */
  --input-bg-color:#333333;
	/* Dark theme input background */
  --input-border-color:#333333;
	/* Dark theme input border */
}
body {
	font-family:Arial,sans-serif;
	margin:0;
	background-color:var(--background-color);
	color:var(--text-color);
	display:flex;
	flex-direction:column;
	align-items:center;
	min-height:100vh;
	justify-content:flex-start;
}
html {
	scroll-behavior:smooth;
}
h1,p,label {
	color:var(--text-color);
}
#navbar,.navbar-container,footer {
	max-width:none;
}
/* Navigation */
#navbar {
	background:var(--container-bg-color);
	border-bottom:1px solid var(--container-bg-color);
	position:fixed;
	top:0;
	left:0;
	right:0;
	z-index:1000;
	transition:top 0.3s;
	box-shadow:0 2px 5px rgba(0,0,0,0.2);
}
.nav-container {
	display:flex;
	justify-content:space-between;
	align-items:center;
	padding:0.5em 2em;
	max-width:1200px;
	margin:auto;
	width:100%;
}
.menu-icon {
	display:none;
	/* Hidden by default,will be shown in media query */
    cursor:pointer;
}
.brand-name {
	font-size:1.3em;
	font-weight:bold;
	margin-right:auto;
}
.nav-links {
	display:flex;
	align-items:center;
}
.nav-links a,.theme-toggle {
	padding:0 0.6em;
	text-decoration:none;
	color:var(--text-color);
	font-size:1em;
}
.nav-links a:hover {
	color:#215600;
	transition:color 0.3s ease-in-out;
    text-decoration: none;
}
.nav-links a.active {
	color:#215600;
	border-bottom:2px solid #009688;
}
/* Toggle button */
.theme-toggle {
	background:none;
	border:none;
	cursor:pointer;
	font-size:1.5em;
}
#theme-toggle:hover {
	opacity:0.8;
}
/* Scroll to Top */
#scroll-to-top {
	position:fixed;
	bottom:20px;
	right:20px;
	background-color:#333;
	color:white;
	border:none;
	padding:10px;
	cursor:pointer;
	border-radius:5px;
	display:none;
	/* Hidden by default */
    z-index:1001;
	/* Above the content,under the nav */
    opacity:0.7;
}
#scroll-to-top:hover {
	opacity:1;
}
.page-header {
	text-align:center;
	margin-top:50px;
	margin-bottom:40px;
}
.page-title {
	margin-bottom:0.5em;
}
.page-description {
	margin-bottom:1em;
	max-width:800px;
	margin-left:auto;
	margin-right:auto;
}
.page-footer {
	text-align:center;
	width:100%;
	padding:20px 0;
	background-color:var(--footer-bg-color);
	color:var(--text-color);
	position:relative;
	bottom:0;
	left:0;
}
a:hover {
	text-decoration:underline;
}
.converters-wrapper {
	width:100%;
	max-width:1400px;
	display:flex;
	flex-wrap:wrap;
	gap:20px;
	justify-content:space-evenly;
	padding:0;
	box-sizing:border-box;
}
.converter-container {
	text-align:center;
	background:var(--container-bg-color);
	padding:20px;
	border-radius:5px;
	box-shadow:0 0 10px rgba(0,0,0,0.3);
	/* Adjust shadow for dark theme */
    flex:1;
	min-width:calc(30% - 20px);
	max-width:calc(50% - 20px);
	box-sizing:border-box;
	margin-bottom:20px;
	margin-left:10px;
	margin-right:10px;
}
.result-container {
	margin-top:20px;
}
input[type="number"],input[type="text"] {
	flex:1;
	width:calc(100% - 20px);
	padding:10px;
	margin-top:10px;
	background-color:var(--input-bg-color);
	border:1px solid var(--input-border-color);
	border-radius:4px;
	color:var(--text-color);
	box-sizing:border-box;
}
.input-group {
	display:flex;
	justify-content:flex-start;
	align-items:center;
	margin:10px 0;
}
label {
	width:7em;
	display:block;
	text-align:right;
	margin-bottom:5px;
	margin-right:10px;
	padding-right:10px;
	white-space:nowrap;
}
.copy-btn {
	background:var(--input-bg-color);
	color:var(--text-color);
	border:1px solid var(--input-border-color);
	margin-top:10px;
	padding:10px;
	border-radius:4px;
	cursor:pointer;
	margin-left:0.5em;
}
.copy-btn:hover {
	background-color:opacity:0.8;
}
/* Responsive design for mobile devices */
@media (max-width:768px) {
	.converter-container {
	min-width:100%;
	max-width:100%;
}
.page-description {
	padding:0 10px;
}
.input-group {
	flex-direction:column;
	align-items:stretch;
}
.input-group label {
	width:auto;
	text-align:left;
	margin-bottom:5px;
	margin-right:0;
	padding-right:0;
}
/* Ensure input takes full width of container on smaller screens */
  input[type="number"],input[type="text"] {
	width:100%;
	margin-top:5px;
}
}/* Responsive design for mobile devices */
@media (max-width:1100px) {
	.nav-container {
	flex-direction:column;
	justify-content:space-between;
	align-items:flex-start;
	padding:0.5em 1em;
}
.menu-icon {
	display:block;
	position:absolute;
	right:10px;
	top:10px;
}
.nav-links {
	display:none;
	width:100%;
	align-items:center;
}
.nav-links.active {
	display:flex;
	flex-direction:column;
	align-items:center;
}
.nav-links a,.theme-toggle,.dropdown-content a {
	text-align:center;
	padding:0.5em;
	border-bottom:none;
	width:100%;
	/* Full-width links */
}
}@media (max-width:480px) {
	body {
	padding:10px;
}
.converters-wrapper {
	padding:0;
}
.converter-container {
	padding:10px;
}
}