/* RWBY Deluxe CSS theme V2.15; courtesy of CSSAnon with assistance from RustyWriter99 */
/* A major overhaul of the CSS theme from 8kun. Most of the colors and properties retained are noted. */

/* ↓ Changes the colors and other properties on global.css. */
:root {
  --link-color: #7491a9; /* From 8kun */
  --link-hover-color: #ff0000; /* From 8kun */
  
/* ↓ Oekaki button */
  --oekaki-button-active-color: #800000;
  --oekaki-button-boxshadow-color: #990000;
  --oekaki-button-color: #CC0000;
  --oekaki-button-focus-color: #FF4D4D;
  --oekaki-button-icon-active-color: whitesmoke;   /* <  Paintbrush icon color when clicked on  */
  --oekaki-button-icon-color: white;   /* <  Paintbrush icon color  */

/* ↓ Custom cursor */
  --cursor-default: url('/.media/efb1d6ba5d40577563527cf57f42ee175f570dd5ea5a99d7cd131681de33d5ca.png'), default;
  --cursor-pointer: url('/.media/a154f2a0c69eceb4724ae7ffb7e8df95a14c19270748dbf17c68a56de1a6d0e3.png'), pointer;
  --cursor-progress: url('/.media/b6543eb85831628c5c24d8c3a6196932c46428f14de155f38f32c3c63a2cfe1e.gif'), progress;
  --cursor-text: url('/.media/db0812fc11dc70e96abe70ca0250c16431bdf23ae74725ed4e3edbcf95993b68.png'), text;
  --cursor-vertical-text: url('/.media/86cdff0b35b5a87d452e11cc3a543ca52ae0b462f417ab6b9ed40133e9a94b36.png'), vertical-text;
  --cursor-wait: url('/.media/bc00481f7d78492a8f617b28678ed566c9cfd9cabeddd50a1a287dd6feec2ce6.gif'), wait;
  /* ↓ Site logo on home page */
    --logo-image: url("/.static/logo/royal.png");
}


/* ↓ The Navbar itself. Has links to the active boards and different icons that do certain things. */
nav.navHeader {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  margin-top: 0px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 1);
  border-bottom: 2px solid #262626;
  background: #1a1a1a;
}

/* ↓ The fading parts of the navbar. Changed gradient fade to match the dark background color & theme. */
nav.navHeader > .nav-fade {
  background-image: linear-gradient(to right, #0000, #1a1a1a);
  border-right: 0.5em solid #1a1a1a;
}

/* ↓ The board name. */
.boardHeader #labelName {
  color: #CD3B2B;
  text-shadow: 0px 1px 2px #E6E600;
  font-family: 'DOOM';
}

/* ↓ The red ribbon for the board description. */
.boardHeader p#labelDescription {
  --s: 1.8em;  /* the ribbon size */
  --d: .8em;   /* the depth */
  --c: .8em;   /* the cutout part */
  
  padding: 0 calc(var(--s) + .5em) var(--d);
  background:
    conic-gradient(
      at left var(--s) bottom var(--d),
      #0000 25%,
      #0008 0 37.5%,
      #0004 0
    ) 0 /50% 100% no-repeat,
    conic-gradient(
      at right var(--s) bottom var(--d),
      #0004 62.5%,
      #0008 0 75%,
      #0000 0
    ) 100%/50% 100% no-repeat;
  clip-path: polygon(
    0 var(--d),
    var(--s) var(--d),
    var(--s) 0,
    calc(100% - var(--s)) 0,
    calc(100% - var(--s)) var(--d),
    100% var(--d),
    calc(100% - var(--c)) calc(50% + var(--d)/2),
    100% 100%,
    calc(100% - var(--s) - var(--d)) 100%,
    calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),
    calc(var(--s) + var(--d)) calc(100% - var(--d)),
    calc(var(--s) + var(--d)) 100%,
    0 100%,
    var(--c) calc(50% + var(--d)/2)
  );
  background-color: #CC333F;
  width: fit-content;
  margin: 0 auto;
  color: #fff;
  font-style: italic;
}

