/*
 * RESET
 */

*,
*:before,
*:after{
	margin: 0;
	padding: 0;
    box-sizing: border-box;
}


/*
 * COLORS
 */
:root {
    /* layout width */
    --max-width-layout: 1160px;
    /*blue-colors*/
    --blue: #0066CC;
    --blue-black: #0052A3;
    /*orange-colors*/
    --orange: #fa7a2f;
    --orange-black:#E85906;
    /*text-colors*/
    --text-white: #D9D9DC;
    --text-black: #101112;
    --text-white-button: #FFFFFF;
    --text-black-button: #000000;
    /*bg-colors*/
    --bg-white: #EFEDED;
    --bg-black: #262729;
    --bg-white-box: #FFFFFF;
    --bg-black-box: #3B3B3B;
}


/*
 * ALL
 */
*:focus-visible{
    outline-offset: 2px;
    border-radius: 6px;
}
html{
    font-size: 62.5%;
    font-family: "Domine", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.44;
    scroll-behavior: smooth;
}
body{
    font-size: 2.2rem;
}
.home, .mylinux{
    padding: 0 1.6rem 1.6rem;
}
.main-linux{
    font-weight: normal;
}
@media (max-width: 767px){
    .home, .mylinux{
        padding: 0;
    }
}
img{
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.box-shadow{
    box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, .25);
}
strong {
    font-weight: 700;
}


/*
 * SCROLL HIDDEN
 */
@media (max-width: 820px) {
    .hidden-scroll{
        overflow: hidden;
    }
}


/*
 * TITLES
 */
h1,
h2,
h3,
h4{
    font-family: "Domine", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
}
.main-linux h4{
    text-transform: none;
}
h1,
h2{
    font-size: 6rem;
    line-height: .94;
}
h2{
    margin-bottom: 4.2rem;
}
h3{
    font-size: 3.2rem;
    line-height: 1.12;
    margin: 0 0 1.6rem;
}
h4{
    font-size: 2.6rem;
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 1.6rem;
}
h2::after{
    content: "";
    display: block;
    width: 10rem;
    height: .5rem;
}
@media (max-width: 880px){
    h1,
    h2{
        font-size: 4.6rem;
    }
    h2{
        margin-bottom: 4rem;
    }
}
@media(max-width: 420px){
    h1,
    h2{
        font-size: 3.8rem;
    }
    h3{
        font-size: 2.8rem;
    }
}
@media (max-width: 320px){
    h1,
    h2{
        font-size: 3.6rem;
    }
}


/*
 * HEADER
 */
