/**
 * toggle.css
 */

div.switch {
    margin-top: 0;
    margin-bottom: -10px;
    text-align: right;
}

.sound-sw-off, .sound-sw-on {
    display: inline-block;
}

#sound-off {
    color: #dddddd;
}
#sound-on {
    color: #1bbc9b;
}

label.toggle-label {
    margin-bottom: 0;
    line-height: 1em;
}

.cmn-toggle {
    position: absolute;
    margin-left: -9999px;
    visibility: hidden;
}
.cmn-toggle + label {
    display: inline-block;
    position: relative;
    cursor: pointer;
    outline: none;
    user-select: none;
}

input.cmn-toggle-round-flat + label {
    padding: 2px;
    width: 45px;
    height: 24px;
    background-color: #dddddd;
    border-radius: 30px;
    transition: background 0.4s;
}
input.cmn-toggle-round-flat + label:before,
input.cmn-toggle-round-flat + label:after {
    display: block;
    position: absolute;
    content: "";
}
input.cmn-toggle-round-flat + label:before {
    top: 2px;
    left: 2px;
    bottom: 2px;
    right: 2px;
    background-color: #fff;
    border-radius: 20px;
    transition: background 0.4s;
}
input.cmn-toggle-round-flat + label:after {
    top: 4px;
    left: 4px;
    bottom: 4px;
    width: 17px;
    background-color: #dddddd;
    border-radius: 17px;
    transition: margin 0.4s, background 0.4s;
}
input.cmn-toggle-round-flat:checked + label {
    background-color: #1bbc9b;
}
input.cmn-toggle-round-flat:checked + label:after {
    margin-left: 20px;
    background-color: #1bbc9b;
}
