/* start dark mode styling */
@media (prefers-color-scheme: dark) {
	:root {
		--text: rgb(0, 0, 0);
		--border: #ffb93f;
		--accent: #f9da5e;
		--bg: #d6ae7b;
		--gradientBottom: #d6ae7b;
		--gradientTop: #eacda3;
	}
} 

* { box-sizing: border-box; }

body {
	padding: 10px;
	font-family: 'MS PGothic', sans-serif;
	color: var(--text);
	background: url('https://imgur.com/2cElr7o.png') center / cover no-repeat;
}

/* header */
header {
	width: 100%;
	max-width: 55rem;
	margin: 20px auto;
	border: none;
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
	background: none;
	display: flex;
	justify-content: center;
	align-items: center;
}

header img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 150px;
	object-fit: contain;
	border: none;
	border-radius: 10px;
	background: none;
}

/* container */
.container {
	position: relative; /* required for ::before */
	z-index: 0;
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;
	background-color: rgba(0, 0, 0, 0.4);
	background-image: url('https://imgur.com/8pSIZQ9.png');
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

/* blur + darken effect INSIDE the yellow border */
.container::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(6px);
	z-index: 0;
}

/* column widths */
.small { flex: 1 1 9%; position: relative; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }

/* nav and section boxes */
nav, section {
	position: relative;
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop), var(--gradientBottom));
	padding: 5px;
	overflow: hidden;
	z-index: 1; /* ensure on top of container blur */
}

/* faint overlay pattern */
nav::before,
section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('https://imgur.com/CRVBh7x.png') center / cover no-repeat; 
	opacity: 0.3;
	pointer-events: none;
	z-index: 0;
}

/* ensure text and content stay above overlay */
nav *, section * {
	position: relative;
	z-index: 1;
}

/* rest of css */
nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
}

nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradientBottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}

nav a:link, nav a:visited { color: var(--text); }
nav a:hover, nav a:focus {
	background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}

/* small box images (bubble + azi) */
div.small > img {
	display: block;
	margin: 10px auto;
	border: none !important; /* removes border */
	border-radius: 0;
}

/* Position the status cafe overlay over the bubble image */
#statuscafe {
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-55%, -50%);
	width: 70%;
	text-align: center;
	padding: 0.5em;
	background-color: rgba(140, 140, 140, 0.903);
	color: #000000;
	border: none;
	border-radius: 10px;
	z-index: 2;
	backdrop-filter: blur(3px);
}

#statuscafe-username {
	font-weight: bold;
	margin-bottom: 0.3em;
}

#statuscafe-content {
	margin: 0;
}

/* typography */
h1, h2, h3, h4, h5, h6, p { margin: 5px; line-height: 1.2; }
h1 { font-size: 1.4rem; text-align: center; border-bottom: 2px ridge var(--border); padding-bottom: 5px; }
h2 { font-size: 1.25rem; text-align: center; }

img { max-width: 100%; }

.centered-images {
	display: flex;            
	justify-content: center;  
	gap: 10px;                
}

.centered-images img {
	max-width: 100px;  
	height: auto;      
}

/* ✅ Status Cafe Base Style (from instructions) */
#statuscafe {
    padding: .5em;
    background-color: azure;
    border: 1px solid midnightblue;
}

#statuscafe-username {
    margin-bottom: .5em;
}

#statuscafe-content {
    margin: 0 1em 0.5em 1em;
}
