
CODE {
	background: #DEDEDE;
	font-size: 0.8em;
}
BLOCKQUOTE {
	border: 1px solid black;
	padding: 8px;
	background: #DDD;
}
.anchor A.alink {
	visibility: hidden;
}
.anchor:hover A.alink {
	visibility: visible;
}


.comment {
	text-align: left;
	position: relative;
	word-wrap: break-word;
}
.comment IMG {
	max-width: 100%;
}
.comment .info {
	visibility: hidden;
	text-align: center;
	padding: 8px;
	background: #DDD;
	border: 1px solid #CCC;
	position: absolute;
	top: 0;
	left: -195px;
	width: 180px;
	z-index: 1;
	box-shadow: 0 0 4px #000;
	border-radius: 4px;
}
.comment:hover .info {
	visibility: visible;
}

.comment_add TEXTAREA {
	width: 100%;
}
.comment_add INPUT {
	width: 100%;
}

#comment-list-list .blockbody,
#comment-list-recent .blockbody,
#comment-list-image .blockbody,
#comment-list-user .blockbody {
	background: none;
	border: none;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

.command_example {
	margin: 12pt;
	padding-left: 16pt;
}

.command_example pre {
	padding:4pt;
	border: dashed 2px black;
}

.command_example p {
	padding-left: 16pt;
}

/*noinspection CssRedundantUnit*/
#image-list .blockbody {
	background: none;
	border: none;
	box-shadow: none;
	margin: 0px;
	padding: 0px;
	text-align: justify;
}

.setupblocks {
	column-width: 400px;
	-moz-column-width: 400px;
	-webkit-column-width: 400px;
	max-width: 1200px;
	margin: auto;
}
.setupblocks > .setupblock:first-of-type { margin-top: 0; }

.setupblock {
	break-inside: avoid;
	-moz-break-inside: avoid;
	-webkit-break-inside: avoid;
	column-break-inside: avoid;
	-moz-column-break-inside: avoid;
	-webkit-column-break-inside: avoid;
	text-align: center;
	width: 90%;
}
.setupblock TEXTAREA {
	width: 100%;
	font-size: 0.75em;
	resize: vertical;
}

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

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

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


ARTICLE SELECT {width: 150px;}
INPUT, TEXTAREA {box-sizing: border-box;}
TD>INPUT[type="button"],
TD>INPUT[type="submit"],
TD>INPUT[type="text"],
TD>INPUT[type="password"],
TD>INPUT[type="email"],
TD>SELECT,
TD>TEXTAREA,
TD>BUTTON {width: 100%;}

TABLE.form {width: 300px;}
TABLE.form TD, TABLE.form TH {vertical-align: middle;}
TABLE.form TBODY TD {text-align: left;}
TABLE.form TBODY TH {text-align: right; padding-right: 4px; width: 1%; white-space: nowrap;}
TABLE.form TD + TH {padding-left: 8px;}

*[onclick],
H3[class~="shm-toggler"],
.sortable TH {
	cursor: pointer;
}
IMG {border: none;}
FORM {margin: 0;}
IMG.lazy {display: none;}

#flash {
	background: #FF7;
	display: block;
	padding: 8px;
	margin: 8px;
	border: 1px solid #882;
}

#installer {
	background: #EEE;
	font-family: "Arial", sans-serif;
	font-size: 14px;
	width: 512px;
	margin: 16px auto auto;
	border: 1px solid black;
	border-radius: 16px;
}
#installer P {
	padding: 5px;
}
#installer A {
	text-decoration: none;
}
#installer A:hover {
	text-decoration: underline;
}
#installer H1, #installer H3 {
	background: #DDD;
	text-align: center;
	margin: 0;
	padding: 2px;
}
#installer H1 {
	border-radius: 16px 16px 0 0;
}
#installer H3 {
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}
#installer TH {
	text-align: right;
}
#installer INPUT,
#installer SELECT {
	width: 100%;
	box-sizing: border-box;
}

