@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600,700);

/* Let's make life easy, sizes includes border and padding */
html {
  box-sizing: border-box;
	background-position: 0 0;
	background-repeat: repeat;
	background-attachment: fixed;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/*  Basic Classes and styling.
*/
html {
	font-size: 14px;
	/*  14px to go halfway between current RPoL (12px)
	and "norm" of 16px...  */
}

body {
	margin: 0 auto;
	width: 100%;
	font-weight: 400;
}

body, button, select, input {
	font-family: 'Open Sans', sans-serif;
}

input[type=text], input[type=password] {
	padding: 1px 0 1px 3px;
	max-width: 100%;	/* stop it jutting out on narrow widths */
}

input[type='radio'] {
	margin: 3px;
  vertical-align: bottom;
}

textarea {
	resize: vertical;
}

textarea#messagetext {
	height: 306px;
}

table {
	font-size: inherit;				/* Table needed otherwise Chrome assumes "medium" */
	}

a {
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 600;
}

hr {
	width: 90%;
	border: 0;
	height: 1px;
}

p {
	line-height: 1.5;
}

a.help {
	cursor: help;
}

sup, sub {
	font-size: 80%;
	line-height: 1;
  
  /*vertical-align: baseline;
  position: relative;	/* this makes them bleed through over the top of the site menu */
  /*top: -0.4em;*/
}

sub { 
  top: 0.4em; 
}

em {
	font-style: normal;
	font-weight: 600;
}

strong {
	font-style: normal;
	font-weight: 700;
}

button, .submit, input[type='submit'] {
	font-weight: 700;
	margin: 0;
	padding: 1ex 2em;
	border-width: 1px;
	border-style: solid;
	border-radius: 3px;
	cursor: pointer;
}

button.low, .submit.low, input.low[type='submit'] {
	padding: 4px 20px;
}

button.med, .submit.med, input.med[type='submit'] {
	padding: 5px 18px;
}

button.sm, .submit.sm, input.sm[type='submit'] {
	padding: 3px 14px;
}

.table {
	display: table;
	text-align: left;
}

.table.centred, .table.centered {
	margin-right: auto;
	margin-left: auto;
}

.table.tight .td, .table.tight .th {
	padding: 2px;
}

.table.tight input[type='checkbox'] {
	margin: 2px;
}

.tbody {
	display: table-row-group;
}

.tr {
	display: table-row;
}

.td, .th {
	display: table-cell;
	padding: 5px;
}

.th {
	font-weight: bold;
}

div.clearboth, .cb {
	clear: both;
}

@media print {

	nav, aside, footer, div.topthreadnav, div.bottomthreadnav, .scroll_up_down {
		display: none;
	}
	
	div.message {
		page-break-inside: avoid;
	}
	
	div.messagedetails, div.messagecontent {
		display: block;		/* Remove inline-block as it can make printing put a page break right in the middle of a LINE */
		width: 100%;
		padding: 1ex 0;
	}

}

/*  Header
across the top of the page, of course.
*/
header {
	padding: 1% 2% 2px 2%;
	/*margin-bottom: 1ex;*/
}

header h1 {
	font-size: 200%;
	letter-spacing: 0.5px;
}

header h2 {
	font-size: 120%;
}

header .time {
	margin: 0;
	padding: 0;
	font-size: 80%;
}

header em {
	font-weight: 400;
	font-style: italic;
	margin: 0 0.25em;
}

/*  Site Navigation 
(across the top of the screen)
*/
nav {
	position: sticky;
	top: 0;
	border-width: 8px 0 8px 0;
	border-style: solid;
	width: 100%;
	height: 42px;
	font-size: 85%;
	margin: 0;
}

nav ul {
	position: relative;	/* Not needed except for z-index */
	margin: 0;
	padding: 0;
	z-index: 1;	/* z-index only applies to things that are positioned (position != static) */
}

nav ul li {
	list-style: none;
	display: inline-block;
	padding: 0 0.75%;
	border-right: 1px solid rgba(66,46,44,0.5);
}

nav ul li a, nav label.mobile-dropdown {
	display: inline-block;
	padding: 0;
	font-weight: 700;
	line-height: 4ex;
	white-space: nowrap;
}

nav label.mobile-dropdown {
	display: none;
}


/*  Sidebar Navigation ("Aside")
*/
aside {
	float: right;
	width: 21%;
	width: calc(204px);	/* If the browser supports calc (which we also try to use in <section>) then we'll use it here as well */
	margin: 0 0 1ex 0;
	
	/* CSS to stick to the side */
	position: sticky;
	top: 42px;
}

aside div label.mobile-dropdown {
	background-position: center center;
	background-repeat: no-repeat;
}

aside div {
	display: block;
	font-size: 100%;
	margin: 0 0 11px 11px;
}

aside span.mobilearrow {
	display: none;
}

/** Remove the checkbox, hide on larger screens.
On smaller screens will replaced with an image **/
aside input[type='checkbox'] {
	/* display: none; -- We do this via aria-hidden now */
}

/*	This makes a huge checkbox that covers the screen, meaning anything you do unticks the box and collapses
		Thanks to http://www.felipefialho.com/css-components/#component-dropdown and https://codepen.io/arthurtw/pen/Vjpmwq */
label.dropdown-overlay {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: auto;
	height: auto;
	z-index: 1;
}

input:checked ~ label.dropdown-overlay {
  display: block;
}

aside div ul {
	list-style: none;
	margin: 0;
	padding: 15px 8% 5px 8%;
}

aside div ul li {
	border-bottom: 1px solid rgba(255,255,255,0.5);
}

aside div ul li.list-title {
	border-bottom: none;
	padding-bottom: 2px;
}

/** This is more restrictive so that it overrides the colour stylesheet, which is more restrictive.  I don't know why the selectors vary, we should standardise **/
aside div#browsesearch ul li.list-title:hover, aside div#gamenav ul li.list-title:hover, aside div#pagenav ul li.list-title:hover, aside div#idsidebar ul li.list-title:hover, aside div#notifications ul li.list-title:hover {
	background-color: transparent;
}

aside div ul li:last-child {
	border-bottom: none;
}

