:root {
	--bodyBg: linear-gradient(45deg, darkblue, black);
	--bodyCol: white;
	--analogBg: rgba(0, 0, 0, 0.5);
	--analogShadow: 0 0 25px skyblue;
	--analogCenterBg: white;
	--analogHoursBg: red;
	--analogMinutesBg: yellow;
	--analogSecondsBg: cyan;
	--boxBg: rgba(0, 0, 0, 0.3);
	--boxShadow: inset 0 0 20px skyblue;
	--markCol: red;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	overflow: hidden;
	background: var(--bodyBg);
	color: var(--bodyCol);
	width: 100%;
	height: 100%;
	flex-direction: column;
	gap: 5%;
	font-family: "QuickSand", sans-serif;
	user-select: none;
}

/* Main */
main {
	width: clamp(250px, 95%, 350px);
	height: 90%;
	flex-direction: column;
	justify-content: space-evenly !important;
	padding: 10px;
}

/* Analog Clock */
#analogClock {
	height: clamp(200px, 50vmax, 300px);
	aspect-ratio: 1;
	border-radius: 50%;
	box-shadow: var(--analogShadow);
	background: var(--analogBg);
	position: relative;
}

#analogClock::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 15px;
	aspect-ratio: 1;
	background: var(--analogCenterBg);
	border-radius: 50%;
}

#analogClock div {
	position: absolute;
	transform-origin: bottom;
}

#analogClock div.show { transition: transform 0.7s ease 0s; }

#analogHours {
    top: 27%;
    left: 48.7%;
	height: 70px;
	width: 2%;
	background: var(--analogHoursBg);
}

#analogMinutes {
	top: 20%;
	width: 1.3%;
	height: 90px;
	background: var(--analogMinutesBg);
}

#analogSeconds {
	top: 16%;
	width: 0.5%;
	height: 100px;
	background: var(--analogSecondsBg);
}

/* Digital Clock */
#digitalClock {
	gap: 7px;
	width: 100%;
}

#digitalClock div {
	font-weight: bold;
	font-size: 2rem;
	height: clamp(40px, 20vw, 65px);
	letter-spacing: 0.5px;
	aspect-ratio: 1; /* Set Same height as width */
	border-radius: 10px;
	background: var(--boxBg);
	box-shadow: var(--boxShadow);}

#digitalDots {
	flex-direction: column;
	gap: 5px;
}

#digitalDots span {
	width: 5px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--bodyCol);
}

main #AmPm { 
	font-variant: small-caps; 
	font-size: 1.3rem; 
}

/* Some Classes */
.center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.mark { color: var(--markCol); }
