body.noscroll
{
	overflow: hidden;
}

main
{
	display:flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;

	padding-top:7em;
}

#mark-read
{
	width: 100%;
	text-align: right;
}

#arborescence
{
	width: 80vw;

	font-weight: bold;

	padding-left:1em;
	padding-top:0.5em;
	padding-bottom:0.5em;

	border-radius: 0.5em;

	box-shadow: 5px 5px 15px grey;
}

#arborescence a
{
	text-decoration: none;
	color: #2f3e6e;
	transition: all 0.3s;
}

#arborescence a:hover
{
	color: #b0942e;
}

#arborescence span[itemprop="itemListElement"]
{
	padding-right:0.4em;
}

#arborescence span[itemprop="itemListElement"]::after
{
	color: #2f3e6e;
	content: " • ";
	padding-left:0.4em;
}

h1
{
	padding:0;
	margin:0;

	font-size: 1.8em;
	width:80vw;
	text-align: left;

	padding-top:1em;
	padding-left: 1em;
	padding-bottom: 0.5em;
}

h1 a
{
	color: #383e51;
	text-decoration: none;
	font-weight: bold;

	transition: all 0.3s;
}

h1 a:hover
{
	color: #b0942e;
}

#categories
{
	width:80vw;

	display:flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
}

.category
{
	background-color: white;

	border-radius: 0.5em;

	margin-bottom: 1em;

	box-shadow: 5px 5px 15px grey;
}

.header
{
	background-color: #383e51;
	color:white;

	display:flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;

	border-top-left-radius: 0.5em;
	border-top-right-radius: 0.5em;

	transition: all 0.3s;
}

.header h2
{
	font-size: 1.2em;
	font-weight: normal;
	padding:0;
	margin:0;

	padding-top:0.5em;
	padding-bottom: 0.5em;
}

.category .header h2, #subsections .header h2
{
	width:65%;
}

.header h2 a
{
	color: white;
	text-decoration: none;
	transition: all 0.3s;

	padding-left: 1em;
}

.header h2 a:hover
{
	color: #b0942e;
}

.header .counter_info
{
	font-size: 0.9em;
	width: 6.67%;
	text-align: center;
}

.header .lm_info
{
	font-size: 0.9em;
	width: 15%;
	text-align: center;
}

#subsections
{
	width:80vw;

	background-color: white;

	display:flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;

	border-radius: 0.5em;

	box-shadow: 5px 5px 15px grey;

	margin-bottom:2em;
}

.section
{
	display:flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: stretch;

	border-bottom: solid;
	border-bottom-width: 2px;
	border-color: #ced1de;

	background-color: white;

	transition: all 0.3s;
}

.section:last-child
{
	border-bottom: none;
}

.section:hover
{
	background-color: #f0f1f5;
}

.section .main
{
	display:flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;

	width:65%;
	text-align: left;
	min-height: 3.35em;

	border-right: solid;
	border-right-width: thin;
	border-color: #ced1de;
}

.section .main div.icon
{
	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	padding-left: 1em;

	fill: #383e51;
}

.section .main svg.icon
{
	margin:0;
	width:1.8em;
	height:1.8em;
}

.section .main .image
{
	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	padding-left: 1em;
}

.section .main .image img
{
	max-width: 4em;
	max-height: 4em;
}

.section .main .content
{
	display:flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;

	padding-top: 0.5em;
	padding-bottom: 0.5em;
	padding-left: 1em;
}

.section .main .content .subsections
{
	margin:0;
	padding:0;
	list-style-type: none;

	font-size: 0.9em;
}

.section .main .content .subsections li
{
	display: inline;
	padding-right:0.25em;
}

.subsection-icon
{
	display: inline;
	width: 1rem;
	margin-right: 0.3rem;
}

.section a
{
	color: #383e51;
	text-decoration: none;
	font-weight: bold;

	transition: all 0.3s;
}

.section a:hover
{
	color: #b0942e;
}

.section .counter
{
	width:6.67%;

	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	border-right: solid;
	border-right-width: thin;
	border-color: #ced1de;
}

.section .lm
{
	width:15%;
	text-align: center;

	font-size: 0.8em;

	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	padding-bottom: 0.2em;
	padding-top: 0.2em;
}

