:root {
	--background-color: #ECE3D6;
	--white: #FFFFFF;
	--black: #000000;
	--light-grey: #F9F2E8;
	--primary-color: #E30613;
	--line-color: #CFC8BD;
}

body {
	background-color: var(--background-color);
	color: var(--black);
	font-family: 'Inter', sans-serif;
	max-height: 100vh;
	overflow: hidden;
	max-width: 100vw;
}

.container {
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	padding: 24px;
	box-sizing: border-box;
}

.content-wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 320px;
	max-width: 400px;
}

.welcome-text {
	min-width: 320px;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: var(--light-grey);
	border-radius: 13px;
	padding: 28px;
	box-sizing: border-box;

	h1 {
		font-size: 14px;
		font-weight: 700;
	}

	p {
		font-size: 14px;
		font-weight: 400;
	}
}

.welcome-form {
	width: 320px;
	display: flex;
	flex-direction: column;
	background-color: var(--white);
	border-radius: 13px;
	box-sizing: border-box;
	padding: 28px;

	h2 {
		font-size: 18px;
		font-weight: 700;
	}

	input {
		width: 100%;
		height: 40px;
		border: none;
		border-bottom: 1px solid var(--line-color);
		border-radius: 0;
		margin-bottom: 16px;
		color: var(--black);
	}

	input:focus {
		outline: none;
	}

	button {
		width: 100%;
		border-radius: 13px;
		cursor: pointer;
		background-color: var(--primary-color);
		border: none;
		color: var(--white);
		font-size: 16px;
		padding: 19px;
	}
}

.welcome-image {
	height: 100%;
	max-width: 50%;
	object-fit: contain;
}

/* Add new media query for smaller screens */
@media screen and (max-width: 768px) {
	.container {
		flex-direction: column;
		padding: 16px;
		overflow-y: auto;
	}

	.content-wrapper {
		width: 100%;
		max-width: 100%;
	}

	.welcome-text,
	.welcome-form {
		width: 100%;
		max-width: 100%;
	}

	.welcome-image {
		max-width: 100%;
		height: fit-content;
		max-height: 40vh;
	}
}

/* Three JS styles */
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;
}

/* Material and BAK container styles */
#materialContainerBlock,
#bakContainerBlock {
	border-top: 1px solid var(--line-color);
	padding: 15px;
}

#materialButtonsContainer,
#bakButtonsContainer {
	display: flex;
	align-content: center;
	gap: 45px;
}

#materialContainer,
#bakContainer {
	padding-left: 50px;
}

#materialTitle {
	display: inline-block;
	padding-bottom: 10px;
}

/* Material button styles */
.materialButton {
	width: 50px;
	height: 50px;
	border: none;
	border-radius: 50%;
	background-color: var(--white);
	transition: all 0.2s ease;
	padding: 0;
	cursor: pointer;
	position: relative;
}

.materialButton::before {
	content: '';
	position: absolute;
	right: -35px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 20px;
	border-radius: 50%;
	border: none;
	background-color: var(--background-color);
	z-index: 1;
}

.materialButton::after {
	content: '';
	position: absolute;
	right: -25px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--black);
	z-index: 2;
	pointer-events: none;
}

.materialButton img,
.bakButton img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.search-container {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	max-width: 800px;
	margin: 0 auto;
	gap: 2rem;
	height: 100vh;
}

.photo-selection-header {
	text-align: center;
	margin-bottom: 2rem;
}

.address-search {
	display: flex;
	gap: 1rem;
	width: 100%;
	max-width: 600px;
}

.address-search input {
	flex: 1;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.upload-divider {
	font-weight: bold;
	color: #666;
	margin: 1rem 0;
}

.upload-options {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 100%;
}

.photo-selection-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;

	@media screen and (max-width: 1200px) {
		max-width: 100%;
	}
}

.photo-selection-header {
	padding: 28px;
	background-color: var(--light-grey);
	border-radius: 13px;

	h2,
	p {
		text-align: left;
	}
}

.photo-selection-options {
	display: flex;
	gap: 1rem;

	div {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		background-color: var(--white);
		border-radius: 13px;
		padding: 28px;
		width: 320px;
		height: 230px;

		button {
			width: 100%;
			border-radius: 13px;
			cursor: pointer;
			background-color: var(--primary-color);
			border: none;
			color: var(--white);
			font-size: 16px;
			padding: 19px;
		}

		input {
			width: 100%;
			height: 40px;
			border: none;
			border-bottom: 1px solid var(--line-color);
			border-radius: 0;
			margin-bottom: 16px;
			color: var(--black);

			&:focus {
				outline: none;
			}
		}
	}

	#imageUpload {
		width: 0.1px;
		height: 0.1px;
		opacity: 0;
		overflow: hidden;
		position: absolute;
		z-index: -1;
	}

	.upload-label {
		font-size: 16px;
		font-weight: 400;
		color: var(--black);
		display: flex;
		cursor: pointer;
		border-radius: 13px;
		padding: 16px;
		border: 1px solid var(--line-color);
		align-items: center;
		justify-content: space-between;
	}
}

/* Map styles */
.map-container {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
	width: 100vw;
	height: 100vh;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
}

.map-content {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.map-header {
	display: flex;
	justify-content: flex-end;
	width: 790px;
	margin-bottom: 10px;

	button {
		color: var(--white);
	}
}

.close-button {
	border: none;
	background: none;
	cursor: pointer;
}

.google-map {
	border: 0;
	pointer-events: none;
}

.slider-container {
	margin: 10px 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

#fovValue, #headingValue, #pitchValue {
	margin-left: auto;
}

.slider-group {
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;

	label {
		display: flex;
	}
}

.slider-input {
	width: 100%;
}

.confirm-button {
	width: 100%;
	padding: 19px;
	margin-top: 10px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 13px;
	cursor: pointer;
}

.photo-selection-content {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr 1fr 1fr;

	img {
		grid-column: span 2;
		min-width: 100%;
		height: fit-content;
	}

	div {
		grid-column: span 1;
	}
}

.progress-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 300px;
	background: var(--white);
	padding: 20px;
	border-radius: 13px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	text-align: center;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background-color: var(--background-color);
	border-radius: 4px;
	overflow: hidden;
	margin: 15px 0;
}

.progress-bar-fill {
	height: 100%;
	background-color: var(--primary-color);
	width: 0%;
	transition: width 0.5s ease;
}

.progress-text {
	font-size: 14px;
	color: var(--black);
	margin-bottom: 10px;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
}