/* Tim Nelson added .scroll-to-top - Integrated Inline SVG Circle Version */

.scrolltop {
    display: none; /* Controlled via JS */
    position: fixed;
    right: 24px;   /* Matches the 24px spacing of your theme toggle */
    bottom: 24px;  /* Matches the 24px spacing of your theme toggle */
    z-index: 9999;
}

.scroll {
    display: flex;
    align-items: center;      /* Vertically centers the SVG */
    justify-content: center;   /* Horizontally centers the SVG */
    width: 44px;               /* Matches theme toggle */
    height: 44px;              /* Matches theme toggle */
    background-color: var(--scroll-bg);
    color: var(--scroll-arrow);
    cursor: pointer;
    border-radius: 50%;        /* Clean circle */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    outline: none;
    padding: 0;                /* Crucial for centering */
}

.scroll svg {
    width: 28px;               /* Sized well for a 44px circle */
    height: 28px;
    display: block;
    /* This nudge fixes the "visual" center because the arrow path 
       naturally sits lower in a 35x35 viewBox */
    transform: translateY(-3px); 
/*    fill: currentColor; --scroll-arrow: #ffffff;*/
    fill: var(--scroll-arrow);
}

.scroll:hover {
    background-color: var(--scroll-hover-bg);
    transform: translateY(-5px); /* Keeps the "lift" effect */
    opacity: .6;
}

/*
.scrolltop {
    display: none;
    position: fixed;
    right: 10px;
    bottom: -5px;
    z-index: 9999;
}

.scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 70px;
    background-color: var(--scroll-bg);
    color: var(--scroll-arrow);
    cursor: pointer;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    padding: 10px;
}

.scroll svg {
    width: 30px;
    height: 30px;
    margin-top: -10px; 
}

.scroll:hover {
    background-color: var(--scroll-hover-bg);
    opacity: 0.8;
    transform: translateY(-5px);
}*/
