<script>
	function scroll() {
        var element = document.getElementById('main-content');
        var panel = document.querySelector(".panel");
        var elementPosition = element.getBoundingClientRect().top;
        var offsetPosition = elementPosition - panel.scrollHeight;

        window.scrollTo({
             top: offsetPosition,
             behavior: "smooth"
        });
    }
</script>

<button type="button" class="button primary cool-button" style="margin-top: 1vh; border-radius: 4vw" on:click="{scroll}">
	↓  Zjisti více
</button>
