/* Layout */
.layout-container {
	height: calc(100vh - 50px);
	background-image: url('/public/images/wallpaper.webp');
	background-position: center;
	background-size: cover;
}

.bluescreen-wrap {
	position: absolute;
	inset: 0;
	z-index: 9999;
}

/* Footer */
.footer-container {
	position: absolute;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	border-top: 1px solid #3f3f3f;
	background-color: #212121;
	background-image: url('/public/images/darknoice.png');
}

.footer-icon-container {
	display: flex;
	gap: 3px;
}

.footer-icon,
.footer-date-icons,
.footer-language {
	display: flex;
	gap: 5px;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

.footer-date-icons {
	flex-direction: column;
	align-items: flex-end;
	font-size: 0.65rem;
}

.footer-date-icons p {
	font-weight: 600;
	font-size: 0.7rem;
}

.footer-language p {
	padding-right: 3px;
	padding-left: 3px;
	font-weight: 400;
	font-size: 0.6em;
}

.footer-icon:hover,
.footer-date-icons:hover,
.footer-language:hover {
	background-color: #2e2e2e;
}

.footer-toolbar-container {
	position: absolute;
	right: 0;
	display: flex;
	gap: 3px;
	height: 41px;
	margin-right: 8px;
	color: #f9f9f9;
	font-size: 1.2rem;
}

/* Windows menu */
.windows-menu-overflow {
	position: absolute;
	right: 0;
	bottom: 50px;
	left: 0;
	z-index: 997;
	overflow: hidden;
	width: 35rem;
	height: 35rem;
	margin: auto;
	pointer-events: none;
}

.windows-menu-overflow[aria-hidden="false"] {
	pointer-events: auto;
}

.windows-menu-panel {
	position: absolute;
	width: 100%;
	height: calc(100% - 10px);
	transition: transform 0.3s ease-in-out;
}

.windows-menu-overflow[aria-hidden="true"] .windows-menu-panel {
	transform: translateY(550px);
}

.windows-menu-container {
	position: absolute;
	z-index: 2;
	width: 100%;
	height: 100%;
	padding: 30px;
	border-radius: 15px;
}

.windows-menu-bg {
	position: absolute;
	inset: 0;
	border: 1px solid rgb(128 128 128 / 27.5%);
	border-radius: 15px;
	background-image: url('/public/images/darknoice.png');
	opacity: 0.9;
}

.windows-menu-search input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	margin: 8px 0;
	padding: 8px;
	padding-left: 40px;
	border: 1px solid rgb(128 128 128 / 17.2%);
	border-bottom: 2px solid #4cc2ff;
	border-radius: 4px;
	background-color: #1a1a1a;
	color: #c6c6c6;
	outline: none;
}

.windows-menu-search .input-with-icon {
	position: relative;
	color: #c6c6c6;
}

.windows-menu-search .input-with-icon svg {
	position: absolute;
	top: 8px;
	left: 0;
	padding: 8px;
	padding-bottom: 5px;
	font-size: 2rem;
}

.windows-menu-pinned {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: calc(100% - 100px);
}

.windows-menu-pinned-top {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}

.windows-menu-pinned-top p {
	font-size: 0.6rem;
}

.windows-menu-pinned-top h2 {
	color: #fff;
	font-size: 0.8rem;
}

.windows-menu-pinned-top div:nth-child(2) {
	display: flex;
	gap: 5px;
	align-items: center;
	justify-content: center;
	height: 25px;
	padding: 0 10px;
	border-radius: 5px;
	background-color: #353636;
	color: #fff;
	font-size: 0.8rem;
}

.windows-menu-recommended-bottom {
	display: flex;
	flex-direction: column;
	margin-top: 5px;
}

.windows-menu-recommended-item {
	display: flex;
	gap: 5px;
	width: 100%;
}

.windows-menu-recommended-item div {
	display: flex;
	gap: 5px;
	align-items: center;
	width: 50%;
	padding: 8px 10px;
	border-radius: 5px;
}

.windows-menu-recommended-item div:hover {
	background-color: #2e2e2e;
}

.windows-menu-pinned-bottom {
	display: flex;
	align-items: center;
	margin-top: 5px;
	text-align: center;
}

.windows-menu-pinned-bottom a,
.windows-menu-pinned-bottom > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 5px;
	color: inherit;
}

.windows-menu-pinned-bottom a:hover,
.windows-menu-pinned-bottom > div:hover {
	background-color: #353636;
}

.windows-menu-pinned-container {
	padding-right: 20px;
	padding-left: 20px;
}

