/* AGENT_SHEET */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("pixiv.net") {

._new-feature.inline,
section.item .popular-tags {
display: none !important;
}

/* Opacity fix for AutoPager */
body .ui-scroll-view[data-filter*="lazy-image"] {
opacity: 1 !important;
}


/* Clear */

* {

color: #EEE !important; 
background-color: transparent !important; 
border-color: transparent !important;
}

*::before, *::after {
color: #DDD !important;
border-color: #758B90 !important;
}

/* :: base :: */
html,
body,
body > .images {
background: #2D3334 !important;
}

/* :: link :: */
a,
.unit-title a,
a.self,
.ui-anchor {
color: #CADAE7 !important;
}

a:hover,
.ui-anchor:hover {
color: #FFFF00 !important;
}

a * {
color: inherit !important;
}

/* :: highlight :: */
::-moz-selection {
background: #852161 !important;
color: #FFF !important;
}

/* :::: Textarea, option styling :::: */

/* Text Input */

input[type="text"], 
input[type="password"], 
textarea,
input[name="word"],
#ptp_custom_en, #ptp_custom_ja /* <- P. trans plus */{
  color: #EEE !important;
  outline: 1px solid #888 !important;
  background: #2E2F37 !important;
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
}

/* Select */
select {
background: #333 !important;
-moz-appearance: none !important;
}

#embed-select[disabled],
#embed-input[disabled] {
opacity: .5 !important;
}

/* Fake Select element */

.selectbox, .selectbox ul {
background-color: #2E2F37 !important;
}

.selectbox li.current,
.selectbox ul li:hover {
background-color: #316AC5 !important;
}

/* :::: Button Styling :::: */

/*======= button link =======*/

/* upload button */
input[type="file"] > input[type="button"] {

-webkit-appearance: none !important;
-moz-appearance: none !important;
background: none #222 !important; 
color: #FFF !important;
font-weight: bold !important;
border: 1px solid #333 !important;
border-radius: 4px !important;
margin-left: 4px !important;
}

input[type="file"] > input[type="button"]:hover {
background: #316AC5 !important;
}

/* Real Button */

input[type="button"], 
input[type="submit"]:not(.sprites-search),

/* button link */

._button,
._button-large,
.submit-container .submit,
.submit-container .cancel,
.follow,
.request-mypixiv,
.following,
.mypixiv,
.questionnaire input,
.create-group-settings input[type="submit"] {

background: -webkit-linear-gradient(#637F66,#333) #555 !important;
background: -moz-linear-gradient(#637F66,#333) #555 !important;
color: #DDD !important;
text-indent: 0 !important;
text-shadow: none !important;
font-weight: bold !important;
border: 1px #222 solid !important;
border-radius: 5px !important;
-webkit-appearance: none !important;
-moz-appearance: none !important;
}

/*hover*/

input[type="button"]:hover, 
input[type="submit"]:not(.sprites-search):hover,

._button:hover,
._button-large:hover,
.submit-container .submit:hover,
.submit-container .cancel:hover,
.follow:hover,
.request-mypixiv:hover,
.following:hover, 
.mypixiv:hover,
.questionnaire input:hover,
.create-group-settings input[type="submit"]:hover{

background: -webkit-linear-gradient(#878754,#4A4A4A) #4A4A4A !important;
background: -moz-linear-gradient(#878754,#4A4A4A) #4A4A4A !important;
color:#FFF !important;
border-color: #370F0F !important;
}

.ui-search input.submit {
text-indent: -999px !important;
}

/* :::: Containers :::: */

#page-ranking section.column2,
#item-container,
#column-misc section.item,
.side-menu,
.area_new,
.area_right,
.rounded,
.pane,
.iiclm-a_left > .area,

#page-group section#contents,
#search-result-container,
#illust-recommend,
.one_column_top,
.one_column_body,
.column-main,
._unit,
.two_column_top,
.two_column_body {
background: none #455154 !important; 
border-color: #7F8587 !important;
}

/* :::: Side Headings :::: */

#page-index #column-misc section.item h1, 
#page-mypage #column-misc section.item h1, 
#page-mypage-r18 #column-misc section.item h1
.area_title,
.area_rightSpace,
.side-menu H1,
.side-menu h2 {
background: none #323B3E !important;
}


/* :::: Lowlights, Dark colored containers/headers :::: */

div#page-group #contents header div.coverimg,
div#page-group-edit #contents header div.coverimg,
div#page-group #contents header div.body .info,
div#page-group-edit #contents header div.body .info,
#item-container .item > header > h1,
.help_title_question, 
.help_q,
.project_pixiv,
.event-subpane,
.NewsTop h1,
#search-navigation.header-menu,
.new_works,
.new_works2,
.baseTitle,
.column-menu,
.extaraNaviAlso,
nav.context,
.worksListOthersTitle,
.rankingPager,
.settingProfile,
#tag_area,
.work-tags,
.bookmark_recommend_tag ul,
#preview_area,
.search_a2,
div.msgbox_bottom,
.work-tags .edit,
.column-header .tabs .current,

div#page-group #contents > div section#timeline li.post div.comment, 
div#page-group-edit #contents > div section#timeline li.post div.comment {

background: none #323B3E !important;
}


/* ::::::::::::: Specific Styling ::::::::::::: */

/* === Front Page  === */

/* search box */
#pageSearchTop {

box-shadow: none !important; 
background: #323B3E !important;
}

/* Login Box */

.toggle_container,
#edit-tag-preference {
background: #222 !important;
border-color: #111 !important;
}

#login-block input[type="text"], 
#login-block input[type="password"] {
box-shadow: none !important;
}

