/* work-sans-regular - latin */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');
.atkinson-hyperlegible-regular {
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
.atkinson-hyperlegible-bold {
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
.atkinson-hyperlegible-regular-italic {
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
.atkinson-hyperlegible-bold-italic {
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-weight: 700;
    font-style: italic;
  }
/* Contenu principal */
/* Contenu principal */
/* Contenu principal */

body {
    background: rgb(29, 25, 27);
    color: rgba(161, 208, 252);
    font-family: "Atkinson Hyperlegible";
    width: 100%;
    margin: 0;
}

html {
    width: 100%;
    justify-content: center;
}

/* Catégories */
/* Catégories */
/* Catégories */

h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: bold;
    font-style: italic;
    font-size: 3rem;
}

h2 {
    margin-bottom: 0.5rem;
}

h2, .small {
    display: inline;
    margin: 0;
}

.small {
    margin-bottom: 0.5rem;
    font-style: italic;
    color: rgba(161, 208, 252, 0.49);
}

strong {
    font-weight: bold;
}

/* Throbber */
/* HTML: <div class="loader"></div> */
/* HTML: <div class="loader"></div> */
.loadertext {
    width: 140px;
    font-style: italic;
    color: rgba(161, 208, 252, 0.49);
}

#loadertext {
    margin-left: 20px;
    width: 140px;
    font-style: italic;
    color: rgba(161, 208, 252, 0.49);
}

.loader {
    width: 60px;
    display: flex;
    align-items: flex-start;
    aspect-ratio: 1;
}
.loader:before,
.loader:after {
    content: "";
    flex: 1;
    aspect-ratio: 1;
    --g: conic-gradient(from -90deg at 10px 10px, #a1d0fc 90deg,#0000 0);
    background: var(--g), var(--g), var(--g);
    filter: drop-shadow(30px 30px 0 #A1D0FC);
    animation: l20 1s infinite;
}
.loader:after {
    transform: scaleX(-1);
}
@keyframes l20 {
    0%   {background-position:0     0, 10px 10px, 20px 20px}
    33%  {background-position:10px  10px}
    66%  {background-position:0    20px,10px 10px,20px 0   }
    100% {background-position:0     0, 10px 10px, 20px 20px}
}

/* Contenu */
/* Contenu */
/* Contenu */

main {
    display: flex;
    justify-content: center;
}

#streamersContainer {
    margin: 4rem;
    width: 50%;
    padding: 1rem;
    border: 3px solid #A1D0FC;
    border-radius: 1rem;
    box-sizing: border-box;
}

.streamers-container {
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.streamers-category {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espace entre les images */
}

.streamer-info {
    position: relative;
    text-align: center;
    width: 60px; /* Assurez-vous que la largeur est fixe */
    margin: 0; /* Supprime les marges éventuelles */
}

.streamer-image {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Pour une image ronde */
    transition: filter 0.3s ease, transform 0.3s ease;
    justify-content: center; /* Centre les images horizontalement */
    transform: scale(1); /* Échelle normale par défaut */
    z-index: 1; /* Assure que l'image est au-dessus des autres éléments */
}

.streamer-info:hover .streamer-image {
    filter: grayscale(0%); /* Réduit le niveaux de gris à 0% lors du survol */
    transform: scale(1.2); /* Zoom de 10% sur l'image lors du survol */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Optionnel : ajout d'une ombre portée pour plus d'effet */
}

.offline:hover {
    filter: grayscale(0%); /* Réduit le niveaux de gris à 0% lors du survol */
}

.offline {
    filter: grayscale(100%);
}

.live-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 7px;
    background-color: red;
    border-radius: 50%;
    border: 0.25rem solid rgb(29, 25, 27);
}

.streamer-name {
    z-index: 999;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 99999px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.streamer-info:hover .streamer-name {
    opacity: 1;
}
