* {
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;
	font-family: 'SF Pro Display';
}

sf-symbol {
	pointer-events: none;
}

body {
	width: 100vw;
	height: 100vh;
overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #999;
	transition: 0.3s ease-in-out background;
}

body.dark {
	background: #111 !important;
}

body.mobile div#iphoneOverlay {
    display: none;
}

body.mobile div#iosHolder {
    width: 100%;
    height: 100%;
    padding: 0 !important;
}

body.mobile div#iosHolder div#ios18 {
    width: 100%;	
	height: 100%;
    border-radius: 0 !important;
}

div#iphoneOverlay, div#iphoneDynamicIslandOverlay {
	top: 0;
	left: 0;
	z-index: 9999;
	pointer-events: none;
	position: absolute;
	background-image: url(../image/iphoneoverlay.png);
	background-size: contain;
	height: 1000px;
	aspect-ratio: 1/2;
}

div#iosHolder {
	transform: perspective(50em);
	position: relative;
	padding: 32px;
	padding-right: 35px;
	width: 500px;
	height: 1000px;
	aspect-ratio: 1/2;
}


div#ios18 {
	overflow: hidden;
	position: relative;
	border-radius: 50px;
	width: 100%;
	height: 100%;
}

div#topBar {
	z-index: 500;
	position: absolute;
	color: white;
	width: 100%;
	height: 68px;
	display: flex;
	flex-direction: row;
	align-items: center;
}

div#topBar sf-symbol {
	display: block;
	margin: 0px 2px;
	height: 20px;
}

div#topBar > div {
	user-select: none;
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

body:not(.dark) div#topBar div.topBar-right sf-symbol {
	filter: invert(1);
}

div.topBar-time {
	font-weight: 500;
	color: white;
	font-size: 20px;
}

body:not(.dark) div#topBar div.topBar-time {
	color: black;
}

div#homeScreen {
	display: flex;
  	flex-direction: column;
	justify-content: center;
	align-items: start;
	width: 100%;
	height: 100%;
	background: url(../image/Backgrounds/449380-1280.avif);
	background-size: cover;
}

body.dark div#homeScreen {
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)) ,url(../image/Backgrounds/449381-1280.avif);
}

div#HS_Pages {
	width: 100%;
	margin-top: 70px;
	display: flex;
	overflow-x: scroll;
	min-height: 70%;
	max-height: 70%;
	scrollbar-width: none;
	user-select: none;
	touch-action: none;
}

div#HS_Pages ::-webkit-scrollbar {
	display: none;
}

div.HS_Icons {
	display: grid;
	grid-template-columns: repeat(4, 100px);
	grid-template-rows: repeat(7, 100px);
}

div#pageSelector {
	display: flex;
	flex-direction: row;
	position: absolute;
	bottom: 180px;
	left: 50%;
	transform: translate(-50%, 0);
}

div.pageSelection {
	margin: 0 5px;
	width: 10px;
	height: 10px;
	background: white;
	box-shadow: 0px 0px 3px white;
	opacity: 0.6;
	border-radius: 100%;
}

div.pageSelection.active {
	opacity: 0.9;
}

div.homeIcon {
	cursor: pointer;
	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: center;
	justify-content: center;
	height: 100%;
	aspect-ratio: 1;
	width: 100%;
}

div.homeIcon p {
	display: none !important;
}

body.showHSLabels div.homeIcon p {
	display: block !important;
}

div.homeIcon:not([app]),
div.homeIcon:not([app]) img {
	cursor: not-allowed;
}

div.homeIcon:not([app]):active,
div.homeIcon:not([app]) img:active {
	cursor: not-allowed;
	pointer-events: none !important;
}

body:not(.showInvalidIcons) div.homeIcon:not([app]) {
	scale: 0.9;
	opacity: 0.5;
	filter: grayscale(1) brightness(0.5);
}

div.homeIcon > img {
	pointer-events: all !important;
	height: 80%;
	aspect-ratio: 1;
	width: 80%;
	user-select: none;
	object-fit: contain;
}

div.HS_Icons div.widgetSmall {
	overflow: hidden;
	border-radius: 20px;
	background: linear-gradient(to bottom, rgb(37, 45, 88), rgb(0, 0, 0));
	margin: 10px;
	grid-column: span 2;
	grid-row: span 2;
}

div.HS_Page {
	height: 100%;
	width: 100%;
	margin: 0 16px;
}

div#HS_Dock {
	margin: auto;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

div#HS_dockInner {
	box-sizing: content-box;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	border-radius: 35px;
	width: 100%;
	height: 100px;
	padding: 5px;
	width: auto;
	background: rgba(255, 255, 255, 0.6);
}

body.dark div#HS_dockInner {
	background: rgba(0, 0, 0, 0.3);
}

div.homeIconShow {
	z-index: 2;
	position: absolute;
	left: 0;
	top: 0;
	width: 100px;
	height: 100px;
	animation: openApp 0.25s ease-in-out 1 forwards;
}

div.homeIconShow img {
	width: 100%;
	height: 100%;
}


@keyframes openApp {
	100% {
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) scale(7, 12);
		filter: contrast(0) brightness(2);
	}
}

#currentApp {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 40;
    opacity: 1;
    transition: 0.5s opacity ease-in-out;
}

#currentApp.noApp {
	pointer-events: none;
    opacity: 0;
    transition: 0.2s opacity ease-in-out;
}