/* header */

.header {

background: -webkit-linear-gradient(#3E4247 30%,#292C2F) #3E4247 !important;
background: -moz-linear-gradient(#3E4247 30%,#292C2F) #3E4247 !important;
border-bottom: 2px solid #2a2a2a !important;
}

/* Configuration Dropdown List */
.ui-selectbox-container ul {
background: #222222 !important;
border: 2px solid #000 !important;
outline: none !important;
}

.ui-selectbox-container ul li:hover {
background: #111111 !important;
}

/*  :::: Various / Miscellaneous :::: */

/* Image Description Expander */
.ui-expander-container .expand {
background: none !important;
}

.ui-expander-container .button {
border:1px solid #111 !important;
background: -webkit-linear-gradient(#46464A 40%, #333337 55%) !important;
background: -moz-linear-gradient(#46464A 40%, #333337 55%) !important;
}

.ui-expander-container .button:hover {
border:1px solid #222 !important;
background: -webkit-linear-gradient(#56565A 40%, #444447 55%) !important;
background: -moz-linear-gradient(#56565A 40%, #444447 55%) !important;
}

/* Upload progress highlight */
.progress-items .current {
background: #222 !important;
border: 2px solid #000 !important;}

/* Illustrations titles fix */
.sibling-items > * {width: auto !important;}

/* Add to Favorite dialog menu */
.dialog {
background: #222 !important;
border-color: #000 !important;
}

/* No background on "More..." Group comment */
div#page-group #contents > div section#timeline li.post div.comment .body .show-all, 
div#page-group-edit #contents > div section#timeline li.post div.comment .body .show-all {
background: none !important;
}

.action-show-all {
background: #222 !important;
}

/* Increase width of Event header */
.event-nav {
min-width: 410px !important;
}

/* Group Detail */

div#page-group #contents > div section#timeline li.post div.imagecontainer .detail,
div#page-group-edit #contents > div section#timeline li.post div.imagecontainer .detail {

background: rgba(0,0,0,.8) !important;
}

/* Pixiv Group Borders */

div#page-group #contents > div section#timeline, 
div#page-group-edit #contents > div section#timeline,

div#page-group #contents > div section#timeline li.post + li.post, 
div#page-group-edit #contents > div section#timeline li.post + li.post {

border-color: #7F8587 !important;
}


div#page-group #contents > div section#timeline li.post div.action span, 
div#page-group-edit #contents > div section#timeline li.post div.action span {

background-color: #333 !important;
}


/* Homepage news category */

.NewsTop .category {

background: -webkit-linear-gradient(#363636 40%, #111 64%) !important;
background: -moz-linear-gradient(#363636 40%, #111 64%) !important;
border: 1px solid #595959 !important;
color: #E9E9E9 !important;
}

.NewsTop .category:hover {
color: #FFF !important;
text-decoration: underline !important;
}

/* tag rename? - "タグ名を変更" */
#edit-tag-preference {
background: #222 !important;
border-color: #111 !important;
}

/* ranking link */
#column-misc .ranking-links a {
color: #FFF !important;
}

/* display work margin fix "pixiv.net/member_illust.php?mode=medium&illust_id= " */

.two_column_body .action + DIV[style] {
display: none !important;
}

.two_column_body section.action {
margin-bottom: 40px !important;
}

/* Manga page # , Manga Controls */
#control-container li,
aside#page-number,
nav.page-menu {
background-color: rgba(0,0,0,.7) !important;
}

/* RTL Manga control */
.panel-container.visible {
background: #222 !important;
}

/* Tooltip */
div#ui-tooltip-container p,
div#page-group #contents > div section#timeline li.post div.action ul.action-box, 
div#page-group-edit #contents > div section#timeline li.post div.action ul.action-box {
background: #131313 !important; border: 1px solid #888 !important;
}

/* select work */
.display_works li.display_works_edited {
background: #2E2F37 !important;
border-color: #316AC5 !important;
}

/* Bookmark/Stacc - Load More */

._button-lite-large,
#stacc_center_more_button,
section#illust-recommend div.more p {
border:2px solid #111 !important;
background: -webkit-linear-gradient(#46464A 40%, #333337 55%) !important;
background: -moz-linear-gradient(#46464A 40%, #333337 55%) !important;
}

._button-lite-large:hover,
#stacc_center_more_button:hover,
section#illust-recommend div.more p:hover {
border:2px solid #222 !important;
background: -webkit-linear-gradient(#56565A 40%, #444447 55%) !important;
background: -moz-linear-gradient(#56565A 40%, #444447 55%) !important;
}

/* Disable auto load */
#disable-auto-view .label {
background: #131313 !important; 
border-color: #888 !important;
}

/* ranking numbers */
div#page-index div#column-misc section.item ol.ranking > li div.rank, 
div#page-mypage div#column-misc section.item ol.ranking > li div.rank, 
div#page-mypage-r18 div#column-misc section.item ol.ranking > li div.rank {
color: #AFB5B6 !important;
}

/* ranking stripes */
div#page-index div#column-misc section.item ol.ranking > li:nth-child(2n+1), 
div#page-mypage div#column-misc section.item ol.ranking > li:nth-child(2n+1), 
div#page-mypage-r18 div#column-misc section.item ol.ranking > li:nth-child(2n+1) {
background: #394146 !important;
}

/* upload labels */
div.centeredNavi li.upload_01,
.upload_02,
.upload_03 {
background: #252525 !important;
}

/* Sub navigation */
header#global-header div.wrapper nav.category-menu {
background: #61696B !important;
}