/* ↓ The favorite button. If you want to add your own custom icon, keep the display property to 'none'.*/
#favoriteButton {
  display: none;
}
/* Then add your favorite button icon below in its inactive state.*/
#favoriteButtonLabel:after {
  content: '' !important;
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url('/.media/477100cad66574571085a5331a54360e1065204667aead89952ecf5f345196e8.png') no-repeat center center;
  vertical-align: middle; /* or try: baseline, text-bottom, or -0.15em for fine-tuning */
  margin-left: 0.25em; /* spacing between text and icon */
  background-size: contain;
}
/* Finally, add your favorite button icon below in its active state as you want to make sure anon knows he added the board to his favorites. */
#favoriteButton:checked + #favoriteButtonLabel:after {
  content: '' !important;
  background-image: url('/.media/634310a80c138f64791ce1c6cc5209acad346550f26880547d28157059490796.png');
}

/* ↓ The divider lines you see across the page. */
hr {
  border-color: red;
}

/* ↓ The blue ribbon for the options above the posting table. (Huzzah! A non-red ribbon!) */
.innerUtility.top {
  --s: 1.8em;  /* the ribbon size */
  --d: .5em;   /* the depth */
  --c: .8em;   /* the cutout part */
  
  padding: 0 calc(var(--s) + var(--d) + .5em) var(--d); /* Kept symmetric padding */
  line-height: 1.8;
  background: 
    linear-gradient(90deg,#0004 var(--d),#0000 0 calc(100% - var(--d)),#0004 0) 
    50%/calc(100% - 2*var(--s)) 100% no-repeat;
  clip-path: polygon(
    0 100%,
    var(--s) 100%,
    calc(var(--s) + var(--d)) calc(100% - var(--d)),
    calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),
    calc(100% - var(--s)) 100%,
    100% 100%,
    calc(100% - var(--c)) calc(50% + var(--d)/2),
    100% var(--d),
    calc(100% - var(--s)) var(--d),
    calc(100% - var(--s) - var(--d)) 0,
    calc(var(--s) + var(--d)) 0,
    var(--s) var(--d),
    0 var(--d),
    var(--c) calc(50% + var(--d)/2)
  );
  background-color: #0F4C6A;
  width: fit-content;
  margin: 0 auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ↓ The board's panel message. Different from site messages and announcements. */
#panelMessage {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#panelMessage div {
  color: rgba(255, 255, 255, 0.8);
  cursor: var(--cursor-default) !important;
  background-color: #2c0a0a;
  border: 2px dashed #750000;
}

/* ↓ This is where the custom wallpaper is. Everything here rests behind every other container. */
body {
  background-attachment: fixed;
  background-blend-mode: multiply;
  background-color: rgba(26, 26, 26, 0.56);
  background-image:url('/.media/12945688a20bd6b69a78f8a9130f0009aa074b70a5eed0329adec6997c8d33b4.jpg');
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: cover;
  color: #D9D9D9;
  cursor: var(--cursor-default);
  font-family: Arial, Helvetica, sans-serif;
  font-size: auto;
  margin: 0px 4px;
  padding-left: 5px;
  padding-right: 5px;
}

/* Apply Tomorrow theme background and text color to Side Catalog container */
.sideCatalogCell {
  background: #1d1f21 !important;
  color: #c5c8c6 !important;
  border-left: 1px solid #373b41 !important;
}

/* Apply Tomorrow theme styles to threads/items inside the Side Catalog */
.sideCatalogCell .catalog-thread {
  background: #1d1f21 !important;
  border: 1px solid #373b41 !important;
  color: #c5c8c6 !important;
}

/* Hover effect for catalog threads */
.sideCatalogCell .catalog-thread:hover {
  background: #282a2e !important;
}

/* Scrollbar styling for Side Catalog */
.sideCatalogCell::-webkit-scrollbar {
  width: 8px;
  background: #1d1f21;
}

.sideCatalogCell::-webkit-scrollbar-thumb {
  background: #373b41;
}

/* ↓ Labels like Name, Options, Subject, Mode: Thread, Message, files, CAPTCHA. E-Mail, Password, and Misc. */
#quick-reply th,
#actionsForm details.showFormDetails fieldset.reportFieldset legend,
#newPostFieldset.threadFieldset legend,
#postingForm th,
.modalTableBody th,
.titleFieldset legend,
#newPostFieldset.boardFieldset legend {
  background: #cc0000;
  border: 1px solid var(--border-color);
  color: #d9d9d9;
  font-weight: bold;
} 

