﻿
* 
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
}

body {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1B1A23;
}

/*.container
{
    width: 600px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.container .btnStart
{
    position: relative;
    width: 200px;
    height: 50px;
    margin: 20px;
}

.container .btnStart a 
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: antiquewhite;
    z-index: 1;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(15px);
}

.container .btnStart:hover a
{
    letter-spacing: 3px;
}

.container .btnStart a::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0.15), transparent);
    transform: skewX(45deg) translateX(0);
    transition: 0.5s;
}

.container .btnStart:hover a::before
{
    transform: skewX(45deg) translateX(110%);
}

.container .btnStart::before
{
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    width: 30px;
    height: 10px;
    background: #3ee90d;
    border-radius: 10px;
    transition: 0.5s;
    transition-delay: 0s;
}

.container .btnStart:hover::before
{
    bottom: 0;
    height: 50%;
    width: 80%;
    border-radius: 30px;
    transition-delay: 0.5s;
}


.container .btnStart::after 
{
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -5px;
    width: 30px;
    height: 10px;
    background: #3ee90d;
    border-radius: 10px;
    transition: 0.5s;
    transition-delay: 0s;
}

.container .btnStart:hover::after 
{
    top: 0;
    height: 50%;
    width: 80%;
    border-radius: 30px;
    transition-delay: 0.5s;
}

.container .btnStart:nth-child(1)::before,
.container .btnStart:nth-child(1)::after 
{
    background: #3ee90d;
    box-shadow: 0 0 5px #3ee90d, 
                0 0 15px #3ee90d, 
                0 0 30px #3ee90d, 
                0 0 60px #3ee90d,
}*/


.power-switch 
{
    --color-invert: #fb0b0b;
    --color-invert-shadow: #930e05;
    --width: 150px;
    --height: 150px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--width);
    height: var(--height);
}


    .power-switch[disabled] 
    {
        --color-invert: #56c811;
        --color-invert-shadow: #377610;
        opacity: 1;
        pointer-events: none;
        cursor: none;
        animation: fading 5s infinite;
    }
   