/* User Profile block */
.profile_area {
background: #61696B !important;
}

/* Stacc right side block on profile  */
.staccOnRight  {
background: #323B3E !important;
}

.staccOnRight li.staccOnRightList:nth-of-type(even) {
background: #272C30 !important;
}

/* Search page separator/border color */
.search-option.main ul,
section.column nav#tab li.current {
border-color: #8E9496 !important;
}

/* novel entry/thumbnail */

.novel-thumbnail {
background: #3D474A !important;
}

.novel_listview li.novel-box,
.novel_listview > li {
background: none !important;
border-color: #252A2C !important;
}

/* Advanced Search - 検索オプション, View Attach Sample, Group Image Pop-up */

.search-option.ui-modal-trigger {
color: #CADAE7 !important;
}

section#search-option div.container,
#embed-sample .ui-modal.large {
width: 90% !important;
max-width: 1200px !important;
}

section#search-option div.container div.content,
.ui-modal,
.ui-modal div.content, 
.ui-modal section.content {

background: #222 !important;
border-color: #111 !important;
}

/* Notification Menu */

#global-header .global-menu > ul > .notification .message span {
background: #316AC5 !important;
color: #FFF !important;
}

#notification-message,
#notification-popboard {
background: #333 !important;
border-color: #111 !important;
}