/* ↓ The Upload cell, where the attachments appear before getting posted. */
.selectedCell {
  background: #cc333f;
  color: #fff;
  font-style:italic 
}

/* Limit expanded media size to vertical screen space */
.uploadCell.expandedCell .mediaContainer,
.uploadCell.expandedCell video,
.uploadCell.expandedCell img {
max-width: 90vw;
max-height: 90vh;
width: auto !important;
height: auto !important;
display: block;
} 

/*Upload Description adjustment*/
/* Styling for the upload description */
.uploadDetails {
  text-align: center; /* Center the description text */
  font-size: 0.82em; /* Smaller font size for description */
  margin-top: 0.5em; /* Adds space between the image and description */
} 

/* Ensure single-image uploads align to the left, not center */
.innerPost .uploadCell:only-child,
.innerOP .uploadCell:only-child {
  margin-left: 0;
  margin-right: auto;
  justify-self: flex-start;
  align-self: flex-start;
}


/* Remove inheritance of Yotsuba B styles from filenames when uploaded */
.nameLabel {
  background: transparent !important; /* Ensure no inherited background */
  color: inherit !important;          /* Prevent color inheritance */
  font-style: inherit !important;     /* Prevent font style inheritance */
}

/* ↓ The posting table contents. Did an experimental change and got rid of the background & border colors to make everything look more seamless. */
div#postingFormContents table tbody tr th{
  background: transparent;
  border: transparent
}

/* ↓ The entire posting table background. */
#newPostFieldset {
  background: #FF00004D;
  border: dotted #B22222;
    border-radius: 8px;
}

/* ↓ Part of the Captcha window color in the table seemed off, so transparency was added. */
#postingForm tr, .modalTableBody tr {
  background: transparent;
}

/* ↓ The extra forums at the bottom of the page. EDIT: Added the titleFieldset which is seen on the contact page. */
/* Existing shared styles remain the same */
.titleFieldset,
.reportFieldset {
  background: #FF00004D;
  border: dotted #B22222;
  border-radius: 8px;
}

/* Adjusting only the report fieldset */
.reportFieldset {
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
  display: block;
}

/* ↓ The floating menus (Report, Settings, etc.) */
.floatingList, .floatingMenu, .modalForm {
  background: #FF00004D;
  border: dotted #B22222;
    border-radius: 8px;
  color: #fff;
}

/* ↓ Selection color for the floating menus. */
.selectedTab {
color: #ff8989;
  text-shadow: 0px 0px 2px #ff8989;
}

/* ↓ The X icon in quick reply & other floating menus. */
.help-btn, .close-btn {
  color: #
  fff;
}

/* ↓ Darkens the text boxes as they looked on 8kun. */
.titleFieldset label input,
#cssInput,
#deletionFieldPassword.deletionField,
#fieldCaptcha.captchaField.postingInput,
#fieldCaptchaReport.captchaField.reportField,
#fieldEmail.postingInput,
#fieldName.postingInput,
#fieldPostingPassword.postingInput,
#fieldSubject.postingInput,
#jsInput,
#qrbody,
#qremail,
#qrname,
#qrpassword,
#qrsubject,
#reportFieldReason.reportField,
input[type=number],
input[type=password],
input[type=text],
input[type=url],
tbody.modalTableBody tr td input,
td input.modalAnswer,
#fieldMessage.postingInput {
  background-color: #000;
  border: 1px solid #a9a9a9;
  color: #fff;
  font-family: sans-serif;
  font-size: inherit;
  text-indent: 0;
  text-shadow: none;
  text-transform: none;
  word-spacing: normal;
}

/* ↓ The site's announcement. */
#dynamicAnnouncement table tbody tr td {
  background-color: #2c0a0a;
  border: 2px dashed #750000;
  color: rgba(255, 255, 255, 0.8);
  cursor: var(--cursor-default) !important;
}

/* ↓ Modified the hyperlinks within the site announcement to ignore the link and link hover colors and use red instead. */
#dynamicAnnouncement table tbody tr td a {
  color: #ff4444;
  cursor: var(--cursor-pointer) !important;
  text-decoration: none;
}
/* ↓ Made the links glow white upon hovering over it. */
#dynamicAnnouncement table tbody tr td a:hover,
#dynamicAnnouncement table tbody tr td:hover {
  color: inherit;
}

