/* Master Styles */
body {
	color: #000;
	background-color: #eee;
	background-image: url('images/bg2.svg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	font-family: 'JetBrains Mono', monospace;
	font-size: 1rem;
	line-height: 1.5;
	margin: auto;
	max-width: 900px;
	/* Restricts max width for larger screens */
	transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
	background-color: #444444;
	color: #eee;
}

header {
	margin-bottom: 1rem;
}

a {
	text-decoration: none;
	color: inherit;
}

h1 {
	background-color: #000;
	color: #eee;
	font-family: 'Oxanium', monospace;
	font-weight: 700;
	padding: 0.5rem;
}

#menu {
	background-color: #000;
	margin-top: 1em;
	margin-bottom: 2em;
}

#menu>ul {
	color: #eee;
	padding: 0;
	margin: 0;
	list-style: none;
	font-family: 'Oxanium', monospace;
	font-weight: 700;
	font-style: normal;
	font-size: 1.5rem;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	/* Allows the menu items to wrap */
}

.box {
	margin: 0;
	margin-bottom: 2em;
	padding: 1rem;
	border: 3px solid rgb(0, 0, 0);
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	box-shadow: rgba(0, 0, 0, 0.3) 10px 10px;
	border-radius: 8px;
	transition: background-color 0.3s, border-color 0.3s;
	max-width: 100%;
	/* Makes boxes responsive */
}

/* Responsive shit */
@media (max-width: 768px) {
	body {
		font-size: 0.9rem;
		/* Slightly smaller font on mobile */
	}

	h1 {
		font-size: 1.5rem;
		/* Adjust h1 font size for smaller screens */
	}

	#menu>ul {
		flex-direction: column;
		/* Stack menu items vertically */
		font-size: 1.2rem;
		/* Adjust font size */
	}

	.box {
		padding: 0.5rem;
		/* Reduce padding for smaller screens */
	}

	footer {
		font-size: 0.8em;
		/* Smaller footer text on mobile */
	}
}

/* Aligning badges in the status box */
#status ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#status ul li {
	display: flex;
	align-items: center;
	padding: 0.2em 0;
}

#status ul li img {
	margin-left: 0.5em;
	border-radius: 4px;
	border: 2px solid #000;
}

/* Optional adjustments for light/dark theme on badges */
body.dark-mode #status ul li img {
	border-color: #eee;
}

/* Dark mode box styles */
body.dark-mode .box {
	background-color: rgba(68, 68, 68, 0.8);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Styles for the clickable link sections */
.box h2 a {
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	transition: color 0.3s;
}

.box h2 a:hover {
	text-decoration: underline;
	color: #444;
}

.theme-switch {
	margin: 1em 0;
	display: flex;
	justify-content: flex-end;
}

/* Footer Alignment */
footer {
	text-align: center;
	padding: 1em 0;
	font-size: 0.9em;
	margin-top: 2em;
	border-top: 1px solid #333;
}

/* Chat Bubble GDPR Policy */
.privacy-policy {
	position: relative;
	display: inline-block;
}

.privacy-policy:hover .bubble {
	display: block;
}

.bubble {
	display: none;
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	background-color: #000;
	color: #eee;
	text-align: left;
	padding: 1em;
	border-radius: 8px;
	font-size: 0.9rem;
	line-height: 1.2;
	z-index: 10;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.bubble::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #000 transparent transparent transparent;
}

/* Chat link notification indicator */
#chat-indicator {
    display: none;
	color: #eee;
	padding: 0;
	margin: 0;
	list-style: none;
	font-family: 'Oxanium', monospace;
	font-weight: 700;
	font-style: normal;
	font-size: 1.5rem;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	/* Allows the menu items to wrap */
}

/* Fullscreen iframe styling */
.iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    border: 3px solid #000;
    display: flex;
    flex-direction: column;
    z-index: 1000; /* High z-index to ensure it appears on top of other elements */
}

.iframe-header {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Aligns buttons to the right */
    padding: 0.5em;
    background: #000;
    color: #eee;
}

.iframe-header button {
    font-size: 1.2em;
    color: #eee;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 1em; /* Space between buttons */
}

.iframe-container iframe {
    flex-grow: 1;
    width: 100%;
    border: none;
}

.hidden {
    display: none;
}
