       /*/*/
      /*/*
     /* *
     * *
    * *     Desktop designs by Lasse (c) 2026
    * *     LVOS - 12/1/2024
     * *
       * *
         * *
          * *
          * *
         * *
        * *
       * *
      \**/

html,
body {
	margin: 0;
	touch-action: none;
	overscroll-behavior: none;
	-webkit-user-drop: element;
}

body > header {
	display: none;
	height: 0;
	overflow: hidden;
}

@media (display-mode: window-controls-overlay) {
	body > header {
		display: block;
		padding-top: env(titlebar-area-y, 0px);
		height: env(titlebar-area-height, 0px);
		-webkit-app-region: drag;
	}
}

body > header h1 {
	left: env(titlebar-area-x, 0px);
	width: env(titlebar-area-width, 100%);
}

iframe {
	width: 100%;
    height: 100%;
}

#dock {
	position: absolute;
	height: 50px;
	bottom: 0;
	width: 300px;
	z-index: 10000 !important;
	overflow: hidden;
	transform-origin: top;
	-webkit-transform-origin: top;
	border-radius: 5px;
	left: 50%; /* This method of centering the absolute element works for Internet Explorer 11 */
	transform: rotateX(45deg) translateX(-50%);
	-webkit-transform: rotateX(45deg) translateX(-50%);
	background-color: lightgray;
	perspective: 300px;
	box-shadow: 0 0 10px black;
	background: linear-gradient(0deg, #b2b2b2, #737373);
}

#reflection {
	transform: scaleY(-1) rotateX(45deg);
	transform-origin: top;
	-webkit-transform: scaleY(-1) rotateX(45deg);
	-webkit-transform-origin: top;
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0.4;
}

body.blur #reflection {
	filter: blur(2px);
}

body:not(.blur) .window > article {
	backdrop-filter: none;
}

#reflection > * {
	opacity: 0.3;
}

#desktop {
	bottom: 0;
	position: absolute;
	height: 100%;
	width: 100%;
	overflow: hidden;
	/*z-index: -1000;*/
	pointer-events: none;
	/* overflow: visible; */
	/* transform-style: preserve-3d; */
	-webkit-user-drop: element;
	transition: transform 600ms ease-out;
}

#windows,
#metro {
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
	top: 0;
}

#windows {
	/* overflow: hidden; */
	perspective: 900px;
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	overflow-y: scroll;
	justify-content: space-evenly;
	pointer-events: none;
	overflow: hidden !important;
	/*Kenia*/
}

#windows > section,
#windows > .section {
	z-index: 1;
}


#wallpaper {
	position: absolute;
	width: 100%;
	height: 100%;
	bottom: 0;
	right: 0;
	left: 0;
	top: 0;
	/* z-index: -10000; */
	/* background-color: red; */
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	user-select: none;
}

#wallpaper.legacy-wallpaper > img {
	display: block;
	position: absolute;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.mica-backdrop.legacy-wallpaper-image,
.legacy-wallpaper-image {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

#wallpaper > * {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

#wallpaper,
.backdrop-clip {
	overflow: hidden;
}

#wallpaper > img,
.backdrop-clip img {
	object-fit: cover;
}

article#metrobody {
	pointer-events: none !important;
}

section#desktop[flipped] article#metrobody {
	pointer-events: all !important;
}

#metro {
	height: 100%;
	width: 100%;
	background: white;
	display: flex;
	/* align-content: center; */
	justify-content: center;
	align-items: center;
	display: flex;

	transform: rotateY(180deg);
}

#metro > * {
	height: 100%;
	width: 100%;
}

#metro > article {
	pointer-events: none;
}

#windows,
#metro {
	transition: opacity 50ms ease-out 200ms;
}

#desktop:not([flipped]) #metroapplist {
	display: none;
}

#desktop[flipped] > #windows {
	translate: 0 0 1px;
}