aside div ul li a {
	display: block;
	padding: 6px 0 7px 10px;
	font-weight: 600;
}

aside div#notifications ul li a {
	display: inline-block;
	padding: 0;
}

div#notifications ul li {
	padding: 2%;
	text-align: center;
}

section a {
	font-weight: 600;
}

#li_deleted, #li_discussion, #li_system, #li_subscriber {
	display: none;
}

.gamemenu ul {
	list-style: none;
	padding: 0;
	margin: 0 auto;
}

.gamemenu ul li {
	display: block;
	padding: 0;
	margin: 0.5ex 0;
	font-size: 90%;
	clear: both;
	line-height: 1.2;
	min-height: 42px;
}

.gamemenu ul li.heading {
	min-height: auto;
}

li.heading div.threadstate,
li.heading div.threadinfo,
li.heading div.threadflag,
li.heading div.threaddetails {
	line-height: 20px;
	font-size: 120%;
	padding-top: 0;
	padding-bottom: 0;
}

div.threadstate {
	background-image: url(/images/rpol-nomessages.png);
	background-position: center center;
	background-repeat: no-repeat;
	width: 22px;
	display: inline-block;
	margin: 0;
	vertical-align: top;
}

div.threadinfo {
	display: inline-block;
	width: 46.75%;
	width: calc(50% - 22px);	/* 22 = threadstate width */
	vertical-align: top;
}

div.threadtitle {
	font-size: 120%;
	display: inline;
	margin: 0.5ex 0;
}

.horizontal-list li {
	list-style-type: none;
	display: inline !important;
}

ul.horizontal-list {
	clear: both;
	padding: 0;
	margin: 0;
}

.horizontal-list li:after {
	content: " | ";
}

.horizontal-list li:last-child:after {
	content: "";
}

div.centre, div.center {
	text-align: center;
}

ul.right {
	float: right;
}

td.left, th.left, div.left, .left {
	text-align: left !important;
}

td.right, th.right, div.right, .right {
	text-align: right !important;
}

td.centre, th.centre, div.centre, .centre,
td.center, th.center, div.center, .center {
	text-align: center;
}

.messageheader {
	font-size: 70%;
}

.messagetitle h2 {
    font-size: 105%;
}

.messageauthor {
	font-size: 120%;
	word-wrap: break-word;
}

.messagebody {
	line-height: 1.7;
}

.messagebody img {
	max-width: 100%;
}

.check_show {
	display: none;
  xmax-height: 0;
  xoverflow: auto;
  xtransition: max-height 1s linear;

/*	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: auto;
	height: auto;
	z-index: 1;*/
}

input:checked ~ .check_show {
  display: block;
  xmax-height: 100%;
  /* overflow: hidden;
  transition: max-height 1s linear; */
}

.serif {
	font-family: georgia, serif;
	font-size: 109%;
	}

.mono {
	font-family: monospace, courier new, courier;
	font-size: 100%;
	}

.cursive {
	font-family: comic sans ms, chalkboard, 'URW Chancery L', cursive;
	}

.overflow-ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.usergenerated, .scroll {
	min-width: 20px;
	overflow: auto;
	padding: 0;
	margin: 0;
}

div.hide {
	display:inline;
}

.usergenerated th, .usergenerated td, .message_table th, .message_table td {
	border-width: 1px;
	border-style: solid;
	padding: 1px 2px 1px 2px;
	line-height: 1.4;
}

table.message_table {
	border-collapse: collapse;
	margin: 0 1px 0 0;	/* right hand border of squeezed content gets chopped without the 1px **/
	border-spacing: 0;
	overflow: auto;
}

.smart_table td, .smart_table th {
	padding: 1px 5px 1px 5px;
	}

.smart_table th.noweight {
	text-align: left;
	}

table.grid_separate {
	border-collapse: separate !important;
	}

table.grid {
	padding: 0;
	margin: 0;
	overflow: auto;
	}

.grid tr {
	text-align: center;
	height: 27px;
	padding: 0;
	}
	
.grid th, .grid td {
	text-align: center;
	width: 27px;
	min-width: 27px;
	padding: 0;
	}

.grid1 tr {
	height: 17px;
	}
	
.grid1 th, .grid1 td {
	width: 17px;
	min-width: 17px;
	line-height: 1.2;
}

/* grid2 is standard */

.grid3 tr {
	height: 37px;
}
	
.grid3 th, .grid3 td {
	width: 37px;
	min-width: 37px;
}

.grid4 tr {
	height: 47px;
}
	
.grid4 th, .grid4 td {
	width: 47px;
	min-width: 47px;
}

.grid5 tr {
	height: 57px;
}
	
.grid5 th, .grid5 td {
	width: 57px;
	min-width: 57px;
}

.border_0000, .border_0000 th, .border_0000 td {
	border-width: 0 0 0 0;
	border-style: none;
}

.border_2222 th, .border_2222 td {
	border-width: 2px 2px 2px 2px;
}

.border_3333 th, .border_3333 td {
	border-width: 3px 3px 3px 3px;
}

.systemmessage {
	display: block;
	width: 100%;
	text-align: right;
	font-style: italic;
	font-size: 70%;
	margin: 2ex 0;
	padding-top: 0.5ex;
	border-top: dotted 1px rgba(66,46,44,0.25);
}

ul.threadlinks {
	display: inline;
	margin: 0;
}

ul.threadlinks a {
	font-weight: normal;
}

.gamemenu ul.threadlinks li {
	border: 0;
	list-style: none;
	display: inline;
	padding: 0;
	margin: 0;
}

ul.threadlinks li:after {
	content: "|";
	padding: 0 2px;
}

ul.threadlinks li:first-child:before {
	content: "[";
	padding: 0;
}

ul.threadlinks li:last-child:after {
	content: "]";
	padding: 0;
}

div.threadflag {
	display: inline-block;
	width: 18px;
	padding: 0;
}

div.threaddetails {
	display: inline-block;
	font-size: 85%;
	width: 46%;
	width: calc(50% - 18px);	/* 18 = threadflag width */
	padding-top: 2px;
	/*overflow: hidden; -- causes the "cell" to shift */
	vertical-align: top;
}