/* Only need to change the file/url inputs */
#large_upload_form INPUT.wid {
	width: 100%;
}
#radio_button {
	width: auto;
}
#wrapper {
    opacity: 0.4;
    filter: alpha(opacity=40); /* msie */
}

/* This is needed since the theme style.css forcibly sets vertical align to "top". */
TABLE.vert TD, TABLE.vert TH {vertical-align: middle;}
.mini_upload INPUT {
	width: 100%;
}


.js .image_info .edit {
	display: none;
}
.js .image_info .view {
	display: block;
}

.no-js .image_info .edit {
	display: block;
}
.no-js .image_info .view {
	display: none;
}


.admin {
	padding: 4px;
	border-radius: 4px;
	background: green;
	margin: 6px;
	width: 200px;
	display: inline-block;
}
.admin.protected {
	background: red;
}
.admin INPUT[type="submit"] {
	width: 100%;
}
.admin.protected INPUT[type="submit"] {
	width: 90%;
}


#Navigationleft .blockbody { overflow: visible; }

.tagit { background: white !important; border: 1px solid grey !important; cursor: text; }
.tagit-choice { cursor: initial; }
input[name=search] ~ input[type=submit] { display: inline-block !important; }

.tag-negative { background: #ff8080 !important; }
.tag-positive { background: #40bf40 !important; }
.tag-metatag   { background: #eaa338 !important; }

#downtime #message, #downtime #login {
	text-align: center;
}
#downtime H3 {
	margin-top: 32px;
}
#downtime #login_table {
	margin: auto;
}


div#front-page h1 {font-size: 4em; margin-top: 2em; margin-bottom: 0; text-align: center; border: none; background: none; box-shadow: none; -webkit-box-shadow: none; -moz-box-shadow: none;}
div#front-page {text-align:center;}
.space {margin-bottom: 1em;}
div#front-page div#links a {margin: 0 0.5em;}
div#front-page li {list-style-type: none; margin: 0;}
@media (max-width: 800px) {
	div#front-page h1 {font-size: 3em; margin-top: 0.5em; margin-bottom: 0.5em;}
	#counter {display: none;}
}

div#front-page > #search > form { margin: 0 auto; }
div#front-page > #search > form > ul { width: 225px; vertical-align: middle; display: inline-block; }
div#front-page > #search > form > input[type=submit]{ padding: 4px 6px; }

.tagcategoryblock {
	margin:0.6rem 1rem 0.6rem 0;
	padding:0.5rem 0.6rem 0.7rem;
	width:18rem;
	border:1px solid #AAAAAA;
	border-radius:0.25rem;
	display:inline-block;
}
.tagcategoryblock table {
	width:100%;
	border-spacing:0;
}
.tagcategoryblock input, .tagcategoryblock span {
	width:100%;
	height:100%;
}
.tagcategoryblock td:first-child {
	padding:0.3rem 0.7rem 0.4rem 0;
	text-align:right;
	width:40%;
}
.tagcategoryblock td:last-child {
	width:60%;
}
.tagcategoryblock td:last-child span {
	padding:0.24rem 0.7rem 0.5rem 0;
	display:block;
}
.tagcategoryblock button {
	width:100%;
	margin-top:0.4rem;
	padding:0.2rem 0.6rem;
}

/* 
    *--- TABLE OF CONTENTS ---*

        1- Global CSS.
        2- Frontpage CSS.
        3- Header's CSS
        3- Postlist's CSS.
        4- Left Navbar's CSS.
        5- Footer CSS.
        6- Pages' CSS.
        7- Stylings.
        8- Mobile CSS.
    
   *-------------------------*
*/

/* 1- Global CSS. */
/*----------------*/

@font-face {
    font-family: "PrStart";
    src: url("../../../themes/oceanfalls/fonts/prstart.ttf");
}
@font-face {
    font-family: "PrStartK";
    src: url("../../../themes/oceanfalls/fonts/prstartk.ttf");
}
* {    font-family: monospace, "Courier 10 Pitch";    }

