* {
    font-family: "Pixelated MS Sans Serif",Arial;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', sans-serif;
    background-color: #008080;
    display: flex;
    justify-content: center;
}

button:hover {
    cursor: url("../cursors/pointer.cur"), pointer;
}

.desktop {
    user-select: none;
    cursor: url("../cursors/default.cur"), default;
}

.desktop {
    display: grid;
    grid-template-columns: repeat(30, 1fr); /* 5 columns */
    grid-template-rows: repeat(12, 1fr); /* 4 rows */
    gap: 10px;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: url("../cursors/pointer.cur"), pointer;
    color: white;
}

.icon img {
    width: 54px; /* Typical Windows 98 icon size */
    height: 54px;
    margin-bottom: 5px;
}

.icon span {
    font-size: 12px;
}

.window {
    margin: 0;
    position: absolute;
    user-select: none;
    top: 50px;
    z-index: 1;
}

.icon:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.icon:nth-child(2) {
    grid-column: 1;
    grid-row: 3;
}

.icon:nth-child(3) {
    grid-column: 1;
    grid-row: 4;
}

.icon:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
}

.helloExe {
    display: none;
    position: absolute;
}

.error {
    display: none;
    top: 130px;
}

.explorer {
    display: none;
}

.error .window-body {
    text-align: center;
}

/* ----- Taskbar ----- */
.taskbar {
    position: fixed;
    user-select: none;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33px;
    background-color: #c0c0c0; /* Typisches Windows 98 Grau */
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    padding: 0 5px;
    box-shadow: 0 -1px 2px #808080 inset;
}

.start-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12.5px;
}

.start-button img {
    width: 20px;
    height: 20px;
}

.taskbar-clock-container {
    font-size: 14px;
    color: black;
    background-color: #c0c0c0;
    border: 2px inset #7a7a7a;
    padding: 5px 10px;
    white-space: nowrap;
    text-align: center;
    min-width: 70px;

    position: fixed;
    right: 2px;
}

.clock-icon {
    width: 16px;
    height: 16px;
    padding-left: 3px;
}

.taskbar-clock-container {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
}

#taskbar-clock {
    padding-left: 10px;
}

.taskbar .bar {
    color: rgba(245, 245, 245, 0);
    font-size: 32px;
    padding-bottom: 5px;
    padding-left: 3px;
    font-weight: 1;
    text-shadow: 
    -1px 0px 1px rgb(113, 113, 113),
    1px 0px 1px rgb(242, 242, 242);
    margin-right: 8px;
}

/* ----- Programm Leiste ----- */

.program-list {
    display: flex; /* Programme nebeneinander anordnen */
    gap: 15px; /* Abstand zwischen den Programmen */
}

/* Einzelnes Programm-Element */
.program {
    cursor: pointer;
}

/* Bild innerhalb eines Programms */
.program img {
    width: 23px;
    height: 23px;
}

#taskbar-program-1 {
    display: none;
}

#taskbar-program-2 {
    display: none;
}

#taskbar-program-3 {
    display: none;
}

#selection-box {
    position: absolute;
    border: 1px dashed #000; /* Strichliertes Rechteck wie bei Windows */
    background-color: rgba(0, 0, 255, 0.2); /* Halbtransparenter blauer Hintergrund */
    display: none; /* Unsichtbar, bis es gezogen wird */
}

/* Internet Explorer Window */
.window.explorer {
    width: 800px;
    height: 600px;
    position: absolute;
    top: 80px;
    left: 25%;
    resize: both;
    overflow: hidden;
  }

  .window.explorer .window-body {
    height: calc(100% - 100px);
  }
  
  /* Browser Controls */
  .browser-controls {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 5px;
    background: #c0c0c0;
    border-bottom: 2px solid #808080;
  }
  
  .browser-controls button {
    font-size: 12px;
    padding: 2px 5px;
  }
  
  #url-input {
    flex-grow: 1;
    padding: 2px;
    font-size: 12px;
  }
  
  /* Iframe (Website Display) */
  iframe#browser-frame {
    width: 100%;
    height: 100%;
    border: none;
  }
  