header#global-header div.wrapper nav.global-menu .notification li.active a,
header#global-header div.wrapper nav.global-menu .notification li.active a,

#notification-message *,
#notification-popboard * {
border-color: #111 !important;
}

.notification-list li a {
background-color: #444 !important;
}

.notification-list li a:hover {
background-color: #4b4b4b !important;
}

/* Search Options @ Illust. Search - Hover */

div#page-tags section.column-main header nav.context ul li.ui-anchor:hover, 
div#page-tags section.column-main header nav.context ul li a:hover, 
div#page-ranking section.column-main header nav.context ul li.ui-anchor:hover, 
div#page-ranking section.column-main header nav.context ul li a:hover, 
div#page-search section.column-main header nav.context ul li.ui-anchor:hover, 
div#page-search section.column-main header nav.context ul li a:hover, 
div#page-novel-search section.column-main header nav.context ul li.ui-anchor:hover, 
div#page-novel-search section.column-main header nav.context ul li a:hover, 
div#page-search-user section.column-main header nav.context ul li.ui-anchor:hover, 
div#page-search-user section.column-main header nav.context ul li a:hover, 
div.one_column section.column-main header nav.context ul li.ui-anchor:hover, 
div.one_column section.column-main header nav.context ul li a:hover,

div#page-tags section.column-main header nav.context div.selector:hover, 
div#page-ranking section.column-main header nav.context div.selector:hover, 
div#page-search section.column-main header nav.context div.selector:hover, 
div#page-novel-search section.column-main header nav.context div.selector:hover, 
div#page-search-user section.column-main header nav.context div.selector:hover, 
div.one_column section.column-main header nav.context div.selector:hover {

background-color: #22282A !important;
}

/* Pagination Links */

nav.pager {
margin: 15px 0 !important;
}

nav.pager li + li {
border-color: #DDD !important;
}

nav.pager li a {
font-weight: bold !important;
}

nav.pager li.current {
font-size: medium !important;
}

/* Tag/search result count */
div#page-tags section.column-main 
header div.label div.info span.count,
div#page-ranking section.column-main header div.label div.info span.count, 
div#page-search section.column-main header div.label div.info span.count,
div#page-novel-search section.column-main header div.label div.info span.count,
div#page-search-user section.column-main header div.label div.info span.count {
background-color: #333 !important;
}

/* border */

div#page-tags section.column-main header nav.tab, 
div#page-ranking section.column-main header nav.tab, 
div#page-search section.column-main header nav.tab, 
div#page-novel-search section.column-main header nav.tab, 
div#page-search-user section.column-main header nav.tab, 
div.one_column section.column-main header nav.tab {
border-color: #7F8587 !important;
}

div#page-tags section.column-main header nav.tab ul li.current, 
div#page-ranking section.column-main header nav.tab ul li.current, 
div#page-search section.column-main header nav.tab ul li.current, 
div#page-novel-search section.column-main header nav.tab ul li.current, 
div#page-search-user section.column-main header nav.tab ul li.current, 
div.one_column section.column-main header nav.tab ul li.current {
background: #2D3334 !important;
border-color: #7F8587 !important;
}

/* == Circle == */

.worksCircleArea {
background: #323B3E !important;
}

/* Share work title border */

.worksShareTitle {
background: none !important; 
padding-bottom: 2px !important;
border-bottom: 2px solid #5D6E72 !important;
}

.worksCircleDetail,
.worksCircleDetailSpace {
border-bottom: 2px solid #5D6E72 !important;
background: none !important;
}

/* :::: Mini area thing @ Inbox / Stacc :::: */

.msgArea_w,
.area_w_stacc {

background: none #343A3C !important;
border-radius: 4px 4px 0 0 !important;
border: 1px solid #647073 !important;
border-bottom: none !important;
}

