diff --git a/css/backToTopButton.css b/css/backToTopButton.css deleted file mode 100644 index 1af4376..0000000 --- a/css/backToTopButton.css +++ /dev/null @@ -1,40 +0,0 @@ -#backToTopBtn { - position: fixed; - bottom: 130px; - right: 31px; - height: 50px; - width: 50px; - padding: 10px 15px; - font-size: 20px; - cursor: pointer; - border: none; - border-radius: 50%; - box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); - transition: 500ms; - display: none; /* Initially hide the button */ - justify-content: center; - align-items: center; - z-index: 9999; - } - - - #backToTopBtn { - background-color: white; - color: black; - } - - .dark-mode #backToTopBtn { - background-color: black; - color: white; - } - - #backToTopBtn:hover { - background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); - opacity: 1; - transform: scale(1.05); - box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); - } - - .dark-mode #backToTopBtn:hover { - background: linear-gradient(135deg, #0c0a0f 0%, #8ec5fc 100%); - } \ No newline at end of file diff --git a/css/style.css b/css/style.css index fd1de51..eefa658 100644 --- a/css/style.css +++ b/css/style.css @@ -1954,6 +1954,37 @@ button:hover { /* Yellow color for selected star */ } +#backToTopBtn { + position: fixed; + bottom: 50px; + right: 31px; + height: 50px; + width: 50px; + padding: 10px 15px; + font-size: 20px; + cursor: pointer; + border: none; + background: linear-gradient(#1845ad, #23a2f6); + color: white; + border-radius: 50%; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + transition: 500ms; + display: none; + justify-content: center; + align-items: center; + z-index: 9999; +} + +#backToTopBtn:hover { + background: linear-gradient(to right, #ff512f, #f09819); + opacity: 1; + transform: scale(1.05); + box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); +} +.indexpage #backToTopBtn { + bottom: 130px; +} + .header { margin-top: 100px; width: 100vw; diff --git a/index.html b/index.html index f88dd9c..2b344f2 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,6 @@ Random Disco Light Simulator - +