* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	user-select: none;
}

body {
	font-family: "MS Sans Serif", Arial, sans-serif;
	background-color: #008080;
	height: 100vh;
	overflow: hidden;
	position: relative;
	cursor: default;
}

/* Styles Windows 95 */
.window {
	position: absolute;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	box-shadow: 1px 1px 0 0 #000;
}

.window-header {
	background: linear-gradient(to right, #000080, #1084d0);
	color: white;
	padding: 2px 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	font-size: 11px;
}

.window-controls {
	display: flex;
	gap: 2px;
}

.window-button {
	width: 16px;
	height: 14px;
	background-color: #c0c0c0;
	border: 1px solid;
	border-color: #ffffff #000 #000 #ffffff;
	font-size: 10px;
	line-height: 12px;
	text-align: center;
	cursor: pointer;
}

.window-button:active {
	border-color: #000 #ffffff #ffffff #000;
}

.window-content {
	padding: 20px;
	background-color: #c0c0c0;
	overflow: auto;
}

/* Bouton style Windows 95 */
.win95-button {
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	padding: 6px 12px;
	font-family: "MS Sans Serif", Arial, sans-serif;
	font-size: 11px;
	cursor: pointer;
}

.win95-button:active {
	border-color: #808080 #ffffff #ffffff #808080;
}

.win95-button:disabled {
	color: #808080;
	cursor: default;
}

/* Styles du jeu */
#gameArea {
	width: 100%;
	height: 100%;
	position: relative;
}

.level-indicator {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	padding: 8px 16px;
	font-weight: bold;
	z-index: 1000;
}

