/* Topics content*/
#topics-block
{
	position: relative;
	width: 770px;
}

#tags
{
	margin-bottom: 30px;
}

#tags a
{
	display: inline-block;
	padding: 12px 24px;
	background-color: #eee;
	border: 1px solid #e2e2e2;
	margin-right: 2px;
	margin-bottom: 2px;
	font-size: 13px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	color: #a5a5a5;
	text-decoration: none;
}
#sub_section
{
	margin-top: 10px;
	margin-bottom: 30px;
}

#section a, #sub_section a
{
	display: inline-block;
	padding: 12px 24px;
	background-color: #eee;
	border: 1px solid #e2e2e2;
	margin-right: 2px;
	margin-bottom: 2px;
	font-size: 13px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	color: #a5a5a5;
	text-decoration: none;
}
#section-name, #sub_section-name
{
	display: block;
	position: absolute;
	padding: 10px 0;
	font-size: 16px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	color: #a5a5a5;
	text-transform: uppercase;
}

#section a.active, #section a:hover, #sub_section a.active, #sub_section a:hover
{
	background-color: #f38c06;
	border: 1px solid #e26703;
	color: #fff;
}
#topics-header
{
	position: relative;
	height: 43px;
	border-bottom: 1px solid #e2e2e2;
	border-top: 1px solid #e2e2e2;
}

/* Add new topic button */
#add-topic
{
	margin-top: -1px;
	position: relative;
	height: 43px;
	background: #3174b4;
	font-size: 13px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	padding: 12px 24px 12px 45px;
	float: right;
	text-decoration: none;
	color: #fff;
}

#add-topic span
{
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	height: 43px;
	width: 43px;
	background: url('/images/plus-sign.png') no-repeat center;
}

#tag-name
{
	display: block;
	position: absolute;
	padding: 10px 0;
	font-size: 16px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	color: #a5a5a5;
	text-transform: uppercase;
}

#tags a.active, #tags a:hover
{
	background-color: #f38c06;
	border: 1px solid #e26703;
	color: #fff;
}

/* Topic block */
.topic
{
	position: relative;
	padding-right: 300px;
	height: 65px;
}

.outer-topic
{
	border-bottom: 1px solid #e2e2e2;
	padding: 20px 0;
}

.topic-name, .topic-text, .topic-info
{
	text-align: left;
}

.topic-name
{
	display: block;
	font-size: 16px;
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	color: #6296c8;
}

.topic-text, .answer-text
{
	font-size: 14px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	margin-top: 3px;
}

.topic-info, .answer-info
{
	width: 220px;
	right: 0;
	top: 0;
	line-height: 1.8;
	text-align: right;
	font-size: 11px;
	color: #545e67;
	position: absolute;
}

.topic-info a
{
	cursor: pointer;
	color: #00A0C0;
}

.answer-count
{
	color: #00A0C0;
}

.topic-author
{
	font-size: 11px;
	color: #545e67;
	margin-top: 10px;
}

/* new topics styles*/
#add-topic-form
{
	color: #464545;
	font-size: 13px;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
}

#add-topic-form #main-info
{
	padding: 50px 0 20px 0;
	border-bottom: 1px solid #e2e2e2;
	display: block;
}

#add-topic-form #images
{
	padding: 20px 0;
	border-bottom: 1px solid #e2e2e2;
}

#add-topic-form label
{
	cursor: pointer;
	font-weight: 300;
}

#add-topic-form table td:first-child
{
	width: 150px;
	vertical-align: top;
	padding-top: 5px;
}

#add-topic-form table td
{
	padding-bottom: 10px;
}

#add-topic-form input[type="text"],
#add-topic-form textarea
{
	width: 244px;
	height: 37px;
	background-color: #eee;
	border: 1px solid #e2e2e2;
	font-size: 13px;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	color: #5d5d5d;
	padding: 0 17px;
}

#add-topic-form textarea
{
	width: 580px;
	height: 125px;
	resize: none;
	padding: 10px 17px;
	margin: 0;
}

#add-topic-form button
{
	width: 244px;
	height: 37px;
	font-size: 14px;
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	color: #fff;
	text-transform: uppercase;
	background-color: #f38c06;
	border: 1px solid #e26703;
	box-shadow: 2px 4px 5px #ddd;
	border-radius: 0;
	margin-top: 20px;
}

