/* ----------TABLE OF CONTENTS---------- /*
1. COMMENTS__________Contains comment container and styling of comments
2. REPLIES___________Contains reply container and styling of replies
4. RATE______________Rate comment styling in top right of comment
3. FORM______________Comment form styling
/* ------------------------------------- */

/* ------------------------*/
/* ---->>> COMMENTS <<<----*/
/* ------------------------*/

/* container of all comments - additionally,
 alternate class used to easily distinguish 
 every other comment by background color */

div#comments-container {
	width: 100%;
} 

div#comments-container ul li.alternate{
    -moz-border-radius: 0 4px 4px 4px;
    -moz-box-shadow: 0 0 2px #333;
    -webkit-border-radius: 4px;
    -webkit-border-top-left-radius: 0px;
    -webkit-box-shadow: 0 0 2px #333;
    background: #ddd;
    border-radius: 4px;
    border-top-left-radius: 0px;
    box-shadow: 0 0 2px #333;
    margin-bottom: 10px;
}

div#comments-container ul li.alternate:nth-child(odd){
    -moz-border-radius: 0 4px 4px 4px;
    -moz-box-shadow: 0 0 2px #333;
    -webkit-border-radius: 4px;
    -webkit-border-top-left-radius: 0px;
    -webkit-box-shadow: 0 0 2px #333;
    background: #c5c5c5;
    border-radius: 4px;
    border-top-left-radius: 0px;
    box-shadow: 0 0 2px #333;
    margin-bottom: 10px;
}

/* link colors in comments */
div#comments-container p a{
 	font-size: 13px;
	color: #999;
}

div#comments-container p a:hover{
	background: #e86425;
	color: #444;
	border-bottom: 1px solid #444;
}

/* individual comment container */
div.comment{
    border: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
    position: relative;
}

div.comment div.avatar{
    -box-shadow: 0 0 1px #000;
    -moz-box-shadow: 0 0 1px #000;
    -webkit-box-shadow: 0 0 1px #000;
    background: url('img/default_avatar.gif') no-repeat #fcfcfc;
    height: 50px;
    left: -60px;
    position: absolute;
    width: 50px;
}

div.comment div.avatar img{
    display: block;
}
/* commenter's name */
div.comment div.name{
    color: #444;
    font-size: 15px;
    font-weight: bold;
    height: 25px;
    padding: 5px 0 0 10px;
    position: relative;
}

div.comment div.name h5{
    color: #1A91FF;
    float: left;
    padding-right: 6px;
}

div.comment div.name a{
    border-bottom: 1px dashed #303030;
    color: #198af2;
    font-size: 15px;
}

div.comment div.name a:hover{
    color: orange;
}
/* comment's body*/
div.comment p{
    color: #444;
    font-size: 13px;
    font-weight: normal;
    padding: 0px 10px 40px 10px;
    line-height: 1.3em;
}

/* date of comment */
div.comment div.date{
    color: #777;
    float: left;
    font-size: 11px;
    margin: -20px 0 0 10px;
}
/* moderate buttons container */
div.comment div.moderate{
    float: right;
    margin-top: -25px;
}

div.comment div.moderate ul li{
    float: left;
    margin: -2px 5px;
}
/* moderate buttons ie: reply */
div.moderate a.mod-button{
    -moz-border-radius: 3px;
    -moz-box-shadow: inset 0 1px #fff;
    -webkit-border-radius: 3px;
    -webkit-box-shadow: inset 0 1px #fff;
    background: #f0f0f0;
    border-radius: 3px;
    box-shadow: inset 0 1px #fff;
    color: #777;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 5px 2px 5px;
    position: relative;
}

div.moderate a.mod-button:hover{
    -moz-box-shadow: 0 2px #999;
    -webkit-box-shadow: 0 2px #999;
    box-shadow: 0 2px #999;
    top: -1px;
}