div.privatetolist ul {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	}

div.privatetolist ul li {
	display: inline-block;
	margin: 0 0.5em 0 0;
	line-height: 1.6;
	}

section.gamemenu h1 {
	font-size: 130%;
	margin: 0;
	padding-bottom: 4px;
}

h1.compose {
	font-size: 120%;
	border-width: 1px 0 1px 0;
	border-style: solid;
	padding: 0.25em 0;
	margin: 0.5em 0;
}

div#threadfilter, div.gamepagenav {
	width: 100%;
	text-align: right;
	font-size: 80%;
	margin: 0 0 1ex 0;
}

div#threadfilter:before {
	/* content: "Showing groups: "; */
}

div.gamepagenav {
	clear: both;
	height: 3ex;
	padding: 0.5ex 0;
}

section.gamemenu div.gamepagenav ul {
	margin: 0;
	padding: 0;
}

section.gamemenu div.gamepagenav ul li {
	list-style-type: none;
	display: inline-block;
	padding: 0 0.15em;
	line-height: 3ex;
	border: none;
}

div.gamepagenav ul li:hover {
	background-color: transparent;
}

div.gamepagenav ul li:after {
	content: " |";
}

div.gamepagenav ul li:first-child:after,
div.gamepagenav ul li:last-child:after {
	content: "";
}

.gamemenu header div#showinggroups:before {
	content: "Showing groups: ";
}

a.button, .button_a a {
	display: inline-block;
	border-width: 1px;
	border-style: solid;
	border-radius: 3px;
	font-size: 80%;
	font-weight: 600;
	padding: 0.75ex 0.5em;
}

div.thisgamesthreads a:hover {
	border-width: 1px;
	border-style: solid;
}

.threadheader {
	padding: 2% 0 0.5ex 0;
	margin-bottom: 2%;
}

.threadheader h1 {
	display: inline-block;
	width: auto;
	font-size: 150%;
	line-height: 1.5;
}

.threadheader .threaddetails {
	float: right;
	width: auto;
	text-align: right;
}

.threadheader span {
	font-size: 80%;
	display: block;
}

.topthreadnav,
.bottomthreadnav {
	display: block;
	clear: both;
	width: 100%;
	height: 3ex;
	line-height: 3ex;
	font-size: 75%;
	text-align: right;
	margin: 1ex auto 2ex auto;
}

.topthreadnav ul,
.bottomthreadnav ul {
	margin: 0;
	padding: 0;
}

.topthreadnav ul li,
.bottomthreadnav ul li {
	list-style-type: none;
	display: inline-block;
	padding: 0 0.25em;
	line-height: 3ex;
}

.topthreadnav ul li a,
.bottomthreadnav ul li a {
	text-decoration: none;
	font-weight: 700;
}

.message {
	clear: both;
	margin-bottom: 5px;
}

.message + .message {
	padding-top: 10px;
}

.messagedetails {
	display: inline-block;
	vertical-align: top;
	width: 25%;
	max-width: calc(220px);
	font-size: 75%;
	padding: 0 2% 2ex 0;
}

.messagecontent {
	display: inline-block;
	vertical-align: top;
	width: 75%;
	min-width: calc(100% - 220px);
	padding: 1ex 1.5%;
}

.messagedetails a {
	line-height: 2;
	font-weight: 700;
}

img.portrait {
	height: 100px;
	width: 100px;
}

.portrait-thumb {
	display: block;
	height: 50px;
	width: 50px;
	overflow: hidden;
	border: 0;
	margin: 0.5ex auto 2ex auto;
	float: right;
}

a.userinserted img {
	margin: 1ex 0.75em;
	border: 0;
	max-width: 100%;
	height: auto;
	overflow: hidden;
}

.m0 {
	margin: 0;
}

.m5 {
	margin: 5px;
}

.p0 {
	padding: 0;
}

/*  Tooltips
*/
.helptip {
	height: 14px;
	width: 14px;
	background-image: url("/images/rpol-help.png");
	margin-left: 0.25em;
}

.helptip, .helphover {
	display: inline-block;
	position: relative;
}

.helptip:hover:before, .helphover:hover:before {
	border: solid;
	border-width: 6px 6px 0 6px;
	bottom: 20px;
	content: "";
	left: 50%;
	position: absolute;
	z-index: 99;
}

.helptip:hover:after, .helphover:hover:after {
	content: attr(data-tip);
	bottom: 26px;
	left: 20%;
	padding: 0.5em 1.5em;
	position: absolute;
	z-index: 98;
	width: 30em;
	white-space: pre-wrap;
}

.helptip.left:hover:before, .helphover.left:hover:before {
	text-align: center;
	left: auto;
	right: 50%;
}

.helptip.left:hover:after, .helphover.left:hover:after {
	text-align: center;
	left: auto;
	right: 40%;
}

.hovershow .hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s linear;
  transition-delay: 0.5s;
}

.hovershow:hover .hidden {
  max-height: 200px;
  transition: max-height 2s linear;
  transition-delay: 0.7s;
}

@media (pointer:coarse) {
	.hovershow .hidden, .hovershow:hover .hidden {
		transition-delay: 0s;
	}
}

/*  Footer styles.
*/

footer {
	clear: both;
	text-align: center;
	padding: 1%;
	font-size: 85%;
	margin: 0;
	min-height: 2em;
	line-height: 2em;
}

footer a {
	font-weight: 600;
	margin: 0 0.25em;
}

footer a:hover,
footer a:active {
	text-decoration: underline;
}

/* Nicked from Foundation */
.info_box {
	margin: 0 auto 0.5em auto;
	margin: 0 auto 0.5rem auto;
	padding: 0.8em;
	padding: 0.8rem;
	width: 100%;
	border-width: 1px;
	border-style: solid;
	border-radius: 0;
}

.info_table {
	border-width: 1px;
	border-style: solid;
  border-radius: 0;
  border-collapse: collapse;
  }

.info_box img, .info_table img {
	max-width: 100%;
}

.info_box > :first-child {
	margin-top: 0;
}

.info_box > :last-child {
	margin-bottom: 0;
}

