* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arimo", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
main {
  background: url("./assets/img/football.jpg") center/cover no-repeat;
  min-height: 100%;
  /* parallax effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
body h2 {
  color: #fff;
  padding: 2rem 0 1rem 5rem;
}
.red {
  background-color: rgba(250, 8, 8, 0.2);
}
.blue {
  background-color: rgb(0, 0, 255, 0.2);
}
.green {
  background-color: rgb(0, 255, 0, 0.2);
}
.rosybrown {
  background-color: rgb(188, 143, 143, 0.2);
}
section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  padding-top: 1rem;
}
article {
  position: relative;
  width: 150px;
  height: 100px;
  margin: 10px;
  opacity: 0.7;

  border-radius: 8px;
  color: #fff;
  border: 1px solid #ccc;
  box-shadow: rgba(255, 255, 255, 0.15) 0px 12px 28px,
    rgba(211, 211, 211, 0.22) 0px 8px 8px;
}
article:hover {
  transform: scale(1.3);
  transition: transform 0.3s ease;
  z-index: 1;
  opacity: 1;
}
/* Conteneur de l'overlay */
.overlay {
  position: absolute;
  display:flex;
  flex-direction: column;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.4
  ); 
  color: #fff; 
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto; 
}
.overlay-title h1 {
  display: block;
  opacity: 1; 
  transition: opacity 0.3s ease; 
}

article:hover .overlay-title h1 {
  display:none;
  opacity: 0;
  transition: opacity 0.3s ease; 
}

.overlay-content {
  display: none; 
  opacity: 0;
  transition: opacity 0.3s ease; 
}
article:hover .overlay-content {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease; 
}

/***** Scrollbar *******/
.overlay::-webkit-scrollbar {
  width: 8px; /* Largeur de la barre de défilement */
}

.overlay::-webkit-scrollbar-thumb {
  background-color: rgba(
    255,
    255,
    255,
    0.5
  ); /* Couleur de la poignée de défilement */
  border-radius: 4px; /* Coins arrondis */
}

.overlay::-webkit-scrollbar-thumb:hover {
  background-color: rgba(
    255,
    255,
    255,
    0.7
  ); /* Couleur de la poignée de défilement au survol */
}
.overlay::-webkit-scrollbar-track {
  background-color: transparent; /* Couleur de fond de la barre de défilement */
}
.overlay::-webkit-scrollbar-track:hover {
  background-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Couleur de fond de la barre de défilement au survol */
}

/* Card title */
section article div h1 {
  width: auto;
  font-size: 0.8rem;
  text-align: center;
}
/* container list */
section aside {
  position: absolute;
  display:flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 15px;
}

section aside li {
  list-style-type: none;
  font-size: 0.5rem;
}

section aside li p {
  font-size: 0.5rem;
}

.no-items {
  text-align: center;
  list-style-type: none;
  font-size: 0.6rem;
  color: orange;
}