#desktop[flipped] > #metro,
#desktop > #windows {
	opacity: 1;
}

#desktop:not([flipped]) > #metro {
	opacity: 0;
    pointer-events: none;

}

#desktop[flipped] #dockapplist {
	z-index: 0 !important;
}

@media only screen and (max-width: 300px), (pointer: none), (pointer: coarse) {
	body:not(.desktop) #desktop {
		transform: rotateY(180deg) !important;
	}

	body:not(.desktop) #windows {
		translate: 0 0 1px;
		opacity: 0 !important;
	}

	body:not(.desktop) #metro {
		opacity: 1 !important;
		transform: rotateY(180deg);
		pointer-events: auto !important;
	}

	body:not(.desktop) #dockapplist, body:not(.desktop) #dock {
		z-index: 0 !important;
		display: none;
	}
}

#desktop-area {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

#window-section {
	height: 100%;
}

aside#charms {
	animation: none;
	position: fixed;
	/* right: 0; */
	top: 0;
	right: -300px;
	/* transition: all 1s ease-in-out; */
	/* transition: all 400ms cubic-bezier(0.36, 0.15, 0.22, 0.95); */
	/* transition: all 456ms cubic-bezier(0.53, 0.01, 0.27, 1); */
	/* display: none; */
	animation: charmsclose 456ms cubic-bezier(0.53, 0.01, 0.27, 1) forwards;
	pointer-events: all;
	background-color: green;
	/* /    opacity: 1; */
	width: 300px;
	height: 100%;
	padding: 0 21px;
	z-index: 10000;
	box-sizing: border-box;
	user-select: none;
	overflow-y: auto;
}

aside#charms.open {
	animation: opensesame 456ms cubic-bezier(0.53, 0.01, 0.27, 1) forwards;
}

aside#metroapplist {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 70px;
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	background: linear-gradient(90deg, #000000b8 70px, transparent);
	background: linear-gradient(90deg, #000000c9, #ccc1c1b8 70px, transparent);
	color: white;
	padding-right: 19px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 70px;
	/* display: table; */
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	background: linear-gradient(90deg, #000000c9, #ccc1c1b8 70px, transparent);
	color: white;
	padding-right: 19px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 109px;
	/* display: table; */
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	background: linear-gradient(90deg, #000000c9, #ccc1c1b8 70px, transparent);
	color: white;
	padding-right: 19px;
}

#browserform {
	height: 23px;
}

aside#metroapplist.bottom {
	bottom: 0;
	height: 76px;
	top: unset;
	width: 100%;
	background: linear-gradient(0, #000000c9, #ccc1c1b8 70%, transparent);
	flex-direction: row;
	flex-wrap: wrap;
	bottom: 0;
	height: 43px;
	top: unset;
	width: 100%;
	background: linear-gradient(0, #000000c9, #00000087 70%, transparent);
	flex-direction: row;
	flex-wrap: wrap;
	align-content: flex-end;
	padding: 15px 0;
}

aside#metroapplist > button {
	color: white;

	border-color: white;
	color: black;
	border-color: black;
	background-color: #ffffffb0;
}

#overlay {
	transition: all 456ms cubic-bezier(0.53, 0.01, 0.27, 1);
	transition: all 3621ms cubic-bezier(0.8, -0.01, 1, 1);
	transition: all 3621ms cubic-bezier(0, 0, 0.13, 0.97);
	opacity: 0;
	background: black;
	pointer-events: none;
	z-index: 10000;
	width: 100%;
	height: 100%;
	/* animation: overlayclose 456ms cubic-bezier(0.53, 0.01, 0.27, 1) forwards; */
}

#overlay.open {
	transition: all 1163ms cubic-bezier(0.8, -0.01, 1, 1);
	/* ll 1163ms */
	transition: all 1163ms cubic-bezier(0, 0, 0.19, 0.86);
	pointer-events: all;
	z-index: 1;
	opacity: 1;
	/* animation: overlayopen 456ms cubic-bezier(0.53, 0.01, 0.27, 1) forwards; */
}
#overlay > * {
	transition: all 1163ms cubic-bezier(0.8, -0.01, 1, 1);
	height: 100%;
	opacity: 0;
}
#overlay.shown > * {
	opacity: 1;
}