body {
    padding: 0px;
    margin: 0px;
    overflow-y: scroll;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%), url("../../../themes/oceanfalls/bg_default.png");
    background-attachment: fixed ;
    background-color: #000000 ;
    color: white;
    overflow-x: hidden;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    font-size-adjust: none;
    font-stretch: normal;
    line-height: normal;
    -x-system-font: none;

    /* --- THE GRID LAYOUT FIX --- */
    display: grid;
    /* This perfectly matches your 15% Nav and 85% Article split */
    grid-template-columns: 15% 85%; 
    /* Top row fits header, middle row stretches to push footer down, bottom row fits footer */
    grid-template-rows: auto 1fr auto; 
    min-height: 100vh;
}

/* Scrollbar Style */
::-webkit-scrollbar              {    width: 12px;    height: 12px;    }
::-webkit-scrollbar-track         {    border: 1px solid #fff17c;    border-radius: 0px;    }
::-webkit-scrollbar-thumb         {    background: #374f77;    border-radius: 0px;    }
::-webkit-scrollbar-thumb:hover {    background: #374f77;    }

/* System Messages */
#flash{
    border: none;
    margin: 1rem 0;
    padding: 1rem;
    text-align: center;
    color: #fff17c;
    background: rgb(0,0,0);
    background: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(22,47,72,1) 46%, rgba(0,0,0,0) 100%) ;
    width: 100%;
}

/* General Article Style */
ARTICLE {
    grid-column: 2 / 3; /* Locks to the right column */
    grid-row: 2; /* Locks to the middle row */
    padding-left: 1rem;
    min-width: 0; /* Prevents large images from breaking the grid width */
    box-sizing: border-box;
}
ARTICLE section + section {
    margin-top: 0.3rem;
    margin-left: 0.05rem;
}

/* Pages Without Left Nav */
#body_noleft {
    grid-column: 1 / 3; /* Spans across both columns if no nav is present */
    padding-left: 0.5rem;
}

/* Image Page */
.shm-main-image, #main_image{
    max-width: 99.7% !important;
}
#Imagemain > div.blockbody{
    text-align: left;
}
#main > div{
    margin-top: 10px;
}

/* Small Tags */
small{
    font-size: 12px;
}

/* Hides Some Header's Links */
header .menu a.tab[href*="/sys"]{
    display: none;
}

/* Hides Small Title on Some Pages */
#Imagesmain .maintop, #Uploadmain .maintop{
    display: none;
}

/* For all pages */
div.maintop.navside.tab.shm-toggler{
    text-align: left;
    border-bottom: 1px solid #fff17c;
    padding-bottom: 0.5rem;
}
div.maintop.navside.tab.shm-toggler::before{
    content: "> ";
}

/* 2- Frontpage CSS. */
/*----------------*/
#front-page{    margin: auto;    }

/*Front Page's title text*/
#front-page h1 a::after{
    content: "Fanart Booru";
    font-family: 'PrStart', monospace;
    text-transform: uppercase;
    color: white;
    transition: all 0.25s ease; 
    font-size: 2rem;
    font-weight: 300;
}
#front-page h1 a span{
    display: none;
}
#front-page h1 a::before{
    content: url("../../../themes/oceanfalls/logo.png");
    display: block;
}
#front-page h1 a:hover{
    text-decoration: none ;
    color: white;
    transition: all 0.25s ease; 
}
#front-page h1{
    padding-bottom: 5vh;
}

/* Front Page's Links */
#links > a:nth-child(4){
    display: none;
}

/* 2- Header CSS. */
/*----------------*/

