:root {
    --md-sys-color-primary: #6750A4;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-background: #FEF7FF;
    --md-sys-color-on-background: #1D1B20;
    --md-sys-color-surface-variant: #E7E0EC;
    --md-sys-color-primary-container: #EADDFF;
    --md-sys-color-on-primary-container: #4F378B;
    --ghost-color: 0, 0, 0;
    --range-thumb-color: #1D192B;
    --range-gradient-start: #B0A7C0;
    --range-gradient-end: #625B71;
}
[data-bs-theme="dark"] {
    --md-sys-color-primary: #D0BCFF;
    --md-sys-color-on-primary: #381E72;
    --md-sys-color-background: #141218; 
    --md-sys-color-on-background: #E6E0E9;
    --md-sys-color-surface-variant: #49454F;
    --md-sys-color-primary-container: #4F378B;
    --md-sys-color-on-primary-container: #EADDFF;
    --ghost-color: 255, 255, 255; 
    --range-thumb-color: #F6EDFF;
    --range-gradient-start: #CCC2DC;
    --range-gradient-end: #625B71;
}
html, body {
    height: 100%;
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    font-family: 'Roboto', sans-serif;
}
main {
    flex: 1 0 auto;
}
.navbar {
    background-color: var(--md-sys-color-surface-variant) !important;
}
.navbar-brand, .nav-link, .navbar-toggler {
    color: var(--md-sys-color-on-background) !important;
}
.bs-tooltip-md3 {
    --bs-tooltip-bg: var(--md-sys-color-primary);
    --bs-tooltip-color: var(--md-sys-color-on-primary);
}
.btn-md3 {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-radius: 20px;
    border: none;
    padding: 10px 24px;
}
.btn-md3:hover {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}
#simulation-text {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.6;
    transition: filter 0.1s ease, text-shadow 0.1s ease;
}
.camera-container {
    position: relative;
    width: 100%;
    max-width: 300px; 
    margin: 0 auto;
    aspect-ratio: 9/16;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
}
canvas#camera-output {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-img {
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: cover;
    height: 250px;
    width: 100%;
}
.gallery-img:hover {
    transform: scale(1.02);
}
.text-facebook { color: #1877F2; }
.text-instagram { color: #E4405F; }
.text-twitter { color: #1DA1F2; }
.text-youtube { color: #FF0000; }
.text-flickr { color: #FF0084; }
.text-threads { color: #000000; }
.text-bluesky { color: #1185FE; }
html[data-bs-theme="dark"] .hide-in-dark-mode {
    display: none !important;
}
html[data-bs-theme="light"] .hide-in-light-mode {
    display: none !important;
}
.navbar-logo {
    height: 1.5rem; 
    width: auto;    
    vertical-align: middle; 
    image-rendering: -webkit-optimize-contrast; 
}
#share-fab {
    position: fixed; 
    bottom: 25px; 
    right: 25px;  
    z-index: 1050; 
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
}
#share-fab:active {
    transform: scale(0.95);
}
.btn-circle {
    width: 70px;       
    height: 70px;      
    padding: 0;        
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;    
    transition: transform 0.1s;
}
.btn-circle:active {
    transform: scale(0.95); 
}
input[type=range]::-webkit-slider-thumb {
    width: 25px;
    height: 25px;
    background: var(--range-thumb-color);
    border-radius: 50%;
    cursor: pointer;
}
input[type=range]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: var(--range-thumb-color);
    border-radius: 50%;
    cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(to right, var(--range-gradient-start), var(--range-gradient-end));
    border-radius: 4px;
}