div.info_box h1, .info_box h2, .info_box h3 {
/*  padding: 0.4em 0.8em;
  padding: 0.4rem 0.8rem;	/* 2nd part is the padding around headings, should match the padding for .info_box */
/*  margin: -0.8em -0.8em 0.8em -0.8em;
  margin: -0.8rem -0.8rem 0.8rem -0.8rem; /* matches -1 or 1 times padding for .info_box */
  margin: 5px 0 14px 0;
  border-bottom-style: solid;
  border-bottom-width: 2px;
}

.info_box h1 {
	font-size: 120%;
}

.info_box h2 {
	font-size: 110%;
}

.info_box h3 {
	font-size: 100%;
}

.info_box.small {
	padding-top: 0.5rem;
	padding-right: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 0.5rem;
}

.info_box.large {
	padding-top: 3rem;
	padding-right: 3rem;
	padding-bottom: 3rem;
	padding-left: 3rem;
}

.nobullets ul {
	list-style-type: none;
	margin: 0;
	padding: 0.5em 0 0.8em 0;
}

.nobullets li {
	display: inline-block;
	background-color: transparent;
	width: 90%;
	padding: 1% 3%;
}

.bb .td, .bb td, td.bb, .bb .th, .bb th, th.bb {
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

/*  MEDIA QUERIES
*/


/** This is the main collapsing bit -- MENUS **/
@media only screen and (max-width: 960px) {/* was 695, then 800 */
	html {
		/* background-color: blue !important; /* debugging */
	}

	header {
		margin-bottom: 1ex;
	}

	nav {
		float: left;
		background-color: inherit;
		padding: 0;
		height: 42px;	/* 40 + border */

		/* CSS to stick to the top */
		position: sticky;
		top: 0;
	}

	nav.one-aside {
		width: 276px;	/* 325 (next wrap point down for the menus) minus 49 */
		width: calc(100% - 49px);	/* 49 (below)  */
	}
	
	nav.two-aside {
		width: 227px;
		width: calc(100% - 98px);	/* 98 (below)  */
	}
	
	nav.three-aside {
		width: 178px;
		width: calc(100% - 147px);	/* 147 (below) */
	}
	
	nav.four-aside {
		width: 129px;
		width: calc(100% - 196px);	/* 196 (below) */
	}
	
	nav ul {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.1s linear;
	}
	
	nav > input:checked ~ ul {
		max-height: 600px;
		transition: max-height 0.3s ease-in-out;
	}
	
	nav > input:checked + label.mobile-dropdown {
		background-position: 10px center;
		background-repeat: no-repeat;
	}   
		
	nav ul li, nav label.mobile-dropdown {
		margin: 0;
		border: none;
		height: 40px;
		line-height: 40px;
		font-size: 120%;
		display: block;
	}
	
	nav label.mobile-dropdown {
		background-position: 10px center;
		background-repeat: no-repeat;
		display: block;
		padding-left: 44px;
	}
	nav ul li a {
		display: block;
		padding: 0.5ex 0 0ex 3em;
	}

	aside {
		position: static;
		height: 42px;	/* 40 + border */
		margin: 0;

		/* CSS to stick to the side */
		position: sticky;
		top: 0;
	}

	aside.one-aside {
		width: 49px;	/** 40 + 2 (border) + 7 (left margin) x 1 **/
	}
	
	aside.two-aside {
		width: 98px;	/** 40 + 2 (border) + 7 (left margin) x 2 **/
	}
	
	aside.three-aside {
		width: 147px;	/** 40 + 2 (border) + 7 (left margin) x 3 **/
	}
	
	aside.four-aside {
		width: 196px;	/** 40 + 2 (border) + 7 (left margin) x 4 **/
	}

	aside div {
		float: left;
		position: relative;
		line-height: 40px;
		height: 42px;
		margin: 0 0 0 7px;
	}

	/** Replace the standard checkbox with an image, at least a bit empty box! **/
	aside label.mobile-dropdown {
		display: block;
		width: 40px;
		height: 40px;
	}

	div.sidebar ul {
		width: 100%;
		position: absolute;
		top: 40px;
		right: -1px;
		line-height: 1.6;
	}
	
	aside div ul {
		z-index: 2;

		padding: 0 !important;	/** Stop weird borders showing, even with max-height 0 **/
		border: 0 !important;	/** Stop weird borders showing, even with max-height 0 **/
	}
	
	div.sidebar > ul {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.1s linear, width 0.1s linear;
	}

	div.sidebar > input:checked ~ ul{
		padding: 1em !important;
		max-height: 600px;
		width: 16em !important;
		transition: max-height 0.3s ease-in-out, width 0.25s ease-in-out;
	}

	div#notifications > input:checked ~ ul{
		max-height: 200px;
		transition: max-height 0.3s ease-in-out, width 0.15s ease-in-out;	/* change for notifications as they're wider than long */
	}

textarea#messagetext {
	height: 202px;
}



/* info boxes are great with this but we use the same class for other divs and that causes issues
	div.info_box {
		width: auto;
		margin-left: 2px;
		margin-right: 2px;
	} */
}

@media only screen and (max-width: 345px) { /* 420px */

	nav {
		font-size: 90%;
	}
	
	nav ul li, nav label.mobile-dropdown {
		font-size: 100%;
	}
	
	nav label.mobile-dropdown, nav input:checked label.mobile-dropdown {
		padding-left: 25px;
		background-position: 2px center;
	}
	
	nav ul li a {
		margin-left: 25px;
	}

}

@media only screen and (max-width: 325px) {/* was  */
	header h2 {
		font-size: 100%;
	}

	nav {
		font-size: 75%;
	}

	nav.one-aside {
		width: 274px;	/* 320 (mininum width we cater for) minus 46 */
		width: calc(100% - 46px);	/* 46 (below) */
	}

	nav.two-aside {
		width: 228px;
		width: calc(100% - 92px);	/* 92 (below) */
	}

	nav.three-aside {
		width: 182px;
		width: calc(100% - 138px);	/* 138 (below) */
	}

	nav.four-aside {
		width: 136px;
		width: calc(100% - 184px);	/* 184 (below) */
	}

	aside div {
		margin-left: 4px;	/* down from 7px */
	}

	aside.one-aside {
		width: 46px;	/** 40 + 2 (border) + 4 (left margin) x 1 **/
	}
	
	aside.two-aside {
		width: 92px;	/** 40 + 2 (border) + 4 (left margin) x 2 **/
	}
	
	aside.three-aside {
		width: 138px;	/** 40 + 2 (border) + 4 (left margin) x 3 **/
	}
	
	aside.four-aside {
		width: 184px;	/** 40 + 2 (border) + 4 (left margin) x 4 **/
	}
	
	aside div:hover ul {
		width: 12em;
		font-size: 90%
	}
}

