:root {
	--accent-color: #ff0000;
	--white: #ffffff;
	--black: #000000;
}

@font-face {
	font-family: "Special Gothic Expanded One";
	src: url("SpecialGothicExpandedOne-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

html {
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html::-webkit-scrollbar {
	display: none;
}

body {
	margin: 0;
	background-color: var(--black); /* Default dark mode */
	text-rendering: optimizeLegibility;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	overflow-y: scroll;
}

.special-gothic-expanded-one-regular {
	font-family: "Special Gothic Expanded One", sans-serif;
	font-weight: 400;
	font-style: normal;
  }

#header {
	padding: 1.5rem;
	padding-bottom: 2rem;
	display: flex;
	width: fit-content;
	overflow: hidden;
	min-height: 4rem;
}

#header-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: var(--white); /* White text for dark mode default */
	text-align: center;
	cursor: alias;
	text-decoration: none;
}

#header-text > h1 {
	margin: 0;
	padding: 0;
	font-size: 2.5rem;
	font-weight: normal;
	font-family: Georgia, 'Times New Roman', Times, serif;
}

.noselect {
	user-select: none;
}

.center {
	display: block;
	margin: 0 auto;
}

#page-container {
	max-width: 63rem;
}

.rule {
	background-color: var(--white); /* White rule for dark mode default */
	height: 2px;
	width: 100%;
}

#product-board {
	margin-top: 3rem;
}

.title-and-subtitle {
	display: flex;
	flex-direction: column;
	color: var(--white); /* White text for dark mode default */
}

.title {
	font-family: sans-serif;
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: .3rem;
}

.title {
	overflow: hidden;
}

.subtitle {
	font-family: serif;
	font-size: 1.3rem;
}

.product {
	width: 100%;
	margin-bottom: 6rem;
	border-radius: 0;
}

.product-header {
	padding-bottom: 1.2rem;
	display: flex;
	flex-direction: row;
	border-bottom: 0;
	margin-bottom: 0;
}

.product-body {
	display: flex;
	overflow: visible;
}

.product-image {
	width: 50%;
	object-fit: cover;
	display: block;
}

.product-text {
	width: 50%;
	background-color: var(--black); /* Black background for dark mode default */
	color: var(--white); /* White text for dark mode default */
	box-sizing: border-box;
	padding: 2rem;
	padding-top: 1.6rem;
	font-size: 1.15rem;
	padding-bottom: 2.5rem;
	line-height: 1.4;
}

.product-text p {
	padding: 0;
	margin-top: 0;
}

.product-text p:last-child {
	margin-bottom: 1.5rem;
}

#carousel-container {
	width: 50%;
	position: relative;
}

#carousel-container > .product-image {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.product-image.first {
	opacity: 1;
	z-index: 0;
}

.product-image.second {
	opacity: 1;
	z-index: -1;
}

#carousel-nav {
	width: 100%;
	height: 3.5rem;
	position: absolute;
	bottom: 0rem;
	z-index: 3;
	display: none; /*display: block; when js is enabled*/
}

.carousel-nav-inner {
	width: 3.75rem;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	background-color: var(--black);
	border-radius: 50rem;
	padding: 0.75rem;
}

.carousel-nav-dot {
	height: 0.75rem;
	width: 0.75rem;
	background-color: var(--white);
	border-radius: 100%;
	cursor: pointer;
}

.carousel-nav-dot.active {
	background-color: var(--accent-color);
}

.product-button {
	margin-top: 1rem;
}

.button {
	padding: .9rem 2rem;
	width: fit-content;
	background-color: var(--accent-color);
	border: 0;
	color: var(--white);
	border-radius: 50rem;
	align-items: center;
	font-size: 1.5rem;
	cursor: pointer;
	height: fit-content;
	display: block;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, filter .15s ease-in-out, transform .15s ease-in-out;
	text-decoration: none;
	user-select: none;
	text-align: center;
}

.below-button-text {
	text-align: center;
	margin-top: .5rem;
	font-size: 1rem;
	user-select: none;
}

.price {
	font-size: 3rem;
	padding-right:.5rem;
}

.price-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	display: flex;
	justify-content: center;
	padding-top: 1.5rem;
}

/* Apply special alignment in dark mode only, for screens wider than 66rem */
@media only screen and (prefers-color-scheme: dark) and (min-width: 66.001rem) {
	.product-text {
		padding-top: 0;
		margin-top: -.4rem;
	}
}

