﻿/* 
    Kuro/ModularDelta Global Stylesheet File
    Copyright 2025 Axeon Network. Developed by KitSixtyFour

    Licensed under the MIT License, which is included below:

    Copyright 2025 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(254,196,159);
    --title-color-dark: rgb(226,179,100);

    --text-color-white: white;
    --background-image-dark: url('../../../resources/img/defaults/background.jpg');
    --scrollbar-color-dark: rgb(242,148,146) rgb(187,197,207);
    --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);
    
    /* light mode */
    --accent-light: rgb(103, 137, 182);
    --title-color-light: rgb(44, 102, 156);
    --text-color-black: black;   
    --background-image-light: url('../../resources/img/defaults/background.jpg'); 
    --scrollbar-color-light: rgb(33,80,122) rgb(0,15,28);
    --hatnote-color-light: rgba(255,255,255,0.75);
    --code-bg-light: rgba(230,230,230,1);
    --code-border-light:rgba(200,200,200,1);
}

/* 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);
}

/* 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);
}


/* the fucking font:tm: */
/* if this fails to load i will explode */
* {
    font-family: 'Roboto', 'Segoe UI', sans-serif  !important;
}

#pagetitle {
    font-family: 'Segoe UI';
}

/* so the links dont have that ugly underline */
a {
    text-decoration: none !important;
    color: var(--accent);
}

/* its hatnote time */
.hatnote {
    background-color: var(--hatnote-color);
    margin-top: 20px;
    margin-right: 15px;
    padding-left: 10px;
    padding-right: 10px;
    font-style: italic;
   }
   
/* download box */
.download-box-item {
    width: 300px;
    border: 100px solid var(--accent);
    background-color: var(--mdlcard-background-color);
    color: var(--text-color);
}
   
/* 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);
}

/* 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;
}

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

code {
    font-family: 'Lucida Console' !important;
    font-size: 12.5px;
    color: var(--text-color);
    background-color: var(--code-bg);
    padding: 2px 2px 1px;
    border: solid 1px var(--code-border);
    border-radius: 4px;
}

h1 {
    font-size: 25px !important;
    font-weight: normal;
}

h2 {
    font-size: 20px !important;
    font-weight: normal;
}

h3 {
    font-size: 15px !important;
    font-weight: normal;
}