header{
    grid-column: 1 / 3; /* Spans across both grid columns */
    grid-row: 1; /* Locks to the top row */
    width: 100%;
    background-color: black;
    margin-bottom: 1rem;
    font-weight: bold;
}
/*Moon icon's positioning on top menu*/
.menu a img{ 
    position: relative;
    top: 10px ;
}
header .menu{
    background: linear-gradient( to bottom, #172f49 25%, #112438 25% 50%, #0c1826 50% 75%, #070e16 75% );
    text-align: center;
    background-color: #172F49;
    border-bottom: 1px solid #fff17c;
    padding: 0.4rem 0.6rem;
}
header .sbar{
    border-bottom: 1px solid #fff17c;
    padding: 5px;
    text-align: center;
}
header .menu b{
    font-size: 16px;
    font-weight: 300;
    font-family: 'PrStart', monospace;
    text-transform: uppercase;
    color: white;
    display: block;
    padding: 1rem;
}
header .tab-selected{
    text-decoration: underline !important;
}
header .tab + .tab, header .tab + .tab-selected, header .tab-selected + .tab{
    padding-left: 20px;
}
header .menu a{
    color: white;
}
header .menu a:hover{
    color: #fff17c;
}
header .menu .tab-selected{
    color: #fff17c;
}

/* 3- Postlist CSS. */
/*------------------*/

.maintop{
    font-size: 16px;
    text-align: center;
    font-family: "PrStart", courier;
    font-weight: 300;
    margin-bottom: 1rem;
}

/* Image Thumbnails */
.thumb img {
    border: 1px solid #172F49 ;
}
.thumb {
    display: inline-block;
    text-align: center;
    margin-bottom: 8px;
}
.blockbody{
    text-align: center;
}
.shm-image-list {
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px 0 10px;
}   

/* Pagination */
div#paginator {
    display: block;
    clear: both;
    padding: 2em 0 1em;
    text-align:center;
    font-weight:bold;
}
.paginator {
    font-family: "PrStart", courier;
    font-weight: 300;
    font-size: 16px;
    word-spacing: 6px;
    padding-bottom: 10px;
}
div#paginator b {
    margin: 3px;
    padding: 4px 8px;
}
div#paginator a {
    margin: 3px;
    padding: 4px 8px;
    border: 1px solid #EEEEEE;
}
div#paginator a:hover {
    border: 1px solid #fff17c;
    background: blue none repeat scroll 0 0;
    color: white;
    -moz-background-clip: border;
    -moz-background-inline-policy: continuous;
    -moz-background-origin: padding;
}

/* General Link Style */
a:link, a:visited {
    color: #fff17c;
    text-decoration: none;
}
a:hover {
    text-decoration: underline ;
}
a:active, .tab-selected {
    color: #fff17c ;
    text-decoration: underline ;
}

/* 4- Leftnav CSS. */
/*------------------*/

NAV {    
    grid-column: 1 / 2; /* Locks nav to the left column */
    grid-row: 2; /* Locks to the middle row */
    display: flex;
    margin-left: 0.5rem;
    flex-direction: column;
    flex-wrap: nowrap;
    box-sizing: border-box;
}
NAV section {
    padding: 5px;
    background-color: #172f49;
    box-shadow: 0 0 0 2pt #1f3f61;
    width: 100%;    
    box-sizing: border-box;
}
NAV .navtop{
    color: white;
    font-family: 'PrStart' ;
    text-transform: uppercase;
    font-weight: 300 ;
    padding: 5px;
    font-size: 16px;
    padding-bottom: 5px;
    position: relative;
    margin: 0;
    line-height: 1.2;
}
NAV .navtop:after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 30px;
    background: #fff17c;
    height: 2px;
}
NAV section .navtop{
    margin-bottom: 5px;
}
NAV section + section {
    margin-top: 1rem;
}
NAV section:last-child {
    margin-bottom: 1rem;
}
NAV table {
    width: 15rem;
}
NAV td {
    vertical-align: middle;
}
NAV h3 {
    text-align: left;
}
NAV #Uploadleft {    
    display: none;
}
NAV #Commentsleft .tframe{
    padding: 0 0.2rem 0 0.2rem;
}
NAV #Commentsleft > div:nth-child(2) > div:nth-child(5){    
    margin-bottom: 10px;
}
NAV #Commentsleft .more{
    padding-top: 0.2rem;
}
NAV #Commentsleft .more::before, #Popular_Tagsleft > div:nth-child(2) > a:before{
    content: "> View ";
}
NAV #Popular_Tagsleft > div:nth-child(2) > a{
    margin-left: -5px;
}
NAV #Commentsleft .comment{
    border-bottom: 1px solid white;
}
NAV #Popular_Tagsleft > div:nth-child(2) > table{
    margin-bottom: 0.5rem;
}
NAV #Popular_Tagsleft > div:nth-child(2) > br{
    display: none;
}
NAV #Navigationleft > div:nth-child(2){
    text-align: center;
}
.navside .comment{
    padding: 0.2rem 0 0.2rem 0;
}
.navside .comment .username{
    font-weight: bold;
}

