/**
 * Some style elements borrowed from the QWebIRC project
 * http://qwebirc.org/
 */
BODY {
        background: #75513B;
	font-family: Roboto, Tahoma, sans-serif;
        font-size: 16px;
        margin: 0;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3                            menu bar                            *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
.menu {
	border-bottom: 1px solid #C3D2E0;
	margin-top: 0;p
	margin-bottom: 0;
	padding: 4px;
	background: #F0F7FF;
}
    .navlinksmenu {
    display: Flex;
    gap: 5px;
    flex-flow: row wrap;
}

@media screen and (max-width: 640px) {
    .navlinksmenu {
        justify-content: center;
    }
}

a.tab, a.tab:visited {
	color:#000000;
	text-decoration:none;
}
a.tab:hover, a.tab:active, .tab-selected {
	color:#000000;
	background-color:#EEF2FF;
	text-decoration:none;
}
.tab, .tab-selected, .tframe, #tips {
	border-bottom: 1px solid #0003;
	cursor:default;
	padding:2px;
}
.tframe {
    border: 1px solid #0003;
    margin: 4px;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3                        secondary bars                          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
.sbar {
	display:flex;
	gap:5px;
	border-bottom: 1px solid #C3D2E0;
	margin-top: 0;
	margin-bottom: 16px;
	padding: 4px;
	background: #CEDFF0;
	text-align: left;

}
.sfoot {
	border-top: 1px solid #C3D2E0;
	margin-top: 0;
	margin-bottom: 0;
	padding: 4px;
	background: #CEDFF0;
	text-align: right;
	display:flex;
	gap:5px;
}
.navside {
        background: #e8ebed;
        border-radius: 5px;
        border: 6px groove #c41e3a;
        border-image: repeating-linear-gradient(45deg, #c41e3a 0 5px, #ffffff 5px 10px) 1 !important;
        color: green;
	text-align:center;
	padding:4px;
	font-size:85%;
	margin-bottom:5px;
}
.lazy{
	background:none repeat scroll 0 0 #CEDFF0;
	padding:4px;
	border:1px solid #C3D2E0;
	margin:5px;
}
.navtop, .maintop {
	font-size:110%;
	border-bottom:0 none;
	margin:0 0 2px 0; /* top right bottom left */
	padding:2px 10px;
	position:relative;
	left:0;
	width:auto;
}
.navtop {
	top:7px;
}
.maintop {
	top:0;
	margin-top:5px;
	margin-bottom:5px;
}
#tips, #blotter1, #blotter2 {
	margin-right:16px;
	margin-left:16px;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3                  things common to all pages                    *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
H1 A {
	color: black;
}
A, A:hover, A:active, A:visited {
	color: #2860AD;
}
H3 {
	text-align: center;
	margin: 0;
}
THEAD {
	font-weight: bold;
}
TD {
	vertical-align: top;
	text-align: center;
}
CODE {
	background: #DEDEDE;
	font-size: 0.8em;
}
#subtitle {
	width: 256px;
	font-size: 0.75em;
	margin: -16px auto auto;
	text-align: center;
	border: 1px solid black;
	border-top: none;
	background: #DDD;
}

TABLE.zebra {border-spacing: 0; border: 2px solid #C3D2E0;}
TABLE.zebra TD, TABLE.zebra TH {vertical-align: middle; padding: 4px;}
TABLE.zebra THEAD TD, TABLE.zebra THEAD TH {border-bottom: 2px solid #C3D2E0;}
TABLE.zebra TFOOT TD, TABLE.zebra TFOOT TH {border-top: 2px solid #C3D2E0;}
TABLE.zebra TR TD {border-bottom: 1px solid #C3D2E0;}
TABLE.zebra TR:nth-child(odd) {background: #CEDFF0;}
TABLE.zebra TR:nth-child(even) {background: #F0F7FF;}

INPUT, TEXTAREA, button {
	border:1px solid #C8D1DB;
	cursor:default;
	margin-right:2px;
	padding:2px;
}

INPUT:hover, button:hover, TEXTAREA:hover {
	background-color:#FFFFFF;
	text-decoration:none;
}

FOOTER {
	clear: both;
	padding: 8px;
	font-size: 0.7em;
	text-align: right;
	border-top: 1px solid #C3D2E0;
	background: #E3EFFA;
}

A {text-decoration: none;}
A:hover {text-decoration: underline;}

BLOCKQUOTE {
	border: 1px solid #C3D2E0;
	padding: 8px;
	background: #E3EFFA;
}

UL {
	text-align: left;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*             the navigation bar, and all its blocks             *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

NAV {
	width: 200px;
	float: left;
	text-align: center;
	margin-left: 16px;
}
NAV .blockbody {
	font-size: 0.85em;
	text-align: center;
}
NAV TABLE {
	width: 190px;
}
NAV TD {
	vertical-align: middle;
}
NAV INPUT, nav button {
	width: 95%;
	padding: 0;
}
NAV SELECT {
	width: 100%;
	padding: 0;
}

#comments P {
	text-align: left;
	width: 150px;
	max-width: 150px;
	overflow: hidden;
}
.comment {
	text-align: left;
}

TABLE.tag_list {
	border-collapse: collapse;
}
TABLE.tag_list>THEAD {
	display: none;
}
TABLE.tag_list>TBODY>TR>TD {
	display: inline;
	padding: 0;
	line-height: 1em;
}
TABLE.tag_list>TBODY>TR>TD:after {
	content: " ";
}

.more:after {
	content: " >>>";
}

.tag_count:before {
	content: "(";
}
.tag_count:after {
	content: ")";
}

.paginator {
	clear: none;
	padding: 4px;
	border-right: 1px solid #C3D2E0;
	border-left: 1px solid #C3D2E0;
}
.paginator A {
	color: #000;
	border:1px solid #C8D1DB;
	cursor:default;
	margin-right:2px;
	padding:2px;
}
.paginator A:hover {
	background-color:#FFFFFF;
	text-decoration:none;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                 the main part of each page                     *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

ARTICLE {
	margin-left: 226px;
	margin-right: 16px;
	text-align:center;
	height: 1%;
}
ARTICLE.body_noleft {
	margin-left: 4px;
	margin-right: 16px;
	margin-bottom:16px;
	padding-left:4px;
	padding-right:4px;
	text-align: left;
	height: 1%;
}
ARTICLE TABLE {
    width: 100% !important;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                     specific page types                        *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#pagelist {
	margin-top: 32px;
}

/*.rr {text-align: left; background: #E3EFFA; margin: 8px;}
.rrtop     {background: url("circle-tl.png") no-repeat top left;}
.rrtop div {background: url("circle-tr.png") no-repeat top right;}
.rrbot     {background: url("circle-bl.png") no-repeat bottom left;}
.rrbot div {background: url("circle-br.png") no-repeat bottom right;}
.rrtop, .rrtop div, .rrbot, .rrbot div {height: 8px; width: 100%;}
.rrcontent {margin: 0px 8px; text-align: left;}

.hrr {text-align: left; background: #C3D2E0; margin: 8px;}
.hrrtop     {background: url("circle-tl.png") no-repeat top left;}
.hrrtop div {background: url("circle-tr.png") no-repeat top right;}
.hrrbot     {background: url("circle-bl.png") no-repeat bottom left;}
.hrrbot div {background: url("circle-br.png") no-repeat bottom right;}
.hrrtop, .hrrtop div, .hrrbot, .hrrbot div {height: 8px; width: 100%;}
.hrrcontent {margin: 0px 8px;}*/

.setupblock {
	text-align: center;
	width: 350px;
}
.setupblock TEXTAREA {
	width: 300px;
	font-size: 0.75em;
}

.helpable {
	border-bottom: 1px dashed gray;
}

.ok {
	background: #AFA;
}
.bad {
	background: #FAA;
}

NAV .thumbblock {
	float: none;
	height: auto;
}
NAV .thumb {
	margin-bottom: 0;
}
.thumbblock {
	width: 220px;
	height: 220px;
	display: inline-block;
	float: left;
}
.thumb {
	display: inline-block;
	text-align: center;
	margin-bottom: 32px;
	min-width: 50px !important;
}

.tooltip{
   position:absolute;
   top:0;
   left:0;
   z-index:3;
   display:none;
}


/* TAG HISTORY */
.taghist-first,
.taghist-first a{
  color: grey;
}

.taghist-added,
a.taghist-added {
  color: green;
}

.taghist-removed,
a.taghist-removed {
  color: red;
}

.taghist-created,
a.taghist-created {
  color: blue; 
}


.taghist-vandal {
  background-color: #f0d3ce;
}

/* MISC */

#front-page > .litecustom-logo  {
  margin: 20px;
}

a.tab[href='/popular_images']{
  display: none;
}

/* Hide mini upload form */
#Uploadleft {display: none;}

.menu-logo {
	display: flex;
}

.menu-logo img {
  top: 3px;
  position: relative;
}

.menu-logo b {
  margin-left: 5px;
}

.menu-logo,
.menu-logo:visited,
.menu-logo:active,
.menu-logo:hover {
    font-size: 25pt;
    align-items: center;
    color: black !important;
    text-decoration: none !important;
}

#Write_a_PMmain table.form {
	width: 100% !important;
}

.sfoot span.tab {
  display: none;
}

@media screen and (max-width: 640px) {

  /* Hide site-specific sidebar items */
  #Featured_Postleft,
  #Uploadleft,
  #Popular_Tagsleft,
  #Tagsleft,
  #Related_Tagsleft,
  #Link_to_Postmain,
  /*#Post_Controlsleft,*/
  /*#Post_Scoreleft,*/
  #Bulk_Actionsleft {
    display: none;
  }

  /* Clean-up sidebar and nav margins */
  nav {
    float: none;
    margin: 0 10px 10px 10px;
    width: auto;

  }

  article {
    margin: 0px 10px;
    text-align: center;
  }

  .navtop, .maintop {
    width: auto;
  }
  
  .tab {
    margin: 0;
    margin-bottom: 10px;
  }
  
  .navtop: {
    top: 15px;
  }
  
  .navside {
    text-align: center;
  }

  .sfoot,
  .sbar {
    text-align: center;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;`
  }

  .sbar .tab {
    margin-bottom: 0;
  }

  /* Nicer image gallery */
  .thumb {
    width: 47%;
  }

  .thumb img,
  #main_image
  {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* Comments displaying off screen fix */
  .comment .info {
    top: 100%;
    left: 0;
    width: auto;
  }

  .navlinksmenu .tab {
    margin-bottom: 0px;
  }

  /* Header logo */
  .menu-logo {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
  }

  .menu-logo img {
    top: -2px;
  }

  .menu-logo b {
    font-size: 18px;
  }

  /* Fix table widths */
  article table,
  #Signupmain table.form, 
  #Operationsmain table.form,
  table.zebra,
  #Write_a_PMmain table.form {
    width: auto; 
  }

  /* Fix table widths where styles set in HTML */
  #Write_a_PMmain table,
  #IPsmain table {
    width: 100% !important; 
  }

  /* PM list */
  table.zebra {
    word-wrap: break-word;
    table-layout: fixed;
  }

  /* Prevent overflow */
  pre {
     word-wrap: break-word;
     white-space: pre-wrap;
  }

  /* Comment list page */
  .comment_list_table .thumb {
    margin-bottom: 10px;
    width: auto;
  }

  .comment_list_table td {
    width: 50% !important;  
    text-align: center;
  }

  .comment_list .tframe {
    width: 100%;
  }

  .comment_list > div > a.thumb {
    margin-bottom: 0px;
  }

  /* Image page */
  .image_info td {
    width: auto;
  }
}

/*
 * Wiki styles
 */

.wiki-page h1 {
  padding: 0.5rem 0 1rem;
  font-size: 2.4em;
}

.wiki-page h2 {
  padding: 1rem 0 0.25rem;
  font-size: 2.0em;
}

.wiki-page h3 {
  padding: 1rem 0 0.25rem;
  font-size: 1.6em;
}

.wiki-page h4 {
  padding: 0.75rem 0 0.25rem;
  font-size: 1.2em;
}

.wiki-page hr {
  margin-top: 20px;
  color: white;
  background-color: white;
}

.wiki-page h1 + br + hr {
  margin: 5px 0;
}

.wiki-page h2 + br + hr {
  margin: 5px 0;
}

.wiki-page {
  line-height: 1.2;
}

.wiki-page ul {
  line-height: 1.5;
}

.wiki-page img {
  padding: 10px;
  border-radius: 6px;
}

.wiki-page .float {
  border: 2px solid #cedff0;
  border-radius: 6px;
}

.wiki-page table {
  border-collapse: collapse;
}

.wiki-page table tr:nth-child(odd) {
  background-color: #cedff0;
}

pre {
  padding: 5px;
  background: #cedff0;
  font-family: monospace;
}


.wiki-page table td,
.wiki-page table th {
  padding: 0.5rem 0.25rem 0.25rem;
}

.bb-thumb {
    display: inline-block;
    vertical-align: top;
    padding: 10px;
}

.bb-thumb img {
    width: 100%;
    height: auto;
    padding: 0!important;
}

.table tr th:after,
.table tr td:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.inline,
.inline * {
    display: inline;
    white-space: normal;
    max-width: 271px;
    max-height: 192px;
}

.inline img {
    display: block;
    white-space: normal;
    max-width: 271px;
    max-height: 192px;
    width: auto;
    height: auto;
}



.float.left {
    float: left;
}

.float.right {
    float: right;
}

.float {
    margin: 10px;
}

hr {
   margin: 10px 0;
}

#Setupmain .blockbody {
	background: none;
	border: none;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

a.classadmin[href^="/user/custard"] {
    font-weight:bold;
    color: #fffd78 !important;
}

a.classadmin[href^="/user/BBQ"] {
    font-weight:bold;
    color: #581C04 !important;
}

a.classmoderator[href^="/user/Warrior-Z"] {
    font-weight:bold;
    color: black !important;
}
a.classmoderator[href^="/user/Warrior-Z"]:after {
    font-weight:bold;
    color: red !important;
    content:' (KEEP TAKING LZZZ)';
}

a.classapprover[href^="/user/jimbo"] {
    font-weight:bold;
    color: #733400 !important;
}

a.classapprover[href^="/user/jimbo"]:after {
    font-weight:bold;
    color: #10852f !important;
    content: ' (brraaap!)';
}

.classadmin {
    font-weight:bold;
    color: red !important;
}

.classblocked {
    text-decoration: line-through;
    color: grey !important;
}

.classblocked:after {
    color: grey !important;
    content: ' (BANNED!)';
}

.classmoderator {
    font-weight:bold;
    color: purple !important;
}

.classjanitor {
    font-weight:bold;
    color: #F1C40F !important;
}

.classapprover {
    font-weight:bold;
    color: #E67E22 !important;
}

.classtrusted {
    color: #1400ff !important;
}
