.go-to-top { position: fixed; bottom: 70px; right: 20px; width: 50px; height: 50px; border: none; background-color: #333; color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: background-color 0.3s, box-shadow 0.3s; } .go-to-top svg { width: 24px; height: 24px; fill: currentColor; } .go-to-top:hover { background-color: #555; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); } .go-to-top.show { display: flex; opacity: 1; transform: translateY(0); }