body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #111;
}

/* Container do mosaico */
#mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* largura mínima e máxima */
  grid-auto-rows: 100px; /* altura padrão */
  gap: 2px;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

.mosaic-item {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 1s ease-in-out;
  border-radius: 4px;
}

.mosaic-item.large {
  grid-column: span 2; /* ocupa 2 colunas */
  grid-row: span 2;    /* ocupa 2 linhas */
}


/* Overlay escuro */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  z-index: 5;
  transition: opacity 1s ease;
}

/* Popup estilo Windows 95 */
#windows-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #c0c0c0;
  border: 2px solid #808080;
  box-shadow: 4px 4px #404040;
  width: 320px;
  font-family: "Tahoma", sans-serif;
  z-index: 10;
}

.popup-header {
  background-color: #000080;
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  font-size: 14px;
}

.popup-body {
  padding: 16px;
  text-align: center;
  color: black;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.popup-buttons button {
  background-color: #c0c0c0;
  border: 2px solid #808080;
  padding: 4px 12px;
  box-shadow: 2px 2px #404040;
  cursor: pointer;
  position: relative;
}

.popup-buttons button:active {
  box-shadow: inset 2px 2px #404040;
}

/* Corações e emojis */
#hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* abaixo da janela */
}

.heart, .emoji {
  position: absolute;
  font-size: 24px;
  animation: floatHeart 3s linear forwards;
}

.heart {
  opacity: 0.5; /* corações de fundo suaves */
}

.emoji {
  opacity: 1; /* emojis da inundação totalmente visíveis */
}

@keyframes floatHeart {
  0% {
    transform: translateY(100vh) scale(1);
  }
  50% {
    transform: translateY(50vh) scale(1.2);
  }
  100% {
    transform: translateY(-10vh) scale(1.5);
    opacity: 0;
  }
}

/* Popup estilo Windows 95 - fundo preto após Sim */
#windows-popup.black-bg {
  background-color: #000; /* fundo preto */
  color: white;
}

#windows-popup.black-bg .popup-body p {
  font-size: 64px; /* anel maior */
}


/* Responsivo para celular */
@media (max-width: 600px) {
  #mosaic {
    grid-auto-rows: 120px; /* aumenta altura no celular */
    gap: 3px;
  }
}