.md-theme-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Beautiful dark mode toggle styles */
.toggleWrapper {
    overflow: hidden;
}

.toggleWrapper input {
    position: absolute;
    left: -99em;
}

.toggle {
    cursor: pointer;
    display: inline-block;
    position: relative;
    width: 45px;
    height: 25px;
    background-color: rgb(92, 200, 230);
    border-radius: 42px;
    transition: background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
    border: 2px solid white;
    box-sizing: content-box;
}

.toggle__handler {
    display: inline-block;
    position: relative;
    z-index: 1;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background-color: #ffcf96;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    transition: all 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: rotate(-45deg);
}

.toggle__handler .crater {
    position: absolute;
    background-color: #e8cda5;
    opacity: 0;
    transition: opacity 200ms ease-in-out;
    border-radius: 100%;
}

.toggle__handler .crater--1 {
    top: 9px;
    left: 5px;
    width: 2px;
    height: 2px;
}

.toggle__handler .crater--2 {
    top: 14px;
    left: 11px;
    width: 3px;
    height: 3px;
}

.toggle__handler .crater--3 {
    top: 5px;
    left: 12px;
    width: 4px;
    height: 4px;
}

.star {
    position: absolute;
    background-color: #fff;
    transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
    border-radius: 50%;
}

.star--1 {
    top: 5px;
    left: 17px;
    z-index: 0;
    width: 15px;
    height: 2px;
}

.star--2 {
    top: 9px;
    left: 14px;
    z-index: 1;
    width: 15px;
    height: 2px;
}

.star--3 {
    top: 13px;
    left: 20px;
    z-index: 0;
    width: 15px;
    height: 2px;
}

.star--4,
.star--5,
.star--6 {
    opacity: 0;
    transition: all 300ms 0 cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.star--4 {
    top: 8px;
    left: 6px;
    z-index: 0;
    width: 1px;
    height: 1px;
    transform: translate3d(3px, 0, 0);
}

.star--5 {
    top: 16px;
    left: 8px;
    z-index: 0;
    width: 2px;
    height: 2px;
    transform: translate3d(3px, 0, 0);
}

.star--6 {
    top: 18px;
    left: 14px;
    z-index: 0;
    width: 1px;
    height: 1px;
    transform: translate3d(3px, 0, 0);
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle {
    background-color: rgb(31, 21, 71);
    border-color: rgb(185, 185, 185);
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .toggle__handler {
    background-color: #ffe5b5;
    transform: translate3d(20px, 0, 0) rotate(0);
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .toggle__handler .crater {
    opacity: 1;
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .star--1 {
    width: 1px;
    height: 1px;
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .star--2 {
    width: 2px;
    height: 2px;
    transform: translate3d(-5px, 0, 0);
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .star--3 {
    width: 1px;
    height: 1px;
    transform: translate3d(-7px, 0, 0);
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .star--4,
body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .star--5,
body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .star--6 {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .star--4 {
    transition: all 300ms 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .star--5 {
    transition: all 300ms 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

body[data-md-color-scheme='slate'] .toggle-dark-mode-btn .toggle .star--6 {
    transition: all 300ms 400ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}