/* ↓ Board header title, e.g. 'Catalog of /board/'. . */
.boardHeader p, #overboardId {
  color: #fff;
}

/* ↓ Affects the catalog and threads. */
#divThreads.catalogDiv div.catalogCell {
  background: rgba(182, 182, 182, 0.15);
  border: 2px solid rgba(111, 111, 111, 0.34);
  display: inline-block;
  font-size: auto;
  font-weight: normal;
  height: 300px;
  margin-bottom: 2px;
  margin-top: 2px;
  max-height: 300px;
  max-height:300px;
  overflow: hidden;
  padding: 2px;
  position: relative;
  text-align: center;
  vertical-align: top;
  width: 205px;
}

/* ↓ The red ribbon for the board title in the catalog. */
p#catalogId {
  --s: 1.8em;  /* the ribbon size */
  --d: .5em;   /* the depth */
  --c: .8em;   /* the cutout part */
  
  padding: var(--d) calc(var(--s) + var(--d) + .5em) 0;
  background: 
    linear-gradient(90deg,#0004 var(--d),#0000 0 calc(100% - var(--d)),#0004 0) 
    50%/calc(100% - 2*var(--s)) 100% no-repeat;
  clip-path: polygon(
    0 0,
    var(--s) 0,
    calc(var(--s) + var(--d)) var(--d),
    calc(100% - var(--s) - var(--d)) var(--d),
    calc(100% - var(--s)) 0,
    100% 0,
    calc(100% - var(--c)) calc(50% - var(--d)/2),
    100% calc(100% - var(--d)),
    calc(100% - var(--s)) calc(100% - var(--d)),
    calc(100% - var(--s) - var(--d)) 100%,
    calc(var(--s) + var(--d)) 100%,
    var(--s) calc(100% - var(--d)),
    0 calc(100% - var(--d)),
    var(--c) calc(50% - var(--d)/2)
  );
  background-color: #cc333f; /* the main color */
  width: fit-content;
  margin: 0 auto;
  font-style: italic;
}

/* ↓ The red ribbon for the inner board utility within the catalog. */
div#divTools div.innerUtility {
  --r: .8em;  /* control the ribbon shape */
  
  padding-inline: calc(var(--r) + .3em);
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - var(--r)) 50%,
    100% 100%,
    0 100%,
    var(--r) 50%
  );
  background: #CC333F; /* the main color */
  width: fit-content;
  font-style: italic;
}
/* White text for the ribbon. */
div.innerUtility a{
  color: #fff;
}
/* Text will light up when hovering over the actions. */
div.innerUtility a:hover{
  color: inherit;
}

/* ↓ Posting Table. */
table thead th {
  background: rgba(26, 26, 26, 0.7);
  border-color: #4f4f4f;
  border-radius: 4px;
  color: #C5C8C6;
}
table tbody tr:nth-of-type(even) {
  background-color: rgba(26, 26, 26, 0.7);
}


/* ↓ Changes color upon hovering. */
#divThreads.catalogDiv div.catalogCell:hover {
  background: #1a1a1a;
  border-color: #262626;
}