@media only screen and (max-width: 319px) {/* don't really support this small but we'll fix the nav if someone is this narrow...  */
	nav.one-aside, nav.two-aside, nav.three-aside, nav.four-aside {
		width: 100%;
	}
}


/* Verical fly-out menu */
/* Verical fly-out menu */
/* Verical fly-out menu */
/* Verical fly-out menu */

#form-menu-container {
	padding: 0;
	border: none;
	position: relative;
	top: 0px;
	left: 0;
	}

#form-menu {
	padding: 0;
	border: none;
	/* width: 100%; */
	margin: 1px;
	}

#form-menu a {
	text-align: left;
	display: block;
	border-style: solid;
	border-width: 1px;
	white-space: nowrap;
	margin: 0;
	padding: 0px 1px 1px 4px;
	}

#form-menu a, #form-menu a:link, #form-menu a:visited {
	text-decoration:none;
	}

#form-menu ul {
	list-style-type: none;
	margin:0;
	padding:0;
	width: 145px;	/* default width */
	}

#form-menu li {
	position: relative;
	}

#form-menu ul ul {
	left: 0;
	top: 19px;
	position:absolute;
	z-index:200;
	display:none;
	padding: 1em;
	margin:-1em 0 0 -1em;
	width: auto;
	}

#form-menu ul ul ul {
	top:0;
	left:100%;
	}

div#form-menu li:hover {
	cursor:pointer;
	z-index:100;
	}

div#form-menu li:hover ul ul,
div#form-menu li li:hover ul ul,
div#form-menu li li li:hover ul ul,
div#form-menu li li li li:hover ul ul {
	display:none;
	}

div#form-menu li:hover ul,
div#form-menu li li:hover ul,
div#form-menu li li li:hover ul,
div#form-menu li li li li:hover ul {
	display:block;
	}

div#form-menu ul li ul li {
	width: 145px;
	}

div#form-menu ul li ul li ul li {
	width: auto;
	}

/* My scrolling technique */
#form-menu li.more ul {
	overflow: auto;
	max-height: 308px;	/* 17 x 18px */
	padding: 0;
	margin: 0;
	width: auto;
	}

@media screen { @media (min-width: 0px) {	/* Everything but IE and Safari, from browserhacks.com */
	/* For chrome and firefox to minimise the impact of the horizontal scrollbar */
	#form-menu li.more ul {
		padding-right: 17%;
		}

	#form-menu li.more ul li {
		width: 120%;
		}
	} }

/* End scrolling */

li.more:after {
	content:">";
	font-weight: bold;
	position: absolute;
	top: 1px;
	left: 132px;
	z-index:100;
	}

li.more:hover:after {
	z-index:100;
	}

/* End verical fly-out menu */
/* End verical fly-out menu */
/* End verical fly-out menu */
/* End verical fly-out menu */
/* End verical fly-out menu */


/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/
/************** Style Main Menu ************/

/*  Main Menu Page Styles
And Styles for Login and Registration
*/

section {
	float: left;
	width: 79%;
	width: calc(100% - 204px);
	padding: 0.5ex 2%;
	padding: calc(22px) calc(22px) 0.5ex calc(22px);
	margin: 0 0 1ex 0;
}

section.none-aside {
	width: 100%;
}

#mainsticky h1, 
#mainsticky h2,
#mainsticky h3 {
	clear: both;
	margin-top: 1ex;
}
#mainsticky h1 {
	font-size: 140%;
}
#mainsticky h2 {
	font-size: 125%;
}
#mainsticky h3 {
	font-size: 110%;
}
#mainsticky a {
	font-weight: 700;
}

#mainsticky > ul {
	width: 100%;
	padding: 0.5ex 0 0.5ex 0.5em;
	margin: 0;
	list-style: none;
}

#mainsticky ul li {
	display: block;
	font-size: 90%;
	line-height: 3ex;
	/* height: 3ex;*/
	clear: both;
}
#mainsticky ul li:last-child {
	border-bottom: 0;
}
#mainsticky ul div.gamename a {
	font-size: 110%;
}

#mainsticky div.gamename {
	display: inline-block;	/* Superior to float: left as now it's actually within the parent */
	margin-left: 0.5em;
  width: 63%;	/* little less than 100% - gamedetails to give a gap between [-] and gm name */
}

#mainsticky div.gamedetails {
	float: right;
	width: 35%;
	overflow: hidden;
	display: inline-block;
	margin-left: auto;
	margin-right: 0;
}

#mainsticky span.posts {
	display: inline-block;
	float: right;
	text-align: right;
}

#mainsticky span.posts:before {
	content: "Posts: ";
}

section div#legend {
	clear: both;
	font-size: 80%;
	margin: 3ex 0;
	border-top: solid 1px #422e2c;
	border-bottom: solid 1px #422e2c;
	padding: 2px 1% 2px 1%;
	padding: 2px calc(10px) 2px calc(10px);
	width: 100%;
}

section div#legend div img {
	vertical-align: middle;
}

div.thisgamesthreads {
	width: 100%;
	text-align: right;
	clear: both;
}

section div#supportrpol {
	width: 90%;
	vertical-align: middle;
	margin: 2ex auto;
	padding: 1% 2%;
	opacity: 0.9;
	text-align: center;
}

section div#supportrpol:hover,
section div#supportrpol:active {
	opacity: 1;
}

section div#supportrpol form {
	margin: 2ex 0;
	float: left;
}

section #aboutsubscriptions {
	display: inline-block;
	width: 35%;
	margin: 2ex auto;
	font-size: 80%;
}

