* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #000;
}

body {
  overflow: hidden;
  min-height: 100vh;

  font-family: Tahoma, sans-serif;

  background-image: url("https://f.hellowork.com/blogdumoderateur/2013/08/windows-xp.jpg");
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  image-rendering: pixelated;

  position: relative;
}

.screen-noise {
  position: fixed;
  width: 100%;
  height: 100%;

  background-image: linear-gradient(
    rgba(255, 255, 255, 0.03) 50%,
    transparent 50%
  );

  background-size: 100% 4px;

  pointer-events: none;

  z-index: 99999;

  mix-blend-mode: overlay;
}

.desktop-icons {
  position: absolute;
  left: 20px;
  top: 20px;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desktop-icon {
  width: 90px;

  text-align: center;

  color: white;

  text-shadow: 2px 2px black;
}

.desktop-icon img {
  width: 48px;

  image-rendering: pixelated;
}

.desktop-icon p {
  font-size: 14px;
}

.window {
  position: absolute;

  background: #c0c0c0;

  border-top: 3px solid white;
  border-left: 3px solid white;

  border-right: 3px solid #3b3b3b;
  border-bottom: 3px solid #3b3b3b;

  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);

  image-rendering: pixelated;
}
.title-bar {
  height: 32px;

  background: linear-gradient(to right, #000080, #1084d0);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 8px;

  color: white;

  font-weight: bold;

  font-size: 14px;
}

.buttons {
  display: flex;
  gap: 4px;
}

.buttons div {
  width: 18px;
  height: 18px;

  background: #c0c0c0;

  border-top: 2px solid white;
  border-left: 2px solid white;

  border-right: 2px solid black;
  border-bottom: 2px solid black;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: bold;
  color: black;

  cursor: pointer;
  user-select: none;
}

.close-btn:hover {
  background: #e0e0e0;
}

.menu-bar {
  height: 28px;

  background: #dcdcdc;

  display: flex;
  align-items: center;

  padding-left: 10px;

  font-size: 14px;

  gap: 15px;
}

.documents-window {
  width: 520px;
  height: 320px;

  top: 50px;
  left: 120px;
}

.documents-content {
  display: flex;
  gap: 50px;

  padding: 40px;
}

.folder {
  text-align: center;
}

.folder img {
  width: 140px;
}

.folder p {
  margin-top: 10px;
}

.control-window {
  width: 520px;
  height: 350px;

  top: 60px;
  right: 60px;
}

.control-grid {
  padding: 30px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.control-item {
  text-align: center;
}

.control-item img {
  width: 48px;
}

.control-item p {
  margin-top: 10px;

  font-size: 14px;
}
.error-window {
  width: 670px;
  height: 250px;

  top: 260px;
  left: 50%;
  transform: translateX(-50%);

  z-index: 1000;
}

.error-content {
  display: flex;

  padding: 30px;

  gap: 30px;
}

.error-icon {
  width: 70px;
  height: 70px;

  background: red;

  border-radius: 50%;

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 40px;

  font-weight: bold;
}

.error-text {
  display: flex;
  flex-direction: column;
  gap: 12px;

  font-size: 18px;
}

.small-text {
  margin-top: 20px;
}

.error-button-container {
  width: 100%;

  display: flex;
  justify-content: center;
}

.error-button-container button {
  width: 120px;
  height: 40px;

  background: #c0c0c0;

  border-top: 3px solid white;
  border-left: 3px solid white;

  border-right: 3px solid black;
  border-bottom: 3px solid black;

  font-size: 18px;
}

.terminal-window {
  width: 620px;
  height: 670px;

  right: 70px;
  bottom: 80px;
}

.terminal-content {
  background: black;

  color: rgb(0, 255, 51);

  height: calc(100% - 32px);

  padding: 20px;

  font-family: monospace;

  font-size: 22px;
}

.cursor {
  width: 15px;
  height: 25px;

  background: rgb(0, 255, 51);

  display: inline-block;

  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.calculator-window {
  width: 240px;
  height: 320px;

  left: 120px;
  bottom: 100px;
}

.calculator {
  padding: 20px;
}

.calc-screen {
  height: 50px;

  background: white;

  border: 2px solid black;

  margin-bottom: 20px;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  padding-right: 10px;

  font-size: 28px;
}

.calc-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;
}

.calc-grid button {
  height: 50px;

  font-size: 22px;

  background: #c0c0c0;

  border-top: 3px solid white;
  border-left: 3px solid white;

  border-right: 3px solid black;
  border-bottom: 3px solid black;
}

.taskbar {
  position: fixed;

  bottom: 0;

  width: 100%;
  height: 42px;

  background: #c0c0c0;

  border-top: 3px solid white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 10px;
}

.start-button {
  background: #c0c0c0;

  border-top: 3px solid white;
  border-left: 3px solid white;

  border-right: 3px solid black;
  border-bottom: 3px solid black;

  padding: 5px 18px;

  font-weight: bold;
}

.task-items {
  display: flex;

  gap: 10px;
}

.task {
  background: #bdbdbd;

  padding: 5px 12px;

  border-top: 2px solid white;
  border-left: 2px solid white;

  border-right: 2px solid black;
  border-bottom: 2px solid black;
}

.clock {
  background: #bdbdbd;

  padding: 5px 10px;

  border: 2px solid #8a8a8a;
}

@media screen and (max-width: 1200px) {
  body {
    overflow: auto;
  }

  .window {
    position: static !important;

    display: block !important;
    width: 90% !important;
    height: auto !important;

    margin: 40px auto;

    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    transform: none !important;
    z-index: 1 !important;
  }
}
#desktop-content {
  display: none;
}

#boot-screen {
  position: fixed;
  inset: 0;

  background: #000814;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 999999;
}