div.moderate a.mod-button:active{
    -moz-box-shadow: 0 0 1px #fff, inset 1px 1px #fff, inset -1px 0 #fff;
    -webkit-box-shadow: 0 0 1px #fff, inset 1px 1px #fff, inset -1px 0 #fff;
    background: -moz-linear-gradient(top, #fff, #ddd 1px, #f0f0f0);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.03, #ddd), to(#f0f0f0));
    border-bottom: 1px solid #b3b3b3;
    box-shadow: 0 0 1px #fff, inset 1px 1px #fff, inset -1px 0 #fff;
}
/* -------------------------*/
/* ---->>> /COMMENTS <<<----*/
/* -------------------------*/

/* -----------------------*/
/* ---->>> REPLIES <<<----*/
/* -----------------------*/
div.comment-reply{
    border: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
    position: relative;
}

div.comment-reply p{
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    background: #393939;
    border-radius: 4px;
    color: #aaa;
    font-size: 13px;
    margin: 15px 0 10px 20px;
    padding: 10px 40px 10px 10px;
    line-height: 1.3em;
}

/* css trick for the arrow next to the reply boxes */
div.comment-reply .arrow{
    border-bottom: 8px solid #393939;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    height: 0;
    left: 30px;
    line-height: 0;
    position: absolute;
    top: -8px;
    width: 0;
}
/* end trick */

div.comment-reply div.name{
    -moz-box-shadow: -1px 1px 0 #555;
    -webkit-box-shadow: -1px 1px 0 #555;
    background: #393939;
    box-shadow: -1px 1px 0 #555;
    color: #1a91ff;
    font-size: 12px;
    padding: 1px 4px 3px 4px;
    position: absolute;
    right: 0px;
}

div.comment-reply div.name:hover{
    -moz-box-shadow: -4px 4px 0 #555;
    -webkit-box-shadow: -4px 4px 0 #555;
    box-shadow: -4px 4px 0 #555;
    right: -4px;
    top: -4px;
}

div.comment-reply div.name a{
    color: #1a91ff;
    font-size: 12px;
}

div.comment-reply div.name a:hover{
    color: orange;
}

div.comment-reply div.date{
    color: #888;
    float: left;
    font-size: 11px;
    margin: -5px 0 0 30px;
}

div.comment-reply div.moderate{
    margin-bottom: 30px;
}

div.comment-reply div.moderate ul{
    float: right;
    margin: -5px 5px;
}

div.comment-reply div.moderate a.mod-button:hover{
    -moz-box-shadow: 0 2px #444;
    -webkit-box-shadow: 0 2px #444;
    box-shadow: 0 2px #444;
}

/* ------------------------*/
/* ---->>> /REPLIES <<<----*/
/* ------------------------*/

/* --------------------*/
/* ---->>> RATE <<<----*/
/* --------------------*/
ul.rate-widget{
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 5px;
}

ul.rate-widget li{
    color: #444;
    height: 10px;
    width: 20px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    float: left;
    margin: 5px 5px 0 0;
}

ul.rate-widget li.total-rate{
    font-weight: bold;
    font-size: 10px;
    text-align: right;
    padding-right: 4px;
    border-right: 1px solid #999;
    -moz-border-radius: 0px;
    -moz-box-shadow: 0px;
    border-radius: 0px;

}

ul.rate-widget li.total-rate.pos{
    color: #5b8f08;
}

ul.rate-widget li.total-rate.neg{
    color: #c2263b;
}

ul.rate-widget li.show-rate{
    font-size: 10px;
}

ul.rate-widget li.pos-rate{
    text-align: center;
    background: #99ce00;
    color: #546f00;
    border: 1px solid #84af00;
    -moz-box-shadow: inset 0 1px #b5ef00;
    -webkit-box-shadow: inset 0 1px #b5ef00;
    box-shadow: inset 0 1px #b5ef00;
}

ul.rate-widget li.neg-rate{
    text-align: center;
    background: #c2263b;
    color: #6f0d1d;
    border: 1px solid #8f1a2d;
    -moz-box-shadow: inset 0 1px #ff2f62;
    -webkit-box-shadow: inset 0 1px #ff2f62;
    box-shadow: inset 0 1px #ff2f62;
}

/* css trick for the arrows */
ul.rate-widget li span.up-arrow{
    border-bottom: 6px solid #b5ef00;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    height: 0;
    line-height: 0;
    position: relative;
    top: -16px;
    width: 0;
}

ul.rate-widget li span.down-arrow{
    border-top: 6px solid #ff2f62;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    height: 0;
    line-height: 0;
    position: relative;
    top: 10px;
    width: 0;
}
/* end trick */

ul.rate-widget li:not(.total-rate):hover{
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    cursor: pointer;
}
/* ---------------------*/
/* ---->>> /RATE <<<----*/
/* ---------------------*/

/* --------------------*/
/* ---->>> FORM <<<----*/
/* --------------------*/

/* form container */
#comment-form{
    font-family: Lucida Grande, Helvetica, Arial, Sans-Serif;
    height: 300px;
    margin: 50px auto;
}
/* title text */
#comment-form h2, a{
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
}
/* cancel button text */
#comment-form h2 a.cancel {
    color: #999;
    font-size: 11px;
    margin-left: 10px;
    cursor: pointer;
}