/* ↓ OPs of the threads. */
.innerOP {
  background: none repeat scroll 0% 0% #262626;
  border-color: #262626;
  border-radius: 0px;
  border-style: none solid solid none;
  border-width: 1px;
  display: inline-block;
  margin: 0.2em 4px;
  max-width: 94% !important;
  opacity: 1;
  padding: 0.2em 0.3em 0.5em 0.6em;
}
/* ↓ The Post numbers. */
div.opHead.title a.linkQuote,
div.opHead.title a.linkSelf,
div.innerPost div.postInfo.title a.linkSelf,
.postCell div.innerPost div.postInfo.title a.linkQuote {
  color: #f1f1f1;
}
/* ↓ The Post numbers upon hovering over them. */
div.innerPost div.postInfo.title a.linkSelf:hover,
.postCell div.innerPost div.postInfo.title a.linkQuote:hover {
  color: var( --link-hover-color)
}
/* ↓ Posts underneath OP. */
.innerPost {
  background: none repeat scroll 0% 0% #262626;
  border-color: #262626;
  border-radius: 0px;
  border-style: none solid solid none;
  border-width: 1px;
  margin: 0.2em 4px;
  max-width: 95% !important;
  opacity: 1;
  padding: 0.2em 0.3em 0.5em 0.6em;
}
/* ↓ Marked posts, appears when you click on the post number. Made them Burgundy wine-colored. */
.postCell:target .innerPost,
.opCell:target .innerOP,
.markedPost,
.sideCatalogMarkedCell {
  background: #4a1c26;
  border-color: #662d2d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  color: #fff; 
}
/* ↓ Post subject. */
.labelSubject {
  color: #E6E600;
  font-weight: bold;
}
/* ↓Role like Root, Board Owner, and Board Volunteer. Gave the Role a skumorphic redesign that works with both the normal dark posts & burgundy wine-colored replies */
.labelRole {
  background: #5a0d8a;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(255,255,255,0.2);
  color: #fff;
  font-weight: bold;
  padding: 0.1em 0.4em;
}
/* ↓ Names within the posts.*/
a.linkName.noEmailName {
  color: #117743;
  font-weight: bold;
  cursor: var(--cursor-default) !important;
}

/* Custom Thumbnails */

/*  [AUDIO] (Only appears when uploaded audio file(s) lack an embedded album artwork cover. */
/* ↓ For audio formats such as mp3, flac, opus, ogg, etc. Original site thumbnail size is 128px. */
img[src="/audioGenericThumb.png"] {
  background: url("/.media/3b57735958af68f0288e4d05c8a81f5d70c71e8c37bed7c4356d7a825fbbfb5f.png") center/contain no-repeat;
  border: none !important;
  box-sizing: border-box;
  display: block;
  height: 128px;
  padding-left: 128px;
  width: 128px;
}
/*  [GENERIC] (Only appears on quick reply upload menu) */
/* ↓ Thumbnail for many filetypes (even audio like mp3.) Original site thumbnail size is 100px. */
img[src="/.static/mimethumbs/generic_file.svg"] {
  display: block;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: url("/.media/2c6b2cc666e05f656a10a411b018dc8bd3ae6dabd0af7197a747409936d886a8.png");
  background-repeat: no-repeat;
  width: 128px;
  height: 128px;
  padding-left: 128px;
}
/*  [DOCUMENTS] */
/* ↓ For downloadable document formats such as txt, pdf, epub, etc. Original site thumbnail size is 150px. */
img[src="/genericThumb.png"] {
  background: url("/.media/d4f120f0436287a649b20318c44163146e938203028142299cf49a27882ae267.gif") center/contain no-repeat;
  border: none !important;
  box-sizing: border-box;
  display: block;
  height: 128px;
  padding-left: 128px;
  width: 128px;
}

/*  [CAPTCHA Loading Screen] ↓ Replaces the default static Captcha loading image that appears before the actual code itself. */
.captchaImage {
  background-image: url('/.media/c0fca721f6277f97cfc21fa8a1f5cee00536cec98d9d3b5b2bee82bb1487319f.gif');
  background-size: 300px 100px;
  border: 1px solid black;
}
/* Infinity Bypass Spinner Color Change. Target the img element with the specified src and apply the filter */
body div.modalPanel div.modalInnerPanel form.modalForm img[src="/.static/spinner_infinity.svg"] {
    background-color: red; /* Changed from transparent to red */
    width: 300px;
    height: 100px;
    filter: invert(16%) sepia(95%) saturate(7491%) brightness(81%) hue-rotate(-5deg);
}