#dockapplist {
	/* ToDo: Implement moving apps in and out the dock, add a gap and fix reflections of dock icons. (reflections are there but they're flipped 180° and thus exit the view.). And fart in a jar. */
	position: absolute;
	display: flex;
	justify-content: center;
	position: absolute;
	pointer-events: all;
	height: 50px;
	bottom: 0;
	width: 300px;
	z-index: 10000;
	overflow: hidden;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	-webkit-transform: translateX(-50%) translateY(-50%);
}

#clock {
	position: absolute;
	right: 10px;
	top: 0;
	bottom: 0;
	display: flex;
	/* align-items: center; */
	margin: auto 0;
	/* height: fit-content; */
	font-size: 14px;
	white-space: nowrap;
	pointer-events: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.windows #clock,
.windows-10 #clock,
.windows-11 #clock {
	font-size: 12px;
}

aside#charms form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-evenly;
	height: fit-content;
}

#applist {
	width: 100%;
	position: absolute;
}

.transparent #wallpaper {
	display: none;
}

.transparent {
	background: transparent;
}

.folder-content {
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: all;
}

.selector {
	position: absolute;
	border: 1px dashed rgb(0, 89, 255);
	background-color: #007cff30;
}

.drag-overlay {
	display: block;
	pointer-events: all;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.0);
	z-index: 1000;
}

#visualizer {
	width: 100%;
	height: 100%;
}

#start-button > img {
	height: 18px; /* fo win10 */
	filter: invert(1);
    padding: 10px;
}

#launchpad {
	position: absolute;
	width: 100%;
	height: 100%;

	background-color: #0000003d;

	opacity: 0;

	transition: all 240ms ease-out;

	display: none;

	bottom: 0;

	
	/* padding: 10px 0; */
}

desktop #launchpad {

	z-index: 100000;
	pointer-events: auto;
}

#launchpad.open {
	display: block;

	opacity: 1;
}

#launchpad.blur,
.blur #launchpad {
	backdrop-filter: blur(1rem);
	background-color: transparent;
}

#metro, #overlay {
	display: none;
}

.context-menu {
	position: absolute;
    min-width: 10px;
    min-height: 10px;
    background: gray;
	display: none;
}

.context-menu.open {
	display: block;
}

time {
	display: flex;
	line-height: 40px;
	height: 40px;
	overflow: hidden;
}

time span {
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
	/* transition: transform 0.6s cubic-bezier(0.33, 0.34, 0.19, 1.28);
	transition: transform 0.6s cubic-bezier(0.42, 0.4, 0.19, 1.23); */
	will-change: transform;
	white-space: pre;
}

@keyframes opensesame {
	from {
		right: -300px;
	}
	to {
		right: 0px;
	}
}

@keyframes charmsclose {
	from {
		right: 0px;
	}
	to {
		display: none;
		right: -300px;
	}
}

@keyframes overlayopen {
	from {
		opacity: 1;
	}
	to {
		opacity: 1;
	}
}
@keyframes overlayclose {
	from {
		right: 0px;
	}
	to {
		display: none;
		right: -300px;
	}
}

@keyframes metroflip {
	from {
		transform: rotateY(180deg);
		opacity: 1;
	}
	to {
		translate: 0 0 -1px;
		opacity: 0;
	}
}

@keyframes flop {
	to {
		transform: rotateY(180deg);
		opacity: 1;
	}
	from {
		translate: 0 0 1px;
		opacity: 0;
	}
}

          /*******\
      /***         ***\
   /**                 **\
 /*                       *\
/*                         *\
*   Lasse Lauwerys © 2024   *
\*                         */