/* remove browser focus borders*/
form.canny *:focus{
    outline: none;
}

form.canny span.wrap label.required:after{
    color: #f08431;
    content: "Required";
    float: right;
    font-size: 11px;
    text-height: 3px;
}

form.canny span.wrap label.invalid:after{
    color: #f08431;
    content: "Invalid";
    float: right;
    font-size: 11px;
    text-height: 3px;
}

form.canny span.wrap label.optional:after{
    color: #999;
    content: "Optional";
    float: right;
    font-size: 11px;
    text-height: 3px;
}
/* input field spacing */
form.canny span.wrap ul li{
    margin-bottom: 5px;
}
/* because we're using inline
/* text for inputs, the label will be
/* used for our input styles */
form.canny span.wrap label{
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    background: #333;
    border-radius: 3px;
    color: #999;
    font-size: 12px;
    padding: 7px;
    position: absolute;
    text-indent: 2px;
    width: 170px;
    z-index: 1;
}

form.canny span.wrap label[for=equation] {
    width: 110px;
}
/* when user focuses on input */
form.canny span.wrap label.focus{
    background: #303030;
    border-bottom: 1px solid #666;
}

form.canny span.wrap label.hastext{
    background: #303030;
    border-bottom: 1px solid #666;
}
/* actual field inputs */
form.canny input.input-text, textarea.input-text{
    font-family: Lucida Grande, Helvetica, Arial, Sans-Serif;
    background: none;
    border: none;
    color: #eee;
    font-size: 12px;
    padding: 6px;
    position: relative;
    text-indent: 1px;
    width: 170px;
    z-index: 10;
}
/* make the comment input larger */
form.canny textarea.input-text,
form.canny label#body-label{
    height: 100px;
    width: 350px;
}
/* lighten inline text when user clicks input */
form.canny label.overlay span{
    
    opacity: 0.4;
    -webkit-transition: opacity 200ms linear;
}
/* lighten inline text when user clicks input */
form.canny label.focus span{
    opacity: 0.2;
}
/* make inline text completely transparent when 
  user has typed input */
form.canny label.hastext span{
    -webkit-transition: opacity 0ms linear;
    opacity: 0.0;
}
/* submit button */
form.canny input[type=submit]{
    -moz-border-radius: 3px;
    -moz-box-shadow: inset 0 1px #f18732;
    -webkit-border-radius: 3px;
    -webkit-box-shadow: inset 0 1px #f18732;
    background: #e86425;
    border-radius: 3px;
    border: 1px solid #444;
    box-shadow: inset 0 1px #f18732;
    color: #782309;
    font-size: 12px;
    font-weight: bold;
    height: 25px;
    opacity: 0.9;
    text-align: center;
    text-shadow: 0 1px 0 #f18732;
    width: 70px;
}
/* submit button hover */
form.canny input[type=submit]:hover{
    -moz-box-shadow: inset 0 1px #f18732, 0 1px 0 #444;
    -webkit-box-shadow: inset 0 1px #f18732, 0 1px 0 #444;
    box-shadow: inset 0 1px #f18732, 0 1px 0 #444;
    cursor: pointer;
    margin-top: -1px;
    opacity: 1.0;
}
/* submit button pressed */
form.canny input[type=submit]:active{
    -moz-box-shadow: 0 0 1px #aaa, inset 1px 1px #f18732, inset -1px 0 #f18732;
    -webkit-box-shadow: 0 0 1px #aaa, inset 1px 1px #f18732, inset -1px 0 #f18732;
    background: -moz-linear-gradient(top, #f18732, #cb612e 1px, #e86425);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f18732), color-stop(0.03, #cb612e), to(#e86425));
    box-shadow: 0 0 1px #aaa, inset 1px 1px #f18732, inset -1px 0 #f18732;
    text-shadow: none;
    top: 1px;
}
/* ---------------------*/
/* ---->>> /FORM <<<----*/
/* ---------------------*/

/* ----------------------------*/
/* ---->>> HIGHLIGHTING <<<----*/
/* ----------------------------*/
/* for fun change highlighting color */
::selection {
    background: orange;
    color: #fff;
}

::-moz-selection {
    background: orange;
    color:#fff;
}

::-webkit-selection {
    background: orange;
    color:#fff;
}
/* -----------------------------*/
/* ---->>> /HIGHLIGHTING <<<----*/
/* -----------------------------*/
