/* Dark mode Button */
.toggle {
    background-color: transparent;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    /*box-shadow: 0 0 50px 20px rgba(0, 0, 0, .1);*/
    line-height: 1;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    transition: background-color 0.3s;/*, box-shadow 0.3s;*/
}

.input {
    display: none;
}

.icon {
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    transition: transform 500ms;
}

.icon--moon {
    transition-delay: 200ms;
}

.icon--sun {
    transform: scale(0);
}

#switch:checked + .toggle .icon--moon {
    transform: rotate(360deg) scale(0);
}

#switch:checked + .toggle .icon--sun {
    transition-delay: 200ms;
    transform: scale(1) rotate(360deg);
}

/* ---------------------------- Dark Mode ---------------------------- */
/* Dark mode button */
[data-theme="dark"] .toggle {
    background-color: transparent;
    /*box-shadow: 0 0 50px 20px rgba(255, 255, 255, .1);*/ /* Invert box shadow for dark mode */
}