.windows-menu-footer {
	position: absolute;
	bottom: 0;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 10px;
	border-top: 1px solid rgb(128 128 128 / 27.5%);
	border-radius: 0 0 15px 15px;
	background-color: rgb(0 0 0 / 15%);
	color: #fff;
	font-size: 1.2rem;
}

.windows-menu-footer p {
	font-size: 0.8rem;
}

.windows-menu-footer > div {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-right: 20px;
	margin-left: 20px;
}

.windows-menu-footer img {
	border-radius: 50%;
}

/* Bluescreen */
.bluescreen-container {
	position: absolute;
	z-index: 999;
	width: 100%;
	height: 100%;
	background: #3973aa;
}

.bluescreen-container p,
.bluescreen-container h1,
.bluescreen-container h2 {
	color: #fefeff;
}

.bluescreen-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
	justify-content: center;
	width: 60rem;
	max-width: 90%;
	height: 100%;
	margin: auto;
}

.bluescreen-wrapper h1 {
	margin-bottom: 30px;
	font-weight: 400;
	font-size: 7.5em;
	line-height: 80%;
}

.bluescreen-wrapper h2 {
	font-weight: 400;
	font-size: 1em;
}

.bluescreen-about-issue {
	display: flex;
	gap: 20px;
}

@media screen and (max-width: 1200px) {
	.bluescreen-about-issue {
		flex-direction: column;
	}
}

.bluescreen-about-issue div:first-child {
	display: flex;
	align-items: center;
}

/* Desktop Icons */
.icons-container {
	height: 100%;
}

.icons-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	grid-gap: 5px;
	width: 100%;
	padding: 5px;
}

.icons-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80px;
	padding: 0 5px;
	border-radius: 5px;
	text-align: center;
	text-wrap: normal;
	cursor: pointer;
}

.icons-item p {
	color: #fff;
	font-size: 0.7rem;
}

.icons-item:hover {
	background-color: #2e2e2e;
}

.icons-item.icons-deleted,
.icons-item.deleted {
	visibility: hidden;
}

.icons-item.selected {
	background-color: #2e2e2e;
}

/* Draggable window */
.draggable-window {
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #323232;
	border-radius: 10px;
	background-color: #191919;
	transition: all 0.2s ease-in-out;
}

.draggable-window.dw-maximized {
	border-radius: 0;
}

.dw-main {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.dw-main nav {
	border-radius: 10px 10px 0 0;
	background-color: #202020;
}

.dw-top {
	display: flex;
	justify-content: space-between;
	height: 2rem;
	padding-left: 5px;
}

.dw-top .dw-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 10px;
	cursor: pointer;
}

.dw-top .dw-icon:hover {
	background-color: #2e2e2e;
}

.dw-top .dw-icon-close {
	display: flex;
	align-items: center;
	height: 100%;
	padding-right: 15px;
	padding-left: 14px;
	border-radius: 0 10px 0 0;
	cursor: pointer;
}

.dw-top .dw-icon-close:hover {
	background-color: red;
}

.dw-top-container {
	display: flex;
	gap: 5px;
	align-items: center;
}

.dw-icon-container {
	display: flex;
	gap: 5px;
	align-items: center;
	color: #fff;
}

/* File Explorer */
.fe-top {
	border-bottom: 1px solid rgb(133 133 133 / 11%);
	background-color: #202020;
}

.fe-manage {
	display: flex;
	gap: 5px;
	align-items: center;
	height: 3.2rem;
	padding-bottom: 5px;
	padding-left: 10px;
	color: #fff;
}

.fe-manage .fe-icon {
	display: flex;
	gap: 5px;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
}

.fe-manage .fe-icon:hover {
	background-color: #2e2e2e;
}

.fe-manage-new,
.fe-manage-sort,
.fe-manage-view {
	display: flex;
	gap: 10px;
	align-items: center;
	height: 100%;
	padding-right: 10px;
}

.fe-manage-new,
.fe-manage-view {
	border-right: 1px solid rgb(50 50 50 / 52%);
}

.fe-manage-sort {
	padding-left: 10px;
	border-left: 1px solid rgb(50 50 50 / 52%);
}

.fe-navigate {
	display: flex;
	justify-content: space-between;
	height: 30px;
	margin-top: 8px;
	margin-bottom: 8px;
}

.fe-navigate-path {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: calc(100% - 20rem - 7rem);
	height: 100%;
	border: 1px solid rgb(133 133 133 / 52%);
	color: #fff;
}

.fe-navigate-path input {
	color: #fff;
}

.fe-navigate-path .fe-left {
	display: flex;
	align-items: center;
	padding-left: 5px;
}

