/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--scroll-to-top-bg-color);
    color: var(--scroll-to-top-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    transform: translateY(20px);
    pointer-events: none;
    contain: layout style paint;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover
{
    border: var(--scroll-to-top-hover-border-color) 2px solid;
    transform: translateY(-5px);
}

.scroll-to-top:before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid var(--scroll-to-top-hover-border-color);
    border-left: 3px solid var(--scroll-to-top-hover-border-color);
    transform: rotate(45deg);
    margin-top: 5px;
}

/* Responsive styles for scroll-to-top button */
@media screen and (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top:before {
        width: 10px;
        height: 10px;
    }
}

@media screen and (max-width: 480px) {
    .scroll-to-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-to-top:before {
        width: 8px;
        height: 8px;
        border-width: 2px;
    }
}
