<div> <label class="switch" for="switch"> <input id="switch" type="checkbox" class="circle" /> <svg viewBox="0 0 384 512" xmlns="http://www.w3.org/2000/svg" class="moon svg" > !Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc. <path d="M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"
.switch { --transition: 300ms; --transition500: 500ms; --color-dark: #0c0f14; --color-darkGray: #21262e; --color-gray: #52555a; --color-offwhite: #cecece; --shadow-color: var(--color-dark); position: relative; display: flex; align-items: center; width: 60px;