 
/* Mobile first principle */


/* ***********************************************
- FORUM INDEX STYLE
*********************************************** */
#forum {
	line-height: 1.3 !important;
}

#forum .postlevel {
    font-size: 0.6em;
    font-style: italic;
    color: red;
    line-height: 1;
    display: inline-block;
}

#forum .quotecontent {
    background-color: #FAFAFA;
    border: 1px dotted #808080;
    padding: 5px;
    display: block;
}


#forum .title {
    font-weight: bold;
    font-size: 1em;
}

#forum hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(153,153,153, 0), rgba(153,153,153, 0.5), rgba(153,153,153, 0));
    margin-bottom: 5px;
}

.forum_grid {margin-top: 2px; margin-bottom: 2px; padding: 2%;}


.forum_grid {
    display: inline-block;
    z-index: 2;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.18);
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    box-sizing: border-box;
}

.forum_presentation { margin-bottom: 10px;}
#forum .titlebar { background-color: #363636; background: #363636;}
#forum .titlebar h1 { text-align: center;}

span.forum_moderation {float: right;margin-right: 1%; display:none;}
.forum_moderation img {max-height: 0.9em;width: auto;}

span.forum_name {
    font-weight: bold;
    display: inline-block;
    float: left;
    max-width: 90%;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    color: #202020;
}
span.forum_description {
    clear: both;
    float: left;
    font-size: 0.9em;
    color: #505050;
}

span.forum_count {
    display: block;
    width: 96%;
    border: 1px solid silver;
    margin: 1%;
    text-align: ;
    line-height: 1;
    padding: 1%;
    margin-top: 2%;
    display: none;
}
span.forum_readicon {
	display: none;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    margin-top: 10%;
    width: 50%;
}
span.forum_readicon2 img {max-height: 1em; width: auto; opacity: 0.8;}
span.forum_readicon2 {
    display: inline-block;
    float: left;
    margin-right: 2%;
}

span.forum_recentposts {
    text-align: left;
    display: inherit;
}

