html {
  background-color: black;
  color: rgb(240,240,240);
}

* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: "HelveticaNeue-Light", "Helvetica", "Calibri", "Arial", "Verdana", sans-serif;
  font-weight: 100;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

nav {
  display: block;
}

#Logo {
  display: inline-block;
  width: 120px;
  height: auto;
  padding: 8px 24px;
  max-width: 300px;
  margin: 16px auto 8px auto;
}

#logoMarcMartin {
  display:inline-block;
  width: 300px;
  height: auto;
  padding: 8px 24px;
  max-width: 300px;
  margin: 16px auto 8px auto;
}

#videos {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centra el contingut principal (l'H1) */
  padding: 20px 0;        /* Espaiat superior i inferior opcional */
}


h1 {
  margin: 0;
  text-align: center;
}

.canal-youtube {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 4px;
  border-radius: 8px;
}

.canal-youtube:hover {
 background-color: rgba(255,255,255,0.25);
}

.carousel-seccio {
  display: block;
  width: 100%;
  margin: 32px auto;
  max-width: 1200px;
  background-color: rgb(16,16,16);
}

.carousel-titol {
  padding: 16px;
}
.carousel-navegador {
  display: flex;
  justify-content: space-between; /* Empeny els símbols als extrems */
  align-items: center;            /* Centra tots els elements verticalment */
  width: 100%;                    /* Ocupa tot l'ample del seu contenidor */
  box-sizing: border-box;         /* Assegura que els paddings no deformin l'ample */
  margin-top: -16px;
  margin-bottom: 16px;
}

.numVideos {
  color: rgb(255,240,157);
}

.carousel-navegador button {
  font-size: 1.5rem; /* Mida dels símbols < i > */
  font-weight: bold;
  color: rgb(240,240,240);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  opacity: 0.5;
}

.carousel-navegador button:hover {
  opacity: 1;
}

.carousel-boto-anterior {
  margin-left: 64px;
}

.carousel-boto-seguent {
  margin-right: 64px; 
}

.carousel-boto-anterior img {
  scale: -1 1;
}

.carousel-boto-anterior img:hover, .carousel-boto-seguent img:hover {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.carousel-contenidor {
  display: flex;
  gap: 48px;
  overflow-x: auto;
  padding: 16px 10% 40px 10%;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  justify-content: flex-start;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.carousel-contenidor::-webkit-scrollbar {
  display: none;
}

.carousel-fitxa {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
 }

.carousel-fitxa-video {
  flex: 0 0 360px;
  width: 360px;
}

.carousel-fitxa-tip {
  flex: 0 0 180px;
  width: 180px;
 }

 .carousel-fitxa:first-child {
  margin-left: 32px;
}

.carousel-fitxa:last-child {
  margin-right: 32px;
}

.carousel-fitxa:hover {
  transform:scale(1.05);
}

.carousel-fitxa-miniatura {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-fitxa-miniatura:hover {
  box-shadow: 0 0px 8px rgba(255, 255, 255,1);
}

.carousel-fitxa-peu {
  display: flex;
  justify-content: space-between; /* Empeny la duració a l'esquerra i el bloc de YouTube a la dreta */
  align-items: center;            /* Alinea verticalment els dos costats */
  width: 100%;
  margin-top: 8px;                /* Espai entre la imatge i el text */
}

/* Duració (Esquerra) */
.videoDurada {
  margin-left: 16px;
  color: rgb(255,240,157);
}

/* Bloc d'enllaç a YouTube (Dreta) */
.youtubeBoto {
  display: flex;
  margin-right: 16px;
  align-items: center;            /* Alinea el text "Veure a..." amb el logo de YouTube verticalment */
  gap: 6px;                       /* Espai interior entre el text i el logo */
  text-decoration: none;          /* Treu el subratllat de l'enllaç */
  padding: 4px;
  border-radius: 8px;
}

.youtubeBoto:hover {
 background-color: rgba(255,255,255,0.25);
}

/* Mida del logo de YouTube */
.youtubeLogo {
  height: 16px;                   /* Ajusta l'alçada perquè lligui amb la mida del text */
  width: auto;                    /* Manté la proporció original del SVG */
  display: block;
}


/* Pantalles petites */
 @media (max-width: 768px) {
  #Logo {
    width: 84px;
  }

  #logoMarcMartin {
    width: 210px;
  }

.carousel-fitxa-video {
    flex: 0 0 300px;
    width: 300px;
  }

  .carousel-fitxa-tip {
    flex: 0 0 120px;
    width: 120px;
  }

  .video-link {
    display: none;
  }
 }