.rightrail {
    padding-top: 30px;
    margin: 0 15px 0 15px;

}

body > .container > .row { padding-bottom: 60px; }


/******************************************************************/
/*********************    Main Article    **************************/
/******************************************************************/


#mainarticle {
    margin: 0 0 70px;
}

#mainarticle .imgbucket {
    position: relative;
    display: block;
    margin: 0 0 15px;
    z-index:1;
}
#mainarticle .imgbucket img, .herobox .imgbucket img {
    width: 100%;
}


#mainarticle .category {
    font-size: 14px;
    color: #8c9194;
    margin: 0 0 4px;
}

#mainarticle h2 {
    font-size: 24px;
    font-weight: bold;
    color: #1c1c1c;
    margin: 0 0 10px;
    line-height: 1.2;
}

#mainarticle .social {
    display: block;
    float: right;
    padding-bottom:15px;
}

#mainarticle .social img {
    display: block;
    width: 100%;
}



#mainarticle .authorbox {
    height: 40px;
    float: left;
    margin-bottom: 15px;
}
#mainarticle .authorbox .author {
    color: inherit;
}
#mainarticle .author p {  }
#mainarticle .author .authordatebx { display:inline-block;}

#mainarticle .avatar {
    border: 2px solid #589b60;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    overflow: hidden;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: block;
    float: left;
}
#mainarticle .name { color: #589b60; }

#mainarticle .bodycopy {
    clear: both;
    margin-top: 20px;
    padding-top:22px;
}
#mainarticle .bodycopy a { color: #589b60; }
#mainarticle .bodycopy p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 20px;
}

/*flag sprite*/
#mainarticle .flagBx a{
     display:block;
     width:28px;
     height:16px;
     float:right;
     background:url('../images/ui/flag_sprite.png') no-repeat 0 0;

}
#mainarticle .flagBx a:hover{

    background:url('../images/ui/flag_sprite.png') no-repeat -29px 0;
}

.rightmain {
    padding-right:60px;
    margin-right:-30px;
}


/************************************************************************************************/
/*********************    small section for the writer button   **************************/
/************************************************************************************************/


.writerbuttoncontainer {
    height: 80px;
}


/************************************************************************************************/
/*********************    Main Article Right Rail is Related Stories   **************************/
/************************************************************************************************/


#relatedstories h1 {
    font-size: 20px;
    color: #464747;
    margin: 0 0 10px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .rightrail {
        background: #f4f4f4;
    }
}

/*****************************************************/
/***************   SOCIAL  **************************/
/****************************************************/
@media (max-width: 329px) {
    #mainarticle .social .item,
    #mainarticle .social img  {height:50px;}
}

@media (max-width: 490px) {
    #mainarticle .social img  {height:40px; }

}




/******************************************************************/
/*********************    DISQUS SECTION   ************************/
/******************************************************************/


#disqussection {
    background: #fff;
    padding: 15px;
    clear: both;
    margin-top: 10px;
}




/***************************************************************************************/
/*********************    FOR EMBEDDED VIDEO SECTION   ************************/
/*****************************************************************************************/

/*
#herobx.imgbucket.video {
    height: 0;
    width: 100%;
    position: relative;
    padding-bottom: 56%;
}
#herobx.imgbucket.video iframe,
#herobx.imgbucket.video object {

    position:relative;
    width: 100%;
    height: 100%
}
#herobx.imgbucket.video embed {
    width: 100%;
    height: 100%
}

#herobx.imgbucket.video video {
    width: 100%;
    height: 100%;
}

#herobx.imgbucket.video .videoIcons {
    background-color: rgba(0, 0, 0, 0.5);
    bottom: 12%;
    width: 100%;
    position: absolute;
    border-top: 2px solid #999999;
}

#herobx.imgbucket.video .videoIcons .arrow-right {
    margin:7px 0 7px 45px;
    width: 0;
    height: 0;
    border-top: 1em solid transparent;
    border-bottom: 1em solid transparent;
    border-left: 1em solid #999999;
}
#herobx.imgbucket.video .videoIcons .videoText {

    color:#999999;

}*/

/*newer video box*/
#herobx.imgbucket {
    height: 0;
    width: 100%;
    position: relative;
    padding-bottom: 56%;
}
#herobx.imgbucket iframe,
#herobx.imgbucket object {

}
#herobx.imgbucket embed {
    width: 100%;
    height: 100%
}

#herobx.imgbucket video {

}

