body {
	font-size: 18px;
	color: #262626;
	font-family: 'Futura', sans-serif;
	margin: 0;
	padding: 0;
	background: #c5dff0;

}

.top-bar {
	background-color: #fb8ec1;
	height: 20px;
	width: 100%;
}

.menu-bar {
	background-color: rgb(238, 233, 117);
	padding: 0;
	position: sticky;
	top: 0;
	width: 100%;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	z-index: 9999;
}

.menu-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
}

.menu-item {
	color: rgb(40, 77, 78);
	text-decoration: none;
	padding: 15px 25px;
	display: inline-block;
	transition: background-color 0.3s;
}

.menu-item:hover {
	background-color: #555;
}

.content {
	padding: 20px;
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.image-section {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	margin-right: 65px;
}

.image-rotator {
	width: min(650px, 45vw);
	height: min(650px, 45vw);
	margin-top: 20px;
	position: relative;
}

.image-rotator img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	transition: opacity 0.5s ease-in-out;
}

.nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.4);
	border: none;
	width: 50px;
	height: 80px;
	border-radius: 4px;
	font-size: 40px;
	font-weight: 300;
	cursor: pointer;
	opacity: 0;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	padding: 0;
	backdrop-filter: blur(4px);
}

.image-rotator:hover .nav-arrow {
	opacity: 1;
}

.nav-arrow:hover {
	background-color: rgba(0, 0, 0, 0.6);
	transform: translateY(-50%) scale(1.05);
}

.left-arrow {
	left: 20px;
}

.right-arrow {
	right: 20px;
}

.instagram-link {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	text-decoration: none;
	color: #262626;
	font-size: 16px;
	transition: color 0.3s;
}

.instagram-link:hover {
	color: #C13584;
}

.instagram-icon {
	width: 24px;
	height: 24px;
}

.main-content {
	flex: 1;
}

.heading-container {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.heading-logo {
	height: 180px;
	width: auto;
}

.heading-text {
	display: flex;
	flex-direction: column;
	gap: 0;
}

#main-heading {
	font-size: 48px;
	margin: 20px 0 0 0;
}

.established {
	font-size: 18px;
	margin: 0;
	color: #262626;
	font-weight: normal;
}

.button-container {
	display: flex;
	gap: 0;
	margin-top: 30px;
	justify-content: flex-start;
	margin-left: 40px;
}

.pill-button {
	background-color: #F5F0E8;
	color: #000;
	font-family: 'Futura', sans-serif;
	font-size: 24px;
	font-weight: bold;
	padding: 20px 60px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	margin-left: -35px;
	position: relative;
}

.pill-button:first-child {
	margin-left: 0;
	transform: rotate(-3deg);
}

.pill-button:nth-child(2) {
	transform: rotate(2deg);
}

.pill-button:nth-child(3) {
	transform: rotate(-2deg);
}

.pill-button:nth-child(4) {
	transform: rotate(2deg);
}

.pill-button:hover {
	transform: rotate(0deg) translateY(-2px) scale(1.05);
	box-shadow: 0 8px 16px rgba(0,0,0,0.2);
	z-index: 10;
}

.pill-button:active {
	transform: rotate(0deg) translateY(0) scale(1);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pill-button.yellow {
	background-color: rgb(238, 233, 117);
	z-index: 5;
}

.pill-button:first-child.yellow {
	transform: rotate(-3deg) scale(1.15);
}

.pill-button:nth-child(2).yellow {
	transform: rotate(2deg) scale(1.15);
}

.pill-button:nth-child(3).yellow {
	transform: rotate(-2deg) scale(1.15);
}

.pill-button:nth-child(4).yellow {
	transform: rotate(2deg) scale(1.15);
}

#selected-text {
	margin-top: 40px;
	font-size: 36px;
	font-weight: bold;
	color: #262626;
	margin-left: 40px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
}

