body {
	font-family: "Arial", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	background-color: #e1e1e1;
	color: #333;
	transition: background-color 0.3s ease;
}

body.dark-mode #spec-list li {
	color: #d0d0d0;
}

#content {
	max-width: 2000px; /* Adjust the max-width value as needed */
	margin: 0 auto;
	padding: 20px;
}

#darkmode-toggle-container {
	position: absolute;
	top: 20px;
	right: 20px;
}

label {
	width: 100px;
	height: 40px;
	position: relative;
	display: block;
	background: #ebebeb;
	border-radius: 40px;
	box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4),
		inset 0px -5px 15px rgba(255, 255, 255, 0.4);
	cursor: pointer;
}

label:after {
	content: "";
	width: 36px;
	height: 36px;
	position: absolute;
	top: 2px;
	left: 2px;
	background: linear-gradient(180deg, #ffcc89, #d8860b);
	border-radius: 36px;
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

input {
	width: 0;
	height: 0;
	visibility: hidden;
}

input:checked + label {
	background: #242424;
}

input:checked + label:after {
	left: 98px;
	transform: translateX(-100%);
	background: linear-gradient(180deg, #777, #3a3a3a);
}

label,
label:after {
	transition: 0.5s;
}

label:active::after {
	width: 52px;
}

input:checked + label + .backgroud {
	background-color: #242424;
}

.dark-mode {
	background-color: #333;
	color: #d0d0d0;
}

.page {
	padding: 20px;
	margin-bottom: 20px;
	text-align: left;
	border-radius: 36px;
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

#specs-page {
	background: linear-gradient(to bottom, #f5f5f5, #c7c7c7, #2e2e2e, #1a1a1a);
}

.dark-mode #specs-page {
	background: #444;
}

.dark-mode .page {
	background: #444;
	border-color: #888;
}

#back-button {
	padding: 10px;
	background-color: #dadada;
	border: none;
	border-radius: 50%;
	font-size: 0; /* Hide the text */
	cursor: pointer;
	transition: background-color 0.3s ease;
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

#back-button.dark-mode {
	/* Dark mode style */
	background-color: #535353;
}

#back-button.dark-mode:hover {
	background-color: #191919;
}

#back-button:hover {
	background-color: #aeaeae7f;
}

#back-button:focus {
	outline: none;
}

#back-button:active {
	background-color: #a2a2a2;
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

#back-button::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	border-top: 4px solid #000;
	border-left: 4px solid #000;
	transform: rotate(-45deg);
	border-radius: 4px;
}

#back-button-container {
	text-align: left;
	margin-bottom: 20px;
}

#toggle-button {
	width: 100px;
	height: 40px;
	font: bold;
	font-size: 20px;
	border: none;
	position: relative;
	display: block;
	background-color: #dedede;
	border-radius: 40px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#toggle-button.dark-mode {
	background-color: #535353;
	color: #d0d0d0;
}

#toggle-button.dark-mode:hover {
	background-color: #191919;
}

#toggle-button:hover {
	background-color: #aeaeae7f;
}

#toggle-button:focus {
	outline: none;
}

#toggle-button:active {
	background-color: #505050;
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.make-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.make-item span {
	display: none;
	margin-bottom: 10px;
}

.make-item img {
	max-width: 500px;
	height: auto;
}

#model-title {
	text-align: center;
	font-size: 48px;
	margin-bottom: -10px;
	margin-top: -33px;
}

#make-title {
	text-align: center;
	font-size: 48px;
	margin-top: 0;
}

#model-container {
	position: relative;
	width: 100%;
	height: 800px;
	display: flex;
}

#car-info {
	position: absolute;
	display: flex;
	align-items: baseline;
}

#car-model {
	position: relative;
	width: 100%;
	height: 800px;
	animation: fade-in 2s ease-in-out forwards;
}

#make-title,
#model-title {
	margin-right: 20px;
	animation: fade-in 0.5s ease-in-out forwards;
}

#year {
	position: absolute;
	top: 10%;
	left: 0%;
	font-size: 40px;
	animation: fade-in 1s ease-in-out forwards;
}

#spec-list {
	list-style: none;
	padding: 0;
	margin: 0;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	text-align: left;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
}

#spec-list li {
	margin-bottom: 10px;
}

#spec-list li strong {
	font-weight: bold;
}

.spec-item {
	display: flex;
	flex: 0 0 50%;
	text-align: left;
	flex-direction: column;
	margin-bottom: 10px;
	color: #b1b1b1;
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.spec-label {
	color: #929292;
	text-align: left;
	animation: fade-in 2s ease-in-out forwards;
}

.spec-value {
	text-align: left;
	font-size: 24px;
	font-weight: bold;
	animation: fade-in 3s ease-in-out forwards;
}

#car-image {
	position: absolute;
	width: 800px;
	height: auto;
	object-fit: contain;
	display: none; /* Initially hide the image */
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation: fade-in 1s ease-in-out forwards;
}

h1 {
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 36px;
	font-weight: bold;
	margin-bottom: 20px;
}

h2 {
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 10px;
}

ul {
	padding-left: 0;
	list-style-type: none;
}

li {
	font-size: 18px;
	margin-bottom: 10px;
}

/* Add cursor pointer to clickable elements */
h1,
.button,
#back-button,
#make-list li,
#model-list li {
	cursor: pointer;
}

