/* Style général pour le banner */
body{
  margin: 0px;
  background-color: #e4f4ff63;
  overflow-y: auto;
  font-family: 'Quicksand', sans-serif;
  
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 1000;  /* Ajuste le poids de la police pour tes besoins */
  color: #333;  /* Couleur douce pour les titres */
  margin-bottom: 20px;  /* Un peu d'espacement sous les titres */
}

#monBouton {
  position: absolute;
  top : 100px;
}


.page {
  position: relative;
  top : 8em;
  padding: 1em;
  font-family: 'Quicksand', sans-serif;  /* Utilise une police douce */

}

.gallery-container{
  padding: 1em;
  z-index: -2;
}

.month-year{
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5em;
  font-weight: 1000;  /* Ajuste le poids de la police pour tes besoins */
  color: #333;  /* Couleur douce pour les titres */
  margin-left: 1em;
  margin-right: 1em;
  margin-top: 1em;
  position: -webkit-sticky; /* Nécessaire pour compatibilité avec Safari */
  position: sticky;
  top: 5.6em;
  z-index: 100;
}

.media-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid lightgray;
  margin-left: 240px;
}

.media-container {
  position: relative; 
  display: inline-block;
}

.gallery-media {
  width: 25em;
  height: 15em;
  margin: 1em;
  object-fit: cover;
  box-shadow: 3px 3px 3px 0px rgba(48, 47, 47, 0.1);
  border-radius: 1em;
  transition: 0.5s;
  z-index: 3;
  background-color: white;
  
}

.media-info {
  position: absolute;
  opacity: 0;
  transition: 0.5s;
  z-index:-2;
  bottom: 1em;
  width: 100%;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5em;
  font-weight: 1000;  /* Ajuste le poids de la police pour tes besoins */
  color: #1b1b1b;
}

.gallery-media:hover {
  opacity: 0.3;
  transform: scale(1.05); /* Agrandit légèrement l'image */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Ajoute une ombre */
}

.gallery-media:hover + .media-info {
  opacity: 1;
}

@media (hover: none) {
  .gallery-media:hover {
    opacity: 1;
    transform: none;
    box-shadow: none;
  }
}

.birth {
  display: flex;
  justify-content: center; /* Centrer horizontalement */
  align-items: center; /* Centrer verticalement si nécessaire */
  height: 20em;
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: 240px;
}

.birthPic{
  background-image: url('/img/birth.webp'); /* Assurez-vous de remplacer par le bon chemin */
  background-position: center;
  background-size: cover; /* Adapte l'image pour couvrir toute la zone */
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 36em;
  border-radius: 30px; /* Pour avoir les bords arrondis comme dans l'image */
  position: relative;
  display: flex;
  justify-content: flex-end; /* Aligne le texte en bas */
  align-items: flex-end; /* Place le texte en bas verticalement */
  padding: 10px;
}

.birth-name {
  font-size: 34px;
  font-weight: bold;
  color: #333;
  text-align: center;
  width: 100%;
  margin: 0;
  font-family: 'Satisfy', cursive;
}

/* Bouton "+" flottant */
.add-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #3187c3;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 36px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.add-btn:hover {
  background-color: #26628d;
}

.topContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  width: 50%;
  text-align: center;
  font-family: 'Quicksand', sans-serif;  /* Utilise une police douce */
  position: relative;
  top: 12em;
  padding-bottom: 60px;
}

input[type="text"] {
  width: 80%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

#joinFamilyBtn {
  margin-top: 15px;
  background-color: #3270c0;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Quicksand', sans-serif;
  font-size: 1em;
}

#joinFamilyBtn:hover {
  background-color: #224e88;
}


.family-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.family-name {
  font-weight: bold;
  color: #555;
}

.access-code {
  color: #888;
}

.message {
  margin-top: 15px;
  color: red;
  font-size: 14px;
  text-align: center;
}

#familiesList {
  list-style-type: none;
  font-family: 'Quicksand', sans-serif;
  padding: 0;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 1.2em;
  color: #333;
  width: 60%;  /* Ajuster la largeur pour qu'elle soit proportionnelle */
  margin: 0 auto; /* Centrer la liste des familles horizontalement */
  display: flex;
  flex-direction: column;  /* Assurer que les éléments soient alignés verticalement */
  align-items: center; /* Centrer les éléments à l'intérieur */
  border-radius: 20px;
}

.family-items {
  width: 100%;
  border-bottom: 1px solid lightgray;
}

.family-items:last-child {
  border-bottom: none; /* Supprime la ligne pour le dernier élément */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 20px;
}

.family-items:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 20px;
}

.family-item {
  width: 100%;
}

.no-family-message {
  padding: 10px;
  font-size: 1em;
  font-style: italic;
}

#accessCodeInput {
  width: 40%;
  margin-right: 1em;
  margin-left: 1em;
  margin-top: 1em;
}

/* Styles pour l'alerte */
.alert {
  display: none; /* Cache l'alerte par défaut */
  margin-top: 15px;
  border-radius: 5px;
  font-size: 14px;
  width: 80%;
  text-align: center;
  transition: opacity 0.5s ease;
  position: absolute;
  bottom: 20px;
}

.alert-success {
  color: #00cc30;
  font-size: 1em;
  font-style: italic;
}

.alert-error {
  color: #ff0019;
  font-size: 1em;
  font-style: italic;
}

.alert-show {
  display: block;
  opacity: 1;
}

