
#pool {
    width: 100vw;
    background: none;
    position: absolute;
    overflow: hidden;
  }
  
  .button-wrapper {
    width: 54px;
    height: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    right: 20px;
    bottom: 20px;
    transition: 1.25s all ease .9s;
  }
  
  #pool .main-button{
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    position: relative;
    transition: 1.25s all ease .1s;
  
  }
  
  .main-button {
    background: #2b2b2b;
    -webkit-align-self: flex-end;
    -ms-flex-item-align: end;
    align-self: flex-end;
    color: #FFE31A;
  }
  
  .layer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 54px;
    height: 54px;
    background: #2b2b2b;
    border-radius: 50%;
    z-index: -99;
    pointer-events: none;
    transition: 1.25s all ease .5s;
  }
  
      /*déplacement btn i*/
  .button-wrapper.clicked {
    -webkit-transform: rotate(90deg) translateY(-96px);
    -ms-transform: rotate(90deg) translateY(-96px);
    transform: rotate(180deg) translateY(-20px) translateX(20px);
    right: 0;
    bottom: 0;
    -webkit-transition: .3s all ease .6s;
    transition: .3s all ease .6s;
  }
  
  .button-wrapper.clicked .main-button {
    opacity: 0;
    -webkit-transition: .3s all ease .3s;
    transition: .3s all ease .3s;
  }
  
  /*déclencheur layer*/
  .button-wrapper.clicked .layer {
    -webkit-transform: scale(100);
    -ms-transform: scale(100);
    transform: scale(100);
    -webkit-transition: 2.25s all ease .9s;
    transition: 1.25s all ease .9s;
  }
      
  .layered-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
    transition: 0.7s all ease .3s;
  }
  
  .layered-content.active { opacity: 1; }
  

  
  .layered-content.active .close-button {
    -webkit-animation: .2s bounceIn;
    animation: .2s bounceIn;
  }

  .layered-content.active .wa-button {
    -webkit-animation: .2s bounceIn;
    animation: .2s bounceIn;
  }

  .content {
    padding-top: 180px;
    height: 100%;
  }
  
  .content p {
    color: white;
    font-weight: 300;
    text-align: center;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
  }
  
  .content p a {
    font-size: 12px;
    background: white;
    padding: 2.5px 5px;
    color: #ff2670;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    margin-left: 1.5px;
  }
  
  .content p {
    opacity: 0;
    position: relative;
    top: -7.5px;
    -webkit-transition: .5s all ease .5s;
    transition: .5s all ease .5s;
  }
  
  .layered-content.active .content p {
    opacity: 1;
    top: 0;
    -webkit-transition: .5s all ease 1s;
    transition: .5s all ease 1s;
  }
  
  
  .button-wrapper {
    position: fixed; 
  
  }
  
  
  .close-button {
    background: rgb(112, 112, 112);
    position: fixed;
    right: 20px;
    top: 100px;
    color: #ffffff;
    z-index: 4;
    width: 50px;  /* Tentukan lebar tombol */
    height: 50px; /* Tentukan tinggi tombol sama dengan lebar */
    padding: 0;   /* Hilangkan padding yang dapat merubah bentuk */
    border: none;
    border-radius: 50%; /* Membuat tombol bulat */
    cursor: pointer;
    text-align: center; /* Untuk memastikan teks di tengah */
    display: flex; /* Gunakan flexbox untuk menyejajarkan teks di tengah */
    align-items: center;
    justify-content: center;
  }


    
  .wa-button {
    background: rgb(89, 185, 121);
    position: fixed;
    right: 10px;
    bottom: 40px;
    color: #ffffff;
    z-index: 4;
    width: 50px;  /* Tentukan lebar tombol */
    height: 50px; /* Tentukan tinggi tombol sama dengan lebar */
    padding: 0;   /* Hilangkan padding yang dapat merubah bentuk */
    border: none;
    border-radius: 50%; /* Membuat tombol bulat */
    cursor: pointer;
    text-align: center; /* Untuk memastikan teks di tengah */
    display: flex; /* Gunakan flexbox untuk menyejajarkan teks di tengah */
    align-items: center;
    justify-content: center;
  }

  
  
  
  .layered-content {
    position: fixed;
    overflow: auto;
    opacity: 0;
    z-index: 1; /* Pastikan z-index cukup tinggi saat aktif */
    pointer-events: none; /* Elemen tidak dapat menerima klik saat tidak aktif */
    transition: 0.7s all ease .3s;
  }
  
  .layered-content.active {
    opacity: 1;
    pointer-events: auto; /* Aktifkan klik saat elemen aktif */
    z-index: 100; /* Pastikan elemen berada di atas */
  }
  
  .button-wrapper {
    z-index: 10; /* Pastikan ini lebih tinggi dari .layered-content */
    position: fixed; /* Tetapkan posisi agar terlihat di atas */
    bottom: 20px; /* Atur jarak dari bawah */
    right: 20px; /* Atur jarak dari kanan */
  }
  
  
  @media screen and (min-width: 576px) {

    
    .close-button {

        right: 70px;
      }

      .wa-button {
        width: 70px;  /* Tentukan lebar tombol */
        height: 70px; /* Tentukan tinggi tombol sama dengan lebar */
        right: 70px;
        font-size: 37px;
      }

      #pool .main-button{
        width: 84px;
        height: 84px;

      }
      
      .layer{
        width: 84px;
        height: 84px;
      }

      .button-wrapper{
        width: 84px;
        bottom: 25px; /* Atur jarak dari bawah */
        right: 60px; /* Atur jarak dari kanan */
      }

      .main-button i{
        font-size: 23px;
        
      }
  
  
  }