.msgAreaBottom_w, .area-bottom_w {
background: none #343A3C !important;
border-radius: 0 0 4px 4px !important;
border: 1px solid #647073 !important;
border-top: none !important;
}

.msg_on:not(.msg_receive_box),
.navi_update_on {
background: #455154 !important;
}

.area_w_stacc_hr {
background: none #444 !important;
height: 4px !important;
}

/* :::: Tables :::: */

/* Profile Table */

.ws_table, 
.ws_table .td1,
.ws_table .td2 {
border-color: #151515 !important;
}

.ws_table .td1 {
background: #323B3E !important;
}

/* Settings Table */
td[style*="background-color:#F2F2F2;"] {
background-color: #323B3E !important;
}

/* === Tab Active/Current === */

.extra_on a span {
color: #EEE !important;
}

.setting_on,
.extra_on,
.extaraNavi,
.tab_genre li {
border-color: #7F8587 !important;
}

.setting_on,
.extra_on,
.tab_genre .on {
background: #323B3E !important;
}

/* === Search Menu Items === */

form.search ul.menu {
background: #2E2F37 !important;
border-color: #000 !important;
}

form.search ul.menu li.random-pickup {
border-color: #000 !important;
}

form.search ul.menu li:hover,
form.search ul.menu li a:hover {
background: #316AC5 !important;
}

.menu-button {
background-color: #EEE !important;
}

/* === Question / Poll === */

.questionnaire input,
.works_area input {
background: #333 !important;
border-color: #777 !important;
}

.questionnaire input:hover,
.works_area input:hover {
background: #316AC5 !important;
border-color: #DDD !important;
}

/* === Bookmark/Response Related === */

/* counter */
#search-result .count-list {
margin-top: .5em !important;
}

.sprites-bookmark-badge {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAQAAABKmM6bAAAASklEQVQIHVXAARFAQBQFwBdBBBFEEEUUDUQQ6SKI8COsuWHm2OTlyp8NW740XHkofxWLMpQlidWwpjMb5nQOlFPhSKfZTYnJriU3ePVcNQpWOs8AAAAASUVORK5CYII=") no-repeat !important;
}

.sprites-image-response-badge {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAHCAQAAABwkq/rAAAARklEQVQYlWNgAIP/Dv/v/zdgQAZAIRBoQHDX/3//HwLOA9X+T/iPCt4zgOXfA2UhYP9/BQYgxwFq1vv/BRCTBKDmnYfZCABLaEmJjHWN2QAAAABJRU5ErkJggg==") no-repeat !important;
}

a.bookmark-count,
a.bookmark_link {

color: #EEE !important; 
background-color: #738F43 !important;
}

a.image-response-count,
a.img_response_link {
color: #EEE !important;
background-color: #B79C55 !important;
}

/* end counter */

/*bookmark tag list*/
#bookmark_list .bg_gray {
background: #323B3E !important;
}

/* remove tag style */
.tags .tag {
background: none !important;
box-shadow: none !important;
}

/* tag selected*/
.bookmark_recommend_tag ul li a.on {
background: #852161 !important; color: #FFF !important;
}

/* ::::: BORDER FIX AGAIN STILL >:-( ::::: */

.one_column_top2 {
background: none #455154 !important; 
border-radius: 8px 8px 0 0 !important;
border: 1px solid #7F8587 !important;
border-bottom: none !important;
width: 968px !important;
}


.two_column_top, .two_column_top2, div.two_column_top4 {
background: none #455154 !important; 
border-radius: 8px 8px 0 0 !important;
border: 1px solid #7F8587 !important;
border-bottom: none !important;
width: 782px !important;
}

.two_column_top3 {
background: none #455154 !important; 
border-radius: 8px 8px 0 0 !important;
border: 1px solid #7F8587 !important;
border-bottom: none !important;
width: 732px !important;
}

.onecolumnBottom {
background: none #455154 !important;
border-radius: 0 0 8px 8px !important;
border: 1px solid #7F8587 !important;
border-top: none !important;
}

.two_columnBottom {
background: none #455154 !important;
border-radius: 0 0 8px 8px !important;
border: 1px solid #7F8587 !important;
border-top: none !important;
width: 782px !important;
}