.header{
    max-width: var(--max-width-layout);
    padding: 1.6rem;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.navigation{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
a.link-brand{
    display: block;
}
a.link-brand svg{
    max-width: 4.2rem;
    max-height: 4.2rem;
    vertical-align: middle;
}
.ui-switch{
    margin-left: .6rem;
    order: 2;
}
.nav-links{
    order: 1;
}
.links{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.links a{
    display: inline-block;
    padding: .6rem 1.2rem;
    font-weight: 300;
    text-decoration: none;
    transition: all .3s ease;
    font-size: 2rem;
}
.links a::after{
    content: "";
    display: block;
    width: 28%;
    height: 2px;
    transition: all .3s ease;
}
.links a:hover::after{
    width: 100%;
}


/*
 *MENU MOBILE
 */
.icon-nav{
    display: none;
}
@media (max-width: 820px) {
    .ui-switch{
        margin:0 .6rem 0 0;
    }
    .ui-switch,
    .nav-links{
        order: initial;
     }
    .links{
        width: 100%;
    }
    .icon-nav{
        display: block;
        cursor: pointer;
    }
    .svg-icon-nav {
        vertical-align: middle;
        width: 4.2rem;
        height: 4.2rem;
    }
    .nav-links{
        flex-direction: column;
        flex-wrap: nowrap;
        z-index: 2;
        width: 100%;
        position: absolute;
        top: 96px;
        left: 0;
        height: calc(100vh - 96px);
        opacity: 0;
        transform: translate3d(calc(-100% - 84px), 0, 0);
        transition: .4s ease all;
    }
    .nav-links li{
        width: 100%;
        margin: 0 1.6rem;
    }
    .links a{
        width: 100%;
        font-size: 2.8rem;
        padding: 1.6rem 0;
    }
    .nav-links.nav-open{
        opacity: initial;
        transform: initial;
    }
}


/*
 * MAIN
 */
.main{
    overflow: hidden;
}


/*
 * MY LINUX
 */
.page{
    max-width: var(--max-width-layout);
    padding: 1.6rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.8rem;
}
.page-box{
    margin-top: 3.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
}
.summary{
    flex: 3;
}
.summary-nav{
    position: sticky;
    top: 1.6rem;
    z-index: 5;
    height: calc(100vh - 152px);
    overflow-y: auto;
}
.content{
    flex: 7;
}
.page-box .lead{
    font-size: 2rem;
    margin-bottom: 3.2rem;
}
.page h1, .page h2, .page h3{
    margin-bottom: 2.4rem;
    text-transform: none;
    line-height: normal;
}
.page h1{
    font-size: 3.8rem;
}
.page h2{
    font-size: 3rem;
}
.page h3{
    font-size: 2.6rem;
}
.page-box div{
    margin-bottom: 4.4rem;
}
.page-box p, .page-box pre{
    margin-bottom: 1.6rem;
}
pre{
    box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, .25);
    border-radius: .6rem;
    font-size: 1.6rem;
    padding: 1rem 1.6rem;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
}
kbd, code{
    font-family: monospace;
    font-weight: normal;
}
kbd, .code{
    padding: .42rem .84rem;
    border-radius: .3rem;
}
.summary-list{
    list-style: none;
    padding-left: 1.6rem;
}
.summary-list li{
    margin: .8rem 0;
}
.fw-bold{
    list-style: none;
    font-weight: bold;
}
.content ol, .content ul{
    list-style-position: inside;
    padding-left: 1.8rem;
}
.content > ol, .content > ul{
   margin: 0 0 1.6rem 0;
}
.content ul li, .content ol li{
    margin: 1rem 0;
}
.page-box a{
    transition: all .3s;
    text-decoration: none;
}
.page-box a:hover{
    text-decoration: underline;
}
.page-box div.alert{
    padding: 1.6rem;
    margin: 0 0 1.6rem 0;
    border-radius: .6rem;
    box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, .25);
}
.alert div{
    margin: 0;
}
@media (max-width: 940px){
    .page{
        flex-direction: column;
    }
    .summary, .content{
        min-width: 100%;
    }
    .summary-nav{
        height: auto;
    }
}

/*
 * HERO
 */
.hero{
    max-width: var(--max-width-layout);
    margin: 0 auto;
    overflow: hidden;
    height: calc(100vh - 140px);
    max-height: 100.8rem;
    min-height: 52rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}
.hero-box{
    padding: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3.2rem;
}
.hero-name,
.hero-image{
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column
}
.hero-image svg{
    align-self: flex-end;
    max-width: 37rem;
}
.hero-text{
    margin: .8rem 0 1.6rem;
    line-height: 1.2;
}
.social{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}
.social li + li{
    padding-left: .4rem;
}
.social a{
    display: block;
    margin: .2rem;
}
.icon-github{
    mask: url(../img/svg/github.svg) no-repeat;
}
.icon-instagram{
    mask: url(../img/svg/instagram.svg) no-repeat;
}
.icon-linkedin{
    mask: url(../img/svg/linkedin.svg) no-repeat;
}
.icon-email{
    mask: url(../img/svg/email.svg) no-repeat;
}
.icon-social{
    display: block;
    width: 3.8rem;
    height: 3.8rem;
    mask-size: contain;
}
@media (max-width: 820px){
    .hero-name{
        max-width: 100%;
        justify-content: flex-start;
    }
    .hero-image{
        display: none;
    }
}


/*
 * ABOUT
 */
.about{
    max-width: var(--max-width-layout);
    margin: 64px auto;
    padding: 1.6rem;
}
.about-box{
    width: 100%;
    padding: 3.2rem;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 3.2rem;
}
.about-avatar{
    flex: 2;
}
.about-avatar img{
    border-radius: .4rem;
    min-width: 30rem;
}
.about-bio{
    flex: 8;
    max-width: 82rem;
}
.about-bio p{
    margin-bottom: 1.6rem;
}
.about-bio span{
    position: relative;
}
.about-bio span::after{
    content: "";
    display: inline-block;
    position: absolute;
    height: 2px;
    width: 100%;
    top: 100%;
    left: 0;
}
.about h3{
    padding-left: .6rem;
}
.about-tools{
    width: 100%;
}
.tools-icons{
    margin: 3.2rem 0 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 3.2rem;
}
.tool-icon{
    border: none;
    width: 4.2rem;
    height: 4.2rem;
}
@media (max-width: 880px){
    .about{
        margin: 3.2rem auto;
    }
}
@media (max-width: 767px){
    .about-box{
        flex-direction: column;
    }
    .about-avatar,
    .about-bio{
        width: 100%;
    }
    .about-avatar img{
        min-width: 20rem;
    }
}


/*
 * EXPERIENCE and EDUCATION
 */
.experience,
.education{
    max-width: var(--max-width-layout);
    margin: 64px auto;
    padding: 1.6rem;
}
.work-content,
.course-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.work-content .work-box + .work-box,
.course-content .course-box + .course-box{
    margin-top: 3.2rem;
}
.work-box,
.course-box{
    position: relative;
    padding: 3.2rem;
    border-radius: 6px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3.2rem;
}
.work-avatar,
.course-avatar{
    flex: 2;
}
.work-avatar svg,
.course-avatar svg{
    max-width: 16rem;
}
.experience h3,
.education h3{
    padding-left: .6rem;
}
.work-description,
.course-description{
    flex: 6;
}
.work-date,
.course-date{
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    flex: 2;
    font-size: 5.2rem;
    font-weight: 700;
    line-height: 5.2rem;
}
.date{
    align-self: flex-end;
}
.work-date span,
.course-date span{
    display: block;
    margin: .2rem 0;
    height: 4px;
    max-width: 96%;
}
@media (min-width: 881px){
    .work-box p,
    .course-box p{
        margin-top: 2rem;
    }
    .work-date span,
    .course-date span{
        margin: 0 auto;
    }
}
@media (max-width: 880px){
    .experience,
    .education{
        margin: 3.2rem auto;
    }
    .work-avatar,
    .course-avatar{
        flex: 1;
    }
    .work-description,
    .course-description{
        order: 2;
        min-width: 100%;
    }
}
@media (max-width: 540px){
    .work-avatar,
    .course-avatar,
    .work-description,
    .course-description,
    .work-date,
    .course-date{
        flex: 1 1 100%;
    }
    .work-avatar,
    .course-avatar{
        display: none;
    }
    .work-date,
    .course-date{
        font-size: 2.8rem;
        line-height: 3.2rem;
    }
    .date{
        align-self: flex-start;
    }
}


/*
 * PROJECTS
 */
.portfolio{
    max-width: var(--max-width-layout);
    margin: 64px auto;
    padding: 1.6rem;
}
.project-content{
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3.2rem;
}
.project-box{
    flex: 1 1 280px;
    padding: 32px;
    border-radius: 6px;
}
.project-box img{
    border-radius: 4px;
    margin-bottom: 3.2rem;
}
.project-description{
    margin-bottom: 3.2rem;
}
.project-label span{
    font-size: 1.6rem;
    text-transform: uppercase;
    display: inline-block;
    padding: .8rem 1.6rem;
    margin: 1.6rem .8rem 0 0;
    border-style: solid;
    border-width: 0px 0px 2px 0px;
    border-radius: 4px;
}
.project-btn{
    margin-top: 1.6rem;
}
.project-btn .btn::after{
    content: "";
    display: block;
    width: 0;
    height: 2px;
    transition: all .5s;
}
.project-btn .btn:hover::after{
    width: 100%;
}
.project-btn a.btn{
    display: inline-block;
    border-radius: 4px;
    padding: .8rem 1.6rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 2rem;
    transition: all .3s;
    margin: .8rem .8rem 0 0;
}
@media (min-width: 881px){
    .portfolio p{
        margin-top: 2rem;
    }
}
@media (max-width: 880px){
    .portfolio{
        margin: 3.2rem auto;
    }
}


/*
 * FOOTER
 */
.footer{
    max-width: var(--max-width-layout);
    margin: 64px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.6rem;
    padding: 1.6rem;
    font-size: 1.8rem;
    font-weight: normal;
}
.footer-btn a.btn{
    opacity: .6;
    display: inline-block;
    border-radius: 4px;
    padding: .6rem 1rem;
    text-decoration: none;
    transition: all .3s;
    text-transform: uppercase;
}
.footer-btn a.btn:hover{
    opacity: 1;
}
@media (max-width: 510px){
    .footer{
        justify-content: center;
    }
}
@media (max-width: 380px){
    .footer,
    .footer-btn a.btn{
        opacity: 1;
        font-size: 1.6rem;
    }
}


/*
 * SCROLL ICON
 */
.scroll-icon{
    position: absolute;
    left: calc(50% - 11px);
    animation: buttonscroll 0.8s ease-in 0s infinite alternate;
}
.scroll-icon svg{
    max-height: 5.2rem;
}
@keyframes buttonscroll{
    from {
        bottom: 3rem;
    }
    to {
        bottom: 2.2rem;
    }
}


/*
 * THEME DARK - DEFAULT
 */
 /* all */
*:focus-visible{
    outline: 4px dashed var(--orange);
}
html{
    background: var(--bg-black);
    color: var(--text-white);
}
/* header */
.links a{
    color: var(--text-white);
}
.links a::after{
    background: var(--text-white);
}
.links a:hover{
    color: var(--orange-black);
}
.links a:hover::after{
    background: var(--orange-black);
}
.icon-social{
    background: var(--text-white);
}
.icon-social:hover{
    background: var(--orange-black);
}
/* hero */
.hero{
    background: var(--bg-black);
    background: radial-gradient(circle,rgba(0, 102, 204, 0.08) 0%, rgba(38, 39, 41, 1) 52%);
}
/* about */
.about-box{
    background: var(--bg-black-box);
    background: linear-gradient(45deg,rgba(59, 59, 59, 1) 54%, rgba(250, 122, 47, 0.32) 100%);
    border-bottom: 5px solid var(--orange);
}
.about h2::after{
    background: var(--orange);
}
.about h3{
    border-left: 4px solid var(--orange);
}
.about-bio span::after{
    background: var(--orange);
}
/* experience */
.experience h2::after{
    background: var(--blue);
}
.experience h3{
    border-left: 4px solid var(--blue);
}
.work-box{
    background: var(--bg-black-box);
    background: linear-gradient(45deg,rgba(59, 59, 59, 1) 54%, rgba(0, 102, 204, 0.32) 100%);
    border-bottom: 5px solid var(--blue);
}
.work-date span{
    background: var(--blue);
}
.course-date span{
    background: var(--orange);
}
/* education */
.education h2::after{
    background: var(--orange);
}
.education h3{
    border-left: 4px solid var(--orange);
}
.course-box{
    background: var(--bg-black-box);
    background: linear-gradient(45deg,rgba(59, 59, 59, 1) 54%, rgba(250, 122, 47, 0.32) 100%);
    border-bottom: 5px solid var(--orange);
}
/* projects */
.portfolio h2::after{
    background: var(--blue);
}
.project-box{
    background: var(--bg-black-box);
    background: linear-gradient(45deg,rgba(59, 59, 59, 1) 54%, rgba(0, 102, 204, 0.32) 100%);
    border-bottom: 5px solid var(--blue);
}
.project-box h3{
    border-left: 4px solid var(--blue);
    padding-left: .6rem;
}
.project-label span{
    color: var(--text-white);
    border-color: var(--text-white);
    background-color: var(--bg-black);
}
.project-btn .btn{
    color: var(--text-black-button);
    background-color: var(--bg-white);
}
.project-btn .btn:hover{
    background-color: var(--orange-black);
}
.project-btn .btn::after{
    background: var(--bg-black);
}
/* icon menu mobile */
@media (max-width: 820px) {
    .nav-links.nav-open{
        background-color: var(--bg-black);
    }
}
/* tools */
.tools h2::after{
    background: var(--orange);
}
/* footer */
.copy{
    color: rgba(255, 255, 255, .6);
}
.footer-btn a.btn{
    color: var(--text-black-button);
    background: var(--bg-white);
}
.footer-btn a.btn:hover{
    background: var(--orange-black);
}
/*my linux*/
.page h2::after{
    background-color: var(--orange);
}
pre{
    background: var(--bg-black-box);
    background: linear-gradient(45deg,rgba(59, 59, 59, 1) 54%, rgba(250, 122, 47, 0.32) 100%);
}
.page-box a{
    color: var(--blue);
}
.page-box a:hover{
    color: var(--orange);
}
kbd, .code{
    outline: 1px solid rgba(0, 0, 0, .08);
    background: var(--bg-black-box);
    background: linear-gradient(45deg,rgba(59, 59, 59, 1) 54%, rgba(250, 122, 47, 0.32) 100%);
}
.alert{
    background-color: rgba(250, 122, 47, .15);
    border: 1px solid var(--orange);
}


/*
 * THEME WHITE
 */
/* all */
html.white-on{
    background: var(--bg-white);
    color: var(--text-black);
}
.white-on *:focus-visible{
    outline: 4px dashed var(--blue);
}
/* header */
.white-on .links a{
    color: var(--text-black);
}
.white-on .links a::after{
    background: var(--text-black);
}
.white-on .links a:hover{
    color: var(--blue-black);
}
.white-on .links a:hover::after{
    background: var(--blue-black);
}
.white-on .icon-social{
    background: var(--text-black);
}
.white-on .icon-social:hover{
    background: var(--blue-black);
}
/* hero */
.white-on .hero{
    background: var(--bg-white);
    background: radial-gradient(circle,rgba(250, 122, 47, 0.08) 0%, rgba(239, 237, 237, 1) 52%);
}
/* about */
.white-on .about-box{
    background: var(--bg-white-box);
    background: linear-gradient(45deg,rgba(255, 255, 255, 1) 54%, rgba(250, 122, 47, 0.32) 100%);
}
/* experience */
.white-on .work-box{
    background: var(--bg-white-box);
    background: linear-gradient(45deg,rgba(255, 255, 255, 1) 54%, rgba(0, 102, 204, 0.32) 100%);
}
.white-on .work-date{
    -webkit-text-stroke-color: var(--text-black);
}
@media (max-width: 420px){
    .white-on .work-date{
        color: var(--text-black);
    }
}
/* education */
.white-on .course-box{
    background: var(--bg-white-box);
    background: linear-gradient(45deg,rgba(255, 255, 255, 1) 54%, rgba(250, 122, 47, 0.32) 100%);
}
.white-on .course-date{
    -webkit-text-stroke-color: var(--text-black);
}
@media (max-width: 420px){
    .white-on .course-date{
        color: var(--text-black);
    }
}
/* projects */
.white-on .project-box{
    background: var(--bg-white-box);
    background: linear-gradient(45deg,rgba(255, 255, 255, 1) 54%, rgba(0, 102, 204, 0.32) 100%);
}
.white-on .project-label span{
    color: var(--text-black);
    border-color: var(--text-black);
    background-color: var(--bg-white);
}
.white-on .project-btn .btn{
    color: var(--text-white-button);
    background-color: var(--bg-black);
}
.white-on .project-btn .btn:hover{
    background-color: var(--blue-black);
}
.white-on .project-btn .btn::after{
    background: var(--bg-white);
}
/* icon menu mobile */
@media (max-width: 820px) {
    .white-on .nav-links.nav-open{
        background-color: var(--bg-white);
    }
}
/* footer */
.white-on .copy{
    color: rgba(0, 0, 0, .6);
}
.white-on .footer-btn a.btn{
    color: var(--text-white-button);
    background: var(--bg-black);
}
.white-on .footer-btn a.btn:hover{
    background: var(--blue-black);
}
/*my linux*/
.white-on pre{
    color: var(--text-black);
    background: var(--bg-white-box);
    background: linear-gradient(45deg,rgba(255, 255, 255, 1) 54%, rgba(0, 102, 204, 0.32) 100%);
}
.white-on kbd, .white-on .code{
    background: var(--bg-white-box);
    background: linear-gradient(45deg,rgba(255, 255, 255, 1) 54%, rgba(0, 102, 204, 0.32) 100%);
}
.white-on .alert{
    background-color: rgba(0, 102, 204, .15);
    border: 1px solid var(--blue);
}


/*
 * 404
 */
.html-404{
    background: #272f42;
}
.content-404{
    max-width: var(--max-width-layout);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 3.2rem;
    padding: 3.2rem;
}
.image-404,
.text-404{
    flex: 1;
    width: 50%;
}
.image-404 img{
    border: none;
}
.text-404 h1{
    margin-bottom: 3.2rem;
}
.lnk-404{
    color: var(--blue);
    transition: all .3s ease;
}
.lnk-404:hover{
    color: var(--orange);
}
@media (max-width: 660px){
    .body-404{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
    }
    .content-404{
        gap: 1.6rem;
        padding: 1.6rem;
        max-height: 56rem;
    }
    .text-404{
        order: -1;
    }
    .image-404,
    .text-404{
        min-width: 100%;
    }
}


/*
 * ANIMATION
 */
[data-animate] {
    opacity: 0;
    transition: .3s;
}

[data-animate="bottom"] {
    transform: translate3d(0px, 80px, 0px);
}

[data-animate].animation {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px);
}



