/* 
    Kuro/ModularDelta SpringViewer Stylesheet File
    Written by KitSixtyFour/SnowyBiFox
    Copyright 2025-2026 Axeon Network
    .
    If you are looking for the CSS code used in galleries, the component that invokes
    SpringViewer, see gallery.css.
    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 */
    --viewer-background-color-dark: rgb(15,15,15); 
    --viewer-border-color-dark: #202020;
    /* --viewer-button-color-dark: rgb(40,40,40); */

    /* light mode */
    --viewer-background-color-light: rgb(248,248,248);
    --viewer-border-color-light: #dfdfdf;
    /* --viewer-button-color-light: rgb(233,233,233); */
}
html {
    --viewer-background-color: var(--viewer-background-color-dark);
    --viewer-border-color: var(--viewer-border-color-dark);
    /* --viewer-button-color: var(--viewer-button-color-dark); */
}
html.light-mode {
    --viewer-background-color: var(--viewer-background-color-light);
    --viewer-border-color: var(--viewer-border-color-light);
    /* --viewer-button-color: var(--viewer-button-color-light); */
}
/* springviewer watermark */
#viewer-watermark {
    position: fixed;
    bottom: 0;
    right: 0; 
    left: auto;
    font-family: Roboto;
    text-align: right;
    padding: 1px;
    margin-bottom: -1px;
    font-size: 14px;
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000000006; 
}
/* springviewer moment */
#springviewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* #springviewer .mdl-layout__drawer-button {
    display: none !important;
    user-select: none;
    cursor: none;
} */

/* so now i go here, i remove one letter and it should all work */
/* ....right? */
/* RIGHT? */
/* YOU PIECE OF COMPUTER SOFTWARE JUST FUCKING WORK MAN */
/* ok it was cache,, */
/* wait this viewer thing still deosnt work ALL I DID WAS RENAME IT- */
.viewer-hidde {
    display: none !important;
    opacity: 0;
}

.viewer-content {
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: none;
}

#viewer-media-container {
    display: flex; 
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* 100vh minus the 89px footer height */
    height: calc(100vh - 89px); 
    z-index: 4;
    overflow: hidden;
}

#viewer-media-element {
    width: auto;
    height: auto;
    max-width: 100%; 
    max-height: calc(100vh - 89px); 
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 1024px) {
    #viewer-media-element {
        max-height: calc(100vh - 160px) !important;
    }
}

@media (max-width: 767px) {
    #viewer-media-element {
        max-width: 98vw;
        max-height: calc(100vh - 180px) !important;
    }
}

/* image counter */
.viewer-counter {
    position: fixed;
    top: 50px;
    right: 15px;
    color: white;
    background-color: rgba(0,0,0,1) !important;
    font-size: 16px;
    line-height: 1;
    padding: 8px;
    opacity: 0.7 !important;
    z-index: 6;
}

/* top navigation buttons */
#viewer-top-buttons {
    top: 0;
    right: 0;
    position: fixed;
    display: flex;
    gap: 6px;
    padding-right: 16px;
    padding-top: 16px;
    z-index: 6;
}
/* button config */
#viewer-top-buttons button {
    color: white !important;
    background-color: rgba(10,10,10,1);
    opacity: 0.75;
    border: none;
    padding: 0px;
    width: 30px !important;
    height: 30px !important;
}
/* somehow the icons get disaligned, but hey its now fixed on
   5186.39.kuro_rc1_prerelase! :3 -snowybifox */
#viewer-top-buttons button i {
    padding-top: 3px;
    opacity: 1 !important;
}
#viewer-top-buttons button:hover {
    opacity: 9;
    cursor: pointer;
}
#viewer-top-buttons button:active {
    color: #aaa !important;
    background-color: rgba(0,0,0,1)
}

/* image navigation */
.nav-btn {
    background-color: rgba(20,20,20,1);
    height: 50px;
    border: none;
    color: #ffffff;
    font-size: 0px;
    cursor: pointer;
    user-select: none;
    opacity: 0.75;
    margin: 0 20px;
    padding: 0 10px;
    position: fixed;
    z-index: 6;
    
    top: calc((100vh - 89px) / 2);
    transform: translateY(-50%);
}

.nav-btn .material-icons {
    font-size: 30px;    
}

.nav-btn:hover {
    opacity: 0.9;
}
.nav-btn:active {
    opacity: 1;
}

/* some config */
.prev-btn {
    position:absolute;
    left:0px!important;
}
.next-btn {
    position:absolute;
    right:0px!important;
}

/* the bottom part */
#viewer-details-sub {
    font-size: 0.89em;
    color: #939393;
    margin-bottom: -4px;
    background-color: inherit;
}
#viewer-details-nested {
    background-color:inherit;
    width: 88%;
    display: flex;
    position: relative;
    margin: 26px !important;
    justify-items: center;
    align-items: center;
    align-self: center;
}
#viewer-caption {
    color: var(--text-color);
    text-align: left;
    flex-wrap:wrap;
    width: 100%;
    position: absolute;
    justify-items: center;
    margin-top: 1.2%;
    margin-left: -8px;
    align-items: center;
    align-self: center;
}
#viewer-details-button {
    position: fixed;
    right: 12px;
    bottom: 44px;
    color: white;
    background-color: var(--accent-light);
}
#viewer-details-license {
    float: right !important;
    /*! margin: 0 auto; */
    position: fixed;
    right: 28px;
    bottom: 8px;
}
#viewer-details-license-icon {
    float: right;
    padding-right: 0px;
}
#viewer-details-author {
    position: fixed;
    bottom: 8px;
}
#viewer-details-author-icon {
    padding-left: 2px;
}
#viewer-details {
    background-color: var(--viewer-background-color);
    width: 100%;
    bottom:0;
    position: fixed;
    padding: 3px;
}

/* more details dialog */
.mdl-dialog {
    background-color: var(--viewer-background-color);
    width: 600px;
    color: var(--text-color) !important;
}
.mdl-dialog__title {
    font-size: 2em;
}
.mdl-dialog__content {
    color: var(--text-color) !important;
}
.mdl-dialog::backdrop {
    background: black;
    opacity: 80%;
}
.mdl-card--border {
    border-top-color: var(--viewer-border-color) !important;
}

/* NOTE: as of build 5186.38, THIS DOES NOT WORK */

/* firefox video player */
/* thumb button */
/*
.scrubber:active::-moz-range-thumb,
.volumeControl:active::-moz-range-thumb {
  background-color: var(--accent) !important;
} */
/* progress bar */
/*h
.progressBar::-moz-progress-bar {
  background-color: var(--accent) !important;
} */