/* Small screens */
@media (max-width: 580px) {
	/* Add styles specific to medium screens */
	body {
		font-size: 14px;
	}

	.page {
		padding: 10px;
		margin-bottom: 20px;
		text-align: left;
		border-radius: 36px;
		box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
	}

	#back-button {
		padding: 10px;
		background-color: #dadada;
		border: none;
		border-radius: 50%;
		font-size: 0; /* Hide the text */
		cursor: pointer;
		transition: background-color 0.3s ease;
		box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
	}

	#back-button::before {
		content: "";
		display: block;
		width: 8px;
		height: 8px;
		border-top: 2px solid #000;
		border-left: 2px solid #000;
		transform: rotate(-45deg);
		border-radius: 2px;
	}

	#back-button-container {
		text-align: left;
		margin-bottom: 10px;
	}

	#toggle-button {
		width: 50px;
		height: 20px;
		border: none;
		position: relative;
		display: block;
		background-color: #dedede;
		border-radius: 20px;
		cursor: pointer;
		transition: background-color 0.3s ease;
	}

	#model-title {
		text-align: center;
		font-size: 24px;
		margin-bottom: -5px;
		margin-top: -16px;
	}

	#make-title {
		text-align: center;
		font-size: 24px;
		margin-top: 0;
	}

	#model-container {
		position: relative;
		width: 100%;
		height: 500px;
		display: flex;
	}

	#car-info {
		position: absolute;
		display: flex;
		align-items: baseline;
	}

	#car-model {
		position: relative;
		width: 100%;
		height: 400px;
		animation: fade-in 2s ease-in-out forwards;
	}

	#make-title,
	#model-title {
		margin-right: 5px;
		animation: fade-in 0.5s ease-in-out forwards;
	}

	#year {
		position: absolute;
		top: 10%;
		left: 0%;
		font-size: 20px;
		animation: fade-in 1s ease-in-out forwards;
	}

	#spec-list {
		list-style: none;
		width: 60%;
		padding: 10;
		margin: 0;
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		text-align: center;
		display: flex;
		justify-content: center;
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.make-item img {
		max-width: 300px;
		height: auto;
	}

}

/* Medium screens */
@media (min-width: 481px) and (max-width: 768px) {
	/* Add styles specific to medium screens */
	body {
		font-size: 20px;
		margin-top: 80px;
	}

	.page {
		padding: 10px;
		margin-top: 50px;
		margin-bottom: 20px;
		text-align: left;
		border-radius: 36px;
		box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
	}

	#back-button-container {
		text-align: left;
		margin-top:-50px;
		margin-bottom: 10px;
	}

	#darkmode-toggle-container {
		margin-top: 75px;
	}

	#toggle-button {
		width: 80px;
		height: 30px;
	}

	#model-title {
		font-size: 48px;
	}

	#make-title {
		font-size: 48px;
	}

	#model-container {
		position: relative;
		width: 100%;
		height: 800px;
		display: flex;
	}

	#car-model {
		position: relative;
		width: 100%;
		height: 400px;
		animation: fade-in 2s ease-in-out forwards;
	}

	#year {
		font-size: 40px;
	}

	.make-item img {
		max-width: 300px;
		height: auto;
	}

	#car-image {
		width: 500px;
	}
}

/* Large screens */
@media (min-width: 1920px) {
	/* Add styles specific to medium screens */
	body {
		font-size: 42px;
	}

	.page {
		padding: 30px;
		margin-bottom: 60px;
		text-align: left;
		border-radius: 108px;
		box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
	}

	#back-button {
		padding: 20px;
		border: none;
		border-radius: 50%;
		font-size: 0; /* Hide the text */
		cursor: pointer;
		transition: background-color 0.3s ease;
	}

	#back-button::before {
		content: "";
		display: block;
		width: 20px;
		height: 20px;
		border-top: 6px solid #000;
		border-left: 6px solid #000;
		transform: rotate(-45deg);
		border-radius: 4px;
	}

	#back-button-container {
		text-align: left;
		margin-bottom: 10px;
	}

	#toggle-button {
		width: 100px;
		height: 40px;
		border: none;
		position: relative;
		display: block;
		background-color: #dedede;
		border-radius: 40px;
		cursor: pointer;
		transition: background-color 0.3s ease;
	}

	#model-title {
		text-align: center;
		font-size: 48px;
		margin-bottom: -10px;
		margin-top: -32px;
	}

	#make-title {
		text-align: center;
		font-size: 48px;
		margin-top: 0;
	}

	#model-container {
		position: relative;
		width: 100%;
		height: 900px;
		display: flex;
	}

	#car-info {
		position: absolute;
		display: flex;
		align-items: baseline;
	}

	#car-model {
		position: relative;
		width: 100%;
		height: 900px;
		animation: fade-in 2s ease-in-out forwards;
	}

	#make-title,
	#model-title {
		margin-right: 20px;
		animation: fade-in 0.5s ease-in-out forwards;
	}

	#year {
		position: absolute;
		top: 10%;
		left: 0%;
		font-size: 40px;
		animation: fade-in 1s ease-in-out forwards;
	}

	#spec-list {
		list-style: none;
		width: 60%;
		padding: 10;
		margin: 0;
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		text-align: center;
		display: flex;
		justify-content: center;
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.spec-label {
		color: #929292;
		text-align: left;
		animation: fade-in 2s ease-in-out forwards;
		font-size: 30px;
	}

	.spec-value {
		text-align: left;
		font-size: 38px;
		font-weight: bold;
		animation: fade-in 3s ease-in-out forwards;
	}

	.make-item img {
		max-width: 800px;
		height: auto;
	}

	#car-image {
		position: absolute;
		width: 900px;
		height: auto;
		object-fit: contain;
		display: none; /* Initially hide the image */
		position: absolute;
		top: 40%;
		left: 50%;
		transform: translate(-50%, -50%);
		animation: fade-in 1s ease-in-out forwards;
	}

	h2 {
		font-family: "Helvetica Neue", Arial, sans-serif;
		font-size: 48px;
		font-weight: bold;
		margin-bottom: 10px;
	}
}
