body, html {
	margin: 0;
	height: 100%;
	overflow: hidden;
}

#info {
	position: absolute;
	top: 10px;
	left: 10px;
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 10px;
}

canvas {
	display: block;
}

body {
	font-family: Arial, sans-serif; /* Use Arial font */
}

.wrapper {
	display: flex;
	flex-direction: row;
	height: 100vh;
	align-items: center;
}

#materialContainerBlock, #bakContainerBlock {
	border-top: 1px solid rgb(199, 199, 199);
	padding: 15px;
}

#materialButtonsContainer, #bakButtonsContainer {
	display: flex;
	align-content: center;
	gap: 45px;
}

#materialContainer {
	padding-left: 50px;
}

#bakContainer {
	padding-left: 50px;
}

#materialTitle {
	display: inline-block;
	padding-bottom: 10px;
}

.materialButton {
	width: 50px;
	height: 50px;
	border: none;
	border-radius: 50%; /* Circular shape */
	background-color: #f0f0f0;
	transition: all 0.2s ease;
	padding: 0;
	cursor: pointer;
	position: relative; /* For positioning the arrow */
}

/* Circular border around the arrow */
.materialButton::before {
	content: '';
	position: absolute;
	right: -35px; /* Adjust position relative to arrow */
	top: 50%;
	transform: translateY(-50%);
	width: 30px; /* Diameter of circular border */
	height: 20px; /* Diameter of circular border */
	border-radius: 50%; /* Makes it circular */
	border: none; /* Color and thickness of the circular border */
	background-color: #EFE8DF; /* Background color of the circle (optional) */
	z-index: 1; /* Ensure it's behind the arrow */
}

/* Dropdown arrow */
.materialButton::after {
	content: ''; /* Empty content for the arrow */
	position: absolute;
	right: -25px; /* Position the arrow within the circular border */
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #333; /* Arrow color */
	z-index: 2; /* Ensure it appears above the circular border */
	pointer-events: none; /* Prevent click issues */
}

.materialButton img, .bakButton img {
	width: 100%;
	height: 100%;
	border-radius: 50%; /* Apply the same border-radius to the image */
}

.dropDownContainer {
	display: flex;
	width: 90%;
	border: none;
	background-color: #EFE8DF;
	border-radius: 10%;
	padding-right: 20px;
}

.materialDropdown {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

/* Style for each option in the dropdown */
.materialBox {
	width: 100%;
	border-radius: 50%;
	padding: 5px; /* Padding around options */
	cursor: pointer; /* Pointer cursor on hover */
	align-self: auto;
	border-radius: 50%;
}

.materialBox canvas {
	width: 50px;
	height: 50px;
	border-radius: 50%;
}

/* The switch container */
#switchContainer {
	display: flex;
	position: fixed;
	right: 20px;
	justify-content: space-around;
	align-items: center;
}

/* Wrapper for each switch and its text */
.switchWrapper {
	display: flex;
	align-items: center;
	gap: 10px; /* Space between the switch and the text */
}

/* The switch - the box around the slider */
.switch {
	position: relative;
	display: inline-block;
	width: 50px; /* Adjust width */
	height: 24px; /* Adjust height */
}

/* Hide default HTML checkbox */
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

/* The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 4px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
}

/* When the checkbox is checked, change the slider color */
input:checked + .slider {
	background-color: #f30000;
}

/* When the checkbox is focused, add a shadow */
input:focus + .slider {
	box-shadow: 0 0 1px #fa0101;
}

/* When the checkbox is checked, move the knob */
input:checked + .slider:before {
	transform: translateX(25px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

/* Styling for the switch text */
.switch-text {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	padding-right: 20px;
}

.button-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

/* Add this to show the dropdown on hover */
.materialContainer:hover .materialDropdown {
	display: block;
}

.right-bottom-buttons {
	display: none;
	position: fixed; /* Add this to make it fixed in the bottom right corner */
	right: 30px;
	bottom: 30px;
	gap: 7px; /* Add some space between buttons if needed */
}

.right-bottom-buttons .bottom-button {
	background-color: white;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	border: none;
}

.right-bottom-buttons .bottom-button :hover {
	background-color: rgb(221, 221, 221);
}

#objectContainer {
	display: none;
	flex-direction: column; /* Vertical alignment for top and bottom sections */
	align-items: center;
	position: fixed;
	left: 50%;
	top: 50%;
	max-width: 90%; /* Max width to prevent overflow */
	max-height: 90%; /* Max height to prevent overflow */
	transform: translate(-50%, -50%);
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	font-family: 'Arial', sans-serif;
	background-color: #ffffff;
	border-radius: 8px;
}

/* Top container styling */
.topObjectContainer {
	display: flex;
	width: 100%;
	height: 50px;
	padding: 5px;
	border-bottom: 1px solid rgb(199, 199, 199);
	justify-content: flex-start;
	flex-wrap: nowrap;
	align-items: center;
}

.objectButtonsContainer {
	display: flex;
	width: 800px;
	height: 400px;
}

/* Grid styling for object buttons */
.normalContainer, .nobakContainer, .straightContainer, .straightnbContainer {
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	padding: 20px;
	width: 100%;
	border-radius: 8px;
}

/* Individual button styling */
#objectContainer button {
	width: 100%;
	height: 125px;
	margin: 0;
	border: none;
	border-radius: 10%;
	cursor: pointer;
	display: flex;
	position: relative; /* Added to allow positioning of hover elements */
	align-self: auto;
	background-color: white;
	overflow: hidden; /* Ensure circle does not overflow */
}