.fe-navigate-search {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	width: 20rem;
	height: 100%;
	margin-right: 10px;
	margin-left: 10px;
	padding-left: 5px;
	border: 1px solid rgb(133 133 133 / 52%);
	color: #fff;
}

.fe-navigate-search input,
.fe-navigate-path input {
	width: 100%;
	height: 100%;
	padding: 5px;
	border: none;
	background-color: transparent;
	outline: none;
	font-size: 0.7rem;
	user-select: auto;
}

.fe-arrows {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 7rem;
	padding: 0 10px;
	color: gray;
}

.fe-content-area {
	display: flex;
	height: calc(100% - 5.2rem - 46px);
	border-radius: 0 0 15px 15px;
}

.fe-sidebar {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 13rem;
	height: 100%;
	border-right: 2px solid rgb(50 50 50 / 52%);
	border-radius: 0 0 0 15px;
}

.fe-content {
	width: 100%;
	border-radius: 0 0 15px;
	display: flex;
	flex-direction: column;
}

.fe-child {
	overflow-x: hidden;
	overflow-y: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0 10px;
}

.fe-top-nav {
	display: flex;
	width: 100%;
	padding-right: 10px;
	padding-left: 10px;
}

.fe-top-nav > * {
	padding: 5px;
	border-right: 1px solid rgb(50 50 50 / 52%);
}

.fe-top-nav > *:hover {
	background-color: #2e2e2e;
}

.fe-top-nav .fe-name {
	width: 40%;
	padding-left: 10px;
}

.fe-top-nav .fe-date-modified {
	width: 25%;
	padding-left: 10px;
}

.fe-top-nav .fe-type {
	width: 25%;
	padding-left: 10px;
}

.fe-top-nav .fe-size {
	width: 10%;
	padding-left: 10px;
}

@keyframes growDown {
	0% { transform: scaleY(0); }
	80% { transform: scaleY(1.1); }
	100% { transform: scaleY(1); }
}

.fe-manage-dropdown {
	position: absolute;
	top: 73px;
	z-index: 1000;
	display: none;
	flex-direction: column;
	border: 1px solid #1d1d1d;
	border-radius: 10px;
	background-color: rgb(39 39 39 / 88%);
	transform-origin: top center;
	animation: growDown 300ms ease-in-out forwards;
}

.fe-manage .fe-icon:hover .fe-manage-dropdown {
	display: flex;
}

.fe-nav-dropdown {
	display: flex;
	gap: 5px;
	align-items: center;
	margin: 0 2px;
	border-radius: 2px;
	cursor: pointer;
}

.fe-nav-dropdown:hover {
	background-color: #2e2e2e;
}

.fe-nav-dropdown a {
	color: inherit;
}

.fe-nav-item {
	display: flex;
	gap: 5px;
	align-items: center;
	margin: 0 2px;
	padding: 6px 0 6px 40px;
	border-radius: 2px;
	cursor: pointer;
	color: inherit;
}

.fe-nav-item:hover {
	background-color: #2e2e2e;
}

/* List (explorer content) */
.list-item-container {
	display: flex;
	flex-direction: column;
	margin-top: 3px;
}

.list-item {
	display: flex;
	padding: 5px 0;
	border-radius: 2px;
	cursor: pointer;
}

.list-item:hover {
	background-color: #2e2e2e;
}

.list-item .list-item-name {
	display: flex;
	gap: 5px;
	align-items: center;
	width: 40%;
	padding-left: 5px;
}

.list-item-date-modified {
	width: 25%;
	padding-left: 10px;
}

.list-item-type {
	width: 25%;
	padding-left: 10px;
}

.list-item-size {
	display: flex;
	justify-content: flex-end;
	width: 10%;
	padding-right: 5px;
}

/* Terminal */
@font-face {
	font-weight: 600;
	font-style: normal;
	font-family: 'Lucida Console';
	src: url('/public/fonts/Lucida-console.ttf');
	font-display: swap;
}

.terminal-main {
	position: absolute;
	z-index: 1;
	overflow-y: auto;
	width: 100%;
	height: calc(100% - 32px);
	padding: 10px;
	font-weight: 600;
	font-family: 'Lucida Console', sans-serif;
}

.terminal-main p {
	font-size: 0.9rem;
}

.terminal-title {
	color: rgb(64 200 64);
}

.terminal-title > span {
	color: rgb(190 190 0);
}

.terminal-title > span:first-child {
	color: rgb(200 64 255);
}

.terminal-prompt {
	display: flex;
	gap: 5px;
	align-items: flex-start;
	height: 100%;
	color: #fff;
}

