/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

html.enco-modal-open {}
html.enco-modal-open .enco-content { opacity: .3; }
html.enco-modal-open body { position: relative; /*left: -300px;*/ }

.clear:before, .clear:after, .clearfix:before, .clearfix:after { content: ""; display: table; clear: both; }
.enco-nomargin, html.enco-nomargin { margin: 0 !important; }

div#wpadminbar { opacity: .1; }
div#wpadminbar:hover { opacity: 1; }

.enco-content * {
    z-index: 1;
}
.enco-temp { background: pink; }

.enco-subject {
    color: inherit;
    cursor: pointer;
    border-bottom: 3px solid #b4e7f8;
    box-shadow: inset 0 -4px 0 #b4e7f8;
    -webkit-transition: background .15s cubic-bezier(.33,.66,.66,1);
    transition: background .15s cubic-bezier(.33,.66,.66,1);
}

.enco-subject:hover,
.enco-subject:focus,
.enco-subject:active {
    background-color: #b4e7f8;
}

.enco-subject .enco-comment-count {
    display: inline-block;
    text-align: center;
    vertical-align: text-top;

    font-size: .5em;
    line-height: 1.5;
    width: 2em;
    height: 2em;
    margin-left: .7em;

    background-size: 2em;
    background-repeat: no-repeat;
    background-position: right;
    background-image: url('../../assets/images/bubble.svg');
}

.enco-orphans,
.enco-orphans .enco-thread {
    display: block;
    padding: 0;
}

.enco-orphans {
    max-width: 1160px;
    margin: 0 auto;
    padding: 1em;
}

.enco-orphans-title {
    position: relative;
    text-align: center;
    padding: 0;
    margin: 1em 0;
    display: block;
}

.enco-orphans-title span {
    background: #FFF;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1pt;
}

.enco-orphans-title:before {
    background: #404040;
    content: "";
    display: block;
    height: 5px;
    position: absolute;
    top: 50%;
    width: 100%;
}

.enco-orphans-title:before {
    left: 0;
}

.enco-orphans-poured .enco-reply {
    display: none;
}

.enco-orphans-poured .enco-thread {
    margin-bottom: 4em;
}

.enco-overlay {
    display: none;
    position: fixed;
    top: 0; 
    right: 0;
    
    width: 50%;
    height: 100%;
    max-width: 650px;

    background: #E0E0E0;
    z-index: 99999;
    opacity: 1;
    border-left: 5px solid #F3F3F3;

    overflow-y: auto;
}

.enco-overlay:hover, .enco-overlay:active {
    opacity: 1;
}

.enco-overlay-credits {
    opacity: .5;
    text-align: center;
    margin-bottom: 2em;
}
.enco-overlay-credits p {
    font-size: .5em;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: .5pt;
    padding: 0;
    margin: 0;
    text-align: center;
}

.enco-overlay-credits a, .enco-overlay-credits a:visited {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

#enco-tooltip {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1em;
    background: #5fba7d;
    color: #FFF;
    font-size: 1.5em;
    z-index: 99999999999;
}
#enco-tooltip.okay  { background: #5fba7d; color: #FFF; }
#enco-tooltip.error { background: #ba5f6f; color: #FFF; }
#enco-tooltip.info  { background: #D8D8D8; color: #000; }

.enco-start-thread,
.enco-thread {
    display: none;
    padding: 2em;
}

.enco-thread > header,
.enco-start-thread > header {
    margin-bottom: 2em;
}

.enco-thread > header h1,
.enco-start-thread > header textarea {
    font-family: serif;
    border: 0;
    font-size: 1.5em;
    font-weight: normal;
    color: #000;
    font-style: italic;
    line-height: 1.5;
    display: inline-block;
    padding: .25em .5em;
    text-indent: 1.5em;
    text-transform: none;
    background-color: #B4E7F8;
    background-size: 1em;
    background-repeat: no-repeat;
    background-position-x: .5em;
    background-position-y: .5em;
    background-image: url('../../assets/images/double-quotes.svg');
}

.enco-comment-list,
.enco-comment {
    padding: 0;
    margin: 0;
    list-style: none;
}

.enco-comment {
    margin-bottom: 1em;
}

.enco-comment-green > .enco-comment-itself,
.enco-comment-green > .enco-comment-itself header {
    background: rgba( 54, 244, 67, 0.5 ) !important;
}