.click-target {
	position: absolute;
	width: 80px;
	height: 80px;
	background-color: #ffff00;
	border: 3px solid #ff0000;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	cursor: pointer;
	animation: pulse 1s infinite;
	z-index: 100;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.icon {
	position: absolute;
	width: 64px;
	height: 80px;
	text-align: center;
	cursor: pointer;
}

.icon-image {
	width: 48px;
	height: 48px;
	background-color: #fff;
	border: 1px solid #000;
	margin: 0 auto 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.icon-label {
	font-size: 11px;
	color: #fff;
	text-shadow: 1px 1px 1px #000;
}

.context-menu {
	position: absolute;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
	min-width: 150px;
	z-index: 1000;
	display: none;
}

.context-menu-item {
	padding: 4px 20px;
	font-size: 11px;
	cursor: pointer;
}

.context-menu-item:hover {
	background-color: #000080;
	color: white;
}

.resize-handle {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 16px;
	height: 16px;
	cursor: nw-resize;
	background: repeating-linear-gradient(
		-45deg,
		#808080,
		#808080 1px,
		#c0c0c0 1px,
		#c0c0c0 3px
	);
}

.file-icon {
	display: inline-block;
	width: 32px;
	height: 32px;
	margin: 8px;
	text-align: center;
	cursor: move;
	vertical-align: top;
}

.file-icon.dragging {
	opacity: 0.5;
}

.drop-zone {
	border: 2px dashed #808080;
	min-height: 100px;
	margin: 10px;
	padding: 10px;
	background-color: #ffffff;
}

.drop-zone.drag-over {
	background-color: #e0e0e0;
	border-color: #000080;
}

.scrollable-content {
	height: 200px;
	overflow-y: auto;
	background-color: #ffffff;
	border: 2px inset #c0c0c0;
	padding: 10px;
	font-size: 12px;
	line-height: 1.6;
}

/* Styles pour le niveau 8 - Explorateur de fichiers */
.file-explorer {
	background-color: #ffffff;
	border: 2px inset #c0c0c0;
	height: 300px;
	overflow: hidden;
	position: relative;
	font-size: 11px;
}

.file-list {
	padding: 4px;
	height: 100%;
	overflow-y: auto;
	position: relative;
}

.file-item {
	display: flex;
	align-items: center;
	padding: 2px 4px;
	margin: 1px 0;
	cursor: pointer;
	white-space: nowrap;
	position: relative;
	height: 18px;
}

.file-item:hover {
	background-color: #e0e0e0;
}

.file-item.selected {
	background-color: #ff0000;
	color: white;
	font-weight: bold;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.file-item .file-icon-small {
	width: 16px;
	height: 16px;
	margin-right: 4px;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.selection-box {
	position: absolute;
	border: 1px dashed #ff0000;
	background-color: rgba(255, 0, 0, 0.1);
	pointer-events: none;
	z-index: 10;
}

/* Styles pour le niveau 9 */
.target-file {
	position: relative;
}

.target-file::after {
	content: '2025';
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background-color: #ffff00;
	color: #000;
	padding: 1px 4px;
	font-size: 9px;
	font-weight: bold;
	border-radius: 2px;
}

#successMessage {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	padding: 30px;
	text-align: center;
	z-index: 2000;
	display: none;
}

.confetti {
	position: fixed;
	width: 10px;
	height: 10px;
	z-index: 3000;
}

/* Barre des tâches */
.taskbar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 28px;
	background-color: #c0c0c0;
	border-top: 2px solid #ffffff;
	display: flex;
	align-items: center;
	z-index: 999;
}

.start-button {
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	padding: 2px 8px;
	margin: 2px;
	font-weight: bold;
	font-size: 11px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
}

.win-logo {
	width: 16px;
	height: 16px;
	background: linear-gradient(45deg, #ff0000 25%, #00ff00 25%, #00ff00 50%, #0000ff 50%, #0000ff 75%, #ffff00 75%);
}

/* Instructions */
.instruction-box {
	position: absolute;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #ffffcc;
	border: 2px solid #000;
	padding: 16px;
	font-size: 14px;
	max-width: 500px;
	text-align: center;
	z-index: 500;
	box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
}

/* Bouton pour activer le son */
#enableSound {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 20px 40px;
	font-size: 16px;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	cursor: pointer;
	z-index: 2000;
}

/* Styles pour le niveau des boutons de fenêtre */
.window.minimized {
	display: none;
}

.window.maximized {
	top: 30px !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	height: calc(100vh - 58px) !important;
	transform: none !important;
}

.taskbar-item {
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #808080 #ffffff #ffffff #808080;
	padding: 2px 12px;
	margin: 2px;
	font-size: 11px;
	cursor: pointer;
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.taskbar-item:active {
	border-color: #ffffff #808080 #808080 #ffffff;
}

@keyframes highlight {
	0%, 100% { background-color: #ffff00; }
	50% { background-color: #ffff99; }
}

.highlight-button {
	animation: highlight 1s infinite;
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* NOUVELLES NOTIFICATIONS EN BAS À DROITE */
.notification-box {
	position: absolute;
	bottom: 50px;
	right: 20px;
	background-color: #ffffcc;
	border: 2px solid #ff6600;
	padding: 12px;
	font-size: 14px;
	font-weight: bold;
	box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
	z-index: 600;
	border-radius: 3px;
	max-width: 250px;
}

/* Styles pour le niveau 10 */
.middle-click-target {
	position: absolute;
	width: 100px;
	height: 100px;
	background-color: #ff6600;
	border: 3px solid #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
	color: white;
	cursor: pointer;
	animation: pulse 1.5s infinite;
	z-index: 100;
}

.link-item {
	color: #0000ff;
	text-decoration: underline;
	cursor: pointer;
	margin: 8px 0;
	font-size: 12px;
	padding: 4px 0;
}

.link-item:hover {
	background-color: #e0e0e0;
}

.link-item:visited {
	color: #800080;
}

/* Message d'aide pour les débutants */
.help-message {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #ffffcc;
	border: 3px solid #ff6600;
	padding: 20px 30px;
	font-size: 16px;
	text-align: center;
	z-index: 3000;
	box-shadow: 4px 4px 8px rgba(0,0,0,0.5);
	border-radius: 5px;
	display: none;
	max-width: 400px;
}

.help-message .help-text {
	margin-bottom: 15px;
	line-height: 1.4;
}

.help-message .help-click {
	font-weight: bold;
	font-style: italic;
	color: #ff0000;
}

.help-message .help-button {
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	padding: 8px 16px;
	font-family: "MS Sans Serif", Arial, sans-serif;
	font-size: 12px;
	cursor: pointer;
	margin-top: 10px;
}

/* Styles pour le navigateur réaliste Windows 95 */
.browser-window .window-content {
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 370px;
}

.browser-toolbar {
	background-color: #c0c0c0;
	border-bottom: 1px solid #808080;
	padding: 4px 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	flex-shrink: 0;
}

.browser-buttons {
	display: flex;
	gap: 2px;
}

.browser-btn {
	width: 24px;
	height: 22px;
	background-color: #c0c0c0;
	border: 1px solid;
	border-color: #ffffff #808080 #808080 #ffffff;
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.browser-btn:active {
	border-color: #808080 #ffffff #ffffff #808080;
}

.address-bar {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 4px;
}

.address-bar input {
	flex: 1;
	border: 2px inset #c0c0c0;
	padding: 2px 4px;
	font-size: 11px;
	font-family: "MS Sans Serif", Arial, sans-serif;
	background-color: #ffffff;
}

.tabs-bar {
	background-color: #c0c0c0;
	border-bottom: 1px solid #808080;
	display: flex;
	padding: 0 4px;
	min-height: 26px;
	align-items: end;
	flex-shrink: 0;
}

.tab {
	background-color: #c0c0c0;
	border: 1px solid #808080;
	border-bottom: none;
	padding: 4px 12px 2px 12px;
	font-size: 11px;
	cursor: pointer;
	margin-right: 2px;
	position: relative;
	border-radius: 4px 4px 0 0;
	min-width: 120px;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tab:hover {
	background-color: #d4d0c8;
}

.tab.active-tab {
	background-color: #ffffff;
	border-color: #000000;
	z-index: 1;
	margin-bottom: -1px;
	padding-bottom: 3px;
}

.browser-content {
	flex: 1;
	overflow: auto;
	background-color: #ffffff;
	position: relative;
}

.tab-content {
	display: none;
	height: 100%;
	overflow-y: auto;
}

.tab-content.active-content {
	display: block;
}

.webpage {
	padding: 16px;
	font-size: 12px;
	line-height: 1.4;
}

.webpage h2 {
	color: #000080;
	margin-bottom: 12px;
	font-size: 16px;
}

/* Animation pour les onglets */
@keyframes tabOpen {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

.tab {
	animation: tabOpen 0.2s ease-out;
	transform-origin: left;
}