/*
 * BUTTON SWITCH DARK MODE
 */
/* From Uiverse.io by Galahhad */
.ui-switch {
    /* switch */
    --switch-bg: var(--bg-white);
    --switch-width: 48px;
    --switch-height: 20px;
    /* circle */
    --circle-diameter: 32px;
    --circle-bg: var(--blue);
    --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
}
.white-on .ui-switch {
    /* circle */
    --circle-bg: var(--orange);
    --switch-bg: var(--bg-black);
}
.ui-switch input {
    display: none;
}
.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--switch-width);
    height: var(--switch-height);
    background: var(--switch-bg);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}
.slider .circle {
    top: calc(var(--circle-inset) * -1);
    left: calc(100% - var(--circle-diameter));
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    position: absolute;
    background: var(--circle-bg);
    border-radius: inherit;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    -o-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.slider .circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-white);
    border-radius: inherit;
    -webkit-transition: all 500ms;
    -o-transition: all 500ms;
    transition: all 500ms;
    opacity: 0;
}
/* actions */
.ui-switch input:checked+.slider .circle {
    left: 0;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
}
.ui-switch input:active+.slider .circle::before {
    -webkit-transition: 0s;
    -o-transition: 0s;
    transition: 0s;
    opacity: 1;
    width: 0;
    height: 0;
}