/* border fix */
div.msgbox_bottom {
border-color: #7F8587 !important;
}

/* ::::::: Remove ::::::: */

/* User Recommend Mypage */
.user-recommend-introduction,

/* Remove Premium Objects */
[class*="remium"],
[data-tooltip*="remium"],
[href*="premium.php"] {
display: none !important;
}

/* "NEW" caption */
.badge-new,

/* no special event logo */
#logo_s, [id="global-header"] > .wrapper > h1 > .logo:first-child ~ *,

/* No footer*/
.footer

{display: none !important;} 

/* Upload image triangle / pointer */
dl.settings > dd:last-child:before,
dl.settings > dd:last-child:after {
display: none !important;
}

/*======= Advertisement killer =======*/

.topjack-area,
.ad-recommend,
.header .ad,
.profile-unit ~ div:not(.user-tags),
#touch_introduction, #touch_introduction ~ div,
[id*="dver"],[class*="dver"],
[id*="ads"], [id*="Ads"],
[class*="ads"], [class*="Ads"],
iframe[src*="ads"],
[id*="dingo"],      /*Adingo*/
[class*="verture"], /*.adOverture*/
.hotspot,

div[style*="background:url('http://source.pixiv.net/source/images/touch-banner-bg.png')"],

.search_yahoo,
.search_amazon,

.finish_upload > iframe,
.finish_upload > center

{display: none !important;}

/* Zero height footer advert to prevent page top link problems */
.adver_footer.rounded {
display:block !important; 
padding: 0 !important; 
border: 0 !important;
height: 0 !important;
overflow: hidden !important;
}


/* ::::: Pixiv Translation Plus fix - http://userscripts.org/scripts/show/65644 ::::: */

/* :: Search Help :: */

.submit + div table[style] {

background: #2E2F37 !important; 
border: 2px solid #000 !important; 
border-top: none !important;
}

.PTPa:hover {
background: #111 !important;
}

/* :: Settings/Help table :: */

/* arrow */

.tv_tab[style*="position: fixed"] {
background: rgba(0,0,0,.4) !important;
border-color: #000 !important;
}

.tv_tab[style*="position: fixed"]:hover {
border: 2px solid #316AC5 !important;
}

/* basic */
div[style*="width: 100%; height: 160px; position: fixed;"] {
background: none rgba(0,0,0,.8) !important;
}

div[style*="width: 100%; height: 160px; position: fixed;"] *:not(#ptp_save) {
border-color: #555 !important;
}

/* :: tab styling ::*/

#ptp_tabs .tv_tab.tv_selected {
background: #1D3D72 !important;
border: none !important;
}

#ptp_tabs .tv_tab {
background: rgba(35,35,35,.85) !important;
}

#ptp_tabs .tv_tab:hover {
background: rgba(49, 106, 197, .85)!important;
}


}

@-moz-document url-prefix(http://www.pixiv.net/stacc){

.ui-layout-east {
background: -webkit-linear-gradient(left, #455154 0, #455154 610px, #323B3E 0) !important;
background: -moz-linear-gradient(left, #455154 0, #455154 610px, #323B3E 0) !important;
}

.navi_on {
background: #455154 !important;
}

.stacc_main_timeline .stacc_status:nth-of-type(even) {
background: #3C484A !important;
}

/* remove border image */
.ui-layout-east-top,
.ui-layout-east-top_mypage,
.ui-layout-east-bottom  {
background: none #455154 !important;
}

}

@-moz-document url-prefix(http://www.pixiv.net/news/){

/* Main box, sub box */
.pickupmain, .col-news {
background: #455154 !important;
}

/* Main Navigation */
.news_navi {
background: #455154 !important;
border: 1px solid #7F8587 !important;
}

.viewingCategory {
background: #222 !important;
border: 1px solid #555 !important;
}

/* No border image */
.news_naviBottom,
.pickupmain_bottom {
background: none transparent !important;
}

/* Headings / Titles */
.pickupmain_title, .col-news-title {
background: #323B3E !important;
}

/* Striped list */
.grayback {
background: #323B3E !important;
}

}

