#scroll-to-top {
    position: fixed;
    right: 3%;
    bottom: 20.2%;
    height: 50px;
    width: 60px;
    padding: 5px; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
    cursor: pointer;
    display: none;
    z-index: 99999;
}

 

@media (max-width: 600px) {
    #scroll-text {
        display: none;
        margin-top: 5px;
        font-size: 12px;
        color: #ffffff;
        position: fixed;
        bottom: 18%;
        right: 7%;
        z-index: 9999999;  
    }
}

@media (min-width: 1025px) {
    #scroll-text {
        display: none;
        margin-top: 5px;
        font-size: 12px;
        color: #ffffff;
        position: fixed;
        bottom: 18%;
        right: 3.8%;
        z-index: 9999999;  
    }
}


#scroll-to-top::after {
    content: "";
    height: 44px;
    width: 44px;
    background-color: purple;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: white;
    z-index: -1;
}

#scroll-to-top:hover::after {
    height: 46px;
    width: 46px;
    animation-name: expand;
    animation-duration: 0.4s;
    animation-iteration-count: 1;
}

@keyframes expand {
    0% {
        height: 60px;
        width: 60px;
    }
    50% {
        height: 48px;
        width: 48px;
    }
    100% {
        height: 52px;
        width: 52px;
    }
}

/* Rocket */
#scroll-to-top a #rocket {
    height: 30px;
}

#scroll-to-top.shaking a #rocket {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% {transform: translate(1px, 1px) rotate(0deg);}
    10% {transform: translate(-1px, -2px) rotate(-1deg);}
    20% {transform: translate(-3px, 0px) rotate(1deg);}
    30% {transform: translate(3px, 2px) rotate(0deg);}
    40% {transform: translate(1px, -1px) rotate(1deg);}
    50% {transform: translate(-1px, 2px) rotate(-1deg);}
    60% {transform: translate(-3px, 1px) rotate(0deg);}
    70% {transform: translate(3px, 1px) rotate(-1deg);}
    80% {transform: translate(-1px, -1px) rotate(1deg);}
    90% {transform: translate(1px, 2px) rotate(0deg);}
    100% {transform: translate(1px, -2px) rotate(-1deg);}
}
