/* Reset and Basics */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body,
html {
	margin: 0;
	padding: 0;
	height: 100%;
	display: flex;
	/* Use Flexbox to center */
	justify-content: center;
	/* Horizontally center */
	align-items: center;
	/* Vertically center */
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: black;
	color: #ff66cc;
}

/* Desktop Container - Window */
.desktop {
	width: 900px;
	max-width: 95%;
	/* Responsive adjustment for smaller screens */
	height: 700px;
	max-height: 95%;
	/* Ensure it doesn’t overflow smaller screens */
	margin: 0 auto;
	border: 1px solid #5acebf;
	color: #ff66cc;
	 background: rgba(0, 0, 0, 0.5); /* Black background with 80% opacity */
	display: flex;
	flex-direction: column;
	box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.3);
}

/* Remove Desktop Container background on smaller screens */
@media (min-width: 900px) {
    body {
        background-image: url('../images/background/background.png');
        background-repeat: no-repeat;
        background-size: auto;
        background-position: center center;
    }
/* Remove Last-Update on smaller screens */
    .last-update {
        display: block;
    }
}
/* Remove Last-Update on smaller screens */
@media (max-width: 900px) {
    .last-update {
        display: none;
    }
}

/* Top Bar */
.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 1.0rem;
	border-bottom: 1px solid #5acebf;
	background: #0d0d0d;
	width: 100%;
	box-sizing: border-box;
}

/* Title Font */
.title {
	font-size: 1.5rem;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #ff66cc;
}

/* LUTEWOLF and Time Font */
.start-button,
.clock {
	font-weight: 100 !important;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #ff66cc;
	font-size: 1rem;
	/* Use a smaller size for LUTEWOLF and Time */
	letter-spacing: 0.3rem;
	margin-left: 0.2em;
}

/* Close Button */
.close-btn {
	cursor: default;
	font-size: 1rem;
	color: #ff66cc;
	width: 24px;
	height: 25px;
	border: 1px solid #5acebf;
	background: #222;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
	background: #5acebf;
	color: #111;
}

/* Middle Container */
.middle-container {
	flex: 1;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	/* Align items from the top to prevent overflow */
	padding: 1rem;
	gap: 1rem;
}

/* Icons Container - Left and Right */
.left-icons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}

.right-icons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: flex-end;
	/* Align items to the right */
}

/* Icon Item */
.icon-item {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 0.5rem;

}

.icon-box {
	width: 85px;
	height: 85px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-svg {
	width: 100%;
	height: auto;
}

@keyframes shake {
	0% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-5px);
	}

	50% {
		transform: translateX(5px);
	}

	75% {
		transform: translateX(-5px);
	}

	100% {
		transform: translateX(0);
	}
}

.icon-svg:hover {
	cursor: pointer;
	animation: shake 0.5s ease-in-out;
	/* The shake animation runs for 0.5 seconds */
}


.icon-item p {
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.2rem;
	margin-left: 0.2em;
	margin-top: 0.2em;
}




/* Moon Phase Box */
.moon-phase-box {
	text-align: center;
	padding: 0.5rem;
	border: 1px solid #ff66cc;
	width: 180px;
	/* Set a fixed width to align with icons */
	margin-bottom: 1rem;
	/* Add spacing beneath */
	letter-spacing: 0.2rem;
	font-size: 0.9rem;
}

.moon-emoji {
	font-size: 3rem;
	filter: hue-rotate(270deg) brightness(1.2);
}



/* Bottom Start Bar */
.start-bar {
	display: flex;
	align-items: center;
	border-top: 1px solid #5acebf;
	background: #0d0d0d;
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	/* Remove padding to prevent overflowing */
}

/* Start Button and Status Icons Segments */
.start-segment {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.3rem 0.5rem;
	border-right: 1px solid #5acebf;
}

.flex-spacer {
	flex: 1;
}

.last-update {
    padding: 0.3rem 0.5rem;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #ff66cc;
	font-size: 0.5rem;
	letter-spacing: 0.3rem;
	text-transform: uppercase;
}

.status-icon-segment {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.3rem 0.5rem;
	width: auto;
	border-left: 1px solid #5acebf;

}

.status-icons {
	display: flex;
	gap: 1rem;

}

.wifi-bars {
	display: flex;
	flex-direction: row-reverse;
	align-items: flex-end;
	gap: 2px;
}

.wifi-bar {
	width: 4px;
	background-color: #5acebf;
}

.wifi-bar:nth-child(1) {
	height: 6px;
}

.wifi-bar:nth-child(2) {
	height: 12px;
}

.wifi-bar:nth-child(3) {
	height: 18px;
}

.status-icons {
	display: flex;
	gap: 1rem;
}

/* Responsive Design for Mobile - General Changes */
@media (max-width: 768px) {
	.desktop {
		width: 95%;
		height: auto;
		/* Allow height to adjust automatically */
		max-height: none;
		/* Remove height restriction to prevent overflow */
	}

	.middle-container {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}

	.left-icons,
	.right-icons {
		flex-direction: row;
		justify-content: space-evenly;
		flex-wrap: wrap;
		gap: 1rem;
		width: 100%;
		align-items: center;
		/* Center items for mobile view */
	}

	.moon-phase-box {
		width: 60%;
		/* Reduce width for better fit on small screens */
		margin-bottom: 1rem;
	}

	.icon-box {
		width: 60px;
		/* Adjust icon size for mobile */
		height: 60px;
	}

	.start-bar {
		padding: 0;
		/* Reduce padding to prevent overflowing */
	}

	.start-button,
	.clock {
		font-size: 0.8rem;
	}
}

/* Special Icon Sizing for Devices Below 800px Width and Between 600-950px Height */
@media (max-width: 800px) and (min-height: 600px) and (max-height: 950px) {
	.icon-box {
		width: 80px;
		height: 80px;
	}
}

/* Specific Styling for Screens Between 800px-900px Width */
@media (min-width: 800px) and (max-width: 900px) {
	.desktop {
		width: 85%;
		/* Adjust width for medium-sized screens */
		height: auto;
		/* Allow flexible height for better fit */
		max-height: none;
		/* Prevent overflow */
	}

	.icon-box {
		width: 75px;
		height: 75px;
	}

	.moon-phase-box {
		width: 70%;
	}
}

/* Specific Styling for Screens Below 800px Width */
@media (max-width: 800px) {
	.middle-container {
		flex-direction: column;
		align-items: center;
	}

	.moon-phase-box {
		width: 80%;
		margin-bottom: 1rem;
		order: -1;
	}

	.moon-emoji {
		font-size: 2rem;
	}

	.left-icons,
	.right-icons {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
		gap: 1rem;
		width: 100%;
	}

	.start-bar {
		padding: 0;
	}

	.start-button,
	.clock {
		font-size: 0.8rem;
	}
}