.boot-window {
  width: 850px;
  min-height: 600px;

  background: black;

  color: #00ff00;

  font-family: monospace;

  position: absolute;

  border-top: 3px solid white;
  border-left: 3px solid white;

  border-right: 3px solid #3b3b3b;
  border-bottom: 3px solid #3b3b3b;

  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
}

.pictures-window {
  width: 350px;
  height: 350px;
  display: none;
}

.pictures-window-1 {
  top: 100px;
  right: 50px;
}

.pictures-window-2 {
  top: 100px;
  right: 420px;
}

.pictures-window-3 {
  top: 100px;
  right: 790px;
}

.pictures-window-4 {
  top: 500px;
  right: 50px;
}

.pictures-window-5 {
  top: 500px;
  right: 420px;
}

.pictures-window-6 {
  top: 500px;
  right: 790px;
}

.pictures-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  height: calc(100% - 60px);
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.photo-1 {
  background-image: url("photo/images.jpeg");
}

.photo-2 {
  background-image: url("photo/3bcad9d9be6d95e0e639d60a7295cc47.jpg");
}

.photo-3 {
  background-image: url("photo/Microsoft-Founders-Bill-G-007.jpg");
}

.photo-4 {
  background-image: url("photo/jan-2-gatesallen.jpg");
}

.photo-5 {
  background-image: url("photo/images-1.jpeg");
}

.photo-6 {
  background-image: url("photo/founding-of-microsoft.jpg");
}

.boot-title {
  padding: 15px;

  border-bottom: 1px solid #00ff00;

  font-size: 22px;
}

.boot-content {
  padding: 30px;

  display: flex;
  flex-direction: column;

  gap: 20px;

  font-size: 22px;
}

.boot-content label {
  cursor: pointer;
}

.boot-content input {
  transform: scale(1.5);
  margin-right: 15px;
}

#bootBtn {
  margin-top: 20px;

  width: 250px;
  height: 55px;

  background: black;

  color: #00ff00;

  border: 2px solid #00ff00;

  font-size: 20px;

  cursor: pointer;
}

#loading-screen {
  background: linear-gradient(180deg, #4a69d8 0%, #6488f0 50%, #8da5ff 100%);

  display: none;

  justify-content: center;
  align-items: center;
  flex-direction: column;

  position: fixed;
  inset: 0;

  z-index: 999999;
}

#loading-logo {
  width: 350px;
  height: auto;
  margin-bottom: 60px;
  object-fit: contain;
}

.loader {
  width: 70px;
  height: 70px;

  border: 8px solid rgba(255, 255, 255, 0.3);

  border-top: 8px solid white;

  border-radius: 50%;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
.boot-content label {
  display: flex;
  align-items: center;
  gap: 12px;

  cursor: pointer;

  color: #00ff00;
}

.boot-content input[type="radio"] {
  appearance: none;

  width: 18px;
  height: 18px;

  border: 2px solid #00ff00;

  background: black;

  cursor: pointer;
}

.boot-content input[type="radio"]:checked {
  background: #00ff00;

  box-shadow: 0 0 8px #00ff00;
}
.boot-window .title-bar {
  height: 38px;
  font-size: 16px;
}
.boot-prompt {
  font-size: 24px;
  margin-bottom: 20px;
}

.boot-cursor {
  width: 14px;
  height: 24px;

  background: #00ff00;

  display: inline-block;

  margin-left: 5px;

  animation: blink 1s infinite;
}

.loading-text {
  margin-top: 35px;

  color: white;

  text-align: center;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 18px;

  line-height: 1.8;
}