@media only screen and (max-width: 66rem){
	#inner-page-container {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
	.product-body {
		flex-direction: column;
	}
	#carousel-container {
		width: 100%;
		height: 21rem;
		margin-bottom: .25rem; /* Add spacing below image */
	}
	.product-image {
		width: 100%;
		max-height: 33rem;
		object-fit: cover;
		display: block;
	}
	.product-text {
		width: 100%;
		box-sizing: border-box;
		padding: 1.2rem;
		padding-bottom: 2.5rem;
	}
}

@media only screen and (prefers-color-scheme: dark) and (max-width: 66rem){
	.product-text {
		padding-left: 0;
		padding-right: 0;
	}
}

@media only screen and (max-width: 35rem) {
	#header-text > h1 {
		font-size: 2.5rem; /* Increased from 2rem */
	}
	.title {
		font-size: 1.8rem; /* Increased from 1.4rem */
		line-height: 1.2;
	}
	/* .subtitle {
		display: none;
	} */
	.x-box {
		display: none !important;
	}
	#product-board {
		margin-top: 2rem;
	}
	#header {
		padding: 1rem;
		padding-bottom: 1.4rem;
		min-height: 3rem;
	}
	.product {
		margin-bottom: 4rem;
		width: 100%;
		box-sizing: border-box;
	}
	.product-header {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.product-text {
		padding: 1rem;
		padding-top: 1rem;
		padding-bottom: 2.5rem;
		font-size: 1.25rem; /* Increased from base size */
		line-height: 1.5;
	}
	.product-text p {
		margin-bottom: 1rem;
	}
	#page-container {
		padding-bottom: 0;
		width: 100%;
		max-width: 100%;
	}
	#inner-page-container {
		padding-left: 0;
		padding-right: 0;
		width: 100%;
		box-sizing: border-box;
	}
	#carousel-container {
		margin-bottom: 0;
	}
	#carousel-nav {
		height: 3.8rem;
	}
	.carousel-nav-inner {
		width: 4.8rem;
		padding: 0.9rem;
	}
	.carousel-nav-dot {
		height: 1rem;
		width: 1rem;
	}
	.button {
		font-size: 1.3rem; /* Decreased from 1.4rem */
		padding: 0.95rem 2.1rem; /* Slightly smaller */
	}
}


#marquee_container {
	overflow: hidden;
	white-space: nowrap;
	position: relative;
	padding-bottom:2px;
}

#marquee_container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	background-color: var(--white); /* White background for marquee in dark mode */
	z-index: -1;
	transition: height 1s ease-in-out;
}

.marquee {
	display: inline-block;
	font-size:20px;
	padding-top:3px;
	padding-bottom: 4px;
	color: var(--black); /* Black text over white marquee in dark mode */
	position: relative;
	z-index: 1;
	will-change: transform;
	margin-top: -1px;
}

#marquee_container:hover {
	cursor: grabbing;
}

#marquee_container.closed {
	cursor: default;
}

@media (prefers-color-scheme: light) {
	/* Override for light mode preference */
	/* Change accent color to indigo for light mode */
	:root {
		--accent-color: #370fff;
	}
	
	body {
		background-color: var(--white); /* White background for light mode */
	}
	#header-text {
		color: var(--black); /* Black text for light mode */
	}
	.rule {
		background-color: var(--accent-color); /* Indigo rule for light mode */
	}
	.title-and-subtitle {
		color: var(--black); /* Black text for light mode */
	}
	.product-text {
		background-color: var(--white); /* White background for light mode */
		color: var(--black); /* Black text for light mode */
	}
	.product-body {
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Soft grey drop shadow for light mode */
	}
	#marquee_container::before {
		background-color: var(--accent-color); /* Indigo background for marquee in light mode */
	}
	.marquee {
		color: var(--white); /* White text on indigo marquee in light mode */
	}
	.carousel-nav-inner {
		background-color: var(--black);
	}
	
	.carousel-nav-dot {
		background-color: var(--white);
	}
	.carousel-nav-dot.active {
		background-color: var(--accent-color);
	}
}

/* Disable shadow for narrow screens in light mode */
@media (prefers-color-scheme: light) and (max-width: 35rem) {
	.product-body {
		box-shadow: none;
	}
}