.bottom-popup {
	position: fixed;
	bottom: 0;
	right: max(150px, 10vw);
	width: auto;
	height: 60px;
	background-color: #f899c5;
	box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
	animation: slideUp 0.5s ease-out;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: bold;
	color: #262626;
	padding: 0 30px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.3s;
}

.bottom-popup:hover {
	background-color: #fa9fd0;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

.rectangle {
	width: min(600px, calc(50vw + 5px));
	height: min(500px, calc(25vh + 5px));
	border: 2px solid #000;
	position: fixed;
	bottom: 148px;
	left: max(150px, 5vw);
}

.main-image {
	width: min(605px, calc(50vw + 5px));
	height: min(505px, calc(25vh + 5px));
	object-fit: cover;
	position: fixed;
	bottom: 150px;
	left: max(150px, 5vw);
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}

.popup-overlay.show {
	display: flex;
}

.popup-box {
	width: min(600px, 90vw);
	height: auto;
	min-height: 400px;
	background-color: rgb(188, 99, 209);
	border: 2px solid #333;
	position: relative;
	animation: flashBorder 0.5s ease-in-out 3;
}

@keyframes flashBorder {
	0%, 100% {
		border-color: #333;
	}
	50% {
		border-color: #ffd700;
		box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
	}
}

.close-popup {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #333;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.close-popup:hover {
	color: #000;
	background-color: #f0f0f0;
	border-radius: 4px;
}

.popup-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 60px 40px 40px 40px;
	text-align: center;
	margin-top: 0;
}

.popup-content h2 {
	font-size: 32px;
	font-weight: bold;
	color: #262626;
	margin: 0 0 30px 0;
	font-family: 'Futura', sans-serif;
}

.popup-button {
	background-color: rgb(238, 233, 117);
	color: #000;
	font-family: 'Futura', sans-serif;
	font-size: 28px;
	font-weight: bold;
	padding: 20px 60px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.popup-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.popup-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.trigger-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 200px;
	height: 150px;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 1000;
}

/* Responsive breakpoints for laptops */
@media screen and (max-width: 1366px) {
	.image-rotator {
		width: min(550px, 45vw);
		height: min(550px, 45vw);
	}

	.heading-logo {
		height: 150px;
	}

	#main-heading {
		font-size: 42px;
	}

	.pill-button {
		font-size: 22px;
		padding: 18px 50px;
	}

	#selected-text {
		font-size: 32px;
	}

	.content {
		padding-bottom: 450px; /* Add space for fixed bottom image */
	}
}

@media screen and (max-width: 1024px) {
	.content {
		flex-direction: column;
		align-items: center;
		gap: 20px;
		padding-bottom: 450px; /* Add space for fixed bottom image */
	}

	.image-section {
		margin-right: 0;
		order: 2;
		margin-bottom: 50px; /* Extra space to prevent overlap */
	}

	.main-content {
		order: 1;
	}

	.image-rotator {
		width: min(500px, 80vw);
		height: min(500px, 80vw);
	}

	.heading-logo {
		height: 120px;
	}

	#main-heading {
		font-size: 36px;
	}

	.pill-button {
		font-size: 20px;
		padding: 15px 40px;
	}

	.button-container {
		margin-left: 20px;
	}

	#selected-text {
		font-size: 28px;
		margin-left: 20px;
	}

	.rectangle {
		width: min(600px, 80vw);
		height: min(300px, 20vh);
		left: 10vw;
	}

	.main-image {
		width: min(605px, calc(80vw + 5px));
		height: min(305px, calc(20vh + 5px));
		left: 10vw;
	}

	.bottom-popup {
		right: 10vw;
	}
}

/* Hide main image and rectangle when zoomed in too much or viewport too small */
@media screen and (max-height: 950px), screen and (max-width: 1000px) {
	.rectangle,
	.main-image {
		display: none;
	}

	.content {
		padding-bottom: 100px; /* Reduce padding since image is hidden */
	}
}