#currentApp iframe {
	width: 100%;
	height: 100%;
	clip-path: inset(0% 0% 0% 0% round 15px);
}

.appClose {
	z-index: 50;
	border: none;
	background: transparent;

	position: absolute;
	bottom: 0;
	height: 30px;
	left: 20%;
	right: 20%;
	width: 60%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.appCloseBar {
	border: none;
	background: transparent;

	height: 5px;
	width: 180px;

	left: 50%;
	border-radius: 999px;

	backdrop-filter: blur(15px) invert(1);

	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

div#lockScreen {
	z-index: 100;
	position: absolute;
	background: url(../image/Backgrounds/449381-1280.avif);
	background-size: cover;
	width: 100%;
	height: 100%;
	bottom: 0;
	transition: 0.5s ease-in-out bottom;
}

div#lockScreen.closed {
	bottom: 100% !important;
}

div.lockTime {
	position: absolute;
	top: 100px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
}

p#lockDate {
	font-size: 24px;
	color: white;
}

h1#lockTime {
	font-size: 90px;
	color: #fffb;
	backdrop-filter: blur(5px);
}

div#lockScreen div.otherButtons {
	position: absolute;
	bottom: 50px;
	width: 100%;
	padding: 0 50px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

div#lockScreen div.otherButtons button {
	background: #0007;
	border: none;
	border-radius: 100%;
	backdrop-filter: blur(5px);
	padding: 10px;
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
}

div#lockScreen div.otherButtons button:nth-of-type(2) {
	padding: 15px;
}

div#lockScreen div.otherButtons sf-symbol {
	height: 100%;
	aspect-ratio: 1;
}

button#controlCenterBar,
button#controlCenter {
    display: none;
}

body.showControlBtns button#controlCenterBar,
body.showControlBtns button#controlCenter {
    display: block;
}


body.showControlBtns button#controlCenterBar {
	opacity: 0;
	cursor: pointer;
    border: none;
    z-index: 550;
    position: absolute;
    top: 0;
    right: 0;
    height: 70px;
    width: 150px;
    background: transparent;
	font-size: 24px;
	border-bottom-left-radius: 15px;
	transition:
		0.2s ease-in-out opacity,
		0.2s ease-in-out background,
		0.2s ease-in-out backdrop-filter;
}

body.showControlBtns button#controlCenterBar:hover {
	opacity: 1;
	background: #fffa;
	backdrop-filter: blur(5px);
}

body.showControlBtns div#controlCenter {
    position: absolute;
    bottom: 100%;
    width: 100%;
    height: 100%;
    background: #fff4;
    backdrop-filter: blur(20px);

    z-index: 60;
	transition: 0.5s ease-in-out bottom;
}

body.showControlBtns div#controlCenter.open {
    bottom: 0%;
}

div#flash {
	pointer-events: none;
	position: absolute;
	top: -100px;
	border-radius: 100%;
	filter: blur(30px);
	right: -100px;
	width: 500px;
	height: 500px;
	background: transparent;
}

div#flash.on {
	background: white;
}

div#setupScreen {
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 900;
	width: calc(100% - 32px);
	height: calc(100% - 32px);
	border-radius: 100px;
	background: url(../image/Backgrounds/apple_intelligence.jpg);
	background-size: cover;
}

div#setupHello {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #000a;
	backdrop-filter: blur(5px);
}

div#setupHello img {
	width: 70%;
}

div#setupScreen .appClose {
	bottom: 20px;
}

div#setupScreen .appCloseBar {
	background: white;
}

div#setupScreen p.appBarText {
	font-weight: 600;
	font-size: 20px;
	color: white;
	position: absolute;
	text-align: center;
	transform: translate(-50%, 0);
	left: 50%;
	bottom: 60px;
}

div#setupScreen button.infoButton {
	position: absolute;
	background: none;
	border: none;
	height: 30px;
	aspect-ratio: 1;
	bottom: 50px;
	right: 50px;
}

div#setupLanguage,
div#setupRegion {
	display: none;
	padding: 70px 32px;
	padding-bottom: 0;
}

div#setupLanguage.shown,
div#setupRegion.shown {
	position: absolute;
	display: flex;
	width: 100%;
	height: 100%;
	background: white;
	flex-direction: column;
}

div#setupLanguage div.topIcon,
div#setupRegion div.topIcon {
	width: 100%;
	height: 30%;

	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: center;
	justify-content: center;
}

div#setupLanguage div.topIcon img,
div#setupRegion div.topIcon img {
	height: 40%;
	filter: invert(14%) sepia(56%) saturate(2854%) hue-rotate(222deg) brightness(151%) contrast(98%);
}

div.setupChoose {
	width: 100%;
	background: #ddd;
	border-radius: 10px;
	overflow: hidden;
}

div.setupChoose div.setupChoice {
	user-select: none;
	padding: 20px 0;
	border-bottom: 1px solid #aaa;
	font-weight: 600;
	font-size: 20px;
	padding-left: 15px;
	display: flex;
	justify-content: start;
	align-items: center;
	position: relative;
	cursor: pointer;
}

div.setupChoose div.setupChoice.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

div.setupChoose div.setupChoice:active {
	background: #bbb;
}

div.setupChoose div.setupChoice:last-of-type {
	border-bottom: none;
}

div.setupChoose div.setupChoice::after {
	content: "";
	border: solid #aaa;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 4px;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	position: absolute;
	right: 20px;
}