






.opptylab-sun-moon-wrapper                               { background:rgba(255,255,255,.0);     border:0px solid rgba(0,0,0,.5); }
[data-theme="dark"] .opptylab-sun-moon-wrapper           { background:rgba(0,0,0,0);           border:0px solid rgba(255,255,255,.5);}

.opptylab-sun-moon-switch                                { background: var(--surface-light-1); } /* zonnetje */ 
.opptylab-sun-moon-switch:before                         { background: var(--surface-dark-1);  } /* zonnetje background */
[data-theme="dark"] .opptylab-sun-moon-switch            { background: var(--surface-light-1); } /* zonnetje */ 
[data-theme="dark"] .opptylab-sun-moon-switch:before     { background: var(--surface-dark-1);  } /* zonnetje background */

.opptylab-sun-moon-switch:after                          { border-color: var(--surface-dark-1); }
.opptylab-sun-moon-switch                                { background: var(--surface-dark-1);  } /* moon */
.opptylab-sun-moon-switch:before                         { background: var(--surface-light-1); } /* moon background */

.opptylab-sun-moon-mode::after                           { content: "Light Mode"; color: var(--text); }
[data-theme="dark"] .opptylab-sun-moon-mode::after       { content: "Dark Mode";  color: var(--text); }


.opptylab-sun-moon-mode                                  { font-size:0.75rem;  padding-left:15px;  }
.opptylab-sun-moon-wrapper                               { padding:0.1rem;   margin:1rem 0rem; }









* { transition: background-color .5s ease; }



.opptylab-sun-moon-switch {
    width: 20px;
    height: 20px;
}
.opptylab-sun-moon-switch:after {
    border-width: 2px;
}


.opptylab-sun-moon-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    width: fit-content;
}


.opptylab-sun-moon-switch {
    position: relative;
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color .5s ease;
    overflow:hidden;
}

.opptylab-sun-moon-switch:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    transition: border-radius .5s ease, background-color .5s ease, width .5s ease, transform .5s ease;
}

.opptylab-sun-moon-switch:after {
    content: "";
    white-space: nowrap;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-style: solid;
   /* box-shadow: 0 0 0 0 #f5f8f8, 0 0 0 3px #a5abb0, 0 0 0 50px #f5f8f8; */
    box-sizing: border-box;
    transition: border-color .5s ease,box-shadow .5s ease;
}



[data-theme="dark"] .opptylab-sun-moon-switch:before {
    border-radius: 50%;
    width: 150%;
    transform: translate(-5%,-35%) rotate(-25deg);
}

[data-theme="dark"] .opptylab-sun-moon-switch:after {
    content: "";
}




