/* 
    Kuro/ModularDelta Custom Material Design Lite Stylesheet File
    Written by KitSixtyFour/SnowyBiFox
    Copyright 2025-2026 Axeon Network.

    Material Design and Material Design Lite (MDL) are Copyright 2016 Google Inc 
    and are licensed under the Apache License.

    This file is 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 */
html {
    /* dark mode */
    --contentbox-background-color-dark: rgba(0,0,0,0.43);
    --search-background-color-dark: rgba(50,50,50,0.5);
    --mdlcard-background-color-dark: #424242;
    --drawer-color-dark: rgba(0, 0, 0, 0.5);
    --navhoverlink-dark: rgba(0, 0, 0, 0.6);

    /* light mode */
    --contentbox-background-color-light: rgba(248,248,248,0.73);
    --search-background-color-light: white;
    --mdlcard-background-color-light: white;
    --drawer-color-light: rgb(246, 246, 246,0.8); /* microsoft windows ninety eiiight! :3 */
    --navhoverlink-light: rgba(230,230,230,1);

    /* button status */
    /* i forgot why i used these but i wont remove these cuz ya never know */
    --button-status: var(--buttonstatus-set);
    --buttonstatus-set: block;
}

html {
    --contentbox-background-color: var(--contentbox-background-color-dark);
    --search-background-color: var(--search-background-color-dark);
    --mdlcard-background-color: var(--mdlcard-background-color-dark);
    --drawer-color: var(--drawer-color-dark);
    --navhoverlink: var(--navhoverlink-dark);
}

html.light-mode {
    --contentbox-background-color: var(--contentbox-background-color-light);
    --search-background-color: var(--search-background-color-light);
    --mdlcard-background-color: var(--mdlcard-background-color-light);
    --drawer-color: var(--drawer-color-light);
    --navhoverlink: var(--navhoverlink-light);
}

/* mdl's h1-h3 are way tooooo gigantic so we make them use mdl's h4-h6 styling */
/* i adjusted them a bit on 5,2k.kuro_sl1.260702-1730*/
h1 {
    font-size: 24px;
    margin: 24px 0 16px;
    letter-spacing: 0;
}
h2 {
    font-size: 20px;
    line-height: 1;
}

h3 {
    font-size: 18px;
    line-height: 18px;
    margin: 16px 0 8px;
    letter-spacing: .01em;
    font-weight: 400;
}

h4, h5, h6 {
    font-size: 16px;
    line-height: 16px;
    margin: 16px 0 8px;
    letter-spacing: .025em;
    font-weight: 500;
}

h2 {
    margin-bottom: 10px;
}

hr {
    border-color: white;
    opacity: 0.1;
}
.light-mode hr {
    border-color: black;
    opacity: 0.1;
}

/* CSS FOR RECENT NEWS */
summary {
    display: flex;
    font-size: 20px;
    padding: 5px;
    line-height: 25px;
    color: var(--title-color);
    cursor: pointer;
    user-select: none;
}

summary::before {
    font-family: 'Material Icons';
    content: "arrow_right";
    font-size: 28px;
    margin-left: -12px;
}

details[open] summary::before {
    content: "arrow_drop_down";
}

/* mdl-layout stuff */
/* makes the drawer icon and header title (supposedly) white */
.demo-layout-transparent .mdl-layout__header,
.demo-layout-transparent .mdl-layout__drawer-button {
    color: white;
}
/* ^ i've just realized that we use the demo versions */

/* i forgor what this is */
.mdl-layout__header {
    display: block;
}

.mdl-layout__header-row .container a {
    color: white !important;
}

/* this too */
.mdl-hidden {
    display: none !important;
}

/* this too..TWO!! */
.mdl-navigation__link:hover {
    background-color: var(--navhoverlink) !important;
}

/* interesting how without ts the silver item is what breaks */
.mdl-card__supporting-text {
    color: var(--text-color) !important;
    opacity: 75%;
}


/* why does "two" have 3 letters but "three" have 5 letters */
/* even then, "five" has 4 letters, "six" has 3 letters, same with "one" */
/* "seven" and "eight" have 5 letters, "nine" has 4 letters, and "ten" has 3 letters! */
/* NONE MATCH! */
/* the only one that matches is "four". pretty weird, isn't it? */


/* custom mdl stuff: the drawer */
.mdl-layout__drawer {
    background-color: var(--drawer-color);
    backdrop-filter: blur(15px);
    color: var(--text-color) !important;
    border-color: none;
    border-right: 0px;
    box-shadow: 0px 0px 20px black;
}

.mdl-layout__drawer-button {
    display: var(--button-status) !important;
    z-index: 4 !important;
}

/* hide drawer button while on springviewer */
.mdl-layout .mdl-layout__drawer-button.mdl-hidden {
    visibility: hidden;
}

.mdl-navigation__link {
    padding: 8px 20px !important;
    color: var(--text-color) !important;
}

/* they were never aligned... */
.mdl-navigation__link .material-icons {
    margin-bottom: 3px;
}

#drawer-banner {
    box-shadow: none;
}

#drawer-version-info {
    opacity: 0.5;
}


/* everyone be talking about 67, 68 and 69 but no one talks about my boi -4.56192 😔 */
/* me omw to add -4.56192 to the deltari source cod- oh wait i already did */


.mdl-card__title {
    color: white;
}
.featured-article > .mdl-card__title {
    background-image: linear-gradient(rgb(120, 120, 120), rgb(90, 97, 136));
}
.did-you-know > .mdl-card__title {
    background-image: linear-gradient(rgb(120, 120, 120), rgb(158, 111, 117));
}
.recent-news > .mdl-card__title {
    background-image: linear-gradient(rgb(120, 120, 120), rgb(136, 107, 148));
}

.box {
    background-color: var(--contentbox-background-color); 
    backdrop-filter: blur(40px);
    width: 96%; 
    justify-content: center; 
    display: block; 
    margin: 0 auto; 
    padding: 8px;
    overflow: hidden;
}

.kuro-card_can-has-transparency {
    background-color: rgba(15,15,15,0.4);
}
.light-mode .kuro-card_can-has-transparency {
    background-color: rgba(255,255,255,0.4);
}

.kuro-card_disbale-text-opacity .mdl-card__supporting-text {
    color: var(--text-color) !important;
    opacity: 100%;
}

/* Resistance is futile. Work. Now. Please. */
@media (max-width: 1024px) {
    .mdl-card {
        width: 100%;
        margin-top: 24px;
        margin-bottom: 24px;
    }
    /* thanks mdl for making properly making this show up a Pain */
    .mdl-textfield {
        width: auto;
    }
    .mdl-textfield__input {
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .homepage-cards {
        margin: 0px -16px;
        border-spacing: 16px 10px;
    }
    .homepage-cards .demo-card-wide {
        display: table-cell;
        vertical-align: top;
        text-align: left;
    }
    .featured-article.mdl-card {
        width: 55%;
    }
    .did-you-know.mdl-card {
        width: 45%;
    }
    .recent-news.mdl-card {
        width: fit-content;
    }
}

blockquote {
    line-height: 0.8;
}

blockquote p:last-child {
  display: inline; /* Forces the paragraph to only take up as much space as the text */
}

/* CHANGE THIS: Attach the closing quote inline right after the text */
blockquote p:last-child:after {
  content: '”';
}

blockquote:after {
    margin-left: -6px;
    vertical-align:sub;
}
blockquote:before {
    margin-top:5px;
}