/* Copied from root styles to be served by Astro */
/* Root Variables for Color Palette */
:root {
	--primary-color: #2e7d32;
	--primary-dark: #1b5e20;
	--primary-light: #4CAF50;
	--primary-lighter: #81c784;
	--primary-lightest: #c8e6c9;
	--hover-color: #45a049;
	--secondary-color: #1565C0; /* Darker Blue */
	--accent-color: #FFC107; /* Amber */
	--background-color: #f5f5f5; /* Light Gray */
	--text-color: #333333; /* Dark Gray */
	--card-background-color: #FFFFFF; /* White for form card */
}

/* Global Styles */
body {
	font-family: 'Roboto', sans-serif;
	color: var(--text-color);
	background-color: var(--background-color);
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.6;
}

/* Video Player Section */
#video-player {
	background-color: #fff;
	padding: 60px 0;
	clear: both;
	overflow: visible;
}

#video-player h2 {
	font-size: 2rem;
	color: var(--text-color);
	margin-bottom: 30px;
	text-align: center;
}

#player {
	width: 100%;
	max-width: 800px;
	min-height: 450px;
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Form Card */
.form-card {
	background-color: var(--card-background-color);
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	max-width: 500px;
	margin: 50px auto;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

/* Form Fields */
.form-container {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.form-container input {
	margin: 10px 0;
	padding: 12px;
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-container input:focus {
	border-color: var(--primary-color);
	outline: none;
	box-shadow: inset 0 2px 6px rgba(30, 136, 229, 0.3);
}

/* Submit Button */
.btn-primary {
	background-color: var(--primary-color);
	color: white;
	border: none;
	border-radius: 5px;
	padding: 12px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: bold;
	margin-top: 20px;
	width: 100%;
}

.btn-primary:hover {
	background-color: var(--secondary-color);
}

/* Success Message */
.success-message {
	margin-top: 20px;
	padding: 12px;
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	border-radius: 5px;
	text-align: center;
	font-weight: bold;
}

/* Home Button */
.home-btn {
	background-color: var(--primary-color);
	color: white;
	padding: 10px 15px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
}

/* Home Button Hover */
.home-btn:hover {
	background-color: var(--secondary-color);
	transition: background-color 0.3s;
}

/* Header Styles */
header {
	background-color: var(--primary-color);
	padding: 20px 0;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header h1 {
	font-size: 2rem;
	color: white;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

header h1 a {
	color: white;
	text-decoration: none;
}

/* Desktop Navigation */
nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

nav li {
	margin-left: 30px;
	position: relative;
}

nav a {
	text-decoration: none;
	color: white;
	font-weight: 500;
	padding: 10px 15px;
	transition: background-color 0.3s ease;
}

nav a:hover {
	background-color: var(--secondary-color);
	border-radius: 5px;
}

/* Mobile Styles */
.menu-icon {
	display: none;
	cursor: pointer;
	color: white;
	font-size: 2rem;
}

/* Adjust the mobile navigation menu */
@media (max-width: 767px) {
	nav ul {
		display: none; /* Hide the menu by default on mobile */
		flex-direction: column;
		width: 100%;
		background-color: var(--primary-color);
		position: relative; /* Pushes the content down when menu expands */
		padding: 20px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		z-index: 1; /* Ensures it's above the rest but not fixed */
	}

	nav ul.active {
		display: flex; /* Show the menu when active */
	}

	nav li {
		margin: 10px 0;
	}

	/* Show the menu icon on mobile */
	.menu-icon {
		display: block;
	}

	header h1 {
		font-size: 1.5rem;
	}

	.contact-item {
		max-width: 100%;
	}
}


/* Contact Section */
#contact {
	background-color: var(--background-color);
	padding: 60px 0;
}

#contact h2 {
	font-size: 2rem;
	color: var(--text-color);
	margin-bottom: 40px;
	text-align: center;
}

.contact-details {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-bottom: 40px;
}

.contact-item {
	flex: 1 1 30%;
	margin-bottom: 20px;
	max-width: 30%;
}

.contact-item h3 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-bottom: 15px;
}

.contact-item p,
.contact-item ul {
	font-size: 1rem;
	color: var(--text-color);
}

.contact-item ul {
	list-style: none;
	padding: 0;
}

.contact-item li {
	margin-bottom: 5px;
}

/* Map Container */
#map {
	width: 100%;
	height: 450px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
	background-color: #343a40;
	color: #adb5bd;
	padding: 20px 0;
	text-align: center;
}

footer p {
	margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
	.contact-details {
		flex-direction: column;
		align-items: center;
	}

	.contact-item {
		flex: 1 1 100%;
		max-width: 500px;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 14px;
	}

	.container {
		padding: 0 10px;
	}
}

/* Media Queries for Small Screens */
@media (max-width: 767px) {
	.form-card {
		padding: 20px; /* Adjust padding for smaller screens */
		max-width: 90%; /* Ensure form takes up more space on mobile */
		margin: 20px auto; /* Adjust margins for mobile */
	}

	.form-container input {
		padding: 10px; /* Adjust input padding for smaller screens */
		font-size: 0.9rem; /* Adjust font size for smaller screens */
	}

	.btn-primary {
		padding: 10px; /* Adjust button padding for smaller screens */
		font-size: 1rem; /* Keep the button text readable on mobile */
	}

	.home-btn {
		padding: 8px 12px; /* Adjust home button padding for smaller screens */
	}
}

@media (max-width: 480px) {
	.form-card {
		max-width: 100%; /* On very small screens, use full width */
		padding: 15px; /* Adjust padding for extra-small screens */
	}

	.form-container input {
		font-size: 0.85rem; /* Further reduce font size if necessary */
	}

	.btn-primary {
		font-size: 0.9rem; /* Adjust button font size for extra-small screens */
	}

	.home-btn {
		padding: 8px 10px; /* Adjust padding for very small screens */
	}
}

/* Camera Selection Dialog */
.camera-dialog {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.camera-dialog-content {
	background-color: white;
	padding: 2rem;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.camera-dialog h3 {
	margin-bottom: 1.5rem;
	color: #333;
}

.camera-dialog button {
	padding: 0.8rem 1.5rem;
	margin: 0.5rem;
	border: none;
	border-radius: 4px;
	background-color: var(--primary-light);
	color: white;
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.2s;
}

.camera-dialog button:hover {
	background-color: var(--hover-color);
}

/* Update all color references to use variables */
header {
	background-color: var(--primary-color);
}

.login-btn, .register-btn {
	background-color: var(--primary-light);
	color: white;
}

.login-btn:hover, .register-btn:hover {
	background-color: var(--hover-color);
}

.fc .fc-button-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.fc .fc-button-primary:hover {
	background-color: var(--primary-dark);
	border-color: var(--primary-dark);
}

.fc .fc-button-primary:disabled {
	background-color: var(--primary-lighter);
	border-color: var(--primary-lighter);
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
	background-color: var(--primary-dark);
	border-color: var(--primary-dark);
}

.fc-daygrid-day.fc-day-today {
	background-color: var(--primary-lightest) !important;
}

a {
	color: var(--primary-color);
}

a:hover {
	color: var(--primary-dark);
}

.menu-icon {
	color: white;
}

/* Switch Camera Button */
.switch-camera-btn {
	display: none;
	padding: 10px 20px;
	margin: 10px 0;
	background-color: var(--primary-light);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.2s;
}

.switch-camera-btn:hover {
	background-color: var(--hover-color);
}