.family-select-top-container {
  display: flex;
  justify-content: center; /* Centre les éléments horizontalement */
  gap: 50px; /* Espace entre les deux menus déroulants */
  margin-top: 80px; /* Ajuste l'espacement en haut si nécessaire */
  padding-top: 55px;
  padding-bottom: 20px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Légère ombre pour séparer le banner */
  position: relative;
  z-index: 100;
  height: 80px;
}

#family-select-container,
#baby-select-container, 
#date-filter-container {
    display: flex !important;;
    flex-direction: column; /* Empile le label et le select verticalement */
    align-items: center; /* Centre horizontalement le label par rapport au select */
    width: 300px; /* Définit une largeur fixe si nécessaire */
    z-index: 10000;
    margin-left: 10px;
    margin-right: 10px;
}

/* Style des selects */
.custom-multiselect {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
  appearance: none; /* Supprime l'apparence native du select */
  -webkit-appearance: none; /* Pour Safari/Chrome */
  -moz-appearance: none; /* Pour Firefox */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Ajoute une légère ombre */
  background-image: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/svgs/solid/chevron-down.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

/* Style du select au survol */
.custom-multiselect:hover {
  border-color: #888;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Style du select en focus (quand on clique dessus) */
.custom-multiselect:focus {
  outline: none;
  border-color: #3187c3;
  box-shadow: 0px 4px 12px rgba(49, 135, 195, 0.4);
}

.custom-multiselect:disabled {
  color: #333; /* Couleur de police originale */
  background-color: #ffffff; /* Couleur de fond pour qu'elle reste cohérente */
  opacity: 1; /* Enlève l'opacité par défaut appliquée par le navigateur */
}


/* Style général pour les labels */
.select-label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.5em;
  color: #333;
  margin-bottom: 5px;
  display: block;
  align-items: center;
}

.moment-filter-container {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 300px;
  z-index: 10000;
  margin-right: 10px;
}

/* Style des selects */
.custom-select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
  appearance: none; /* Supprime l'apparence native du select */
  -webkit-appearance: none; /* Pour Safari/Chrome */
  -moz-appearance: none; /* Pour Firefox */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Ajoute une légère ombre */
  background-image: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/svgs/solid/chevron-down.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

/* Style du select au survol */
.custom-select:hover {
  border-color: #888;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Style du select en focus (quand on clique dessus) */
.custom-select:focus {
  outline: none;
  border-color: #3187c3;
  box-shadow: 0px 4px 12px rgba(49, 135, 195, 0.4);
}

.custom-select:disabled {
  color: #333; /* Couleur de police originale */
  background-color: #ffffff; /* Couleur de fond pour qu'elle reste cohérente */
  opacity: 1; /* Enlève l'opacité par défaut appliquée par le navigateur */
}

.logoM {
  margin-top: 1em;
  position: fixed;
  top: 8em;
  left: 2em;
  width: 10em;
}

.copy-icon:hover {
  transform: scale(1.05); /* Agrandit légèrement l'image */
}

.selectBox {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

.selectBox span {
  display: block;
}

.checkboxes {
  display: none;
  border-top: 1px solid #ccc;
  margin-top: 4px;
  background-color: white;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.checkbox {
  display: block;
  padding: 5px 0;
  margin: 0;
}

#validateSelection {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #3187c3;
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  border-radius: 5px;
  width: 10em;
  height: 33px;
  position: relative;
  left: 25%;
  font-size: 1em;
}

#validateSelection:hover {
  background-color: #26628d;
}

.media-modal-info {
  background-color: rgba(0, 0, 0, 0.2); /* Couleur de fond avec transparence */
  color: white; /* Texte blanc */
  text-align: center;
  font-size: 14px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 9999;
  position: absolute;
  width: 90%;
  font-size: 1.5em;
}

.media-modal-info p {
padding: 5px;
  }

   /* Pour les écrans de petite taille */
   @media (max-width: 800px) {
    .family-select-top-container {

      font-size: 70%;

    }

   }


  /* Pour les écrans de petite taille */
  @media (max-width: 600px) {
    .family-select-top-container {
      margin-top: 30px;
      gap: 5px;
      font-size: 35%;
      width: 102%;
      height: 40px;
      padding-bottom: 20px;
    }
    .custom-multiselect {
      font-size: 11px;
      width: 90%;
      padding : 5px;
    }
    .custom-select {
      font-size: 9px;
      padding : 5px;
    }
    #placeholder {
      font-size: 9px;
    }
    #family-select-container {
      width: 30%;
    }
    #baby-select-container {
      width: 30%;
    }
    #date-filter-container {
      width: 30%;
    }
    .moment-filter-container {
      width: 30%;
    }
    .selectBox {
      font-size: 11px;
    }
    .checkbox {
      font-size: 9px;
    }
    #validateSelection {
      width: 5em;
      font-size: 1em;
    }
    .container {
      font-size: 60%;
    }
    #accessCodeInput {
      font-size: 85%;
    }
    .add-btn {
      width: 50px;
      height: 50px;
    }
    .gallery-media {
      width: 14em;
      height: 10em;
      margin: 0;
      margin-bottom: 0.5em; 
      margin-top: 1em;
      margin-right: 0.5em;       
    }
    .media-group {
      margin-left: 0;
      margin-top: 3px;
      justify-content: right;
    }
    .media-container {
      margin-left: 0;
    }
    .month-year {
      font-size: 0.75em;
      top: 6.6em;
      margin-left: -6px;
    }
    .media-info {
      font-size: 1em;
    }
    .media-modal-info {
      font-size: 0.8em;
      transform: translateY(14px);
    }
    .gallery-container {
      padding-bottom: 1em;
      padding-left: 1em;
      padding-top: 1em;
      padding-right: 0.5em;
  }
 
  }