.enco-comment-deleted > .enco-comment-itself,
.enco-comment-deleted > .enco-comment-itself header{
    background: rgba( 244, 54, 54, 0.5 ) !important;
}

.enco-comment-children {
    padding-left: 4%;
    margin-top: .25em;
}

.enco-comment-itself {
    background: #FFF;
    border-radius: 3px;
    border: 1px solid #F3F3F3;
}

.enco-comment-itself > header {
    padding: .5em .8em;
    background: #F9F9F9;
    border-bottom: 1px solid #F6F6F6;
}

.enco-comment-gravatar {
    float: right;
    margin-left: .75em;
}

img.enco-gravatar-image {
    width: 50px;
    border-radius: 50%;
}

.enco-comment-author {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .7em;
    letter-spacing: 1pt;
    padding-bottom: 5px;
}

.enco-comment-date {
    color: #666;
    font-size: .5em;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1pt;
}

.enco-comment-content {
    padding: 1em;
}

.enco-comment-content-inner {
    font-size: .9em;
    line-height: 1.25;
}

.enco-comment footer {
    padding: 0 1em 1em;
}

.enco-comment-actions {
    font-size: .7em;
    font-family: sans-serif;
    letter-spacing: .5pt;
    text-transform: uppercase;
    float: right;
}

.enco-comment-actions a,
.enco-comment-actions span {
    cursor: pointer;
    padding: .3em .6em;
    background: #F7F7F7;
    border-radius: 2px;
    font-size: .8em;
}

.enco-comment-reactions {
    float: left;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.enco-reaction {
    display: inline-block;
    margin-right: .3em;
    opacity: .5;
    cursor: pointer;
}
.enco-reaction:hover { opacity: 1; }

.enco-reaction-icon img {
    width: 1.5em;
    vertical-align: middle;
}

.enco-reaction-count {
    font-size: .6em;
    font-weight: bold;
}

.enco-reply {
    margin-bottom: 2em;
}

header.enco-reply-header h1 {
    color: #666;
    font-size: .75em;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1pt;
    font-style: normal;
    padding-bottom: 1em;
}

.enco-start-thread p,
.enco-reply p {
    padding: 0;
    margin: 0 0 2%;
}

p.enco-p-email {
    padding-left: 1%;
}
p.enco-p-url {
    padding-left: 1%;
}
p.enco-p-name, p.enco-p-email, p.enco-p-url {
    width: 33.33%;
    float: left;
}

.enco-reply-submit-text {
    font-size: .8em;
}

.enco-orphans input[type="text"],
.enco-orphans input[type="email"],
.enco-orphans textarea,
.enco-overlay input[type="text"],
.enco-overlay input[type="email"],
.enco-overlay textarea {
    font-family: sans-serif;
    font-size: .8em;
    padding: .7em;
    width: 100%;
    border: solid 1px #999;
    border-radius: 3px;
}

.enco-reply input[type="button"],
.enco-reply input[type="submit"],
.enco-start-thread input[type="button"],
.enco-start-thread input[type="submit"] {
    background: #666;
    border: 0;
    padding: 1em 2em;
    text-transform: uppercase;
    color: #FFF;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 1pt;
    cursor: pointer;
}

.enco-reply input[type="button"]:hover,
.enco-reply input[type="submit"]:hover,
.enco-start-thread input[type="button"]:hover,
.enco-start-thread input[type="submit"]:hover {
    background: #222;
}

.enco-reply .enco-reply-close {
    display: none;
}

.enco-reply-container .enco-reply-close {
    display: inline-block;
}

.enco-comment .enco-reply-container {
    padding: 0 1em;
}

.enco-comment .enco-reply-container header {
    display: none;
}


.enco-close-btn {
    display: none;
    height: 2em;
    width: 2em;
    padding-top: .25em;
    vertical-align: baseline;
    font-weight: bold;
    text-align: center;
    background: #FFF;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    position: fixed;
    top: 0;
    right: 0;
    margin: 1.5em 1.5em 0 0;
}


@media only screen and ( max-width: 800px ) {

    .enco-close-btn {
        display: inline-block;
    }

    .enco-overlay {
        width: 100%;
    }

    .enco-orphans {
        padding-left: 2em;
        padding-right: 2em;
    }

    .enco-comment-children {
        padding-left: 1%;
        margin-top: .5em;
    }

}