/* Ana buton */
#custom-dynamic-button1 {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999; /* En üst katmanda yer alması için artırıldı */
  transition: transform 0.3s ease;
}

#custom-dynamic-button1:hover {
  transform: scale(1.1);
}

/* Dinamik ikon */
#custom-dynamic-icon1 {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: custom-change 3s ease-in-out infinite;
}

/* Menü balonları */
.custom-menu-item1 {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-color: #FFF100;
  color: #fff;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
  transition: all 0.5s ease, width 0.4s ease 0.2s;
  z-index: 9998; /* Baloncuklar da üst katmanda */
}

.custom-menu-item1.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-80px); /* Yukarı çıkar */
}

.custom-menu-item1.expand {
  width: 200px; /* Balon genişler */
  border-radius: 30px;
}

/* WhatsApp menü */
#custom-whatsapp-menu1 {
  background-color: #25D366;
  bottom: 90px;
  transition: all 0.3s ease;
}

#custom-phone-menu1 {
  background-color: #007bff;
  bottom: 160px;
  transition: all 0.3s ease;
}

/* Menü ikonu ve yazılar */
.custom-menu-item1 .custom-menu-icon1 {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#custom-whatsapp-menu1 .custom-menu-icon1 {
  background-image: url('https://img.icons8.com/?size=100&id=85088&format=png&color=ffffff');
}

#custom-phone-menu1 .custom-menu-icon1 {
  background-image: url('https://img.icons8.com/?size=100&id=9730&format=png&color=ffffff');
}

.custom-menu-item1 a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  flex-grow: 1;
  margin-left: 10px;
  opacity: 0; /* Başlangıçta yazı görünmez */
  transition: opacity 0.5s ease;
}

.custom-menu-item1.expand a {
  opacity: 1; /* Yana açıldığında yazılar görünür */
}

/* Animasyon */
@keyframes custom-change {
  0% {  
    background-image: url('https://img.icons8.com/?size=100&id=85088&format=png&color=ffffff'); 
  }
  50% {
    background-image: url('https://img.icons8.com/?size=100&id=9730&format=png&color=ffffff');
  }
  100% {
    background-image: url('https://img.icons8.com/?size=100&id=85088&format=png&color=ffffff');
  }
}