.herobox .videoIcons {
    /*background-color: rgba(0, 0, 0, 0.5);*/
    background-color:#333333;
    bottom: 0;
    width: 100%;
    position: relative;
    border-top: 2px solid #999999;
    padding:4px 0;
}

.herobox .videoIcons .arrow-right {
    margin:7px 0 7px 45px;
    width: 0;
    height: 0;
    border-top: 1em solid transparent;
    border-bottom: 1em solid transparent;
    border-left: 1em solid #999999;
}

/***************************************************************************************/
/*********************    ARTICLE PAGE MODAL   ************************/
/*****************************************************************************************/

body {
    position: relative;  /* we want .overlay-container to look to body not window */
}

.overlay-container, .video-overlay-container {
    display: none;
    content: " ";
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index:80000;
    background-color:#ffffff;
}

.embedcopy {
    display: none;
    content: " ";
    width: 60%;
    margin: 200px auto 20px;
    z-index:80002;
    text-align:center;
}

.embedcopy.secondbx {

    margin: 20px auto 10px;

}

.embedcopy h1{
    font-size:24px;
}

.embedcopy p{
     font-size:18px;
 }
.embedcopy p.goleft{

     font-size:12px;
     color:#999999;
     font-weight:bold;
     text-align:left;
 }
.embedcopy p.gocenter{
    font-size:14px;
    color:#666666;
    font-weight:bold;
    text-align:center;
}

.embedcopy .input-text {
    padding: 15px;
    margin: 15px 0 30px;
    resize: none;
    overflow: hidden;
    letter-spacing: -0.02em;
    font-weight: 400;
    font-style: normal;
    border: 1px solid rgba(0,0,0,0.15);
    height: 50px;
    width:95%;
    font-size: 14px;
    outline: none;
    background: #fff;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 1px;
}


.embedcopy .confirmlogo img{
    width:25%;
}


.window-container {
    display: block;
    background: #fcfcfc;
    margin: 10px auto;
    width: 40%;
    min-height:150px;
    padding: 20px 20px 20px;
    text-align: left;
    z-index:80005;
    border-radius: 1px;
    box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
    -webkit-transition: 0.4s ease-out;
    -moz-transition: 0.4s ease-out;
    -ms-transition: 0.4s ease-out;
    -o-transition: 0.4s ease-out;
    transition: 0.4s ease-out;
    opacity: 0;
}


.window-container .modalthumb {
    position: relative;
    float: left;
    margin:0 15px 10px 0;
    overflow: hidden;
}

.window-container .modalthumb.rectangle {
    display:none;
    position: relative;
    float: left;
    margin:0 15px 10px 0;
    overflow: hidden;
}

.window-container .rightwrap {
    position: relative;
    /*float: left;*/
    margin-right: 15px;
    overflow: hidden;
}
.window-container p{
    font-size:15px;
    padding:0;
    margin-bottom:3px;
}
.window-container h2{
    font-size:15px;
    padding:2px 0 4px;
    margin:0;
}

.window-container .author span {
    color: #589b60;
}
.window-container .category {
    font-size: 14px;
    color: #8c9194;
    margin: 0 0 4px;
}

.overlay-container .signup.btn, .video-overlay-container .signup.btn {
    font-size: 24px;
    max-width: 340px;
    width: 100%;
    height: 70px;
    line-height: 30px;
    background: #464747;
    border-bottom: 4px solid #111111;
    display: block;
    text-align: center;
    margin: 0 auto;
}

.overlay-container.signup.btn:hover, .video-overlay-container.signup.btn:hover {
    color:#ffffff;
    background: #555555;

}
/* not selector,  will target the social when the .ie78 class is not in parents*/
:not(.ie78) .overlay-container .signup.btn, :not(.ie78) .video-overlay-container .signup.btn  {
    -webkit-transition: background .5s, color .5s;
    -moz-transition: background .5s, color .5s;
    -o-transition: background .5s, color .5s;
    -ms-transition: background .5s, color .5s;
    transition: background .5s, color .5s;
    -webkit-animation-timing-function: ease-in-out;
}

.zoomin {
    -webkit-transform:  scale(1.2);
    -moz-transform:  scale(1.2);
    -ms-transform:  scale(1.2);
    transform:  scale(1.2);
}

.zoomout {
    -webkit-transform:  scale(0.7);
    -moz-transform:  scale(0.7);
    -ms-transform:  scale(0.7);
    transform:  scale(0.7);
}

.window-container-visible {
    -webkit-transform:  scale(1);
    -moz-transform:  scale(1);
    -ms-transform:  scale(1);
    transform:  scale(1);
    opacity: 1;
}

