:root {
	--bg-desktop: #0b132b;
	--win-base: #d8e6f3;
	--win-light: #ffffff;
	--win-dark: #718a9c;
	--win-text: #051622;
	--win-title: #1a4971;
	--accent-cyan: #00f0ff;
	--inset-bg: #edf4f9;
}

body {
	background-color: var(--bg-desktop);
	background-image: url('https://bettysgraphics.neocities.org/images/backgrounds/stars%202.gif');
	background-repeat: repeat;
	background-attachment: fixed;
	color: var(--win-text);
	font-family: 'VT323', monospace;
	font-size: 1.3rem;
	margin: 0;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	box-sizing: border-box;
}

#main-container {
	width: 100%;
	max-width: 900px;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 15px;
	margin: auto 0;
}

/* overall style */
.window {
	background: var(--win-base);
	border-top: 3px solid var(--win-light);
	border-left: 3px solid var(--win-light);
	border-right: 3px solid var(--win-dark);
	border-bottom: 3px solid var(--win-dark);
	box-shadow: 1px 1px 0px #000, 0 0 8px rgba(0, 240, 255, 0.2);
	padding: 3px;
	height: fit-content;
}

.title-bar {
	background: var(--win-title);
	color: #ffffff;
	padding: 4px 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'Shrikhand', cursive;
	font-size: 0.9rem;
	letter-spacing: 1px;
}

.title-bar-controls span {
	border: 2px solid var(--win-light);
	background: var(--win-base);
	color: var(--win-text);
	padding: 0 4px;
	font-size: 0.7rem;
	margin-left: 2px;
	cursor: default;
}

.window-content {
	padding: 10px;
	border: 2px inset var(--win-light);
	background: var(--win-base);
}

.inset-box {
	background: var(--inset-bg);
	border: 3px inset var(--win-dark);
	padding: 10px;
	margin: 5px 0;
}

h1 {
	font-family: 'Shrikhand', cursive;
	font-size: 1.8em;
	margin: 0;
	color: var(--win-title);
	text-align: center;
	line-height: 1;
	text-shadow: 1px 1px 0px #ffffff;
}

.win-btn {
	background: var(--win-base);
	border-top: 3px solid var(--win-light);
	border-left: 3px solid var(--win-light);
	border-right: 3px solid var(--win-dark);
	border-bottom: 3px solid var(--win-dark);
	color: var(--win-text);
	text-decoration: none;
	display: block;
	text-align: center;
	padding: 5px;
	margin: 4px 0;
	font-weight: bold;
	font-size: 1.1rem;
}

.win-btn:active {
	border: 3px inset var(--win-dark);
	padding: 6px 4px 4px 6px;
}

.status-bar {
	background: var(--win-base);
	color: var(--win-text);
	text-align: center;
	border: 2px inset #0088cc;
	padding: 2px;
	font-weight: bold;
	margin-top: 5px;
}

/* for comms */
.master-scroll-box {
	background: var(--inset-bg);
	border: 3px inset var(--win-dark);
	height: 600px;
	overflow-y: scroll;
	padding: 15px;
}

.master-scroll-box::-webkit-scrollbar {
	width: 20px;
}
.master-scroll-box::-webkit-scrollbar-track {
	background: var(--win-dark);
}
.master-scroll-box::-webkit-scrollbar-thumb {
	background: var(--win-base);
	border: 2px solid var(--win-light);
	box-shadow: inset -2px -2px 0px var(--win-dark);
}

.section-header {
	font-family: 'Shrikhand', cursive;
	background: var(--win-title);
	color: #ffffff;
	padding: 4px 10px;
	margin: 15px 0 5px 0;
	font-size: 1.1rem;
	letter-spacing: 0.5px;
}

.price-row {
	display: flex;
	justify-content: space-between;
	border-bottom: 2px dashed var(--win-dark);
	font-weight: bold;
	margin-top: 10px;
}

.price-desc {
	font-size: 1rem;
	margin: 2px 0 10px 0;
	color: #1a4971;
}

/* gambar */
.nsfw-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 15px 0;

    position: sticky;
    top: -15px;
    z-index: 10;
    background: var(--inset-bg);
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--win-dark);
}