/* ***********************************************
- COMMON FOR FORUM INDEX AND SUB BOARDS 
*********************************************** */
span.postlevel {display: block;}
.forumcolor1 {background: #f1f1f1;}
.forumcolor0 {background: #f9f9f9;}

span.forum_topicwrapper, span.board_topicwrapper {
    float: left;
    margin-left: 2%;
    margin-right: 2%;
    width: 95%;
}

span.forum_nbposts, span.forum_date, span.forum_nbread, span.board_count {
    font-size: 0.8em;
    color: #505050;
    display: inline-block;
    width: 95%;
    margin-left: 2%;
}

span.forum_nbposts, span.forum_date {
	width: 45%;
    overflow: hidden;
}

.forum_blue {color: #2DB2EA !important;}

.forum_readicon img,.board_readicon img {
    width: 90%;
    vertical-align: middle;
    text-align: center;
    height: auto;
    opacity: 0.8;
    margin-left: auto;
    margin-right: auto;
}

.board_search input[type=text] {
    width: auto;
}

span.board_forumtreewrapper {
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

span.forumbottom_pages {
    margin-top: 5px;
    display: block;
    text-align: left;
    margin-left: 12px;
}

span.forumbottom_postnew {
	margin-top: 2px;
    margin-bottom: 2px;
    display: block;
    text-align: center;
}

span.forumbottom_next {
    margin-top: 2px;
    display: block;
    text-align: right;
    margin-right: 12px;
}

.forum_movetopic, .forum_edittopic, .forum_editforum {
    text-align: center;
}
.forum_movetopic select, #forum input, #forum select, #forum textarea {
    max-width: 90%;
}

/* ***********************************************
BOARD SUB-FORUM STYLE
*********************************************** */

span.forumprogress_barwrapper {
    width: 90%;
    border: 1px solid silver;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 2px;
    font-size: 0.8em;
}

span.forumprogress_bar {
    display: inline-block;
    background: #2DB2EA;
    text-align: center;
}

span.board_moderation {display: none;}
span.board_newpost {
    text-align: center;
    display: block;
    margin: 5%;
}
span.board_search {
    text-align: center;
    display: block;
    margin-bottom: 2%;
    width: 90%;
}
span.board_search input {
	max-width: 40%;
}

span.board_date {
    font-weight: bold;
}

span.board_count,span.board_date {
    color: #909090;
    display: normal;
    width: 96%;
    background: #fff;
    box-sizing: border-box;
    display: block;
    margin: 2%;
    padding: 2%;
    border: 1px solid #999999;
    font-size: 0.9em;
}

span.board_postedby {
    clear: both;
    float: left;
    font-size:0.9em;
    color: #707070;
    line-height: 2;
    width: 100%;
}
span.boardpost_date {
    color: #909090;
    font-size: 0.9em;
    margin-left: 2%;
    max-width: 45%;
    overflow: hidden;
    font-weight: normal;
}

span.boardlastpost_date {
    margin-left: 2%;
    color: #909090;
    font-size: 0.9em;
    font-weight: normal;
}

span.board_topic {font-weight: bold;float: left;width: 100%;}
span.board_topic a {text-decoration: none;color: #202020;}
span.board_topic a:hover {text-decoration: underline;}

span.board_readicon { 
	display: none;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    margin-top: 10%;
    width: 50%;
}
span.board_readicon img { 
	opacity: 0.8; 
	width: 80%; 
	height: auto;
	margin-left: auto;
	margin-right: auto;
}
span.board_readicon2 {
    margin-right: 2%;
    margin-bottom: 2%;
    display: inline-block;
}
span.board_readicon2 img {
    max-height: 1em;
    width: auto;
    opacity: 0.8;  
}

span.board_avatar {
    width: 15%;
    height: 15%;
    display: none;
    float: left;
    margin-right: 4%;
    display: none;
}
span.board_avatar img {
    border-radius: 50%;
    border: 2px solid silver ;
    height: 100%;
    width: 100%;
}

.boardheader_border {
    border: 1px solid silver ;
    box-sizing: border-box;
    padding: 0.5%;
}

span.lastcomment_desc{display: none;font-weight: normal; color: #505050;}

span.board_moderation img {
    max-height: 1.2em;
    width: auto;
}

span.board_count i {
    width: 12px;
    display: inline-block;
}

/* **********************************************
-  TOPIC STYLING
*********************************************** */
span.topic_author {
    display: block;
    text-align: center;
}
span.topicauthor_avatar {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 50px;
    padding: 5px;
    width: 30%;
}

span.topicauthor_avatar img {
    border-radius: 50%;
    border: 2px solid silver ;
    width: 100%;
    height: 100%;
}
span.topicauthor_since {display: none;}

span.topicauthor_name {
    font-weight: bold;
    font-size: 1em;
    display: block;
    text-align: center;
}

span.topic_author {
    display: block;
    text-align: center;
    padding-bottom: 2%;
    margin-bottom: 2%;
    border-bottom: 1px solid silver ;
}

span.topicauthor_since {
    color: #909090;
    margin-top: 3%;
}

span.topicauthor_license, span.topicauthor_since,span.topicauthor_showuser,span.topic_icon {
    display: none;
}
span.topic_moderation, span.topic_authorlevel,span.topicauthor_tag {
    display: block;
}
span.topicauthor_flag {
    display: inline-block;
    margin-left: 5px;
}


span.topic_content {
    width: 90%;
    margin: 3%;
    padding: 3%;
    display: block;
}

span.topic_moderation img {
    max-height: 1em;
    width: auto;
    float: right;
    margin-right: 1%;
}

span.topic_date, span.topic_level,span.topic_lastedit {
    display: block;
    text-align: center;
    font-size: 0.8em;
    color: #909090;

}

span.topic_date {
   /* border-top: 1px solid silver ;
    padding-top: 10px;
    margin-top: 30px; */
}

span.topicdate_new {
    color: #2DB2EA !important;
}

span.topic_level {
    color: red;
}

span.topic_content img {
    max-width: 80%;
    box-shadow: 1px 2px 2px gray;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    margin: 1%;
    border: 4px solid white;
    box-sizing: border-box;
}

span.topic_content .quote {
	margin:0;
    font-weight: inherit;
    margin-bottom: 10px;
    font-style: italic;
}

.forum_topic{margin-bottom: 8px;}

.titlebar.topicheader_bar {
    font-weight: bold;
    color: white;
    text-align: center;
    line-height: 2;
    font-size: 1.2em;
    text-transform: uppercase;
    margin-bottom: 5px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
span.topic_author {
    line-height: 1.2;
}

.forum_grid.forumcolor0.forum_topic.bestanswer {
    background: rgba(45,178,234,0.1);
    border: 1px solid rgb(45,178,234);
}

  .topic_thumpsup{
    display: inline-block;
    color: gray;
    float: right;
    font-size:0.9em;
    margin-right: 1%;
  }
 .topic_markbest{
    display: inline-block;
    color: gray;
    float: right;
    font-size:0.9em;
    margin-right: 1%;
  }

span.topic_bestanswer {
    display: inline-block;
    padding: 2px;
    background: #2DB2EA;
    color: white;
    margin-top: -15px;
    position: absolute;
    border: 1px solid rgb(45,178,234);
    margin-left: auto;
    margin-right: auto;
    width: 100px;
    text-align: center;
    font-size: 0.9em;
}
span.topic_markbest a {
    color: #505050;
    text-decoration: none;
}
span.topic_markbest a:hover {
     color: #202020;
    text-decoration: underline;
}

span.topic_lastbestedit {
    display: block;
}

/* **********************************************
- FORUM RESPONSIVE
*********************************************** */

.show-on-tiny {display:none;}
.show-on-small {display:none;}
.show-on-medium {display:none;}
.show-on-large {display:none;}
.show-on-wide {display:none;}


/* Hide FROM certain size and ALL SMALLER (down) */
.fullgrid .hide-on-tiny {display:none;}
.fullgrid .hide-on-small {display:none;}
.fullgrid .hide-on-medium {display:none;}
.fullgrid .hide-on-large {display:none;}
.fullgrid .hide-on-wide {display:none;}

/* Show FROM certain size and ALL LARGER (up) */
.fullgrid .show-on-tiny {display:none;}
.fullgrid .show-on-small {display:none;}
.fullgrid .show-on-medium {display:none;}
.fullgrid .show-on-large {display:none;}
.fullgrid .show-on-wide {display:none;}

/*
 case 1)
 - show from tiny to medium
 => default 



/* tiny grid */
@media screen and (min-width: 20em) {
	.show-on-tiny {display:block;}
	span.board_count, span.board_date {width: 98%; margin: 1%;}
    span.board_readicon {display: none;}
}


/* small grid */
@media screen and (min-width: 35.5em) {

	.show-on-small {display:block;}
	span.board_readicon {display: block;}
	span.board_readicon2 {display: none;}
	span.forum_topicwrapper, span.board_topicwrapper {
        max-width: 75%;
        width: 75%;
        padding:0;
        margin:0;
    }
	span.forum_moderation {display:inline-block;}
	span.board_topic {width: 100%;}
	.forum_grid {padding: 1%;}
	span.board_nbread,span.board_nbposts,span.boardlastpost_date{display:block;}
	span.board_count {border-top: 1px solid silver;}
	span.lastcomment_desc{display: inline-block;}
	span.board_count, span.board_date{font-size: 0.85em; background:none; border:none; border-top:1px solid silver;};
	span.board_postedby {font-size: 0.9em; line-height: inherit; margin-bottom: 1%; font-weight: normal;}
	span.board_count, span.board_date {margin:0; padding: 0; padding-top: 2%; padding-left: 2%;}
	span.boardlastpost_date {margin: 0}
	span.board_moderation {display: block;}
	span.board_newpost,span.board_search{margin: 0;}
	span.board_search{text-align: right;}
	span.forum_count {display: block;}
	span.topicauthor_since,	span.topicauthor_tag {
		    font-size: 0.8em;
		    color: #505050;
		    display: block;
		}
	span.topicauthor_license {
	    display: block;
	    font-size: 0.8em;
	    font-weight: bold;
	    margin-top: 5px;
	}
	span.topic_author {
		border:0;
		padding: 0;
		margin: 0;
		padding-right: 2%;
	    margin-right: 2%;
	    border-right: 1px solid silver;
	    margin-top: 6%;;
	}

    span.forum_recentposts {text-align: center;display:block;}

    span.topic_author {
    line-height: 1;
	}

}

/* medium grid */
@media screen and (min-width: 48em) {
	.show-on-medium {display:block;}
	span.postlevel {display: inline-block;}
	span.lastcomment_desc{display:none;}
	span.board_postedby {line-height: 1;}
	span.board_date, span.board_count {
		margin: 0; 
		padding: 0; 
		font-size: 0.8em; 
		border: none;
	    color: #707070;
	    padding-left: 4%;
	    margin-left: 4%;
	    border-left: 1px solid silver;
	    width: 96%;
	    display: block;
	    box-sizing:border-box;
	}
	span.board_date .board_extratext, span.board_count .board_extratext {display: none;}
	span.forum_readicon2 {display: none;}
	span.forum_readicon {display: block;}
	span.forum_count {margin-top: 10px;}
    span.forum_topicwrapper, span.board_topicwrapper {
        padding-left: 2%;
        border-left: 1px solid silver;
    }
	span.board_topic a {
	    font-size: 1em;
	    color: #202020;
	}

    span.topic_content {padding: 3%; margin: 3%;}
    span.topicauthor_flag {
    display: block;
    margin: 0;
    }
	
}

/* large grid */
@media screen and (min-width: 64em) {
	.show-on-large {display:block;}
	.forum_grid {padding: 0.6%;}
	span.board_date .board_extratext, span.board_count .board_extratext {display: inline;}
	span.board_avatar {display: inline;}
	span.forum_count {
		    border: 0;
		    padding: 0;
		    margin: 0;
		    display: inline-block;
		    max-width: 96%;
		    margin-left: 2%;
		    padding-left: 2%;
		    border-left: 1px solid silver;
		}
	span.forum_nbposts, span.forum_date {
	    margin: 0;
	    padding: 0;
	    width: 100%;
	    line-height: 1.5;
	    margin-left: 2%;
	}
	span.topicauthor_avatar { width: 60px; }
}

/* wide grid */
@media screen and (min-width: 80em) {
	.show-on-wide {display:block;}
}