/* ↓ Oekaki button */
.oekaki-btn {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.13)),
    radial-gradient(90% 7% at 50% 8%, rgba(255, 255, 255, 0.47) 25%, rgba(255, 255, 255, 0) 50%),
    var(--oekaki-button-color);
  border: 0;
  border-radius: 0.375em;
  box-shadow:
    0.2em 0.2em 0.5em rgba(0, 0, 0, 0.47),
    0 -0.1em 0 0.1em rgba(0, 0, 0, 0.27),
    0 0.1em 0 0.1em rgba(255, 255, 255, 0.27),
    -0.2em 0 0.2em var( --oekaki-button-boxshadow-color) inset,
    0 0.2em 0.2em rgba(255, 255, 255, 0.27) inset,
    0.2em 0 0.2em rgba(255, 255, 255, 0.27) inset,
    0 -0.2em 0.2em var( --oekaki-button-boxshadow-color) inset;
  color: var(--oekaki-button-icon-color);
  cursor: var(--cursor-pointer) !important;
  font-size: 16px;
  margin: 0 auto;
  padding: 0.75em 1em;
  text-shadow: 0 0 0.2em rgba(255, 255, 255, 0.47);
  transition-property: box-shadow;
  -webkit-tap-highlight-color: transparent;
}
.oekaki-btn,
.oekaki-btn span {
  display: block;
  transition-duration: 0.1s;
  transition-timing-function: linear;
}
.oekaki-btn:focus,
.oekaki-btn span:focus {
  outline: none;
}
.oekaki-btn span {
  transition-property: transform;
  will-change: transform;
}
.oekaki-btn:active {
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0.47),
    0 -0.1em 0 0.1em rgba(0, 0, 0, 0.27),
    0 0.1em 0 0.1em rgba(255, 255, 255, 0.27),
    -0.2em 0 0.2em var(--oekaki-button-active-color) inset,
    0 0.2em 0.2em rgba(0, 0, 0, 0.27) inset,
    0.2em 0 0.2em rgba(0, 0, 0, 0.27) inset,
    0 -0.2em 0.2em var(--oekaki-button-active-color) inset;
  color: var(--oekaki-button-icon-active-color);
}
.oekaki-btn:active span {
  transform: scale(0.95);
}
.oekaki-btn:focus {
  color: var(--oekaki-button-focus-color);
  text-shadow: 0 0 0.2em rgba(157, 196, 255, 0.47);
}
/* ↓ The default Oekaki icon can be replaced with a custom icon of your own. Keep the size at 32x32 for best results.*/
.oekaki-btn:before {
    font-family: 'Icons';
    content:  url('/.media/97c09b2314923dd08112814f659fa58c351e705c272dd9da75de43c9859e5782.png');
}

