#dialogue {
    padding: 5px;
    display: flex;
    position: absolute;
    z-index: 2;
    justify-self: center;
    align-self: center;
    background-color: rgba(0, 0, 0, 0.75);
    width: 60%;
    height: 20%;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    bottom: 3%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.charName {
    position: absolute;
    opacity: 100%;
    background-color: rgb(0, 0, 0);
    width: fit-content;
    top: -25%;
    left: 5%;
    padding: .75%;
    border-radius: 5px;
}

#dots {
    position: absolute;
    left: 90%;
    top: 45%;
    opacity: 50%;
}

#dialogue:hover #dots{
    animation: showhide 900ms ease-in infinite;
    transition: .5s;
    top: 35%;
    opacity: 100%;
}

@keyframes showhide{
    0% {top:47%}
    50% {top:43%}
    100% {top:47%;}
}