.section.unread svg.icon
{
	fill: #b0942e;
}

.section .subsections li.unread a
{
	color: #b0942e;
}

/*.section .subsections li a::before
{
	content: "•";
	color: #383e51;
	padding-right:0.25em;
}*/

.section .lm.unread .name
{
	color: #b0942e;
}

#topics, #announces
{
	width:80vw;

	background-color: white;

	display:flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;

	border-radius: 0.5em;

	box-shadow: 5px 5px 15px grey;

	margin-bottom:1em;
}

#announces
{
	margin-bottom: 1em;
}

#topics .header h2, #announces .header h2
{
	width: 78.33%;
}

.topic
{
	display:flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: stretch;

	border-bottom: solid;
	border-bottom-width: 2px;
	border-color: #ced1de;

	background-color: white;

	transition: all 0.3s;
}

.topic:last-child
{
	border-bottom: none;
}

.topic:hover
{
	background-color: #f0f1f5;
}

.topic .main
{
	display:flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;

	width:78.33%;
	text-align: left;

	border-right: solid;
	border-right-width: thin;
	border-color: #ced1de;
}

.topic .main div.icon
{
	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	padding-left: 1em;

	fill: #383e51;
}

.topic .main svg.icon
{
	margin:0;
	width:1.8em;
	height:1.8em;
}

.topic .main .content
{
	display:flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;

	padding-top: 0.5em;
	padding-bottom: 0.5em;
	padding-left: 1em;
}

.topic_section
{
	font-size: 0.8em;
}

.topic .main .content .topic_pages
{
	margin:0;
	padding:0;
	list-style-type: none;

	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;

	font-size: 0.9em;
}

.topic .main .content .topic_pages li
{
	padding-right:0.5em;
}

.topic a
{
	color: #383e51;
	text-decoration: none;
	font-weight: bold;

	transition: all 0.3s;
}

.topic a:hover
{
	color: #b0942e;
}

.topic .counter
{
	width:6.67%;

	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	border-right: solid;
	border-right-width: thin;
	border-color: #ced1de;
}

.topic .lm
{
	width:15%;
	text-align: center;

	font-size: 0.8em;

	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	padding-bottom: 0.2em;
	padding-top: 0.2em;
}

.topic.unread svg.icon
{
	fill: #b0942e;
}

.topic .subsections li.unread a
{
	color: #b0942e;
}

.topic .lm.unread .name
{
	color: #b0942e;
}

.messages
{
	width:80vw;

	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
}

.message
{
	width:100%;

	display:flex;
	flex-direction: row;
	justify-content: center;
	align-items: stretch;

	box-shadow: 5px 5px 15px grey;

	margin-bottom: 1em;

	background-color: white;
}

.message a
{
	color: #383e51;
	text-decoration: none;

	transition: all 0.2s;
}

.message a:hover
{
	color: #b0942e;
}

.message .author
{
	width:20%;

	display:flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;

	font-weight: bold;

	padding-top: 0.5em;

	transition: all 0.3s;
}

.message .author.admin a
{
	color: rgb(200, 0, 0);
}

.message .author.admin a:hover
{
	color: #b0942e;
}

.message .author.supporter a
{
	color: #a232a8;
}

.message .author.supporter a:hover
{
	color: #3283a8;
}

.message .author > .avatar
{
	width:80%;
	margin:0.5em;
	transition: all 0.2s;
}

.message .author > .avatar:hover
{
	transform: scale(1.05);
}

.message .author > .avatar > img
{
	width:100%;
}

.message .author svg.avatar
{
	width: 100%;
	fill: #383e51;
	background-color: #f0f1f5;
}

.message .body
{
	width:80%;

	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;

	border-left: solid;
	border-width: thin;
	border-color: lightgrey;
}

.message .info
{
	display:flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;

	border-bottom: solid;
	border-width: thin;
	border-color: lightgrey;

	transition: all 0.3s;
}

/*.message .info:hover
{
	background-color: #f0f1f5;
}*/

.message .post_info
{
	padding-top: 0.3em;
	padding-bottom: 0.3em;
	padding-left: 0.5em;
}

