/**
 * powearch launcher
 */

#launcher {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 37, 53, 0.9);
    text-align: center;
    vertical-align: middle;
    display: none;
    z-index: 99999;
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
    -webkit-animation-duration: .4s;
    animation-duration: .4s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-font-smoothing: antialiased;
    font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, "メイリオ", Helvetica, Arial, sans-serif;
}

#launcher .launcher__operate {
    background-color: #ccc;
    display: inline-block;
    padding: 4px 5px;
    margin-right: 10px;
    width: 30px;
    text-align: center;
    font-size: 11px;
    float: right;
    border-radius: 2px;
    vertical-align: top;
}
#launcher *{
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

#launcher.active {
    -webkit-animation-duration: .4s;
    animation-duration: .4s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
    -webkit-transition: all 500ms cubic-bezier(0.170, 1, 0.420, 0.855); /* older webkit */
    -webkit-transition: all 500ms cubic-bezier(0.170, 1.100, 0.420, 0.855);
    -moz-transition: all 500ms cubic-bezier(0.170, 1.100, 0.420, 0.855);
    -o-transition: all 500ms cubic-bezier(0.170, 1.100, 0.420, 0.855);
    transition: all 500ms cubic-bezier(0.170, 1.100, 0.420, 0.855); /* custom */
    -webkit-transition-timing-function: cubic-bezier(0.170, 1, 0.420, 0.855); /* older webkit */
    -webkit-transition-timing-function: cubic-bezier(0.170, 1.100, 0.420, 0.855);
    -moz-transition-timing-function: cubic-bezier(0.170, 1.100, 0.420, 0.855);
    -o-transition-timing-function: cubic-bezier(0.170, 1.100, 0.420, 0.855);
    transition-timing-function: cubic-bezier(0.170, 1.100, 0.420, 0.855); /* custom */
    display: block;
}

#launcher .launcher__form {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -250px;
    margin-top: -200px;
}

#launcher .launcher__input {
    width: 500px;
    font-size: 20px;
    height: 70px;
    padding-left: 20px;
    border-radius: 0px;
    border: none;
    box-sizing: border-box;
    box-shadow: 0 0 0px 16px rgba(47, 45, 191, 0.2);
    transition: all ease .2s;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, "メイリオ", Helvetica, Arial, sans-serif;
}

#launcher .launcher__input.tt-hint {
    outline: none;
    font-weight: normal;
    color: #999;
    border: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

#launcher .launcher__input.tt-input:active,
#launcher .launcher__input.tt-input:focus {
    border: none;
    -webkit-appearance: none;
    box-shadow: 0 0 0px 16px rgb(162, 161, 107), 0 1px 18px 20px rgba(0, 0, 0, 0.05);

}

/* Typeahead */
#launcher.launcher .tt-menu {
    text-align: left;
    top: 98.7% !important;
    left: 1px !important;
    width: 500px;
    background: #fff;
    box-sizing: border-box;
    max-height: 500px;
    overflow: auto;
}

#launcher.launcher .Typeahead-suggestion {
    padding-left: 20px;
    line-height: 1.3em;
    transition: background-color ease-in .2s;
    font-size: 15px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

#launcher.launcher .Typeahead-suggestion .launcher__group {
    background: #2D3947;
    color: #FFF;
    width: 100px;
    font-size: 0.8em;
    display: inline-block;
    padding-left: 0.8em;
    text-align: center;
    line-height: 2.4em;
    padding-right: 0.8em;
    margin-right: 10px;
}

/** typeahead highlight **/
.launcher__group .tt-highlight {
    background: none;
}
/** typeahead state active **/
#launcher .tt-menu .is-active {
    background-color: #e8e8e8;
    background-image: url(../img/enter_key.png);
    background-repeat: no-repeat;
    background-position: 460px center;
}
/** typeahead state hover **/
.launcher .Typeahead-suggestion:hover {
    background-image: url(../img/enter_key.png);
    background: #e8e8e8;
    cursor: pointer;
}
#launcher .launcher__id {
    color: #CCC;
    display: inline-block;
    float: right;
    margin-right: 10px;
}

/**
 * Animation
 */
@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-filter: blur(10px);
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    70% {
        opacity: 0;
    }
    100% {
        -webkit-filter: blur(0px);
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-filter: blur(10px);
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    70% {
        opacity: 0;
    }

    100% {
        -webkit-filter: blur(0px);
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.fadeOut {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
}


@-webkit-keyframes flash {
    0%, 100% {
        box-shadow: 0 0 0px 16px rgb(162, 161, 107);
        color: #000;
    }

    50% {
        box-shadow: 0 0 5px 16px rgb(162, 161, 107);
        color: #ccc;
    }
}

@keyframes flash {
    0%, 100% {
        box-shadow: 0 0 0px 16px rgb(162, 161, 107);
        color: #000;
    }

    50% {
        box-shadow: 0 0 10px 16px rgb(162, 161, 107);
        color: #ccc;
        background: #FFF;
    }
}

.flash {
    -webkit-animation-name: flash;
    animation-name: flash;
    webkit-animation-duration: .15s;
    animation-duration: .15s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.tt-highlight {
    background: rgb(236, 236, 193);
}


/** admin bar **/
#wp-admin-bar-powearch-toolbar .dashicons{
    display: inline-block;
    margin-top: 6px;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    font-family: dashicons;
    text-decoration: inherit;
    font-weight: 400;
    font-style: normal;
    vertical-align: top;
    text-align: center;
    -webkit-transition: color .1s ease-in 0;
    transition: color .1s ease-in 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
