.animation-container{
    height: 2rem;
    position: fixed;
    bottom: 0;
    left:0;
    right:0;
    background-image: url("../assets/road.svg");
    background-repeat: repeat-x;
    width: 100vw;
    z-index: 1049;
}
.animation-close,
.animation-button,
.animation-truck,
.animation-thread{
    position: absolute;
    opacity: 0;

}
.animation-close{
    color: #EC8D42;
    background-color: white;
    border-radius: 50%;
    right: 15px;
    text-decoration: none;
    font-weight: bold;
    animation: fade-in 1s forwards 6s ease-in-out;
    height: 18px;
    width: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.animation-button{
    text-transform: uppercase;
    right: 100px;
    bottom: 15px;
    display: inline-block;
    text-align: center;
    -webkit-clip-path: polygon(100% 0%, 94% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
    clip-path: polygon(100% 0%, 94% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
    background-color: white;    
    padding: .35rem 2.35rem .35rem 2.35rem;
    border-radius: 4px 0 0 4px;
    animation: initial-translate 6s forwards 0s ease-out;
    color: #434343;
    font-family: "Source Sans Pro";
    font-size: 12px;
    line-height: 15px;
    font-weight: 600;
    cursor: pointer;
}
.animation-truck{
    background-image: url("../assets/truck.png");
    background-size: 100%;
    background-repeat: no-repeat;
    height: 32px;
    width: 32px;
    right: 322px;
    bottom: 5px; 
    animation: initial-translate 6s forwards 0s ease-out, final-translate 10s forwards 7s ease-in;
}
.animation-thread{
    background-image: url("../assets/thread.svg");
    background-size: 100%;
    background-repeat: no-repeat;
    height: 13px;
    width: 22px;
    bottom: 22px;
    right: 310px;
    animation: initial-translate 6s forwards 0s ease-out, fade-out 1s forwards 6s ease-in-out;
}


@media (min-width: 900px) {
    .animation-container {
       height: 3.5rem;
    }
    
    .animation-button {
        bottom: 35px;
        padding: .75rem 2.75rem .75rem 2.75rem;
        font-size: 18px;
        line-height: 23px;
    }
    
    .animation-truck{
        height: 64px;
        width: 64px;
        right: 435px;
    }
    
    .animation-thread {
        height: 26px;
        width: 44px;
        bottom: 44px;
        right: 395px;
    }
}

@keyframes initial-translate{
    0% {
        transform: translateX(50vw);
        opacity: 1;
      }
    
      100% {
        transform: translateX(0);
        opacity: 1;
      }
}
@keyframes final-translate{
    0% {
        transform: translateX(0);
      }
    
      100% {
        transform: translateX(-100vw);
      }
}

@keyframes fade-out{
   0%{
       opacity: 1;
   }
   100%{
       opacity: 0;
   }
}

@keyframes fade-in{
   0%{
       opacity: 0;
   }
   100%{
       opacity: 1;
   }
}