.message .score_info
{
	display:flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	font-weight: bold;

	padding-right: 0.5em;
	padding-left: 0.5em;

	border-left: solid;
	border-width: thin;
	border-color: lightgrey;
}

.message .title
{
	font-size: 0.9em;
}

.message.unread .title a
{
	color: #b0942e;
}

.message .date
{
	font-size: 0.8em;
}

.message .content
{
	flex-grow: 1;

	padding:1em;

	font-size: 1rem;

	overflow-wrap: break-word;
}

.message .content h2, .message .content h3
{
	display: inline;
	margin:0;
	font-weight: inherit;
	font-size: inherit;
}

.message .content ul
{
	margin:0;
}

gk-quote
{
	display: block;
	border:solid;
	border-width: thin;
	border-color: #93b4bd;
	background-color: #dae3e6;

	box-shadow: 2px 2px 5px grey;
}

gk-quote-header
{
	display: block;
	background-color: #93b4bd;

	padding-bottom: 0.3rem;
	padding-top: 0.3rem;
	padding-left: 0.5rem;
}

gk-quote-content
{
	display: block;
	padding: 0.5rem;
}

gk-spoiler {
	display: block;
}

gk-spoiler-header
{
	display: block;
	color: #0e5fab;
	user-select: none;
}

gk-spoiler-content {
	display: block;
}

gk-spoiler-header:hover
{
	text-decoration: underline;
	cursor: pointer;
}

gk-spoiler[shown="0"] > gk-spoiler-header::after
{
	content: " [+]";
}

gk-spoiler[shown="1"] > gk-spoiler-header::after
{
	content: " [-]";
}

gk-spoiler[shown="0"] > gk-spoiler-content
{
	display: none;
}

gk-spoiler[shown="1"] > gk-spoiler-content
{
	display: block;
}

gk-code
{
	display: block;

	font-family: "Lucida Console", "Ubuntu Mono", "Calibri", "Carlito", "Arial";
	font-size: 0.85rem;
	padding: 1rem;

	border-radius: 0.5rem;

	color: #aaaaaa;
	background-color: #161617;
	text-decoration: none;
	font-weight: normal;

	box-shadow: 2px 2px 5px grey;
}

gk-div
{
	display:block;
}

.message .content .iframe-container
{
	max-width: 60%;
}

.message .content .iframe-container div
{
	position: relative;
	height: 0;
	padding-bottom: 56.25%;
}

.message .content .iframe-container div iframe
{
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

gk-secret
{
	display: block;
	border:solid;
	border-width: thin;
	border-color: #bd6666;
	background-color: #e3bfbf;

	box-shadow: 2px 2px 5px #c77b7b;
}

gk-secret-header
{
	display: block;
	background-color: #bd6666;
	font-weight: bold;

	padding-bottom: 0.3rem;
	padding-top: 0.3rem;
	padding-left: 0.5rem;
}

gk-secret-content
{
	display: block;
	padding: 0.5rem;
}

.message .content img
{
	max-width: 100%;
}

.message .content a
{
	color: #0e5fab;
}

.message .content a:hover
{
	text-decoration: underline;
}

gk-hr
{
	display: block;
	border-bottom: solid 1px;
	border-color: rgb(200,200,200);
}

.options
{
	display:flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: stretch;

	padding-top: 0.5em;
	padding-bottom: 0.5em;
	padding-right: 0.5em;
}

.message .button
{
	color: white;
}

.message .button:hover
{
	color: white;
}

.pages
{
	width: 80vw;

	text-align: right;

	list-style-type: none;

	padding:0;
	margin:0;

	margin-bottom: 0.5em;
}

.pages li
{
	padding:0;
	margin:0;

	display: inline;

	margin-left:0.5em;
}

.pages a
{
	text-decoration: none;
	color: #383e51;
}

.pages a:hover
{
	color: #b0942e;
}

#page_top_button
{
	position: fixed;
	width: 5vw;
	height: 5vw;
	right: 2vw;
	bottom: 10vh;

	transition: opacity 0.5s;
}

#page_top_button:hover
{
	opacity: 0.7;
	cursor: pointer;
}
