#genome-switch {
    right: 0;
    display: none;
}

.ask-btn {
    color: black;
    outline: none;
}

button.switch {
    outline: none;
}

input.switch {
    visibility: hidden;
}

input.switch + label {
    background-color: #f0f0f0;
    border: 0 solid #ccc;
    display: block;
    position: relative;
    cursor: pointer;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0;
}

input.switch + label, input.switch + label:before, input.switch + label:after {
    -webkit-border-radius: 0.5em;
    -moz-border-radius: 0.5em;
    border-radius: 0.5em;
}

input.switch + label {
    background-color: #f0f0f0;
    border: 1px solid rgba(204, 204, 204, 0);
    width: 5em;
    height: 1.5em;
    overflow: hidden;
}

input.switch + label:before, input.switch + label:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    content: "";
}

input.switch + label:before {
    background-color: #00a8bf;
    right: 0;
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    -o-transition: background 0.3s;
    transition: background 0.3s;
}

input.switch + label:after {
    content: 'hg19';
    padding: 5px 0;
    text-align: center;
    color: grey;
    margin-left: -1px;
    background-color: #ffffff;
    width: calc(2.8em - 2px);
    -webkit-box-shadow: 0px 0 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0 0px rgba(0, 0, 0, 0.1);

    -webkit-transition: margin 0.3s;
    -moz-transition: margin 0.3s;
    -o-transition: margin 0.3s;
    transition: margin 0.3s;
}

input.switch:checked + label:before {
    background-color: #feb54c;
}

input.switch:checked + label:after {
    content: 'hg38';
    padding: 5px 0;
    text-align: center;
    color: grey;
    margin-left: 2.2em;
}