/* Left Nav Tag List */
#refine_Searchleft table,
#Popular_Tagsleft table{
    border-collapse: collapse;
    border: 3px solid #0c1826;
    border-color: #0c1826;
}
#refine_Searchleft table thead,
#Popular_Tagsleft table thead{
    font-style: italic;
    border: 5px solid #0c1826;
    background-color: #172f49;
}
.tag_count_cell{
    padding-right: 5px;
}
.tag_list.sortable {
    margin-top: 10px;
    text-align: left;
    background-color: #0c1826;
    width: 100%;
}
.tag_count {
    display:inline-block;
    color: white;
    margin-left: 0px;
    padding-left: 0px;
}
.tag_count_cell {
    text-align: right;
}
.tag_info_link_cell{
    display: none;
}
.tag_name_cell a{
    font-weight: bold;
}
.tag_name_cell a:hover{
    text-decoration: underline ;
}

/* Search Styling */
NAV input {
    padding: 5px;
    width: 100%;
    font-weight: bold;
    color: black;
    box-sizing: border-box;
}
.tag-positive {
    background: #172f49 ;
    color: #fff17c ;
}
.ui-state-default .ui-icon {
    filter: drop-shadow(0px 0px 0 white) drop-shadow(0px 1px 0 white) drop-shadow(1px 0px 0 white) drop-shadow(-1px -1px 0 white);
    -webkit-filter: drop-shadow(0px 0px 0 white) drop-shadow(0px 1px 0 white) drop-shadow(1px 0px 0 white) drop-shadow(-1px -1px 0 white);    
}
#Navigationleft ul.tagit{
    margin-top: 0px;
    margin-bottom: 5px;
    padding: 10px;
}
ul.tagit li {
    display: block;
    float: none;
    margin: 0px;
}
#Navigationleft form ul li span{
    line-break: anywhere;
}
#Navigationleft .tagit-new{
    width: 100%;
    padding: 0px;
    margin: 0px;
}
#Navigationleft form ul li input{
    width: 100%;
    padding: 0px;
    margin: 0px;
}
.tagit, .tagit-new, form ul li input{
    background-color: #070e16 !important;
    border: none !important;
    background-image: none !important;
    color: white !important;
}