section #aboutsocialbuttons {
	font-size: 75%;
	float: right;
	margin: 2ex 0;
}

section #supportrpol a {
	font-weight: normal;
}

/* Thread listings (game menu, private threads, rmail) */

span.notice {
	font-weight: 700;
	display: inline-block;
	text-transform: uppercase;
	font-size: 85%;
	letter-spacing: 0.4px;
}

span.notice::first-letter {
	font-size: 117.647%;
}

div.threadflag.notice span:first-child {
	background: url(/images/notice.gif) no-repeat center center;
	width: 14px;
}

div.threadflag.closed span:first-child {
	background: url(/images/light/locked.gif) no-repeat center center;
	width: 12px;
}

div.threadflag.closed.notice span:first-child {
	background: url(/images/notice.gif) no-repeat center center;
	width: 14px;
}

div.threadflag.closed.notice span:last-child {
	background: url(/images/light/locked.gif) no-repeat center center;
	width: 12px;
}

div.threadflag span {
	display: block;	display: inline-block;
	height: 18px;
	width: 16px;
	margin: 0;
}

/*  Media Queries!
*/

@media only screen and (max-width: 695px) {/* was 800 */

	#mainsticky ul li {
		font-size: 90%;
		line-height: 1.2;
		height: auto;
	}
	
	#mainsticky div.gamename {
		float: none;
		width: 98%;
		width: calc(100% - 14px);
	}
	
	#mainsticky div.gamedetails {
		float: none;
		width: 90%;
		display: block;
	}

	.messagedetails {
		display: block;
		width: 100%;
		max-width: 100%;
		clear: both;
		text-align: left;
		padding: 1ex 1%;
		height: auto;
    }

	.messagecontent {
		display: block;
		width: 100%;
		min-width: 100%;
		clear: both;
		padding: 1ex 1%;
    }
	
	.characterdetails, .characterbio {
		display: inline;
    }
    
	.charbiolines {
		display: block;
    }

	.characterdetails:before {
		content: " (";
    }

	.characterdetails:after {
		content: ")";
    }

	.message-nav {
		margin: 0.5ex auto;
		height: auto;
		clear: both;
    }
}

@media only screen and (max-width: 960px) {/* was 800 */
	#mainsticky ul {
		padding: 0.5ex 0.5ex 0.5ex 0;
	}

	section {
		width: 100%;
    padding-right: 0.5em;
    padding-left: 0.5em;
    margin: 1ex 0;
	}
	
	section div#legend div {
		margin: 1ex 0 1ex 0;
	}
}

@media only screen and (max-width: 510px) {/* was  */
	section {
		margin: 0.5ex 0;
	}
	
	#mainsticky div.gamename {
		margin-left: 0;
	}
	
	#mainsticky div.gamedetails {
		width: 96%;
	}
	
	section #aboutsubscriptions,
	section #aboutsocialbuttons {
		display: block;
		float: none;
		clear: both;
		width: 100%;
	}
}

@media only screen and (max-width: 325px) {
	section h1 {
		font-size: 130%;
	}
}

@media only screen and (max-width: 695px) {
	/*
			Here, game menu view moves to stacked cells.
	*/

	.gamemenu ul li { 
		min-height: 80px;	/* Make the "cell" big enough to encorporate everything */
	}

	.gamemenu li.heading div.threadstate,
	.gamemenu li.heading div.threadinfo,
	.gamemenu li.heading div.threadflag {
		display: none;
	}

	.gamemenu li.heading div.threaddetails {
		margin-top: auto;	/* avoid the margin set for the rest, below */
		display: block;
	}
			
	.gamemenu li.heading div.threaddetails {
		padding: 2px 0 2px 22px;
		width: 100%;
	}
 
	.gamemenu li.newmessage div.threadstate {
		background-position: top center;
	}

	.gamemenu div.threadtitle {
		font-size: 110%;	/* Smaller than over 800 */
	}
	
	.gamemenu div.threadinfo {
		width: 91%;
		width: calc(100% - 22px - 18px);
		margin: 0;
		margin-bottom: 1.3em;
	}

	.gamemenu div.threadflag {
		margin: 0;
		float: right;	/* get it out the way of the text */
	}

	.gamemenu div.threaddetails {
		width: 95%;
		width: calc(100% - 22px - 4px);	/* Extra 4 px to make sure it never juts up against the right */
		margin: 0;
		/* margin-top: 1.6em; -- moved to threadinfo margin-bottom */
		padding-left: 22px;	/* Line up with "threadinfo" (which has "threadstate" before it) */
	}

	/*  Make "for group x by <author> with xxx replies" next to "<date> by <poster> if there's enough room */
	div.threaddetails div:first-child {
		display: inline-block;
	}

	/*div.threaddetails div:nth-child(2) {
		display: inline-block;
	}*/
}


/* DICE ROLLER DICE ROLLER DICE ROLLER */
/* DICE ROLLER DICE ROLLER DICE ROLLER */
/* DICE ROLLER DICE ROLLER DICE ROLLER */
/* DICE ROLLER DICE ROLLER DICE ROLLER */
/* DICE ROLLER DICE ROLLER DICE ROLLER */
/* DICE ROLLER DICE ROLLER DICE ROLLER */
/* DICE ROLLER DICE ROLLER DICE ROLLER */

fieldset.diceroller.step {
	padding: 0.5em 1.25em 1.5em 1.25em;
	background-size: 25% auto;
	background-repeat: repeat-x;
	border-style: solid;
	border-width: 4px 4px 0 4px;
	margin-top: -14px;
	margin-bottom: 0;
}


fieldset.diceroller > legend {
	font-size: 120%;
	font-weight: 600;
}

fieldset.diceroller.step fieldset.multifield div {
	float: left;
}

fieldset.diceroller.step fieldset {
	max-width: 18em;
	display: inline-block;
	vertical-align: top;
	border-style: solid;
	border-width: 2px;
}

fieldset.diceroller.step div label {
	font-size: 80%;
}

fieldset.diceroller.step.one div label,
fieldset.diceroller.step.one div input {
	display: block;
	margin: 0 auto;
}

fieldset.diceroller.step.one select {
	width: 10ex;
	margin-right: 1ex;
}

