/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body,
html {
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

#desktop {
  height: calc(100% - 40px);
  background-color: #FFA500;
  position: relative;
  overflow: hidden;
}

.hidden {
  display: none;
}

#icon-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  grid-gap: 20px;
  padding: 20px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  padding: 10px;
  width: 80px;
  height: 80px;
}

.desktop-icon:hover,
.desktop-icon.hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.desktop-icon.selected {
  background-color: rgba(255, 255, 255, 0.3);
}

.icon-emoji {
  font-size: 32px;
  margin-bottom: 5px;
}

.icon-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 5px;
}

.icon-name {
  font-size: 12px;
  word-wrap: break-word;
  max-width: 100%;
  user-select: none;
}

#taskbar {
  height: 40px;
  background-color: #333;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
}

#start-button {
  width: 40px;
  height: 40px;
  background-color: #FFA500;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#open-apps {
  display: flex;
  flex-grow: 1;
}

.taskbar-item {
  width: 40px;
  height: 40px;
  background-color: #555;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.taskbar-item.active {
  border-bottom: 2px solid #FFA500;
}

.taskbar-icon {
  max-width: 24px;
  max-height: 24px;
}

#clock {
  color: white;
  margin-right: 10px;
  background-color: rgba(255, 165, 0, 0.7);
  padding: 5px 10px;
  border-radius: 12px;
}

#taskbar-ribbon {
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.window {
  position: absolute;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 200px;
  min-height: 150px;
}

.window-header {
  padding: 8px;
  display: flex;
  align-items: center;
  color: white;
  user-select: none;
  cursor: move;
}

.window-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.window-title {
  flex-grow: 1;
  font-weight: bold;
}

.window-controls {
  display: flex;
}

.window-controls button {
  width: 24px;
  height: 24px;
  border: none;
  background-color: transparent;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.window-controls button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.window-content {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

.window-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.window-ribbon {
  height: 2px;
  width: 100%;
}

.window.maximized {
  width: 100% !important;
  height: calc(100%) !important;
  left: 0 !important;
  top: 0 !important;
  border-radius: 0;
}

#fullscreen-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 20px;
  margin-left: 10px;
}

#fullscreen-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}