:root{
	--window-borders: 4px;
    --window-opacity: 0.7; /* Default opacity */
    --header-opacity: 0.5; /* Default header opacity */
}


body {
    margin: 0;
    background: #222;
    color: white;
    font-family: Arial, sans-serif;
	overflow: hidden;
}

#compatibilityBanner {
	width: 100%;
	color: #f0f0f0;
	text-align: center;
	padding: 0 40px;
	font-family: sans-serif;
	font-size: 0.9rem;
	z-index: 9999;
	position: fixed;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	pointer-events: none;
  }
  .banner-inner {
	padding: 6px 12px;
	background: linear-gradient(to right, #222, #111);
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	position: relative;
	width: fit-content;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: var(--window-borders) var(--window-borders) 0 0;
	pointer-events: all;
}
  #compatibilityBanner a {
	color: #4ecdc4;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
  }
  
  #compatibilityBanner a:hover {
	color: #76fff7;
  }
  
  .banner-close {

	cursor: pointer;
	color: #888;
	font-size: 1rem;
	transition: color 0.2s ease;
  }
  
  .banner-close:hover {
	color: #fff;
  }
  
  
.desktop {
    display: grid;
    grid-auto-flow: column; /* Fill vertically first */
    grid-template-rows: repeat(6, 100px); /* Set exactly 6 icons per column */
    grid-auto-columns: 100px; /* Adjust column width */
    gap: 40px; /* Space between icons */
    width: 100vw;
    height: 100vh;
    align-items: start;
    padding-left: 10px;
}



.icon {
    width: 80px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 10px 5px; /* Reduce margin to avoid large gaps */
    position: relative;
    text-decoration: none;
    color: inherit;
}

.icon img.folder {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.icon span {
    margin-top: 88px;
    text-align: center;
    font-size: 12px;
}


.icon img {
    width: 50px;
    height: 50px;
}

.window {
		position: absolute;
		top: 100px;
		left: 100px;
		width: 300px;
		max-height: 90vh;
		border-radius: var(--window-borders);
		display: none;
		flex-direction: column;
		cursor: default;
}

.window-header {
		border-radius: var(--window-borders) var(--window-borders) 0 0;
		padding: 5px calc((var(--window-borders) / 2) + 5px);
		cursor: grab;
		display: flex;
		justify-content: space-between;
		user-select: none;
}
/* Description Sections */
.description {
    border-radius: var(--window-borders);
}
/*.dark-theme{*/
	.window {
			background: rgba(51,51,51, var(--window-opacity));
			border: 2px solid #555;
			backdrop-filter: blur(50px);
	}

	.window-header {
			background: rgba(51,51,51, var(--header-opacity));
	}	
	::-webkit-scrollbar {
		width: 10px;
	}

	::-webkit-scrollbar-track {
		background: #1e1e1e; /* Dark track */
		border-radius: 5px;
		margin: calc(var(--window-borders) / 2) 0;
	}

	::-webkit-scrollbar-thumb {
		background: #555; /* Dark thumb */
		border-radius: 5px;
	}

	::-webkit-scrollbar-thumb:hover {
		background: #777; /* Lighter on hover */
	}
/*}*/
.light-theme{
	.window {
		background: rgba(238, 238, 238, var(--window-opacity));
		border: 2px solid #ddd;
	}
	.window-header {
		background: rgba(221, 221, 221, var(--header-opacity));
	}
	/* ===== Light Mode Scrollbars ===== */
	::-webkit-scrollbar-track {
		background: #f0f0f0; /* Light track */
}

	::-webkit-scrollbar-thumb {
		background: #bbb; /* Light thumb */
	}

	::-webkit-scrollbar-thumb:hover {
		background: #999; /* Darker hover */
	}
}

.close {
    cursor: pointer;
    color: red;
}

.window-content {
    padding: 10px;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* Fix for iframe inside window-content */
#rizzbot-window {
    flex-direction: column;
    height: 100%;
    overflow: hidden;
	width: 410px;
}

/* Ensure iframe fits properly */
.window-content iframe {
    flex-grow: 1; /* Makes iframe take up remaining space */
    width: 100%;
    border: none;
}

#rizzbot-window #rizzbot, #rizzbot-window{
	width: fit-content;
	overflow-x: hidden;
}
#rizzbot-window > .window-content{
	padding: 0;
	overflow-y: scroll;
}
#rizzbot-window #rizzbot{
	background: transparent;
}
#rizz-input, #rizz-output{
	width: 94% !important;
}

#works-content,
#website-content{
	display: flex;
	flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
	gap: 12px
}
#window-info{
	display: flex;
    flex-direction: column;
    align-items: center;
	gap: 4px;
	margin: 8px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: var(--window-borders);

}

.info-header, .info-text{
	margin: 0
}

#works-window, #websites-window{
	width: 420px
}
#file3-content{
	display: flex;
	flex-direction: column;
	gap: 12px
}
.astro-RKRDL5K3{
	cursor: pointer;
}

.small-text{
	margin: 0 0 12px 0;
    padding: 4px 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: var(--window-borders);
}