/*CONVERT FORM CSS*/

/* Navbar Custom Width */
.navbar.menu-active {
  width: 350px;
}

/* Center the heading and form elements */
.convertform {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 20px;
}

/* Style the button */
.calc {
	margin: 15px 0;
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
}

/* Custom Dropdown Menu CSS */

.dropdown-button {
	background-color: #f9f9f9;
	color: black;
	padding: 16px;
	font-size: 16px;
	border: none;
	cursor: pointer;
	width: 100%;
	text-align: left;
	border: #000 solid 2px;
}

.dropdown-modal {
	display: none;
	grid-template-columns: repeat(auto-fit, minmax(calc(10vw + 25px), 1fr));
	gap: 1rem;
	width: 70%;
	top: 25%;
	background-color: rgb(21, 21, 21);
	padding: 5%;
	border-radius: 1em;
	left: 50%;
	transform: translateX(-50%);
	position: fixed;
	justify-items: center;
	max-height: 50vh; /* Ensures the dropdown doesn't exceed the viewport height */
	overflow-y: auto; /* Adds a vertical scrollbar if needed */
}

.dropdown-content {
	background-color: #000;
	min-width: 60px;
	min-height: 60px;
	width: 10vw;
	height: 10vw;
	border: #fff;
	border-width: 2px;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	z-index: 1;
	/* grid-template-columns: repeat(3, 1fr); */
	padding: 1rem;
	border-radius: 15%;

	/* Position the stuff inside the dropdown content in the center */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	text-align: center;
	margin: 0;
	transition: 0.2s;
}

.dropdown-content img {
	margin: -10px;
	width: 100%;
	height: 100%;
	border-radius: 10%;
}

.dropdown-content:hover {
	transform: scale(1.1);
	border-color: #00bcd4;
	border-width: 2px;
	border-style: solid;
}

.dropdown-content label {
	font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
	margin: -10px;
	color: white;

}

.planet-image {
	width: 100%;
	height: 100%;
	border-radius: 50%;

}

.planet-pics {
	display: flex;
	/* space between the images */
	justify-content: space-between;
	padding-left: 10%;
	padding-right: 10%;
}

#dropdownbtn1 {
	border-radius: 1em 1em 0 0;
	border-bottom: 1px solid black;
}

#dropdown-content3 {
	display: none;
}

#dropdownbtn3 {
	border-radius: 0 0 1em 1em;
	border-top: 1px solid black;
}

#dropdownbtn1:hover,
#dropdownbtn2:hover,
#dropdownbtn3:hover {
	background-color: #131313;
	color: #09f;
	text-shadow: 0px 0px 10px #09f;
	box-shadow: 0px 0px 10px #09f;
	transition: 250ms;
}

/* Layout for the dropdowns */
.dropdown-container {
	position: relative;
	display: flex;
	justify-content: space-around;
	/* Spread dropdowns equally */
	width: 100%;
	/* Ensure dropdowns take full width */
	gap: 20px;
}

/* Add headers for the dropdown */
.dropdown-header {
	font-family: "Chopsic";
	font-size: 2rem;
	padding: 2rem;
	grid-column: 1 / -1;
	text-align: center;
	width: 100%;
	color: white;
}

/* Ensure each dropdown is aligned properly */
.dropdown-container div {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Style the images */
#planetpic1,
#planetpic2 {
	width: 25vw;
}

/* Media query for smaller screens */
@media screen and (max-width: 800px) {

	/* Stack the dropdowns in one column */
	.dropdown-container {
		flex-direction: column;
		align-items: center;
		gap: 15px;
		/* Adjust the gap for stacked items */
	}

	#planetpic1,
	#planetpic2 {
		width: 60vw;
		/* Adjust image size for small screens */
	}

	.planet-pics {
		flex-direction: column;
		/* Stack the images */
		align-items: center;
		/* Center the images horizontally */
		padding-left: 0;
		/* Remove padding */
		padding-right: 0;
	}

	.results.dropdown-container {
		flex-direction: column;
		/* Stack the results */
		align-items: center;
		/* Center the results horizontally */
	}

	#result1,
	#result2 {
		text-align: center;
		/* Center the text within the result divs */
	}
}