/* Styling Inputted Tags */
#Navigationleft .tagit-label{
    color: white;
}
#Navigationleft .tagit-choice{
    border: 1px solid #1f3f61;
    border-radius: 0;
}
.tag-negative, .tag-positive, .tag-metatag { 
    background: #172f49 !important;
}
.tag-negative {    color: #ff8080 !important; }
.tag-positive {    color: #172f49 !important;    }
.tag-metatag  { color: #eaa338 !important; }

/* 5- Footer CSS. */
/*----------------*/

FOOTER {
    grid-column: 1 / 3; /* Spans across both grid columns */
    grid-row: 3; /* Locks to the bottom row */
    width: 100%;
    font-size: 12px ;
    padding: 30px 0;
    color: white;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    border-top: 1px solid #fff17c;
    background-color: #172F49;
    background: linear-gradient( to bottom, #172f49 25%, #112438 25% 50%, #0c1826 50% 75%, #070e16 75% );
    box-sizing: border-box;
}
FOOTER a{
    color: #FFD972;
}
FOOTER a:hover {
    color: #ffffff;
}

/* 6- Pages' CSS - Uploadpage. */
/*-----------------------------*/

#Uploadmain{
    margin-bottom: 0.5rem;
}
#Uploadmain .blockbody{
    text-align: left;
}
#Uploadmain form{
    padding-top: 1rem;
}
#Uploadmain small{
    margin-left: 225px;
    font-style: italic;
    color: grey;
}
#Uploadmain::before {
    color: #ff7c7c;
    margin: 0.1rem;
    content: "Guidelines - Please avoid NSFW imagery, suggestive shipping material, and overt gore.";
}
#Uploadmain .blockbody::before {
    color: #fff17c;
    margin: 0.1rem;
    content: "Please be mindful with what is uploaded!";
}

/* 6- Pages' CSS - Accountpage. */
/*-----------------------------*/

#Statsmain > div.maintop.navside.tab.shm-toggler, 
#IPsmain > div.maintop.navside.tab.shm-toggler,
#Optionsmain > div.maintop.navside.tab.shm-toggler, 
#Statsmain > div.blockbody, 
#IPsmain > div.blockbody , 
#Optionsmain > div.blockbody{
    text-align: left;
}
#Statsmain > div.maintop.navside.tab.shm-toggler:hover, 
#IPsmain > div.maintop.navside.tab.shm-toggler:hover,
#Optionsmain > div.maintop.navside.tab.shm-toggler:hover {
    text-decoration: underline; 
    color: #fff17c;
}
#ip-history{
    width: auto ;
}
#Statsmain > div.blockbody,
#IPsmain > div.blockbody,
#Optionsmain > div.blockbody {
    margin-top: -10px;
}
#Optionsmain div.blockbody form table thead tr th {
    padding-bottom: 20px;
    padding-top: 20px;
    font-size: 16px;
    font-family: "PrStart", courier;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
}
#Optionsmain div.blockbody form + form {
    border-top: 1px solid #fff17c;
}
#Statsmain > div.blockbody, 
#IPsmain > div.blockbody , 
#Optionsmain > div.blockbody{
    margin-bottom: 15px;
}

/* 6- Pages' CSS - Commentspage. */
/*-----------------------------*/

.comment_list_table .tframe {
    padding-top: 10px;
}
.comment_list_table img{
    margin: 5px;
}
#comments p {
    overflow: hidden;
    text-align: left;
}
.comment .meta {
    width: 15rem;
    color: gray;
}
.comment TD {
    text-align: left;
}
.comment .username {
    font-weight: bold;
    font-size: 1.1em;
    word-spacing: 3px;
}
.comment .info {
    background: black;
}
.tframe .comment_add{
    width: 35vw;
}
#Documentationmain > div.blockbody > div{
    text-align: left;
    margin: 0px ;
    width: auto ;
}
body > header > div.sbar > a.tab[href*="/ext_doc/comment"]{
    display: none;
}

/* 6- Pages' CSS - Helppage. */
/*-----------------------------*/

#Generalmain > div.blockbody,
#Mediamain > div.blockbody,
#Commentsmain > div.blockbody,
#Usersmain > div.blockbody,
#Favoritesmain > div.blockbody,
#Tag_Categoriesmain > div.blockbody{
    text-align: left;
    padding: 0px;
    margin: 0px;
}
.command_example{
    padding-left: 10px ;
}
.command_example pre, .command_example p {
    padding: 0px ;
    margin: 0px ;
}
.command_example pre{
    border: none;
    color: #fff17c;
}
#Software_Licensesmain > div.blockbody,
#GPLv2main > div.blockbody,
#MITmain > div.blockbody,
#WTFPLmain > div.blockbody{
    margin: 0px;
    padding: 0px;
    text-align: left;
}

