body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  background: url('img/bg2.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.desktop {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.desktop-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease;
}

.icon:hover {
  transform: scale(1.05);
}

.icon img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.icon p {
  margin: 5px 0 0;
  font-size: 14px;
  color: white;
  text-shadow: 0 0 3px black;
}

button {
  background-color: #0078d7;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #005fa3;
}

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(10px);
  background: rgba(30, 30, 30, 0.6);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.3);
}

.taskbar-icon {
  margin: 0 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.taskbar-icon:hover {
  transform: scale(1.1);
}

.taskbar-icon img {
  width: 32px;
  height: 32px;
}

.window {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 90%;
  max-height: 80%;
  transform: translate(-50%, -50%);
  background: #f3f3f3;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
  z-index: 10;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.window-header {
  background: #0078d7;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  align-items: center;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.window-title {
  font-size: 16px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #ffdddd;
}

.window-content {
  padding: 20px;
  font-size: 15px;
  color: #333;
  overflow-y: auto;
  word-wrap: break-word;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .icon img {
    width: 50px;
    height: 50px;
  }

  .taskbar {
    height: 50px;
  }

  .taskbar-icon img {
    width: 28px;
    height: 28px;
  }

  .window {
    max-width: 95%;
    max-height: 85%;
  }

  .window-content {
    padding: 15px;
    font-size: 14px;
  }
}