fieldset.diceroller.step .andor {
	margin: 0;
	padding: 0;
	font-size: 120%;
	font-style: italic;
	text-align: center;
	line-height: 8ex;
	width: 3em;
	display: inline-block;
}

fieldset.diceroller.step.last {
	border-bottom-width: 4px;
}


/* STICKY LIST */
/* STICKY LIST */

div.stickylist {
	line-height: 140%;
	padding: 4px;
	text-align: left;
	}

/* GENERAL RESPONSIVE/LAYOUT CSS BELOW, NOT SPECIFIC TO CERTAIN SCREENS (LIKE A LOT OF STUFF ABOVE) */
/* GENERAL RESPONSIVE/LAYOUT CSS BELOW, NOT SPECIFIC TO CERTAIN SCREENS (LIKE A LOT OF STUFF ABOVE) */
/* GENERAL RESPONSIVE/LAYOUT CSS BELOW, NOT SPECIFIC TO CERTAIN SCREENS (LIKE A LOT OF STUFF ABOVE) */
/* GENERAL RESPONSIVE/LAYOUT CSS BELOW, NOT SPECIFIC TO CERTAIN SCREENS (LIKE A LOT OF STUFF ABOVE) */
/* GENERAL RESPONSIVE/LAYOUT CSS BELOW, NOT SPECIFIC TO CERTAIN SCREENS (LIKE A LOT OF STUFF ABOVE) */
/* GENERAL RESPONSIVE/LAYOUT CSS BELOW, NOT SPECIFIC TO CERTAIN SCREENS (LIKE A LOT OF STUFF ABOVE) */
/* GENERAL RESPONSIVE/LAYOUT CSS BELOW, NOT SPECIFIC TO CERTAIN SCREENS (LIKE A LOT OF STUFF ABOVE) */
/* GENERAL RESPONSIVE/LAYOUT CSS BELOW, NOT SPECIFIC TO CERTAIN SCREENS (LIKE A LOT OF STUFF ABOVE) */

/* Carry over from old */

.b {
	font-weight: bold;
}

.med, td.quote {
	font-size: 92%;
	font-size: 0.92rem;
	}

.sm {
	font-size: 83%;
	font-size: 0.83rem;
	}

.diceroller .sm {
	font-size: 80%;
	}

.large {
	font-size: 110%;
}

.large .large {
	font-size: 107.5%;
}

.large .large .large .large {	/* Stop compounding after 3 */
	font-size: 100%;
}

.smallcaps {
	font-variant: small-caps;
}

input.invis, .invis input {
	background-color: transparent !important;
	border-width: 0px !important;
	font-family: 'Open Sans', sans-serif;
	cursor: default;
}

/* And last; stop cascading sizes */
li li, li p, td p, blockquote p, .sm .sm, .med .med, .med .sm, .sm .med, html>body pre html>body pre, .serif .mono, .serif .cursive, .mono .serif, .mono .cursive, .cursive .serif, .cursive .mono,
tt tt, pre pre, tt pre, pre tt, html>/**/body tt tt, html>/**/body pre pre, html>/**/body tt pre, html>/**/body pre tt {
	font-size:100%;
	}

/* New */

.fw-400, .fw-400 a {
	font-weight: 400;
}

.fw-700 {
	font-weight: 700;
}

.fw-900 {
	font-weight: 900;
}

/* Responsive stuff, ideas stolen from Tachyons and others, thanks! */

.db {
   display: block;
}

.di {
   display: inline;
}

.dn {
   display: none;
}

.dib {
   display: inline-block;
}

.fl {
	float: left;
}

.fr {
	float: right;
}

.fn {
	float: none;
}

.fs-120 {
	font-size: 120%;
}

.fs-140 {
	font-size: 140%;
}

.vat, .vat .td, .vat .th {	/* Extras because it doesn't flow down otherwise... */
	vertical-align: top;
}

.vac, .vac .td, .vac .th {	/* Extras because it doesn't flow down otherwise... */
	vertical-align: middle;
}

.vab, .vab .td, .vab .th {	/* Extras because it doesn't flow down otherwise... */
	vertical-align: bottom;
}

.tac {
  text-align: center; 
}

.tal {
  text-align: left; 
}

.tar {
  text-align: right; 
}

.w-auto {
	width: auto;
}

.w-10 {
	width:10%;
}

.w-15 {
	width: 15%;
}

.w-20 {
	width: 20%;
}

.w-25 {
	width: 25%;
}

.w-30 {
	width: 30%;
}

.w-33 {
	width: 33.333%;
	width: calc(100% / 3);
}

.w-35 {
	width: 35%;
}

.w-40 {
	width: 40%;
}

.w-45 {
	width: 45%;
}

.w-48 {
	width: 48%;
}

.w-49 {
	width: 49%;
}

.w-50 {
	width: 50%;
}

.w-55 {
	width: 55%;
}

.w-60 {
	width: 60%;
}

.w-66 {
	width: 66.667%;
	width: calc(100% / 1.5);
}

.w-70 {
	width: 70%;
}

.w-75 {
	width: 75%;
}

.w-80 {
	width: 80%;
}

.w-85 {
	width: 85%;
}

.w-95 {
	width: 95%;
}

.w-100 {
	width: 100%;
}
/* Trays are normally to the side and we set them to a percentage that's a bare minimum at our small wrap point - 695px */
/* So for those that can handle it (calc), we'll set the width to actually be the percentage times our wrap point */
.w-15.tray {
	width: calc(695px * .15);
}

.w-20.tray {
	width: calc(695px * .20);
}

.w-25.tray {
	width: calc(695px * .25);
}

.w-30.tray {
	width: calc(695px * .30);
}

.w-33.tray {
	width: calc(695px * 1 / 3);
}

.w-40.tray {
	width: calc(695px * .40);
}

.w-50.tray {
	width: calc(695px * .50);
}

.w-66.remainder {
	width: calc(100% - (695px * 1 / 3));
}

.w-70.remainder {
	width: calc(100% - (695px * .30));
}

.w-75.remainder {
	width: calc(100% - (695px * .25));
}

