.main-header {
	background-color: #dcdcd2;
	color: #000;
	padding: 19px 39px 12px 39px;
	border-bottom-right-radius: 8px;
	border-bottom-left-radius: 8px;
	width: 100%;
	position: relative;
	z-index: 10050;
}

@keyframes slideDown {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.header-container {
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 55px;
	justify-content: space-between;
}

.main-header .header-container {
	gap: 55px !important;
}

.logo {
	font-size: 22px;
	font-family: 'Poster Cut Neue', sans-serif;
	font-weight: 400;
	color: #000;
	text-transform: capitalize;
}

.nav-menu {
	display: flex;
	gap: 15px;
}

.nav-link {
	color: white;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 25px;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 2px solid transparent;
	font-weight: 500;
	position: relative;
	overflow: hidden;
}

.nav-link::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.5s, height 0.5s;
}

.nav-link:hover::before {
	width: 200px;
	height: 200px;
}

.nav-link:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: white;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-link.active {
	background: white;
	color: #667eea;
	font-weight: 600;
}

.main-header .header-right {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.main-header .user-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.main-header #usernameDisplay {
	font-weight: 400;
	color: #000;
	font-family: 'Poster Cut Neue', sans-serif;
}

.main-header .logout-btn {
	background: transparent;
	color: #000;
	border: 1px solid #000;
	padding: 8px 20px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 400;
	font-family: 'Poster Cut Neue', sans-serif;
	font-size: 16px;
}

.main-header .logout-btn:hover {
	background: #ea1ea6;
	color: white;
	border-color: #ea1ea6;
}

.main-header .auth-btn {
	background: transparent;
	color: #000;
	border: 1px solid #000;
	padding: 8px 20px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 400;
	font-family: 'Poster Cut Neue', sans-serif;
	font-size: 16px;
}

.main-header .auth-btn:hover {
	background: #ea1ea6;
	color: white;
	border-color: #ea1ea6;
}

.main-header .header-row {
	display: flex;
	align-items: flex-start;
	gap: 55px;
}

.main-header .header-subtitle {
	font-size: 22px;
	font-family: 'Poster Cut Neue', sans-serif;
	font-weight: 400;
	color: #000;
	text-transform: capitalize;
	text-align: left;
	cursor: pointer;
	transition: color 0.3s ease;
}

.main-header .header-subtitle a {
	color: #000;
	text-decoration: none;
}

.main-header .header-subtitle a:hover {
	color: #ea1ea6;
}

.main-header .header-subtitle:hover {
	color: #ea1ea6;
}

.main-header .header-subtitle-rooms-active {
	color: #ea1ea6;
}

.main-header .header-subtitle-methodology {
	margin-left: 6px;
}

/* Dropdown menu styling */
.main-header .dropdown {
	position: relative;
	display: inline-block;
}

.main-header .dropdown > p {
	cursor: pointer;
}

.main-header .dropdown-content {
	display: none;
	position: absolute;
	background-color: white;
	min-width: 200px;
	box-shadow: 0 8px 16px rgba(0,0,0,0.2);
	z-index: 1000;
	border-radius: 8px;
	margin-top: 0;
	overflow: hidden;
	left: 0;
	top: 100%;
}

.main-header .dropdown-content a {
	color: #000;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	transition: background-color 0.3s;
	font-family: 'Fira Sans', sans-serif;
	font-size: 16px !important;
}

.main-header .dropdown-content a:hover {
	background-color: #dcdcd2;
	color: #ea1ea6;
}

.main-header .dropdown:hover .dropdown-content {
	display: block;
}

.main-header .dropdown:hover > p {
	color: #ea1ea6;
}

/* .dropdown::after {
	content: '▼';
	font-size: 0.6rem;
	margin-left: 5px;
	color: #000;
} */

.main-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.page {
	display: none;
}

/* Footer styles */
.main-footer {
	background-color: #dcdcd2;
	color: #000;
	padding: 20px 39px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	width: 100%;
	position: relative;
	z-index: 1000;
}

.footer-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.footer-text {
	font-family: 'Fira Sans', sans-serif;
	font-size: 14px;
	color: #000;
}

.page.active {
	display: block;
}

#homePage h1 {
	text-align: center;
	margin-bottom: 30px;
	color: #333;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.game-card {
	background-color: white;
	padding: 30px;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	color: #333;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.game-title {
	font-size: 1.2rem;
	font-weight: bold;
}

.auth-container {
	max-width: 400px;
	margin: 50px auto;
	background-color: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-container h2 {
	text-align: center;
	margin-bottom: 20px;
	color: #333;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	color: #333;
}

.form-group input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.form-group input:focus {
	outline: none;
	border-color: #4CAF50;
}

.auth-btn {
	width: 100%;
	background-color: #4CAF50;
	color: white;
	border: none;
	padding: 12px;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

.auth-btn:hover {
	background-color: #45a049;
}

.auth-message {
	text-align: center;
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
}

.auth-message.success {
	background-color: #d4edda;
	color: #155724;
}

.auth-message.error {
	background-color: #f8d7da;
	color: #721c24;
}

.auth-link {
	text-align: center;
	margin-top: 15px;
}

.auth-link a {
	color: #4CAF50;
	text-decoration: none;
}

.auth-link a:hover {
	text-decoration: underline;
}

#gameFrame {
	width: 100%;
	min-height: 600px;
	border: none;
}

.back-btn {
	display: inline-block;
	background-color: #333;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 20px;
	transition: background-color 0.3s;
}

.back-btn:hover {
	background-color: #555;
}

/* Modal styles */
.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 300px;
	border-radius: 10px;
}

.close-btn {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.close-btn:hover {
	color: black;
}

.modal-content input {
	width: 100%;
	padding: 10px;
	margin: 10px 0;
	box-sizing: border-box;
}

.modal-content button {
	width: 100%;
	padding: 10px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.modal-content button:hover {
	background-color: #45a049;
}

.error-msg {
	color: red;
	font-size: 14px;
	margin-top: 10px;
}
