/* import fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=VT323&display=swap');

@font-face {
  font-family: 'Bitstream Vera Sans';
  src: url('fonts/Vera.ttf');
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden; 
  background-color: #3a3a5e; 
  background-image: url('backgrounds/flcl1.png');
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Bitstream Vera Sans', "Verdana", sans-serif;
  font-size: 12px;
}

/* bevel effects */
.window, #taskbar, .start-button, .task-tab, .menu-bar {
  background-color: #c0c0c0; 
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: 1px 1px 0px #808080;
}

.inset-bevel, .window-content, .active-tab {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  background-color: #ffffff;
}

/* desktop icons */
#desktop {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: absolute; 
  z-index: 1; 
}

.desktop-icon {
  width: 64px;
  text-align: center;
  color: white;
  cursor: pointer;
  text-shadow: 1px 1px 2px black;
}

.desktop-icon img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated; 
  margin-bottom: 5px;
}

/* window styles */
.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 2px;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.4);
  z-index: 10;
}

.hidden {
  display: none;
}

.title-bar {
  background: linear-gradient(to bottom, #f0f0f0, #d0d0d0); 
  color: black;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 13px;
  border-bottom: 1px solid #999;
  text-shadow: 1px 1px 0px #fff; 
}

/* grip texture dots */
.title-text::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-right: 8px;
  vertical-align: middle;
  background-image: radial-gradient(circle, #888 40%, transparent 45%);
  background-size: 3px 3px; 
  border-left: 1px solid transparent;
}

/* close button */
.close-btn {
  width: 18px;
  height: 18px;
  background: linear-gradient(to bottom, #eee, #ccc);
  border: 1px solid #666;
  color: black;
  font-weight: bold;
  font-size: 10px;
  line-height: 14px;
  cursor: pointer;
  box-shadow: inset 1px 1px 0px #fff;
  margin-left: 2px;
  border-radius: 2px;
}

.close-btn:active {
  background: #bbb;
  box-shadow: inset 1px 1px 2px #555;
}

.menu-bar {
  padding: 4px 10px;
  border-bottom: 1px solid #808080;
}

.window-content {
  padding: 10px;
  height: 100%;
  overflow: auto;
}

.terminal-text {
  background-color: #1e1e1e;
  color: #33ff33;
  font-family: 'VT323', monospace; 
  font-size: 18px;
  border: none; 
}

/* taskbar styles */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 2px;
  z-index: 999; 
  box-sizing: border-box; 
}

.start-button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  padding: 4px 10px;
  margin-right: 10px;
  cursor: pointer;
}

/* start menu socials */
#start-menu {
  position: fixed;
  bottom: 40px;
  left: 4px;
  width: 200px;
  background-color: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  padding: 3px;
  z-index: 10000;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  color: black;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

.menu-item img {
  width: 24px;
  height: 24px;
}

.menu-item:hover {
  background-color: #000080;
  color: white;
}

.divider {
  height: 1px;
  background-color: #808080;
  border-bottom: 1px solid #ffffff;
  margin: 4px 2px;
}

.task-tab {
  padding: 4px 15px;
  margin-right: 5px;
  min-width: 100px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.active-tab {
  background-color: #eee;
  font-weight: bold;
}

#system-tray {
  margin-left: auto;   
  margin-right: 5px;
  padding: 4px 10px;
  background-color: #c0c0c0; 
  display: flex;
  align-items: center; 
}

/* override to fix menu toggle */
#start-menu.hidden {
  display: none !important;
}