@keyframes pop {
  0% { transform: translate(-20%, -20%) scale(0.75, 0.75); }
  50% { transform: translate(-30%, -100%) scale(2, 2); }
  55% { transform: translate(-30%, -100%) rotate(20deg); }
  60% { transform: translate(-30%, -100%) rotate(-20deg); }
  65% { transform: translate(-30%, -100%) rotate(20deg); }
  70% { transform: translate(-30%, -100%) rotate(-20deg); }
  100% { transform: translate(-20%, -20%) scale(1.25, 0.75); }
}
@keyframes fade_in_show {
  0% { opacity: 0; transform: scale(0) }
  100% { opacity: 1; transform: scale(1) }
}
#chat-wrapper {
  height: calc(100% - 30px);
  max-height: 700px;
  width: 600px;
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  border-radius: 4px;
  overflow: hidden;
  z-index: 1080;
  animation: fade_in_show 0.5s;
}
#chat-header {
  align-items: center;
  display: flex;
  width: 100%;
  height: 40px;
  color: white;
  font-size: 28px;
  background-color: #2C7A7B;
  justify-content: space-between;
}
#chat-header-image-wrapper {
  padding-left: 5px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-family: "Arial", sans-serif;
  color: white;
  text-decoration: none;
}
#chat-header-image {
  margin-left: 5px;
  height: 40px;
  padding-bottom: 1px;
}
#chat-header-button {
  margin-right: 6px;
  cursor: pointer;
}
#chat-embed {
  display: block;
  border: none;
  height: calc(100% - 40px) !important;
  width: 100%;
}
#chat-button {
  z-index: 999;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #2C7A7B;
  background-image: url("https://chatbot.yana-nachlass.de/avatar.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65px;
  transform: translate(-20%,-20%);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  border-radius: 100%;
  cursor: pointer;
  height: 90px;
  width: 90px;
  animation: pop 2s;
}
#chat-button:after {
  background-color: white;
  border-radius: 100%;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 300ms;
}
#chat-button:hover:after {
  opacity: .2;
}
#chat-bubble {
  z-index: 999;
  visibility: hidden;
  position: fixed;
  bottom: 40px;
  right: 140px;
  background: #F8F8F8;
  color: #000000;
  font-size: 20px;
  line-height: 35px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  width: auto;
  height: auto;
  border-radius: 10px;
  padding: 10px 10px;
  opacity: 0;
  transition: opacity 300ms;
}
#chat-bubble:after {
  content: '';
  position: absolute;
  display: block;
  width: 0;
  z-index: 1;
  border-style: solid;
  border-color: transparent transparent transparent #F8F8F8;
  border-width: 20px 0 20px 20px; right: auto; left: auto; right: -20px;
  top: 50%;
  margin-top: -20px;
}
@media only screen and (max-width: 768px) {
  #chat-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    width: 100vw;
    z-index: 9999;
  }
  #chat-header {
    min-height: 35px;
    height: 35px;
    font-size: 25px;
    display: flex;
    justify-content: justify-end;
  }
  #chat-header-image-content, #chat-header-image {
    display: none;
  }
  #chat-embed {
    min-height: calc(100% - 35px);
    height: calc(100% - 35px);
  }
  #chat-header div {
    margin-right: 24px;
  }
  #chat-button {
    bottom: 15px;
    right: 15px;
  }
  #chat-bubble {
    z-index: 999;
    bottom: 15px;
    right: 135px;
    background: #F8F8F8;
    color: #000000;
    line-height: 35px;
    font-size: 18px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    width: auto;
    height: auto;
    margin-left: 10px;
    border-radius: 10px;
  }
}