.m-w-850 {
	max-width: 850px;
}

.m-w-600 {
	max-width: 600px;
}

div.m-a, .m-a {
	margin: auto;
}

.m-0, .m-0 input {
	margin: 0;
}

.m-2, .m-2 input {
	margin: 2px;
}

.m-10 {
	margin: 10px;
}

.mb-0 {
	margin-bottom: 0px;
}

.ml-1em {
	margin-left: 1em;
}

.pad-side-3em {
	padding-right: 3em;
	padding-left: 3em;
}

.pr-08rem {
	padding-right: 0.8em;
	padding-right: 0.8rem;
}

.pb-08rem {
	padding-bottom: 0.8em;
	padding-bottom: 0.8rem;
}

.pl-08rem {
	padding-left: 0.8em;
	padding-left: 0.8rem;
}

.pt-5px, .pt-5px td, .pt-5px th {
	padding-top: 5px;
}

.scroll_up_down {
	float: right;
	z-index: 999;
 	margin-right: 7px;
}

.scroll_up_down.sticky {
	position: sticky;
}

.scroll_up_down.top {
	margin-top: 6px;
}

.scroll_up_down.sticky.bottom {
	bottom: 0px;
	margin-top: -66px;
}

.scroll_up_down img {
	opacity: 0.4;
	height: 12px;
	width: 14px;
}

@media only screen and (max-width: 960px) {/* was 800 */

  .w-100-m {
    width: 100%;
  }

	.w-33-m {
		width: 33.333%;
		width: calc(100% / 3);
	}

	.dn-m {
		display: none;
	}

	.db-m {
		 display: block;
	}

	.dib-m {
		 display: inline-block;
	}

	.di-m {
		 display: inline;
	}

	.ml-12-m {
		margin-left: 12%;
	}

	.scroll_up_down.sticky.top {
		top: 48px;
		margin: 0;
	}

	.scroll_up_down.sticky.bottom {
		margin-top: -48px;
	}

	.scroll_up_down img {
		height: 18px;
		width: 21px;
	}
}

@media only screen and (max-width: 695px) {/* was  */

  .cb-s {
    clear: both;
  }
  
	.dn-s {
		display: none;
	}

	.db-s {
		 display: block;
	}

	.dib-s {
		 display: inline-block;
	}

	.di-s {
		 display: inline;
	}

	.fn-s {
		float: initial;
	}

	.fr-s {
		float: right;
	}

	.fl-s {
		float: left;
	}

  .tar-s, div.tar-s {
    text-align: left;
  }
  
  .w-auto-s {
    width: auto;
  }
  
  .w-10-s {
    width: 10%;
  }

  .w-15-s {
    width: 15%;
  }

	.w-15-s.tray {
		width: calc(695px * .15);
	}

  .w-20-s {
    width: 20%;
  }

  .w-25-s {
    width: 25%;
  }

  .w-30-s {
    width: 30%;
  }

  .w-40-s {
    width: 40%;
  }

  .w-45-s {
    width: 45%;
  }

  .w-50-s {
    width: 50%;
  }

  .w-100-s {
    width: 100%;
  }
  
  .w-20-s.tray {
    width: calc(695px * .20);
  }
	
	div.m-a-s, .m-a-s {
		margin: auto;
	}

	.sm-s {
		font-size: 83%;
	}

	.pr-0-s {
 		padding-right: 0;
 	}

}

@media only screen and (min-width: 961px) {/* was 801 */

	.dib-l {
		 display: inline-block;
	}

	.dn-l {
		display: none;
	}

	.fs-120-l {
		font-size: 120%;
	}

	.fs-140-l {
		font-size: 140%;
	}

	.fl-l {
		float: left
	}

	.fr-l {
		float: right;
	}

	.fn-l {
		float: none;
	}

  .tal-l {
    text-align: left;
  }

  .tar-l {
    text-align: right;
  }

  .w-20-l {
    width: 20%;
  }

  .w-25-l {
    width: 25%;
  }

  .w-30-l {
    width: 30%;
  }

  .w-33-l {
    width: 33.333%;
    width: calc(100% / 3);
  }

  .w-40-l {
    width: 40%;
  }

  .w-49-l {
    width: 49%;
  }
  
  .w-50-l {
    width: 50%;
  }

  .w-60-l {
    width: 60%;
  }

  .w-66-l {
    width: 66.667%;
    width: calc(100% / 1.5);
  }

  .w-70-l {
    width: 70%;
  }
  
  /* Trays are normally to the side and we set them to a percentage that's a bare minimum at our small wrap point - 695px */
  /* So for those that can handle it (calc), we'll set the width to actually be the percentage times our wrap point */
  .w-20-l.tray {
    width: calc(695px * .20);
  }

  .w-25-l.tray {
    width: calc(695px * .25);
  }

  .w-33-l.tray {
    width: calc(695px * 1 / 3);
  }

  .w-30-l.tray {
    width: calc(695px * .30);
  }

  .w-40-l.tray {
    width: calc(695px * .40);
  }

  .w-50-l.tray {
    width: calc(695px * .50);
  }
}

.toggle_buttons input[type=radio] {
	display: none;
}

.toggle_buttons label {
	display: inline-block;
	padding: 2px 4px 3px 4px;
	margin-bottom: 1px;
	cursor: pointer;
	border-width: 1px 0 1px 0;
	border-style: solid;
}

.toggle_buttons label:hover {
	transition: 0.2s linear;
}

.toggle_buttons label.off:hover {
	transition: 0.2s linear;
}

.toggle_buttons label.neg:hover {
	transition: 0.2s linear;
}

.toggle_buttons input[type=radio]:checked + label {
	transition: 0.2s linear;
}

.toggle_buttons input[type=radio]:checked + label.off {
}

.toggle_buttons input[type=radio]:checked + label.neg {
}

.toggle_buttons label:first-of-type {
	border-width: 1px 0 1px 1px;
	border-radius: 4px 0 0 4px;
}

.toggle_buttons label:last-of-type {
	border-width: 1px 1px 1px 0;
	border-radius: 0 4px 4px 0;
}

.toggle_buttons label:only-child {
	border-radius: 4px;
	border-width: 1px;
}