/* 6- Pages' CSS - Tagspage. */
/*-----------------------------*/

#update > tr:hover{
    background: #0c1826;
}
#Aliasesmain > div.blockbody > table, #Aliasesmain table.zebra td {
    margin: 0;
    padding: 0px ;
    border: 1px dotted #172f49;
}
#read > tr:nth-child(1) > th:nth-child(3){
    color: #fff17c;
}
#Bulk_Uploadmain > div.blockbody > form{
    margin: 10px;
}
#Documentationmain > div.maintop.navside.tab.shm-toggler{
    margin-bottom: 0px;
}

/* 6- Pages' CSS - Systempage. */
/*-----------------------------*/

#Setupmain > div.blockbody > form > div{
    max-width: 100% ;
}
#Setupmain > div.maintop.navside.tab.shm-toggler{
    margin: 0px;
}
#Setupmain .setupblocks .tframe .setupblock{
    text-align: left ;
}
.setupblock, .tagcategoryblock {
    margin: 0.6rem 1rem 0.6rem 0 ;
    padding: 0.5rem 0.6rem 0.7rem ;
    border: 1px solid #172f49 ;
    display: inline-block ;
    width: 95% ;
}
.setupblock TEXTAREA {
    font-size: 14px ;
    width: 50% ;
}
#extensions tbody tr td{
    margin: 0;
    padding: 0px ;
    border: 1px dotted #172f49 ;
}
#extensions tbody tr:hover{
    background: #0c1826 ;
}
#update tr td, #read tr td{
    padding: 0px ;
    border: 1px dotted #172f49 ;
}

/* 6- Pages' CSS - Imagepage. */
/*-----------------------------*/

#Imagemain > div.maintop.navside.tab.shm-toggler{
    margin-bottom: 0.3rem;
}
.image_info.form {
    padding: 5px;
    background-color: #172f49;
    box-shadow: 0 0 0 2pt #1f3f61;
    width: 50%;
}
#Link_to_Imagemain > div.blockbody{
    margin-bottom: 1rem;
}
#Commentsmain.comment_add INPUT{
    width: 50% ;
}
#main > div > form > table{
    width: 50% ;
}
#Commentsmain .comment{
    padding: 10px 0 10px 0;
}
#Commentsmain form::before{
    content: "Join the discussion by commenting below.";
    color: grey;
    font-style: italic;
}
#Commentsmain textarea, .comment textarea{
    border-style: solid;
    border-width: 5px;
    border-color: #374f77;
    box-shadow: 0 0 0 3px white;
    background-color: #000;
    padding: 5px;
    margin: 15px 5px 15px 5px;
    color: white;
    resize: none;
}
form input[type=submit], input[type=button]{
    color: #fff17c;
    background-color: #1f3f61;
    border: none;
    padding: 5px;
}
#Commentsmain input[type=submit]{    
    margin-left: 5px;
}

/*7- Special CSS. */
/*----------------*/

/* Adds Style for "Nights" Tag */
a.tag_name[href*="artist%3Anights"] {
    font-weight: bold;
    color: #fff17c !important;
    background-color: #172F49;
    padding-right: 2px;
    padding-left: 4px;
    padding-top: 2px;
}
a.tag_name[href*="artist%3Anights"]::before {
    background-image: url("../../../themes/oceanfalls/moon.png");
    background-size: 0.6em 0.6em;
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    margin-right: 4px;
}

