.fade-in {
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.heart {
    color: #ff4757;
    font-size: 2rem;
}

/* Estilo base para a galeria */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}
.galeria {
  padding: 1rem;
}

/* Carrossel horizontal para celular */
.carrossel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Imagens com estilo base */
.carrossel img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  scroll-snap-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.carrossel img:hover {
  transform: scale(1.05);
}

/* Em telas grandes: organiza em linha e limita tamanho */
@media (min-width: 768px) {
  .carrossel {
    overflow-x: hidden;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .carrossel img {
    flex: 0 0 calc(33.33% - 1rem);
    max-width: 30S;
  }
}


/*musica*/

.spotify-player {
  max-width: 400px;
  background-color: #121212;
  color: #fff;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', sans-serif;
  margin: auto;
}

.album-cover {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.title {
  font-size: 1rem;
  margin: 0;
}

.artist {
  font-size: 0.85rem;
  color: #b3b3b3;
  margin: 0;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

#playPauseBtn {
  background-color: #1db954;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#playPauseBtn:hover {
  background-color: #1ed760;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #b3b3b3;
}

#volumeControl {
  width: 100px;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #404040;
}

#volumeControl::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #1db954;
  border-radius: 50%;
  cursor: pointer;
}