.window-container h3 {
    margin: 1em 0 0.5em;
    font-weight: normal;
    font-size: 25px;
    text-align: center;
}

.closeme, .video-closeme {
    margin: 20px auto;
    display: block;
    width: 10%;
    background: #999999;
    border: 1px solid #aaa;
    padding: 5px 6px;
    color: #ffffff;
    font-size: 16px;
    border-radius: 3px;
    box-shadow: 0 1px 3px #ddd;
    -webkit-transition: 0.2s linear;
    -moz-transition: 0.2s linear;
    -ms-transition: 0.2s linear;
    -o-transition: 0.2s linear;
    transition: 0.2s linear;
    cursor: pointer;
    text-align:center;
}

.closeme:hover, .video-closeme:hover {
    background: #666666;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid #aaa;
}

.closeme:active, .video-closeme:active {
    background: #666666;

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/*SOCIAL MEDIA BUBBLE ROLLOVER COUNT*/
#mainarticle .social .item {
    width: 40px;
    display: block;
    float: right;
    margin-left: 15px;

    -webkit-transition: background .3s, opacity .4s;
    -moz-transition:background .3s, opacity .4s;
    -o-transition: background .3s, opacity .4s;
    -ms-transition: background .3s, opacity .4s;
    transition: background .3s, opacity .4s;
    -webkit-animation-timing-function: ease-in-out;
}
.item.socialpix {position:relative;}

.item.socialpix[sharecount] .countbubble {
    font-size: 16px;
    width: 100%;
    height: 34px;
    position: absolute;
    line-height: 34px;
    color: white;
    text-align: center;
    top: 100%;
    left: 0;
}
.item.socialpix[sharecount="facebook"] .countbubble { background: url('../images/ui/countbubble_fb.svg') center 0 no-repeat; }
.item.socialpix[sharecount="twitter"] .countbubble { background: url('../images/ui/countbubble_tw.svg') center 0 no-repeat; }
.item.socialpix[sharecount="linkedin"] .countbubble { background: url('../images/ui/countbubble_ln.svg') center 0 no-repeat; }


/* media queries */

@media (min-width: 0px) and (max-width: 479px) {
    .window-container .modalthumb {display:none;}
    .window-container .modalthumb.rectangle {display:block; float:none; margin-bottom:10px;text-align:center;}

    #relatedstories .avthumbnail {width:100%;}

    #relatedstories .rightrail {float:left;}


}

@media (min-width: 0px) and (max-width: 767px) {
    .embedcopy, .window-container, .embedcopy.secondbx {width:90%;}
    .closeme {width:30%;}
    .video-overlay-container .video-closeme {width:30%;}

    #relatedstories .avthumbnail {width:100%;}

    #relatedstories .rightrail {float:left;}


}

@media (max-width: 991px) and (min-width: 320px){

    #relatedstories .avthumbnail {width:100%;}

    #relatedstories .rightrail {float:left;}

    .rightmain {padding-right:0; margin-right:0;}
    #mainarticle { margin-right:20px;}
    body > .container > .row {padding-bottom:30px;}

}



/* for reference */
/*
    @media (max-width: 479px) {
    }
    @media (min-width: 480px) and (max-width: 767px) {
    }
    @media (min-width: 768px) and (max-width: 991px) {
    }
    @media (min-width: 992px) and (max-width: 1199px) {
    }
    @media (min-width: 1200px) {
    }
*/

.errorMessage-article-container {
    position: fixed;
    top: 130px;
    left: 21%;
    width:550px;
    z-index: 2000;
    display: none;
}

.errorMessage-article-content {
    background:#9b6058;
    color:#ffffff;
    width:550px;
    padding:10px 20px;
}

.comments.title {
    clear:both;
    margin-top: 20px;
}

.comments.block {
    clear: both;
    min-height: 200px;
    max-height: 400px;
    border: 1px solid #dedede;
    margin: 10px 0px;
}

.comments.list {
    padding: 0;
    margin: 0;
    font-size: 12px;
    list-style: none;    
}

.comments.list li {
    margin-bottom: 5px;
    padding: 5px 10px;
    border-bottom: 1px solid #dedede;
}

.comments.author {
    border-bottom: 1px solid #666666;
}

.comments.author.resolved {
    border-bottom: 1px solid #cccccc;
}

.brand-logo.image {
    border: 2px solid #589B60;
    border-radius: 50%;
    overflow: hidden;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    display: block;
    float: left;
}

.btn-file {
    position: relative;
    overflow: hidden;
}
.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

#editable-body ul {
    font-size: 16px;
}