/* Adds Color for Unique Tags */
a.tag_name[href*="character%3Afive"]    {    color: #530864 !important;    }
a.tag_name[href*="character%3Anino"]    {    color: green !important;    }
a.tag_name[href*="character%3Asis"]        {    color: #ffbb00 !important;    }
a.tag_name[href*="character%3Ameimona"] {    color: #359aff !important;    }
a.tag_name[href*="character%3Akaji"]    {    color: #00cdfc !important;    }
a.tag_name[href*="character%3Acorona"]    {    color: #56ce56 !important;    }
a.tag_name[href*="character%3Aaria"]    {    color: #985fc2 !important;    }
a.tag_name[href*="character%3Akotori"]    {    color: #c60010 !important;    }
a.tag_name[href*="character%3Areed"]    {    color: #893C41 !important;    }
a.tag_name[href*="character%3Asolis"]    {    color: #ff712b !important;    }
a.tag_name[href*="character%3Alune"]    {    color: #6830a5 !important;    }
a.tag_name[href*="character%3Aludwig"]    {    color: #808080 !important;    }
a.tag_name[href*="character%3Aselene"]    {    color: #ff6ba8 !important;    }
a.tag_name[href*="character%3Aboyf"]    {    color: #5a767d !important;    }
a.tag_name[href*="character%3Asuvi"]    {    color: red !important;        }
a.tag_name[href*="character%3Aqueen"]    {    color: #E2B92C !important;    }
a.tag_name[href*="character%3Anpc"]        {    color: #a4a4a4 !important;    }
a.tag_name[href*="character%3Acleu"],
a.tag_name[href*="character%3Anile"]    {    color: #73BA7E !important;    }
a.tag_name[href*="character%3Aruit"],
a.tag_name[href*="character%3Aruta"]    {    color: blue !important;        }

/* Adds Decoration for Unique Tags */
a.tag_name[href*="character%3Aruit"]::before, 
a.tag_name[href*="character%3Aruta"]::before     {    content: "♦️";    margin-right: 4px;    }
a.tag_name[href*="character%3Asuvi"]::before    {    content: "♠️";    margin-right: 4px;    }
a.tag_name[href*="character%3Acleu"]::before,
a.tag_name[href*="character%3Anile"]::before    {    content: "♣";    margin-right: 4px;    }
a.tag_name[href*="character%3Aqueen"]::before    {    content: "♥";    margin-right: 4px;    }

/*8- Mobile CSS. */
/*---------------*/

@media screen and (max-width: 1200px) {
    body {
        /* Mobile fallback - Flexbox works great here since it's a single column! */
        display: flex; 
        flex-direction: column; 
        min-height: 100vh;
    }
    header{
        order: 1;
    }
    body > article{
        order: 2;
    }
    nav{
        order: 3;
    }
    footer{
        order: 4;
        margin-top: auto; /* Sticky footer works perfectly in a flex-direction: column layout */
    }
    header{
        margin-bottom: 0.5rem;
    }
    nav {
        width: 100vw;
        margin: 0px;
    }
    NAV section{
        padding: 5px 0 5px 0;
        width: 98vw;
    }
    body > article{
        width: 100%;
        margin: 0px;
        padding-left: 0px;
    }
    NAV .navside.tab{
        margin: 5px;
    }
    article section + section{
        margin: 0px ;
        padding: 0px ;
    }
    .blockbody, #Commentsmain.comment_add INPUT {
        width: 100% ;
        text-align: center ;
        display: inline-block ;
    }
    #Imagemain > div.blockbody, #main > div > form > table{
        width: 100% ;
        text-align: center;
    }
    #main_image{
        width: 100% ;
    }
    #Generalmain .blockbody .tframe,
    #Mediamain .blockbody .tframe,
    #Commentsmain .blockbody .tframe,
    #Usersmain .blockbody .tframe,
    #Favoritesmain .blockbody .tframe,
    #Tag_Categoriesmain .blockbody .tframe{
        padding-left: 5px;
    }
    .tframe .comment_add {
        width: 90%;
    }
    #main > div {
        margin-bottom: 10px;
    }
    #counter {
        display: inline-block;
    }
    #main div form table tbody tr td div{
        max-width: 70vw !important;
    }
}