/* ↓ Buttons (Cancel, OK, Post, Reload, & Report) */
input[value="Reload"],
input[type="submit"],
input[type="button"],
button {
  background-image: linear-gradient(180deg, #e0e0e0, #cccccc);
  border-radius: 0;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  box-sizing: border-box;
  color: #333;
  font: 600 14px "Helvetica Neue", Helvetica, Arial, sans-serif;
  height: auto;
  max-width: 100%;
  padding: 2px 8px;
  transition:     box-shadow 0.2s ease,    transform 0.2s ease,    background 0.2s ease;
}
/* ↓ Hover effect for the buttons. */
input[value="Reload"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
  background-image: linear-gradient(180deg, #d4d4d4, #c0c0c0);
  cursor: var(--cursor-pointer) !important;
}
/* ↓ Active effect for the buttons. */
input[value="Reload"]:active,
input[type="submit"]:active,
input[type="button"]:active,
button:active {
  background-image: linear-gradient(180deg, #b3b3b3, #a0a0a0);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}
input[value="Reload"]:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
button:disabled {
  background-image: linear-gradient(180deg, #f0f0f0, #e0e0e0);
  box-shadow: none;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ↓ File dropzone. */
#dropzone.dropzone,
#dropzoneQr.dropzone {
  color: #000;
  cursor: var(--cursor-pointer) !important;
  margin: auto;
  padding: 0 4px;
  text-align: center;
  min-height: 50px;
  max-height: 140px;
  transition: 
    background-color 0.3s ease,
    border-color 0.3s ease;
  background-color: rgba(200, 200, 200, 0.5);
  overflow-y: auto;
  border: 2px dashed rgba(125, 125, 125, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  &:active {
    background-color: rgba(200, 200, 200, 0.8);
    border-color: rgba(125, 125, 125, 0.8);
  }
  
  &.dragover {
    background-color: rgba(200, 200, 200, 1);
    border-color: #7d7d7d;
    box-shadow: 0 0 10px rgba(125, 125, 125, 0.5);
  }
}
/* ↓ Hover effect for File dropzone. */
#dropzone.dropzone:hover,
#dropzoneQr.dropzone:hover {
  color: rgba(0, 0, 0, 0.5);
  cursor: var(--cursor-pointer) !important;
  border: 2px dashed rgba(125, 125, 125, 0.4);
}

/* ↓ The red ribbon for the thread info container.  It would read "Posts: ? / UIDs: ? / Files: ?". */
.threadBottom .threadInfo {
  float: right;
  display: none;

  --r: .8em; /* control the cutout */
  
  border-block: .5em solid #0000;
  padding-inline: calc(var(--r) + .25em) .5em;
  clip-path: polygon(
    0 0, 
    100% 0, 
    100% 100%, 
    0 100%, 
    0 calc(100% - .5em), /* Increased from .25em to .5em */
    var(--r) 50%, 
    0 .5em /* Increased from .25em to .5em */
  );
  background:
    radial-gradient(.2em 50% at right,#000a,#0000) border-box,
    linear-gradient(
      to right, 
      #CC333F 60%, 
      rgba(204, 51, 63, 0.6) 100%
    ) padding-box;

  color: #fff;
  font-style: italic;
  width: auto;
  margin: 0 .5em;
}

/* ↓ Text for the floating menus. */
label {
  color: #fff;
}

/* ↓ Floating buttons for actions like reporting a post, deleting a post, and filtering. */
div.floatingList.extraMenu ul li {
  border: 1px solid #fff;
  background: #B22222;
  color: #fff;
  transition: all 0.2s ease;
  cursor: var(--cursor-default) !important;
}
/* ↓ Hovering effects for the floating buttons. */
div.floatingList.extraMenu ul li:hover {
  background: #E74C3C;
  cursor: var(--cursor-pointer) !important;
  border-color: #fff;
}
/* ↓ Active effects for the floating buttons when clicked on. */
div.floatingList.extraMenu ul li:active {
  background: #8B0000;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* ↓ The red ribbon for the inner utilites. */
.threadBottom .innerUtility {  
  --r: .8em; /* control the cutout */
  
  border-block: .5em solid #0000;
  padding-inline: .5em calc(var(--r) + .25em);
  clip-path: polygon(
    100% 0,
    0 0,
    0 100%,
    100% 100%,
    calc(100% - var(--r)) calc(100% - .25em),
    100% 50%,
    calc(100% - var(--r)) .25em
  );
  background:
    radial-gradient(.2em 50% at left, #000a, #0000) border-box,
    linear-gradient(
      to left, 
      #CC333F 60%, 
      rgba(204, 51, 63, 0.6) 100%
    ) padding-box;
  font-style: italic;
  width: fit-content;
}
/* ↓ Changed the text color here instead of the above as it wouldn't apply there. */
.threadBottom .innerUtility a {
  color: #fff;
}
/* ↓ Changed the hovering text color to be more visible. */
.threadBottom .innerUtility a:hover {
  color: #990000;
}

/* ↓ The red ribbon for the inner board utilites. */
div#boardContentLinks.innerUtility {
  --r:  .6em;  /* control the cutout of the ribbon */
  --s: 1.5em;  /* size of the folded part */

  padding-inline: 1lh;
  border-block: var(--s) solid #0005;
  background: #cc333f;
  clip-path: polygon(
    100% 0,
    calc(100% - .5lh) var(--r),
    calc(100% - 1lh) 0,
    calc(100% - 1lh) var(--s),
    1lh var(--s),
    0 calc(100% - var(--s)),
    0 100%,
    .5lh calc(100% - var(--r)),
    1lh 100%,
    1lh calc(100% - var(--s)),
    calc(100% - 1lh) calc(100% - var(--s)),
    100% var(--s)
  );
  width: fit-content;
  font-style: italic;
}
/* ↓ Changed the text color here instead of the above as it wouldn't apply there. */
div#boardContentLinks.innerUtility a{
  color: #fff;
}
/* ↓ Changed the hovering text color to be more visible. */
div#boardContentLinks.innerUtility a:hover{
  color: #990000;
}

/* ↓ The red ribbon for the extra forms underneath the inner utilites, it would say 'Show Forms' & 'Hide Forms'. */
summary.glowOnHover {
  --r:  .6em;  /* control the cutout of the ribbon */
  --s: 1.5em;  /* size of the folded part */
  
  line-height: 1.8;
  padding-inline: 1lh calc(var(--r) + .3em);
  border-bottom: var(--s) solid #0005;
  background: #CC333F;
  clip-path: polygon(
    1lh 0,
    100% 0,
    calc(100% - var(--r)) calc(50% - var(--s)/2),
    100% calc(100% - var(--s)),
    1lh calc(100% - var(--s)),
    1lh calc(100% - var(--r)),
    .5lh 100%,
    0 calc(100% - var(--r)),
    0 calc(100% - var(--s))
  );
  width: fit-content;
  color: #fff;
  font-style: italic; 
}
/* ↓ Changed the hovering text color to be more visible. */
summary.glowOnHover:hover {
  color: #990000;
}

/*  [CURSORS]. */
/* ↓ Default. (Mainly for elements that don't need a new design.). */
html{
  cursor: var(--cursor-default) !important;
}
/* ↓ Text. */
input[type="text"],
textarea {
  cursor: var(--cursor-text) !important;
}
/* ↓ Pointer */
#divTools input[type=checkbox],
a,
button,
input,
input[type="button"],
label,
li,
select,
span,
summary.glowOnHover,
input[type="submit"] {
  cursor: var(--cursor-pointer) !important;
}
/* ↓ Grabbing. */
form table tbody tr th.handle {
  cursor: var(--cursor-grabbing) !important;
}

/* ↓ This gets rid of the the extra colors and background around the site notification on the home page. If it hits the other elements beyond the home page, delete this. */
div#indexWrapper.titleWrapper fieldset.titleFieldset:nth-of-type(3) {
  background-color: transparent !important;
  border: none !important;
}

/* ↓ The red ribbon for the board links. */
span.boardLinks {
  --r: .8em;  /* control the ribbon shape */
  
  padding-inline: calc(var(--r) + .3em);
  line-height: 1.8;
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - var(--r)) 50%,
    100% 100%,
    0 100%,
    var(--r) 50%
  );
  background: #CC333F; /* the main color */
  width: fit-content;  
}

/* ↓ Changed the text color here instead of the above as it wouldn't apply there. */
span.boardLinks a{
color: #fff;
  font-style: italic;
}
/* ↓ Changed the hovering text color to be more visible. */
span.boardLinks a:hover{
  color: #990000;
}
/* ↓ The red ribbon for the page container. */
.containPages {
  --r: .8em; /* control the cutout */
  
  border-block: .5em solid #0000;
  padding-inline: .5em calc(var(--r) + .25em);
  clip-path: polygon(
    100% 0,
    0 0,
    0 100%,
    100% 100%,
    calc(100% - var(--r)) calc(100% - .25em),
    100% 50%,
    calc(100% - var(--r)) .25em
  );
  background:
    radial-gradient(.2em 50% at left, #000a, #0000) border-box,
    linear-gradient(
      to left, 
      #CC333F 60%, 
      rgba(204, 51, 63, 0.6) 100%
    ) padding-box;
  font-style: italic;
  width: fit-content;
  color: #fff;
}
/* The brackets changed to white on the above, but the numbers did not. This fixes that. */
.containPages a {
  color: #fff;
}

/* Changed the hovering text color to be more visible. */
.containPages a:hover {
  color: #990000;
}

/* ↓ Changing the link colors on the home page to be more fitting instead of blue. */
a#labelBoard,
#welcomeMessage p a,
#dynamicLinks a,
.topBoards a,
.splitField > * a {
color: #90EE90;
text-shadow: 0px 1px 2px #000;
}
/* ↓ Hovering colors. Without them, the text wouldn't change. */
a#labelBoard:hover,
#welcomeMessage p a:hover,
.topBoards a:hover,
#dynamicLinks a:hover,
.splitField > * a:hover {
  color: inherit;
}

/* ↓ Green text. For >implications */
.greenText {
  color: #6AF00A;
}
/* ↓ Red text. ==This is filth!== */
.redText {
  color: #AF0A0F;
  font-weight: bold;
  font-size: 125%;
  text-shadow: 0 0 1.5px black;
}

/* ↓ DOOM Text. [doom]for DOOM[/doom] */
.doomText {
  color: #AF0A0F;
  font-family: 'DOOM';
  text-shadow: 0 0 5px black;
}

/* ↓ Pink text. For <implications. Now a proper Orange */
.pinkText {
	color: #fc7905;
}