.terminal-prompt input {
	width: 100%;
	border: none;
	background-color: transparent;
	color: #fff;
	outline: none;
	font-weight: 600;
	font-size: 0.9rem;
	word-wrap: break-word;
}

.terminal-history-item {
	padding-top: 10px;
	padding-bottom: 10px;
}

.terminal-background {
	height: calc(100% - 32px);
	border-radius: 0 0 10px 10px;
	background-image: url('/public/images/darknoice.png');
	opacity: 0.9;
}

.terminal-container {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-top: 3px;
	color: #fff;
}

.terminal-container svg:hover {
	border-radius: 5px;
	background-color: #2e2e2e;
}

.terminal-container div:first-child {
	display: flex;
	gap: 5px;
	align-items: center;
	height: 100%;
	padding-right: 10px;
	padding-left: 10px;
	border-radius: 5px 5px 0 0;
	background-color: rgb(19 19 19);
}

/* Notepad */
.notepad-main nav {
	height: 4.8rem;
	border-bottom: 1px solid #1d1d1d;
	border-radius: 10px 10px 0 0;
	background-color: #202020;
}

.notepad-textarea {
	height: calc(100% - 32px - 32px - 40px);
	padding: 10px;
}

.notepad-textarea textarea {
	width: 100%;
	height: 100%;
	border: none;
	background-color: transparent;
	color: #fff;
	outline: none;
	resize: none;
	user-select: auto;
}

.notepad-footer {
	position: absolute;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: 2rem;
	border-top: 1px solid #1d1d1d;
	border-radius: 0 0 10px 10px;
	background-color: #202020;
}

.notepad-footer p {
	display: flex;
	align-items: center;
	margin: 5px 0;
	padding: 5px 10px;
	color: gray;
	font-size: 0.8rem;
}

.notepad-nav-buttons {
	display: flex;
	align-items: center;
	height: 2.5rem;
}

.notepad-nav-buttons p {
	padding: 10px;
	border-radius: 5px;
	font-weight: 300;
	font-size: 0.9rem;
	cursor: pointer;
}

/* Media player */
.media-player-main nav {
	height: 2.5rem;
	border-bottom: 1px solid #1d1d1d;
	border-radius: 10px 10px 0 0;
	background-color: #202020;
}

.media-area {
	position: relative;
	height: calc(100% - 2.5rem - 1rem);
	padding: 10px;
}

.media-area img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Error dialog */
.error-container {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 200;
	width: 25rem;
	padding: 10px;
	border: 1px solid rgb(128 128 128 / 53.5%);
	border-radius: 10px;
	background-color: #f0f0f0;
	transform: translate(-50%, -50%);
}

.error-container p {
	color: #000;
}

.error-top {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
}

.error-content {
	display: flex;
	gap: 10px;
	margin-bottom: 5px;
	padding: 10px;
	border: 1px solid rgb(128 128 128 / 57%);
	background-color: #fff;
}

.error-bottom {
	display: flex;
	justify-content: flex-end;
}

.error-bottom button {
	padding: 5px 30px;
	border: 2px solid #207ec8;
	background: #fff;
	cursor: pointer;
}

/* Grid list (This PC style) */
.grid-list-dropdown-nav {
	display: flex;
	align-items: center;
	margin-top: 15px;
}

.grid-list-dropdown-nav h2 {
	margin-right: 10px;
	color: #fff;
	font-weight: 300;
	font-size: 1rem;
	white-space: nowrap;
}

.grid-list-dropdown-nav svg {
	color: #2e2e2e;
	font-size: 2rem;
}

.grid-list-dropdown-nav div {
	width: 100%;
	height: 1px;
	background-color: #2e2e2e;
}

.grid-list-item {
	display: flex;
	gap: 5px;
	align-items: center;
	padding: 5px;
	border-radius: 5px;
	cursor: pointer;
	color: inherit;
}

.grid-list-item:hover {
	background-color: #2e2e2e;
}

.grid-list-item svg {
	color: gray;
	font-size: 0.8rem;
}

/* Grid list / Media grid */
.grid-list-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-auto-rows: minmax(auto, auto);
	grid-auto-flow: dense;
	grid-gap: 10px;
	margin: 0 20px;
}

.media-grid-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	grid-auto-rows: minmax(100px, auto);
	grid-auto-flow: dense;
	grid-gap: 10px;
	margin: 0 20px;
}

.media-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 110px;
	padding: 5px;
	border-radius: 5px;
	text-align: center;
	word-wrap: break-word;
	cursor: pointer;
}

.media-item:hover {
	background-color: #2e2e2e;
}