#add-topic-form .checkbox-inline
{
	margin: 5px 25px 5px 0;
}
#add-topic-form .radio-inline
{
	margin: 5px 25px 5px 0;
}
.hidden
{
	display:none;
}

#topic-image-form a
{
	display: block;
	padding-top: 8px;
	width: 244px;
	height: 37px;
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: 14px;
	color: #fff;
	background-color: #3174b4;
	border: 1px solid #2d6aa3;
	box-shadow: 2px 4px 5px #ddd;
	border-radius: 0;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

#add-topic-form input[type="text"].error,
#add-topic-form textarea.error
{
	border: 1px solid red;
	background-color: #FFE1E1;
}

#topic-image-form input
{
	display: none;
}

#topic-gallery
{
	margin-top: 10px;
	position: relative;
	border: 1px solid #ccc;
	border-radius: 10px;
	padding: 5px;
	min-height: 152px;
	background-color: #fff;
	width: 572px;
	display: none;
}

.topic-gallery-image
{
	position: relative;
	display: inline-block;
	height: 130px;
	width: 130px;
	border: 15px solid #ccc;
	border-radius: 5px;
	margin: 5px 5px 0 5px;
	text-align: center;
	line-height: 7;
	background-color: #fff;
	background-repeat: no-repeat;
}

.topic-gallery-image .glyphicon
{
	cursor: pointer;
	display: none;
	width: 30px;
	height: 30px;
	position: absolute;
	font-size: 30px;
	right: 0;
	line-height: 1;
	margin-top: -25px;
	margin-right: -25px;
}

.topic-gallery-image .glyphicon-remove
{
	color: red;
	top: 0px;
}

.answer-form
{
	margin-top: 18px;
}

.answer-form input[type="text"],
.answer-form textarea
{
	width: 555px;
	height: 37px;
	background-color: #eee;
	border: 1px solid #e2e2e2;
	font-size: 13px;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	color: #5d5d5d;
	padding: 0 17px;
}

.answer-form input[type="submit"]
{
	display: block;
	width: 178px;
	height: 36px;
	font-size: 14px;
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	color: #fff;
	text-transform: uppercase;
	background-color: #f38c06;
	border: 1px solid #e26703;
	box-shadow: 2px 4px 5px #ddd;
	border-radius: 0;
	margin-top: 20px;
}

.answer-form textarea
{
	height: 102px;
	margin-top: 10px;
	resize: none;
	padding: 10px 17px;
}

#bar
{
	position: relative;
	width: 100%;
	height: 43px;
	border: 1px solid #e2e2e2;
}

#back
{
	float: left;
	top: 0;
	display: block;
	background: url(/images/back.png) #eee no-repeat left;
	height: 100%;
	text-align: center;
	padding: 11px 43px 11px 52px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 13px;
	color: #a5a5a5;
	text-decoration: none;
	border-right: 1px solid #e2e2e2;
}

#answer
{
	margin-top: -1px;
	position: relative;
	height: 43px;
	background: #3174b4;
	font-size: 13px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	padding: 12px 34px 12px 55px;
	float: right;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
}

#answer span
{
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	height: 43px;
	width: 43px;
	background: url('/images/plus-sign.png') no-repeat center;
}

.outer-topic.opened
{
	background-color: #eee;
	padding: 24px;
	margin-top: 30px;
	border: 1px solid #e2e2e2;
}

.outer-topic.opened .topic
{
	height: auto;
	min-height: 65px;
}

.outer-topic.opened .topic-name
{
	color: #2a2a2a;
}

.outer-topic.opened .topic-info
{
	line-height: 2.3;
}

.outer-topic.opened .topic-author
{
	margin: 0;
}

.outer-topic.opened img
{
	margin-top: 40px;
	box-shadow: 2px 4px 5px #ddd;	
}

#answers
{
	margin-top: -1px;
	padding: 20px 20px 0 20px;
	border: 1px solid #e2e2e2;
}

#answers .answer-form
{
	margin: 0;
	margin-bottom: 20px;
}

#answers .answer
{
	border-top: 1px solid #e2e2e2;
	padding: 15px 0;
	position: relative;
}

#answers .answer-info
{
	width: 100%;
	position: relative;
	margin-top: 20px;
}

#answers .answer-date
{
	position: absolute;
}