.nsfw-container {
	position: relative;
	cursor: pointer;
	overflow: hidden;
	border: 3px inset var(--win-light);
	background: #000;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nsfw-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(20px);
	transition: filter 0.3s ease;
}

.nsfw-overlay {
	position: absolute;
	background: rgba(11, 19, 43, 0.92);
	color: var(--accent-cyan);
	padding: 5px;
	font-family: 'VT323', monospace;
	font-size: 1rem;
	border: 1px solid var(--accent-cyan);
	text-align: center;
	pointer-events: none;
	z-index: 2;
	width: 80%;
	box-shadow: 0 0 5px var(--accent-cyan);
}

.nsfw-container.revealed .nsfw-image {
	filter: none;
}
.nsfw-container.revealed .nsfw-overlay {
	display: none;
}

.footer {
	text-align: center;
	padding: 15px;
	color: #ffffff;
	text-shadow: 1px 1px 2px #000000;
}

@media (max-width: 768px) {
	#main-container {
		grid-template-columns: 1fr;
	}
	.master-scroll-box {
		height: auto;
		max-height: 70vh;
	}
}

.free-png-image {
	display: block;
	width: 245px;
	height: auto;
	margin-top: -15px;
	image-rendering: auto;
	border: none;
	background: none;
	box-shadow: none;
	position: relative;
	z-index: 10;
}

/* mobile */
@media (max-width: 768px) {
	#main-container {
		display: flex;
		flex-direction: column;
	}

	#sidebar-column {
		display: contents;
	}

	#sidebar.window { order: 1; }
	#content-wrap { order: 2; }

	.free-png-image {
		order: 3;
		width: 250px;
		margin: 20px auto;
	}

	.master-scroll-box {
		height: auto;
		max-height: 70vh;
	}
}

.coffee-btn {
	background: #3a506b;
	color: white !important;
	margin-top: 4px;
}
.coffee-btn:hover {
	background: #1c2541;
}

.action-buttons-container {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin: 20px 0;
}

.layout-btn {
	font-size: 1.5rem;
	background: var(--inset-bg);
	display: inline-block;
	padding: 10px 30px;
	margin: 0;
	flex: 1;
	max-width: 250px;
	text-decoration: none;
	font-family: 'VT323', monospace;
}

@media (max-width: 480px) {
	.action-buttons-container {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}
	.layout-btn {
		width: 100%;
		max-width: 280px;
	}
}

/* discord / faq popups */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(11, 19, 43, 0.6);
	backdrop-filter: blur(2px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.modal-window {
	width: 280px;
	animation: popIn 0.15s ease-out;
}

@keyframes popIn {
	from { transform: scale(0.9); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.network-tag {
	background: var(--inset-bg);
	color: var(--win-title);
	border: 1px solid var(--win-dark);
	padding: 1px 6px;
	font-size: 0.9rem;
	margin-left: 3px;
	display: inline-block;
	font-weight: bold;
	box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.15);
}

/* wanpizzzzz */
* {
	cursor: url('https://cdn.cursors-4u.net/css-previews/one-piece-logo-60a9d402-css.webp'), auto !important;
}

#page-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 25px;
	width: 100%;
}

.desktop-menu-bar {
	position: relative;
	width: 100%;
	max-width: 900px;
	background: var(--win-base);
	border-bottom: 2px solid var(--win-dark);
	box-shadow: 0 2px 0 var(--win-light), 1px 1px 0px #000;
	border-top: 2px solid var(--win-light);
	border-left: 2px solid var(--win-light);
	border-right: 2px solid var(--win-dark);
	display: flex;
	gap: 4px;
	padding: 4px 12px;
	z-index: 100;
	box-sizing: border-box;
}

.menu-item {
	position: relative;
}

.menu-item a {
	color: var(--win-text);
	text-decoration: none;
	padding: 2px 8px;
	display: inline-block;
	font-size: 1.2rem;
}

.underline {
	text-decoration: underline;
}

.menu-item a:hover {
	background: var(--win-title);
	color: white;
}
