* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}
body {
    font-family: "Anton", sans-serif;
    background-image: linear-gradient(45deg, rgb(38, 153, 153), rgb(0, 255, 170) );
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

:root {
    --anum_dur: 0.2s;
    --trans: 0s;
}

.rndy_wrap{
    width: 400px;
    height: 102px;
    box-shadow: 0 0 15px #000;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #000;
    padding: 10px;
    margin: 40px auto;
    position: relative;
}

.rndy_answer_inner {
    box-shadow: inset 0 0 5px #000;
    font-size: 20px;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.rndy_answer {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    user-select: none;
    white-space: nowrap;
    opacity: 0;
    animation: texFadeOut var(--anum_dur) ease-in-out;
}

.rndy_answer.active {
    opacity: 1;
    animation: texFade var(--anum_dur) ease-in-out;
}

@keyframes texFade {
    from {
        transform: translateY(-200%);        
    }

    to {
        transform: translateY(0%);
    }
}

@keyframes texFadeOut {
    from {
        transform: translateY(0%);
        opacity: 1;
    }

    to {
        transform: translateY(200%); 
        opacity: 0;
    }
}