/* Wygląd okienka Windows 95, układanki i powiadomień */
#puzzle-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(240, 240, 240, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.puzzle-window {
  background-color: #c0c0c0;
  border: 3px outset #ffffff;
  padding: 10px;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.puzzle-header {
  font-weight: bold;
  width: 100%;
  text-align: left;
  padding-bottom: 5px;
  border-bottom: 2px groove #ffffff;
  margin-bottom: 5px;
}

#puzzle-board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 2px;
  background-color: #808080;
  border: 3px inset #ffffff;
}

.puzzle-tile {
  width: 100px;
  height: 100px;
  background-image: url("../static/dowody1.png"); /* Ścieżka względem pliku CSS */
  background-size: 300px 300px;
  border: 2px outset #ffffff;
}

.empty-tile {
  background: none;
  cursor: default;
  border: none;
}

.puzzle-controls {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  width: 100%;
  justify-content: space-between;
}

#close-puzzle,
#dumb-mode-btn {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  padding: 5px 10px;
  background-color: #c0c0c0;
  border: 3px outset #ffffff;
  cursor: pointer;
  flex-grow: 1;
}

#close-puzzle:active,
#dumb-mode-btn:active {
  border: 3px inset #ffffff;
}

#dumb-mode-btn {
  font-weight: bold;
  color: red;
}

/* Style Drag & Drop */
.dragging {
  opacity: 0.5;
  border: 2px dashed red;
}

.drag-over {
  border: 2px solid red !important;
  background-blend-mode: multiply;
  background-color: rgba(255, 0, 0, 0.3);
}

.dumb-mode-active #dumb-mode-btn {
  display: none;
}

.dumb-mode-active .puzzle-header::after {
  content: " (noob mode)";
  font-size: 0.8em;
  color: red;
}

/* --- STYLE DLA SUROWEGO KOMUNIKATU (TOAST) --- */
#retro-alert-overlay {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  pointer-events: none;
}

.retro-alert-box {
  background-color: #000000;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  padding: 15px 30px;
  border: 2px dashed #ffffff;
  text-align: center;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
  white-space: nowrap;
}