#objectContainer button:hover {
	border: dotted 1px black;
}

#objectContainer button img {
	width: 100%;
	height: 100%;
	background-color: white;
}

/* Red circle with white '+' sign on hover */
#objectContainer button::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px; /* Size of the red circle */
	height: 40px;
	background-color: red;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.2s ease;
	z-index: 1;
}

/* White '+' sign in the middle of the red circle */
#objectContainer button::before {
	content: '+';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	color: white;
	font-size: 24px;
	font-weight: bold;
	transition: transform 0.2s ease;
	z-index: 2;
}

/* Show the red circle and white '+' on hover */
#objectContainer button:hover::after,
#objectContainer button:hover::before {
	transform: translate(-50%, -50%) scale(1);
}

.home-image {
	flex: 1 0 50%;
	height: 100%;;
	position: relative;
}

.home-image img {
	position: absolute;
	inset: 0;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.home-form {
	flex: 1 0 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#uploadContainer {
	margin: 32px;
	padding: 32px;
	border: 1px solid #eee;
	box-shadow: 0 10px 10px -10px rgba(0, 0, 0, .5);
	display: flex;
	flex-direction: column;
	max-width: calc(100% - 64px);
	justify-content: center;
	align-items: center;
	gap: 8px;
	line-height: 24px;
}

#uploadContainer img {
	width: 50%;
}

.upload-wrapper {
	display: flex;
	align-items: center;
	width: 100%;
}

.upload-wrapper input {
	flex: 2 0 auto;
	background-color: #eee;
	padding: 16px 8px;
}

/* Responsive styles */
@media (max-width: 600px) {
	#topBanner {
		flex-direction: column;
		align-items: center;
		padding: 10px;
	}

	.banner-logo {
		margin-top: 10px;
	}
}

#topBanner {
	position: fixed;
	top: 10px;
	height: 50px;
	left: 50%;
	transform: translateX(-50%);
	right: 0;
	width: 95%;
	background-color: #ffffff;
	z-index: 1000;
	display: none;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	border-radius: 5px;
}

.topBannerButtonContainer {
	display: flex; /* Use flexbox to align buttons horizontally */
	gap: 20px; /* Add space between buttons */
	justify-content: flex-start; /* Align buttons to the left */
	flex-wrap: nowrap; /* Prevent buttons from wrapping to a new line */
}

.banner-content h1 {
	margin: 0;
	font-size: 24px;
	color: #333333;
}

.banner-button {
	display: flex;
	border: none;
	border-radius: 5px; /* Use flexbox to align image and text */
	align-items: center; /* Vertically center the items */
	padding: 8px 16px;
	background-color: #ffffff; /* Add border to make it visible */
	cursor: pointer;
	transition: background-color 0.3s;
	text-align: center;
}

.banner-button img {
	width: 30px; /* Set image width */
	height: 30px; /* Set image height */
	margin-right: 10px; /* Space between image and text */
}

.banner-text {
	display: inline-block;
}

.banner-button:hover {
	background-color: #e0e0e0;
}

.banner-logo {
	display: flex;
	align-items: center;
}

.banner-logo img {
	height: 40px;
}

@media (max-width: 600px) {
	#topBanner {
		flex-direction: column;
		align-items: center;
		padding: 10px;
	}

	.banner-buttons {
		margin-top: 10px;
	}

	.banner-logo {
		margin-top: 10px;
	}
}

#buttonContainer {
	position: fixed;
	left: 25px;
	bottom: 25px;
	display: none;
	flex-direction: column;
	padding: 10px;
	background-color: #ffffff;
	width: 300px;
	border-radius: 15px;
	gap: 5px;
	z-index: 10;
}

