#success-alert{
    visibility: hidden;
    background-color: var(--clr-1);
    box-shadow: var(--box-shadow-1);
    border-radius: var(--border-radius-2);
    position: fixed;
    z-index: 1000;
    top: 100px;
    right: 0;
    width: fit-content;
    height: fit-content;
    padding: 20px;
    margin: 0 30px;
    overflow: hidden;
    transition: visibility 1s ease;

    display: flex;
    justify-content: center;
    align-items: center;
}
#success-alert.active{
    visibility: visible;
}
#success-alert.notactive{
    visibility: hidden;
}

@-webkit-keyframes bounceInRight {
    from,
    60%,
    75%,
    90%,
    to {
      -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
      animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
  
    from {
      opacity: 0;
      -webkit-transform: translate3d(3000px, 0, 0) scaleX(3);
      transform: translate3d(3000px, 0, 0) scaleX(3);
    }
  
    60% {
      opacity: 1;
      -webkit-transform: translate3d(-25px, 0, 0) scaleX(1);
      transform: translate3d(-25px, 0, 0) scaleX(1);
    }
  
    75% {
      -webkit-transform: translate3d(10px, 0, 0) scaleX(0.98);
      transform: translate3d(10px, 0, 0) scaleX(0.98);
    }
  
    90% {
      -webkit-transform: translate3d(-5px, 0, 0) scaleX(0.995);
      transform: translate3d(-5px, 0, 0) scaleX(0.995);
    }
  
    to {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
  }
  @keyframes bounceInRight {
    from,
    60%,
    75%,
    90%,
    to {
      -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
      animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
  
    from {
      opacity: 0;
      -webkit-transform: translate3d(3000px, 0, 0) scaleX(3);
      transform: translate3d(3000px, 0, 0) scaleX(3);
    }
  
    60% {
      opacity: 1;
      -webkit-transform: translate3d(-25px, 0, 0) scaleX(1);
      transform: translate3d(-25px, 0, 0) scaleX(1);
    }
  
    75% {
      -webkit-transform: translate3d(10px, 0, 0) scaleX(0.98);
      transform: translate3d(10px, 0, 0) scaleX(0.98);
    }
  
    90% {
      -webkit-transform: translate3d(-5px, 0, 0) scaleX(0.995);
      transform: translate3d(-5px, 0, 0) scaleX(0.995);
    }
  
    to {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
  }
  #success-alert.animate__bounceInRight {
    -webkit-animation: bounceInRight .5s ease;
    animation: bounceInRight .5s ease;
  }


  @-webkit-keyframes bounceOutRight {
    20% {
      opacity: 1;
      -webkit-transform: translate3d(-20px, 0, 0) scaleX(0.9);
      transform: translate3d(-20px, 0, 0) scaleX(0.9);
    }
  
    to {
      opacity: 0;
      -webkit-transform: translate3d(2000px, 0, 0) scaleX(2);
      transform: translate3d(2000px, 0, 0) scaleX(2);
    }
  }
  @keyframes bounceOutRight {
    20% {
      opacity: 1;
      -webkit-transform: translate3d(-20px, 0, 0) scaleX(0.9);
      transform: translate3d(-20px, 0, 0) scaleX(0.9);
    }
  
    to {
      opacity: 0;
      -webkit-transform: translate3d(2000px, 0, 0) scaleX(2);
      transform: translate3d(2000px, 0, 0) scaleX(2);
    }
  }
  #success-alert.animate__bounceOutRight {
    -webkit-animation: bounceOutRight 1s ease;
    animation: bounceOutRight 1s ease;
  }



#success-alert::after{
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background-color: #70FF00;
    transform: translateX(0);
    animation: alert 4s linear forwards;
}

@keyframes alert{
    0%{    transform: translateX(0);    }
    100%{    transform: translateX(-100%);    }
}

#success-alert-icon{
    min-width: 35px;
    aspect-ratio: 1;
    margin-right: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

#success-alert-block{
    color: var(--clr-3);

    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

#success-alert-title{
    position: relative;
    font-size: calc(var(--font-size) * 1);
    font-weight: 600;
    margin-bottom: 5px;
}
#success-alert-title::before{
    position: relative;
    content: 'Odesláno';
}
#success-alert-subtitle{
    position: relative;
    color: var(--clr-4);
    font-size: calc(var(--font-size) * 1);
    font-weight: 500;
}
#success-alert-subtitle::before{
    position: relative;
    content: 'Vaše zpráva byla úspěšně odeslána';
}