/* ===================== RESET & BASE ===================== */
html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
}

body {
	background: url('img/bliss.png') no-repeat center center fixed;
	background-size: cover;
	font-family: Tahoma, Arial, sans-serif;
	font-size: 12px;
}

a {
	cursor: default;
}

/* ===================== DESKTOP ICONS ===================== */
.iconrow {
	position: absolute;
	top: 10px;
	left: 10px;
	cursor: default;
	-webkit-user-select: none;
	user-select: none;
}

.iconrow .icon {
	display: block;
}

.icon {
	min-width: 108px;
	padding: 11px;
	display: inline-block;
	text-align: center;
	font-family: Tahoma, Arial, sans-serif;
	font-size: 12px;
	color: white;
	text-shadow: 1px 1px 3px black, -1px -1px 3px black;
	cursor: default;
}

img.icon {
	min-width: 50px;
	max-width: 50px;
	padding: 6px;
}

.shortcut {
	position: absolute;
	min-width: 58px;
	max-width: 58px;
}

/* ===================== XP WINDOW ===================== */
.xp-window {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ece9d8;
	border: 3px solid #0054e3;
	border-radius: 8px 8px 0 0;
	box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.45);
	width: 500px;
	max-width: 95vw;
	max-height: 90vh;
	font-family: Tahoma, Arial, sans-serif;
	font-size: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 1000;
}

/* ===================== XP TITLE BAR ===================== */
.xp-title-bar {
	background: linear-gradient(to bottom,
			#0058e6 0%, #3a93ff 8%, #0058e6 40%, #0058e6 88%, #002d80 100%);
	padding: 4px 5px 4px 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
	text-shadow: 1px 1px 1px #002d80;
	font-weight: bold;
	font-size: 13px;
	min-height: 28px;
	box-sizing: border-box;
	flex-shrink: 0;
}

.xp-title {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	overflow: hidden;
}

.xp-title-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.xp-title-buttons {
	display: flex;
	gap: 2px;
	flex-shrink: 0;
}

.xp-title-buttons button {
	width: 21px;
	height: 21px;
	border: 1px solid #fff;
	border-radius: 3px;
	background: linear-gradient(135deg, #3a93ff 0%, #0058e6 100%);
	cursor: pointer;
	position: relative;
	padding: 0;
	outline: none;
	box-shadow: inset -1px -1px 1px rgba(0, 0, 0, 0.2);
}

.xp-btn-close {
	background: linear-gradient(135deg, #f88a75 0%, #e04321 20%, #c12704 50%, #ad2203 100%) !important;
}

/* Close X */
.xp-btn-close::before,
.xp-btn-close::after {
	content: '';
	position: absolute;
	width: 10px;
	height: 2px;
	background: white;
	top: 50%;
	left: 50%;
}

.xp-btn-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.xp-btn-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Minimize dash */
.xp-btn-min::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 2px;
	background: white;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
}

/* Maximize square */
.xp-btn-max::after {
	content: '';
	position: absolute;
	width: 8px;
	height: 6px;
	border: 2px solid white;
	border-top-width: 3px;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
}

/* ===================== XP WINDOW CONTENT ===================== */
.xp-window-content {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	flex: 1;
}

.xp-wizard-header {
	background: white;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 2px solid #d6d3c1;
	flex-shrink: 0;
}

.xp-wizard-text h1 {
	margin: 0 0 4px 0;
	font-size: 16px;
	font-weight: bold;
	color: #003c74;
}

.xp-wizard-text p {
	margin: 0;
	font-size: 11px;
	color: #555;
}

.xp-wizard-logo img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

/* ===================== XP FORM STYLES ===================== */
.xp-form-container {
	padding: 15px 20px 20px 20px;
	overflow-y: auto;
}

.xp-form-group {
	margin-bottom: 13px;
}

.xp-form-group label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	color: #000;
}

.xp-form-group input {
	width: 100%;
	padding: 4px 6px;
	border: 2px solid #7f9db9;
	background: white;
	font-family: Tahoma, Arial, sans-serif;
	font-size: 12px;
	box-sizing: border-box;
	outline: none;
}

.xp-form-group input:focus {
	border-color: #0054e3;
	outline: 1px solid #ff9900;
}

.xp-separator {
	height: 1px;
	background: #aca899;
	margin: 14px 0;
}

.whitelist-note {
	font-size: 11px;
	color: #666;
	margin: 0 0 14px 0;
}

.xp-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

/* ===================== XP BUTTONS ===================== */
.xp-button {
	padding: 4px 18px;
	background: #ece9d8;
	border: 1px solid #7f7f7f;
	border-right-color: #fff;
	border-bottom-color: #fff;
	color: black;
	font-size: 12px;
	font-family: Tahoma, Arial, sans-serif;
	cursor: pointer;
	outline: none;
	min-width: 70px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	box-sizing: border-box;
}

.xp-button:hover {
	background: #dbd8c8;
}

.xp-button:active {
	border-color: #fff;
	border-right-color: #7f7f7f;
	border-bottom-color: #7f7f7f;
}

.xp-button.primary {
	font-weight: bold;
}

/* ===================== POPUP VISIBILITY ===================== */
#comingSoon,
#Apply,
#galleryWindow,
#aboutWindow {
	display: none;
}

#comingSoon:target,
#Apply:target,
#galleryWindow:target,
#aboutWindow:target {
	display: flex;
}

/* ===================== GALLERY GRID ===================== */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 15px;
	background: #f0efe8;
	max-height: 420px;
	overflow-y: auto;
	border-top: 2px solid #d6d3c1;
	border-bottom: 2px solid #d6d3c1;
	flex: 1;
}

.gallery-item {
	cursor: pointer;
	border: 2px solid #c9c6b8;
	background: #fff;
	border-radius: 2px;
	overflow: hidden;
	transition: transform 100ms ease, box-shadow 100ms ease, border-color 100ms ease;
}

.gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 50, 0.2);
	border-color: #0054e3;
}

.gallery-item img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.gallery-caption {
	background: #ece9d8;
	border-top: 1px solid #c9c6b8;
	padding: 4px 6px;
	font-size: 10px;
	color: #444;
	text-align: center;
	font-family: Tahoma, sans-serif;
}

/* ===================== LIGHTBOX ===================== */
#lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9000;
	background: rgba(0, 0, 0, 0.85);
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
}

#lightbox-inner {
	position: relative;
	cursor: default;
}

#lightbox-img {
	display: block;
	max-width: 80vw;
	max-height: 85vh;
	object-fit: contain;
	border: 3px solid #fff;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

#lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 28px;
	height: 28px;
	background: #cc0000;
	color: white;
	border: 2px solid white;
	border-radius: 50%;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
	line-height: 24px;
	text-align: center;
	padding: 0;
	outline: none;
	z-index: 9001;
}

#lightbox-close:hover {
	background: #ff2222;
}