.power-switch .button 
{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.power-switch .button:after 
{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: radial-gradient(circle closest-side, var(--color-invert), transparent);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    transform: perspective(1px) translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.power-switch .button .power-on,
.power-switch .button .power-off 
{
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1;
    fill: none;
    stroke: var(--color-invert);
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.power-switch .button .power-on .line,
.power-switch .button .power-off .line 
{
    opacity: 0.5;
}

.power-switch .button .power-on .circle,
.power-switch .button .power-off .circle 
{
    opacity: 0.5;
    transform: rotate(-58deg);
    transform-origin: center 80px;
    stroke-dasharray: 220;
    stroke-dashoffset: 40;
}

.power-switch .button .power-on 
{
    filter: drop-shadow(0px 0px 6px var(--color-invert-shadow));
}

.power-switch .button .power-on .line 
{
    opacity: 0;
    transition: opacity 0.3s ease 1s;
}

.power-switch .button .power-on .circle 
{
    opacity: 1;
    stroke-dashoffset: 220;
    transition: transform 0s ease, stroke-dashoffset 1s ease 0s;
}

.power-switch input 
{
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 2;
    cursor: pointer;
    opacity: 0;
}

.power-switch:hover 
{
    animation: fading 5s infinite;
}

.power-switch input:checked + .button:after 
{
    opacity: 0.25;
    transform: scale(2) perspective(1px) translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.power-switch input:checked + .button .power-on,
.power-switch input:checked + .button .power-off 
{
    -webkit-animation: click-animation 0.3s ease forwards;
    animation: click-animation 0.3s ease forwards;
    transform: scale(1);
}

/*.power-switch input:checked + .button .power-on .line,
.power-switch input:checked + .button .power-off .line
{
    -webkit-animation: line-animation 0.8s ease-in forwards;
    animation: line-animation 0.8s ease-in forwards;
}*/

.power-switch input:checked + .button .power-on .circle,
.power-switch input:checked + .button .power-off .circle 
{
    transform: rotate(302deg);
}

.power-switch input:checked + .button .power-on .line 
{
    opacity: 1;
    transition: opacity 0.05s ease-in 0.55s;
}

    .power-switch input:checked + .button .power-on .circle 
    {
        transform: rotate(302deg);
        stroke-dashoffset: 40;
        transition: transform 0.5s ease 0.2s, stroke-dashoffset 0.5s ease 0.2s;
    }

    .power-switch input:checked + .button .power-on .circle:after {
        animation-delay: 2s;
        animation: circle-rotate 1s infinite;
    }


.power-switch input:checked + .button .power-on .line,
.power-switch input:checked + .button .power-off .line 
{
    animation: line-animation 1s ease-in forwards infinite;
}

/*.power-switch input:checked + .button .power-on .circle 
{
    stroke-dashoffset: 40;
    animation: rotate 0.4s ease infinite, stroke-dashoffset 0.4s ease infinite;
}
*/
@-webkit-keyframes line-animation 
{
    0% 
    {
        transform: translateY(0);
    }

    10% 
    {
        transform: translateY(10px);
    }

    40%
    {
        transform: translateY(-25px);
    }

    60% 
    {
        transform: translateY(-25px);
    }

    85% 
    {
        transform: translateY(10px);
    }

    100% 
    {
        transform: translateY(0px);
    }
}

@keyframes line-animation 
{
    0% 
    {
        transform: translateY(0);
    }

    10% 
    {
        transform: translateY(10px);
    }

    40% 
    {
        transform: translateY(-25px);
    }

    60% 
    {
        transform: translateY(-25px);
    }

    85% 
    {
        transform: translateY(10px);
    }

    100% 
    {
        transform: translateY(0px);
    }
}

@-webkit-keyframes click-animation 
{
    0% 
    {
        transform: scale(1);
    }

    50% 
    {
        transform: scale(0.9);
    }

    100% 
    {
        transform: scale(1);
    }
}

@keyframes click-animation 
{
    0% 
    {
        transform: scale(1);
    }

    50% 
    {
        transform: scale(0.9);
    }

    100% 
    {
        transform: scale(1);
    }
}

@keyframes fading
{
    0%, 100%
    {
        opacity: 1.0;
    }
    50%
    {
        opacity: inherit;
    }
}


@keyframes circle-rotate 
{
    from 
    {
        transform: rotate(360deg);
        stroke-dashoffset: 40;
        transition: transform 0.5s, stroke-dashoffset 0.5s;
    }
    to {
        transform: rotate(0deg);
        stroke-dashoffset: 40;
        transition: transform 0.5s, stroke-dashoffset 0.5s;
    }
}

.loader {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid white;
    background: linear-gradient(#eb31b0, #e4c352, #7df8d6);
    box-shadow: 0px 0px 100px -50px black;
    animation: animate 1s linear infinite;
}

.loader::before 
{
    position: absolute;
    content: "";
    background: #fff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 10rem;
    border: 3px solid white;
    box-shadow: inset 0px 0px 100px -70px #111;
}

@keyframes animate 
{
    from 
    {
        transform: rotate(0deg);
    }

    to 
    {
        transform: rotate(360deg);
    }
}

.wrapper {
    width: 150px;
    height: 150px;
    margin: 60px auto;
    border-radius: 50%;
    background: #d9270d;
    background: linear-gradient(#d9270d, #75170e);
    position: relative;
    cursor: pointer;
    padding: 20px;
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.13), 0 5px 8px rgba(0,0,0,0.5), 0 10px 10px 4px rgba(0, 0, 0, 0.3);
}


.wrapper[disabled] 
{
    background: #3ee90d;
    background: linear-gradient(#3ee90d, #06861c);
    pointer-events: none;
    cursor: none;
}


.wrapper.doit 
{
    background: #db8d0b;
    background: linear-gradient(#db8d0b, #9e1912);
    pointer-events: none;
    cursor: none;
    animation: animate 1s linear infinite;
}


/*.wrapper:after 
{
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    z-index: -2;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 2px rgba(0,0,0,0.3), 0 0 10px rgba(0,0,0,0.15);
}

.wrapper:before
{
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    top: -10px;
    bottom: -10px;
    z-index: -1;
    border-radius: inherit;
    box-shadow: inset 0 10px 10px rgba(0,0,0,0.13);
    -webkit-filter: blur(1px);
    filter: blur(1px);
}*/

/*.inner {
    position: relative;
    top: -170px;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(#8a2c20, #9e4235);
    display: block;
    box-shadow: 0 -2px 5px rgba(255,255,255,0.05), 0 2px 5px rgba(255,255,255,0.1);
}

    .inner:after {
        position: relative;
        top: -170px;
        width: 50px;
        height: 50px;
        background: white;
        background: linear-gradient(#eaeceb, #8d8d8d);
        left: 50%;
        top: 50%;
        content: "";
        border-radius: inherit;
        margin: -25px 0 0 -25px;
        box-shadow: 0 3px 5px rgba(0,0,0,0.3);
    }

.inner:before 
{
    position: relative;
    top: -170px;
    content: "";
    width: 40px;
    height: 40px;
    left: 50%;
    border-radius: inherit;
    background: inherit;
    margin: -20px 0 0 -20px;
    z-index: 2;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.3), 0 1px 2px rgba(255,255,255,1);
}


.inner span 
{
    position: relative;
    content: "";
    width: 6px;
    height: 25px;
    background: linear-gradient(#fff, #cbcbcd);
    border-radius: 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}*/
