﻿/* 
    Kuro/ModularDelta Global Stylesheet File
    Written by KitSixtyFour/SnowyBiFox
    Copyright 2025-2026 Axeon Network.

    Licensed under the MIT License, which is included below:

    Copyright 2025-2026 Axeon Network
    
    Permission is hereby granted, free of charge, to any person obtaining a copy 
    of this software and associated documentation files (the “Software”), to deal 
    in the Software without restriction, including without limitation the rights 
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
    of the Software, and to permit persons to whom the Software is furnished to do so,
    subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies 
    or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
    INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 
    PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
    FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
    OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
    DEALINGS IN THE SOFTWARE.

*/

/* variables */
:root {
    /* dark mode */
    --accent-dark: rgb(157,176,183);
    --link-visited-dark: rgb(153, 115, 153);
    --link-active-dark: rgb(250, 190, 110);
    --title-color-dark: rgb(154,176,183);

    --text-color-white: white;
    --background-image-dark: url('../../img/defaults/bg.jpg');
    --scrollbar-color-dark: rgb(60,62,74) rgb(43,46,55);
    --hatnote-color-dark: rgba(8,8,8,0.3);
    --code-border-dark: rgba(0,0,0,0.2);
    --code-bg-dark: rgba(0,0,0,0.5);
    --supercode-border-dark: #111;
    --supercode-bg-dark: #1e1e1e;

    /* light mode */
    --accent-light: rgb(44,60,84);
    --title-color-light: rgb(44,60,84);
    --text-color-black: black;   
    --background-image-light: url('../../img/defaults/bg.jpg'); 
    --scrollbar-color-light: rgb(60,62,74) rgb(43,46,55);
    --hatnote-color-light: rgba(255,255,255,0.75);
    --code-bg-light: #f8f9fa;
    --code-border-light: #eee;
    --supercode-bg-light: #f8f9fa;
    --supercode-border-light: #eee;
    --link-visited-light: rgb(71, 93, 133);
    --link-active-light: rgb(235, 145, 75);
}

/* setting the text color might fail under firefox, so we use the variables directly instead */
html {
    color: var(--text-color-white);
}
html.light-mode {
    color: var(--text-color-black);
}

html {
    --title-color: var(--title-color-dark);
    --accent: var(--accent-dark);
    --hatnote-color: var(--hatnote-color-dark);
    --text-color: var(--text-color-white); 
    --background-image: var(--background-image-dark); 
    --scrollbar-color: var(--scrollbar-color-dark);
    --code-bg: var(--code-bg-dark);
    --code-border: var(--code-border-dark);
    --link-visited: var(--link-visited-dark);
    --link-active: var(--link-active-dark);
    --supercode-border: var(--supercode-border-dark);
    --supercode-bg: var(--supercode-bg-dark);
}

/* here we set light mode as it should be */
html.light-mode {
    --title-color: var(--title-color-light);
    --accent: var(--accent-light);
    --hatnote-color: var(--hatnote-color-light);
    --background-image: var(--background-image-light); 
    --text-color: var(--text-color-black) !important; 
    --scrollbar-color: var(--scrollbar-color-light);
    --code-bg: var(--code-bg-light);
    --code-border: var(--code-border-light);
    --link-visited: var(--link-visited-light);
    --link-active: var(--link-active-light);
    --supercode-border: var(--supercode-border-light);
    --supercode-bg: var(--supercode-bg-light);
}


/* the fucking font:tm: */
/* if this fails to load i will explode */
* {
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
}

/* waf cool bg :3 */
html {
    background-image: var(--background-image);
    background-size: cover;
    background-attachment: fixed;

    /* scrollbar */
    overflow: scroll;
    scrollbar-color: var(--scrollbar-color);
    overflow-y: hidden;
    overflow-x: hidden !important;
}

/* so the links dont have that ugly underline */
a {
    text-decoration: none !important;
    color: var(--accent);
}
#pagecontent a:hover:not(.download-box-item a) {
    text-decoration: underline !important;
}

#pagecontent a:active {
    color: var(--link-active) !important;
}

a.footnote::before {
    content: "["
}
a.footnote::after {
    content: "]"
}

ul li {
    margin-left: -15px;
}

li {
    line-height: 1.7;
}

/* image boxshadow */
img {
    box-shadow:0 3px 4px 0 rgba(0,0,0,.14),0 3px 3px -2px rgba(0,0,0,.2),0 1px 8px 0 rgba(0,0,0,.12);
}

