.ive-active .switch-ive {
    background: #f5f5f5;
    color: #555;
    border-bottom-color: #f5f5f5;
}

.modal-mask {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    display: table;
    transition: opacity .3s ease;
}

.modal-wrapper {
    display: table-cell;
    vertical-align: middle;
}

.modal-container {
    width: 60%;
    margin: 0 20%;
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
    transition: all .3s ease;
    font-family: Helvetica, Arial, sans-serif;
}

.modal-header h3 {
    margin-top: 0;
    color: #42b983;
}

.modal-body {
    margin: 20px 0;
}
.modal-body textarea {
    height: 400px;
}

.modal-default-button {
    float: right;
}

.modal-enter {
    opacity: 0;
}

.modal-leave-active {
    opacity: 0;
}

.modal-enter .modal-container,
.modal-leave-active .modal-container {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.ive_hidden textarea {
    display: none;
}
.ive_hidden .modal-mask textarea {
    display: block;
}


/* Flow styles */
.write-component {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    overflow: hidden;
    z-index: 99999;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.write-component a {
    z-index: 1;
}

.write-component .dashicons {
    font-size: 28px;
    color: #444;
    height: auto;
}

.write-component a:hover .dashicons {
    color: #777;
}

.words-count-label,
.wpm-label {
    font-family: monospace;
    text-align: center;
}

.words-count-label {
    font-size: 1.9em;
    margin-top: 15px;
    color: #777;
    opacity: 1;
    -webkit-transition: 1s;
    transition: 1s;
}

.write-nav {
    position: fixed;
    top: 18px;
    left: 24px;
    text-align: center;
    opacity: 1;
    -webkit-transition: 1s;
    transition: 1s;
}

.write-nav a {
    display: block;
    margin: 9px 0;
    padding-right: 0.7em;
    cursor: pointer;
}

.ninja-toggle {
    position: fixed;
    bottom: 15px;
    left: 20px;
    cursor: pointer;
    padding-right: 0.7em;
    opacity: 1;
    -webkit-transition: 1s;
    transition: 1s;
}

.key-error {
    position: fixed;
    top: 20px;
    right: 20px;
}

.key-error:hover .dashicons,
.key-error .dashicons {
    color: red;
}

.current-key {
    position: fixed;
    left: 50%;
    top: 50%;
    font-family: 'Cutive Mono', serif;
    font-size: 28.6em;
    color: #777;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.current-key-error {
    color: red;
}

.flow-entry-input {
    position: absolute;
    z-index: -999;
    left: -999em;
}

.writing .button-story,
.writing .ninja-toggle,
.writing .ilys-more,
.writing .wpm-label,
.writing .write-nav {
    opacity: 0;
}

.writing.ninja-mode .words-count-label {
    opacity: 0;
}

.ninja-mode .current-key {
    display: none;
}

.popover {
    font-size: 0.9em;
}

.popover.right .arrow {
    margin-left: 0;
    overflow: visible;

}
.popover.right .arrow:after {
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
    top: 50%;
}

.modal-enter, .modal-leave-active {
    opacity: 0;
    -webkit-transform: scale(0.5);
    -ms-transform: scale(0.5);
    transform: scale(0.5);
}

.ilys-more {
    position: fixed;
    bottom: 15px;
    right: 20px;
    opacity: 1;
    -webkit-transition: 1s;
    transition: 1s;
}

.ilys-more span {
    color: rgba(255, 255, 255, 0.8);
}

.ilys-more a {
    color: #00ff00;
}

/* Help component */
.help-component {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    z-index: 2;
}

.help-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.help-modal {
    position: fixed;
    left: 20%;
    top: 20%;
    width: 60%;
    padding: 20px;
    background-color: white;
    text-align: center;
}

.help-modal-title {
    margin: 0 0 20px;
}
.ive_tracking {
    display: none;
}

/* pure css toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 20px;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border: 2px solid #444;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: -2px;
    bottom: -2px;
    background-color: transparent;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
    border: 2px solid #444;
}


.active.switch > .slider {
    background-color: #444444;
}
.active.switch .slider:before {
    -webkit-transform: translateX(12px);
    -ms-transform: translateX(12px);
    transform: translateX(12px);
    background-color: #000;
}

.ive_tooltip:hover:after, .ive_tooltip:hover:before {
    opacity: 1;
    -webkit-transition: opacity 400ms;
    -moz-transition: opacity 400ms;
    -ms-transition: opacity 400ms;
    -o-transition: opacity 400ms;
    transition: opacity 400ms;
}
.ive_tooltip:after {
    opacity: 0;
    content: attr(data-content);
    position: absolute;
    left: 100%;
    margin-left: 15px;
    background: #FFF;
    padding: 9px 14px;
    border-radius: 3px;
    color: #000;
    white-space: pre;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    pointer-events: none;
}
.ive_tooltip:before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ffffff transparent transparent;
    content:"";
    left: 100%;
    margin-left: 5px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    position: absolute;
    opacity: 0;
    pointer-events: none;
}