/* * * * * * * * * * Background Image * * * * * * * * * */
.background-image {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    transform-origin: center;
    transform: scale(1);
}

html, body {
    height: 100%;
}
/* * * * * * * * * * APP BAR * * * * * * * * * */
/* main content gets space equal to appbar height */
:root {
    --appbar-space: 128px;
}

.app-main {
    padding-top: var(--appbar-space);
}

/* appbar slide animation */
.appbar-scroll {
    transform: translateY(0);
    transition: transform 500ms ease;
}

/* hidden state */
.appbar-scroll.appbar-hidden {
    transform: translateY(-100%);
}

/*
 * Drawer AppBar Button
 */
.menu-button {
    width: 56px;
    height: 56px;
}
/*
 * Drawer AppBar Button Icon
 */
.menu-button .mud-icon-root {
    font-size: 32px;
}

/* * * * * * * * * * Main Content * * * * * * * * * * /

/* Category Paper */
.category-paper {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Clickable */
.clickable {
    cursor: pointer;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

/* Clickable Hover Effect */
.clickable:not(.mud-image):hover {
    box-shadow: var(--mud-elevation-12);
    transform: translateY(-4px) scale(1.03);
}

/* Clickable Hover Effect */
    .clickable.mud-image:hover {
        filter: drop-shadow(0 6px 8px rgba(255, 255, 255, 0.80)) drop-shadow(0 12px 20px rgba(255, 255, 255, 0.70)) drop-shadow(0 0 30px rgba(255, 255, 255, 1));
        transform: translateX(-50%) translateY(-4px) scale(1.03);
    }

/* Square MudCard Media */
.mud-card-media.square-media {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Outer Element Carousel Fix */
.carousel-shell {
    display: inline-block;
    border-radius: 16px;
    padding: 0;
    width: 100%;
    box-shadow: 0 0px 15px rgba(0,0,0,.35);
    overflow: visible;
    aspect-ratio: 1/1 !important;
    max-height: 50vh;
    max-width: 50vh;
}

/* Inner Element Carousel Fix */
.carousel-inner {
    height:100%;
    border-radius: inherit;
    overflow: hidden;
}

/* Slide Wrapper */
.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Blurred Background */
.carousel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px);
    transform: scale(1.2); /* hides blur edges */
}

.cursor-zoom {
    cursor: zoom-in;
}


/* Foreground MudImage */
.carousel-fg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* Search Fade Out Animation */
.search-fade-out {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 300ms ease, visibility 300ms ease;
}

/* Search Fade In Animation */
.search-fade-in {
    opacity: 1;
    visibility: visible;
    transition: opacity 300ms ease;
    z-index: 2;
}

/* Center Logo */
.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 200ms ease, filter 200ms ease;
}

/* Full-height Column Layout */
.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content Pushes Footer Down When Page Is Short */
.app-main {
    flex: 1 1 auto;
}

/* Footer Not Sticky/Floating */
.app-footer {
    flex: 0 0 auto;
}

.glass {
    background: rgba(255, 255, 255, 0.45); /* transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari */
    border: 1px solid rgba(255, 255, 255, 0.65);
}

/* Privacy Typography */
.privacy-wrap .mud-typography {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* * * * * * * * * * FONTS * * * * * * * * * */
/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
/* encode-sans-sc-300 - latin */
@font-face {
    font-display: swap;
    font-family: 'Encode Sans SC';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/encode-sans-sc-v14-latin-300.woff2') format('woff2');
}
/* encode-sans-sc-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Encode Sans SC';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/encode-sans-sc-v14-latin-regular.woff2') format('woff2');
}
/* encode-sans-sc-500 - latin */
@font-face {
    font-display: swap;
    font-family: 'Encode Sans SC';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/encode-sans-sc-v14-latin-500.woff2') format('woff2');
}
/* encode-sans-sc-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Encode Sans SC';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/encode-sans-sc-v14-latin-700.woff2') format('woff2');
}

/* * * * * * * * * * Dialog Fix * * * * * * * * * */
/* Size To Image */
.image-dialog {
    width: fit-content;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    margin: 0;
}

/* Prevent Scrolling */
.image-dialog .dialog-image {
    display: block;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* No Padding Dialog */
.mud-dialog .mud-dialog-content {
    padding: 0;
}

/* Dialog Class */
.dialog {
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive H3 */
/* Default (md and up) — keep MudBlazor default */
.mud-typography-h3 {
    font-size: 3rem; /* MudBlazor default */
}

/* sm and down */
@media (max-width: 959.98px) {
    .mud-typography-h3 {
        font-size: 2.25rem;
    }
}

/* xs only (optional) */
@media (max-width: 599.98px) {
    .mud-typography-h3 {
        font-size: 1.75rem;
    }
}s