code {
    font-family: 'Roboto Mono', 'Consolas', 'Hack' !important;
    font-size: 12.5px;
    color: var(--text-color);
    background-color: var(--code-bg);
    padding: 1px 4px 2px;
    border: solid 1px var(--code-border);
}

.titleItalic {
    font-style: italic !important;
}

/* debug watermark */
#watermark {
    position: fixed;
    bottom: 0;
    left: 0;
    font-family: "Roboto", sans-serif;
    text-align: left;
    padding: 1px;
    margin-bottom: -1px;
    font-size: 14px;
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000000006;
}

/* its hatnote time */
.hatnote {
    background-color: var(--hatnote-color);
    margin-top: 15px;
    margin-bottom: -5px;
    margin-right: 15px;
    padding-left: 10px;
    margin-right: 0px;
    font-style: italic;
}
.hatnote-portable {
    background-color: var(--hatnote-color);
    margin-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-style: italic;
    display: flow-root;
    height: 24px;
    margin-bottom: 10px;
}

/* download box */
.download-box-item,
.download-box-item .mdl-card {
    width: 330px;
    background-color: var(--mdlcard-background-color);
    color: var(--text-color);
    min-height: 0;
}

.download-box-item h6 {
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 16px;
    color: var(--title-color);
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none;
}
    .mobile-only {
        display: block;
}
}
@media (min-width: 1024px) {
    .desktop-only {
        display: block;
}
    .mobile-only {
        display: none;
}
}

code.hljs span {
    font-family: 'Roboto Mono' !important;
}

code.hljs {
    background: var(--supercode-bg-dark);
    border: 1px solid var(--supercode-border-dark)
}

html.light-mode code.hljs {
    background: var(--supercode-bg-light);
    border: 1px solid var(--supercode-border-light);
    color: #444;
}


html.light-mode code.hljs .hljs-comment {
  color:#697070 !important;
}
html.light-mode code.hljs .hljs-punctuation,
html.light-mode code.hljs .hljs-tag {
  color:rgba(68,68,68,.667) !important;
}
html.light-mode code.hl-js .hljs-tag .hljs-attr,
html.light-mode code.hl-js .hljs-tag .hljs-name {
  color:#444 !important;
}
html.light-mode code.hl-js .hljs-attribute,
html.light-mode code.hl-js .hljs-doctag,
html.light-mode code.hl-js .hljs-keyword,
html.light-mode code.hl-js .hljs-meta .hljs-keyword,
html.light-mode code.hl-js .hljs-name,
html.light-mode code.hl-js .hljs-selector-tag {
  font-weight:700 !important;
}
html.light-mode code.hl-js .hljs-deletion,
html.light-mode code.hl-js .hljs-number,
html.light-mode code.hl-js .hljs-quote,
html.light-mode code.hl-js .hljs-selector-class,
html.light-mode code.hl-js .hljs-selector-id,
html.light-mode code.hl-js .hljs-string,
html.light-mode code.hl-js .hljs-template-tag,
html.light-mode code.hl-js .hljs-type {
  color:#800 !important;
}
html.light-mode code.hl-js .hljs-section,
html.light-mode code.hl-js .hljs-title {
  color:#800 !important;
  font-weight:700 !important;
}
html.light-mode code.hl-js .hljs-link,
html.light-mode code.hl-js .hljs-operator,
html.light-mode code.hl-js .hljs-regexp,
html.light-mode code.hl-js .hljs-selector-attr,
html.light-mode code.hl-js .hljs-selector-pseudo,
html.light-mode code.hl-js .hljs-symbol,
html.light-mode code.hl-js .hljs-template-variable,
html.light-mode code.hl-js .hljs-variable {
  color:#ab5656 !important;
}
html.light-mode code.hl-js .hljs-literal {
  color:#695 !important;
}
html.light-mode code.hl-js .hljs-addition,
html.light-mode code.hl-js .hljs-built_in,
html.light-mode code.hl-js .hljs-bullet,
html.light-mode code.hl-js .hljs-code {
  color:#397300 !important;
}
html.light-mode code.hl-js .hljs-meta {
  color:#1f7199 !important;
}
html.light-mode code.hl-js .hljs-meta .hljs-string {
  color:#38a !important;
}
html.light-mode code.hl-js .hljs-emphasis {
  font-style:italic !important;
}
html.light-mode code.hl-js .hljs-strong {
  font-weight:700 !important;
}