/* .animated {
    -webkit-transition: .7s cubic-bezier(0, 0.43, 0.54, 1.25);
    -moz-transition: .7s cubic-bezier(0, 0.43, 0.54, 1.25);
    -o-transition: .7s cubic-bezier(0, 0.43, 0.54, 1.25);
    transition: .7s cubic-bezier(0, 0.43, 0.54, 1.25);
} */

body.night .sun {
    display: none;
}

body .moon {
    display: none;
}

body.night .moon {
    display: block;
}

.box {
    position: fixed;

    top: 0;
    left: 1%;

    width: -moz-fit-content;
    width: fit-content;
    height: 54px;

    display: flex;
    align-items: center;

    z-index: 11;

    /* background: var(--secondary); */
}

.toggle-night-mode {
    position: relative;

    width: 70px;
    height: 30px;

    border-radius: 21%/50%; /* 21% width : 50% height */
    background: var(--primary);

    display: flex;
    align-items: center;

    -webkit-transition: 0.25s ease;
    -moz-transition: 0.25s ease;
    -o-transition: 0.25s ease;
    transition: 0.25s ease;
}

.toggle-night-mode:hover {
    cursor: pointer;
}

.toggle-night-mode-inner {
    position: absolute;
    width: 20px;
    height: 20px;

    left: 8%;

    -webkit-transition: .7s cubic-bezier(0, 0.43, 0.54, 1.25);
    -moz-transition: .7s cubic-bezier(0, 0.43, 0.54, 1.25);
    -o-transition: .7s cubic-bezier(0, 0.43, 0.54, 1.25);
    transition: .7s cubic-bezier(0, 0.43, 0.54, 1.25);

    -webkit-transform: translateX(0) rotate(0);
    -moz-transform: translateX(0) rotate(0);
    -o-transform: translateX(0) rotate(0);
    transform: translateX(0) rotate(0);
}

.toggle-night-mode-inner svg {
    fill: var(--secondary);
}

.navbar.alternative + .box .toggle-night-mode {
    background: var(--secondary);
}

/* Isso aqui existe pra manter o width e o height da bolinha igual */
/* .toggle-night-mode-inner::before {
    content: " ";
    float: left;
    padding-top: 100%;
} */

body.night .toggle-night-mode-inner {
    left: 87%;

    -webkit-transform: translateX(-100%) rotate(-385deg);
    -moz-transform: translateX(-100%) rotate(-385deg);
    -o-transform: translateX(-100%) rotate(-385deg);
    transform: translateX(-100%) rotate(-385deg);
}

.navbar.alternative +.box .toggle-night-mode-inner svg {
    fill: var(--primary);
}

.toggle-mute {
    width: -moz-fit-content;
    width: fit-content;
    height: -moz-fit-content;
    height: fit-content;

    margin: 0 20px;
}

.toggle-mute:hover {
    cursor: pointer;
}

.toggle-mute svg {
    height: 25px;
}

.toggle-mute .muted { 
    display: none;
}

.navbar.alternative + .box .toggle-mute svg * {
    fill: var(--secondary);
}

.toggle-mute.active .playing {
    display: none;
}

.toggle-mute.active .muted {
    display: block;
}


@media only screen and (max-width: 950px){
    .box {
        display: block;
        height: -moz-fit-content;
    height: fit-content;
        
        width: 90px;
        height: 110px;

        top: auto;
        left: auto;
        bottom: 0;
        right: 0;

        background: var(--secondary);
        border-top-left-radius: 25px 25px;

        -webkit-transition: 0.5s ease-out;
        -moz-transition: 0.5s ease-out;
        -o-transition: 0.5s ease-out;
        transition: 0.5s ease-out;
    }

    .box.hiding {
        transform: translateX(100%);
        opacity: 0;
    }

    .navbar.alternative + .box {
        background: var(--primary-transparent);

        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    .toggle-night-mode {
        margin: 12px auto 5px auto;
    }

    .toggle-mute {
        margin: 20px auto 0 auto;
    }
}

@media only screen and (max-width: 550px){
    .box {
        width: 70px;
        height: 100px;
    }

    .toggle-night-mode {
        width: 55px;
        height: 25px;
    }

    .toggle-night-mode-inner {
        width: 16px;
        height: 16px;
    }

 /*    .toggle-mute svg {
        width: 50px;
        height: 50px;
    } */
}