#buttonContainer .button-text, .topObjectContainer .button-text {
	padding-left: 10px;
	padding-top: 12px;
	font-weight: 700;
}

.icon-button {
	display: flex;
	align-items: center;
	padding: 10px;
	border: none;
	background-color: #ffffff;
	cursor: pointer;
	transition: background-color 0.3s;
	border-radius: 5px;
}

.icon-button:hover {
	background-color: #e0e0e0;
}

.icon-button img {
	width: 20px;
	height: 20px;
	margin-right: 15px;
}

.bottom-button img {
	width: 24px;
	height: 24px;
}

.icon-button span {
	font-size: 14px;
}

/* Code wrapper styles */
.email-wrap {
	max-width: 500px;
	margin: 2rem auto;
	padding: 2rem;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	gap: 1rem; /* Add consistent vertical spacing between all child elements */
}

.email-wrap input[type="email"],
.email-wrap input[type="text"] {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.email-wrap button {
	width: 100%;
	padding: 0.75rem;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.code-wrapper button:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
}

#codeStatus,
#spamCheckMessage,
#timerMessage {
	font-size: 0.9rem;
}

#codeStatus {
	color: #dc3545;
}

#spamCheckMessage {
	color: #0056b3;
}

/* #timerMessage {
	color: #28a745;
} */

/* Responsive design */
@media (max-width: 600px) {
	.code-wrapper {
		margin: 1rem;
		padding: 1.5rem;
	}
}

/* Animation for focus states */
.code-wrapper input:focus,
.code-wrapper button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
	transition: box-shadow 0.3s ease;
}

/* Transition for showing/hiding elements */
#verificationCodeInput,
#verifyCodeButton,
#codeStatus,
#spamCheckMessage,
#timerMessage {
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition: opacity 0.3s ease, max-height 0.3s ease;
}

#verificationCodeInput:not([style*="display: none"]),
#verifyCodeButton:not([style*="display: none"]),
#codeStatus:not([style*="display: none"]),
#spamCheckMessage:not([style*="display: none"]),
#timerMessage:not([style*="display: none"]) {
	opacity: 1;
	max-height: 50px;
}

.address-search {
	display: flex;
	gap: 10px;
	width: 100%;
	margin-bottom: 15px;
}

.address-search input {
	flex: 2;
	padding: 16px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.validation-message {
	color: #dc3545;
	font-size: 0.9rem;
	margin-top: -0.5rem;
	margin-bottom: 0.5rem;
	min-height: 20px;
	display: none;
}

.email-wrap input.invalid {
	border-color: #dc3545;
}

.address-search button {
	flex: 1;
	background-color: black;
	color: white;
	padding: 16px 8px;
	border: none;
	border-radius: 24px;
	cursor: pointer;
}

.upload-divider {
	text-align: center;
	margin: 15px 0;
	font-weight: bold;
	color: #666;
}

.left-bottom {
	position: fixed;
	left: 25px;
	bottom: 25px;
	display: none;
}

.left-bottom button {
	background-color: var(--primary-color);
	border: none;
	border-radius: 15px;
	padding: 18px 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
	font-weight: 500;
	color: var(--white);
	position: relative;
	overflow: hidden;
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
	animation: aiButtonGlow 2s ease-in-out infinite alternate;
	transition: all 0.3s ease;
}

.left-bottom button:hover {
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 0 40px rgba(59, 130, 246, 0.9), 
	           0 0 60px rgba(59, 130, 246, 0.5);
}

.left-bottom button::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, 
		#3B82F6, 
		#8B5CF6, 
		#06B6D4, 
		#10B981, 
		#3B82F6);
	background-size: 400% 400%;
	border-radius: 17px;
	z-index: -1;
	animation: aiButtonBorder 3s ease infinite;
}

@keyframes aiButtonGlow {
	0% {
		box-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
	}
	100% {
		box-shadow: 0 0 45px rgba(59, 130, 246, 0.9), 
		           0 0 60px rgba(59, 130, 246, 0.5);
	}
}

@keyframes aiButtonBorder {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.left-bottom button img {
	width: 18px;
	height: auto;
}

.ai-tooltip {
	position: absolute;
	bottom: 100%;
	left: 240%;
	transform: translateX(-50%);
	margin-bottom: 15px;
	background: rgba(255, 255, 255, 0.9);
	color: black;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.9rem;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	z-index: 1000;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 10%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: rgba(255, 255, 255, 0.9);
}

.left-bottom:hover .ai-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-5px);
}

.ai-tooltip h4 {
	margin: 0 0 5px 0;
	font-size: 1rem;
	font-weight: 600;
	color: #3B82F6;
}

.ai-tooltip p {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.3;
}