:root {
    --bg: #000000;
    --panel-bg: rgba(15, 15, 15, 0.7);
    --accent: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.4);
    --highlight: #e74c3c;
    --text: #e0e0e0;
    --font-main: 'Outfit', sans-serif;
    --font-detective: 'Special Elite', cursive;
    --font-terminal: 'Courier New', Courier, monospace;
}

/* CUSTOM SCROLLBARS FOR IMMERSION */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}



body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at center, #0a0a0a 0%, var(--bg) 100%);
    color: var(--text);
    font-family: var(--font-main);
    overflow: hidden;
    overscroll-behavior-y: contain;
    position: relative;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.8);
}



.classic-mode:hover {
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.kids-mode:hover {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* SCANLINES */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.03) 50%);
    background-size: 100% 4px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 9999;
}

/* CINEMATIC LOGIN */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: var(--font-terminal);
}

.terminal-loader {
    width: 600px;
    padding: 30px;
    color: #0f0;
    font-size: 1rem;
    line-height: 1.4;
    text-transform: uppercase;
}

#terminal-text p {
    margin: 5px 0;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background: #0f0;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

/* HEADER */
header {
    height: 60px;
    background: #000;
    border-bottom: 2px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-sizing: border-box;
}

.brand {
    font-weight: bold;
    letter-spacing: 5px;
    font-size: 1.2rem;
    color: var(--accent);
}

.status-bar {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* SCREEN LAYOUTS */
#home-screen {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start; /* changed from center to allow scroll from top */
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.4) 0%, rgba(0, 0, 0, 0.95) 80%), url('morgue_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 60px 8%;
    box-sizing: border-box;
    overflow-y: auto;
}

#dossier-container {
    height: calc(100vh - 60px);
    display: flex;
}

/* ARCHIVE GRID */
.archive-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px;
    width: 100%;
    margin-top: 40px;
    padding-bottom: 50px;
}

/* PHYSICAL DOSSIER FOLDERS (GRUNGE/DARK) */
.case-file {
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.9));
    width: 280px;
    height: 200px;
}

.case-file:hover {
    transform: rotate(-1deg) scale(1.03) translateY(-8px);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 1));
}

.folder-tab {
    width: 110px;
    height: 25px;
    background: #8b7355; /* Dirty brown */
    border-radius: 8px 8px 0 0;
    margin-left: 15px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1);
}

.folder-body {
    background: #a08a6b; /* Darker kraft paper */
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    height: 190px;
    border-radius: 0 8px 8px 8px;
    padding: 20px;
    position: relative;
    border-left: 8px solid #5c4b37;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
    overflow: hidden;
}

.case-stamp {
    position: absolute;
    top: 20px;
    right: -20px;
    background: transparent;
    border: 4px solid #8B0000;
    color: #8B0000;
    padding: 5px 20px;
    font-weight: bold;
    font-family: var(--font-detective);
    transform: rotate(25deg);
    font-size: 1.2rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 3px;
    pointer-events: none;
    box-shadow: inset 0 0 5px rgba(139, 0, 0, 0.5), 0 0 5px rgba(139, 0, 0, 0.2);
    text-shadow: 0 0 2px rgba(139, 0, 0, 0.5);
}

.file-info {
    position: relative;
    z-index: 3;
}

/* PANELS */
#nav-panel {
    width: 20%;
    min-width: 300px;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: inset -5px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: width 0.3s ease, min-width 0.3s ease;
}

#notes-panel {
    width: 25%;
    min-width: 350px;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: inset 5px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, min-width 0.3s ease, padding 0.3s ease;
}

.notes-area {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

#user-notes {
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid #333;
    color: var(--text);
    padding: 15px;
    font-family: var(--font-main);
    resize: none;
    box-sizing: border-box;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: border-color 0.3s;
}

#user-notes:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: inset 0 0 10px var(--accent-glow);
}

#viewer-panel {
    flex: 1;
    background: #f4f4f4; /* Keep light for document reading readability */
    color: #111;
    overflow-y: auto;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.panel-header {
    background: #000;
    padding: 15px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    border-bottom: 1px solid #333;
}

/* LOCATIONS LIST */
.location-item {
    padding: 20px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.location-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(8px);
    box-shadow: inset 4px 0 0 var(--accent);
}

.location-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    box-shadow: inset 4px 0 0 var(--accent);
    font-weight: bold;
}

.location-item.active::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 15px var(--accent-glow);
    pointer-events: none;
    animation: pulseGlow 2s infinite alternate;
}

.location-icon {
    font-size: 1.5rem;
}

/* EVIDENCE OPTIONS (IN HUB) */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.evidence-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 6px;
    color: #eee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.evidence-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
}

.evidence-card .type {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* ANNEXED EVIDENCE (SIDEBAR) */
.annexed-item {
    font-size: 0.8rem;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: transparent;
    color: #bbb;
    transition: all 0.3s;
    cursor: pointer;
}
.annexed-item:hover {
    background: rgba(212, 175, 55, 0.05);
    color: var(--accent);
    padding-left: 20px;
}

/* BUTTONS */
.btn-toggle {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 8px;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-toggle:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent-glow);
}
.btn-toggle:active {
    transform: scale(0.92);
}

/* COLLAPSED STATES */
.nav-collapsed {
    min-width: 70px !important;
    width: 70px !important;
    overflow-x: hidden;
}
.nav-collapsed .nav-title-text,
.nav-collapsed #location-list span:not(.location-icon),
.nav-collapsed #evidence-locked-list,
.nav-collapsed #evidence-viewed-list,
.nav-collapsed .panel-header:not(:first-child),
.nav-collapsed #btn-open-board,
.nav-collapsed #btn-warrant {
    display: none !important;
}
.nav-collapsed .btn-toggle-left {
    transform: rotate(180deg);
    margin: 0 auto;
}
.nav-collapsed .location-item {
    padding: 15px 0;
    justify-content: center;
}
.nav-collapsed .location-icon {
    margin-right: 0;
    font-size: 1.5rem;
}

.notes-collapsed {
    min-width: 0 !important;
    width: 0 !important;
    border: none !important;
    overflow: hidden;
}

.btn-resolve {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.btn-resolve:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-glow);
}
.btn-resolve:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.btn-annex {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.btn-annex:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-glow);
}

.btn-annex:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.btn-back {
    background: transparent;
    border: 1px solid #777;
    color: #333;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: bold;
    border-radius: 4px;
}
.btn-back:hover {
    background: #333;
    color: #fff;
    transform: translateX(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn-back:active {
    transform: scale(0.95);
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    z-index: 10000; /* Ensured it stays above scanlines if needed */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.visible {
    display: flex;
}

.modal-content {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow);
    width: 90%;
    max-width: 500px;
    color: #fff;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
}

/* REALISTIC DOCUMENTS */
.doc-medical {
    background: #f0fdf4;
    border: 2px dashed #ccc;
    padding: 30px;
    font-family: var(--font-terminal);
    position: relative;
    color: #333;
}
.doc-medical::before {
    content: "CONFIDENCIAL - POLICIA TÉCNICA";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 3rem;
    color: rgba(255, 0, 0, 0.1);
    pointer-events: none;
    font-weight: bold;
    border: 4px solid rgba(255, 0, 0, 0.1);
    padding: 10px;
}

.doc-handwritten {
    background: #fdf6e3;
    padding: 40px;
    font-family: 'Special Elite', cursive;
    color: #2c3e50;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-1deg);
}
.doc-handwritten::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 20%);
    pointer-events: none;
}


/* EVIDENCE METADATA STYLES */
.evidence-metadata-container {
    background: #0a0a0a;
    border-left: 3px solid var(--accent);
    padding: 10px 15px;
    margin-bottom: 25px;
    font-family: var(--font-terminal);
    font-size: 0.85rem;
    color: #ccc;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.meta-row {
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
}

.meta-label {
    color: var(--accent);
    font-weight: bold;
    margin-right: 10px;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.annexed-item {
    font-size: 0.9rem;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s;
}

.annexed-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.briefing-content {
    max-width: 1000px;
    height: 80vh;
    display: flex;
    padding: 0;
    overflow: hidden;
    /* Prevent outer scroll */
}

#briefing-img-container {
    width: 45%;
    background: #000;
    position: relative;
    border-right: 1px solid #333;
}

#briefing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.8;
}

.briefing-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Enable internal scroll */
}

/* Ensure the title doesn't get too large on small screens */
#briefing-title {
    margin-top: 0;
    color: var(--accent);
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

/* DOCUMENT STYLING */
#doc-content {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.5;
}

.doc-header {
    text-align: center;
    border: 2px solid #555;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.handwritten {
    font-family: var(--font-detective);
    background: #f9f9f9;
    padding: 60px;
    /* More breathing room */
    min-height: 300px;
    /* Ensure it feels like a real paper */
    border: 1px solid #eee;
    font-size: 1.5rem;
    line-height: 2rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.received {
    background: #e5e5ea;
    align-self: flex-start;
}

.sent {
    background: #007aff;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
}

/* FORM IN MODAL */
label {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

select,
input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    box-sizing: border-box;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }


}

/* KNIFE ANIMATION */
@keyframes knifeHit {
    0% {
        transform: scale(3) rotate(20deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    80% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.knife-anim-active {
    animation: knifeHit 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes flashRed {
    0% {
        background: rgba(255, 0, 0, 0);
    }

    50% {
        background: rgba(255, 0, 0, 0.5);
    }

    100% {
        background: rgba(255, 0, 0, 0);
    }
}

.flash-red-active {
    animation: flashRed 0.5s ease-out;
}

@keyframes pulseGlow {
    from { box-shadow: inset 0 0 5px var(--accent-glow); }
    to { box-shadow: inset 0 0 20px var(--accent-glow); }
}

/* GUIDE TOGGLE */
.guide-open .guide-content {
    max-height: 800px !important;
    transition: max-height 0.5s ease-in !important;
}
.guide-open > div:first-child span::after {
    content: " ▲";
}

/* --- MOBILE RESPONSIVENESS --- */
@media screen and (max-width: 800px) {
    body {
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
    }

    /* Login / Auth Screen */
    .terminal-loader {
        width: 90%;
        padding: 15px;
        font-size: 0.8rem;
    }
    
    #login-form input, #register-form input, .btn-resolve {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    #auth-container > div {
        flex-direction: column;
    }
    
    #btn-tab-login, #btn-tab-register {
        width: 100% !important;
    }

    /* Header */
    header {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }
    
    .status-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* Home Screen Layout */
    #home-screen {
        padding: 20px 5% 100px 5%; /* Extra bottom padding for mobile browsers */
        height: 100vh;
        overflow-y: auto;
    }
    
    .home-header {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }

    .home-header h1, .home-header p {
        display: block !important;
    }
    
    .user-stats {
        width: 100%;
        box-sizing: border-box;
        text-align: center !important;
    }

    #home-screen > div {
        flex-direction: column;
    }

    /* Dossier Grid */
    .archive-grid {
        justify-content: center;
        gap: 20px;
    }
    
    .case-file {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Active Game UI - OFF CANVAS MENUS */
    .btn-toggle-left {
        display: none !important;
    }

    #dossier-container {
        flex-direction: row !important;
        position: fixed !important;
        top: 50px;
        bottom: 60px;
        left: 0;
        right: 0;
        overflow: hidden;
    }
    
    #nav-panel, #notes-panel {
        position: fixed !important;
        top: 50px;
        bottom: 60px;
        width: 85% !important;
        min-width: 85% !important;
        z-index: 2000;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        border: none;
    }
    
    #nav-panel {
        left: 0;
        transform: translateX(-100%);
        border-right: 2px solid var(--accent);
    }
    
    #notes-panel {
        right: 0;
        transform: translateX(100%);
        border-left: 2px solid var(--accent);
    }
    
    #nav-panel.mobile-open, #notes-panel.mobile-open {
        transform: translateX(0);
    }
    
    #viewer-panel {
        width: 100% !important;
        min-height: auto;
        height: 100%;
        padding-bottom: 20px;
        overflow-y: auto;
    }

    #document-container {
        text-align: center;
    }

    #doc-content {
        text-align: center;
    }
    
    #mobile-bottom-bar {
        display: none !important;
    }

    #mobile-bottom-bar.show {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #000;
        border-top: 1px solid var(--accent);
        z-index: 3000;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.8);
    }
    
    #mobile-bottom-bar button {
        flex: 1;
        background: transparent;
        border: none;
        color: var(--accent);
        font-family: var(--font-main);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.9rem;
    }
    
    #mobile-bottom-bar button:first-child {
        border-right: 1px solid #333;
    }
    
    .evidence-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-handwritten, .doc-medical {
        padding: 15px;
        font-size: 1rem;
    }
    
    .briefing-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    #briefing-img-container {
        width: 100%;
        height: 200px;
    }
    
    .briefing-text {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
        padding-bottom: 60px;
        max-height: 80vh;
        -webkit-overflow-scrolling: touch;
    }
}

/* TEXT FLICKER ANIMATION */
@keyframes text-flicker {
  0% { opacity: 0.1; }
  2% { opacity: 1; }
  8% { opacity: 0.1; }
  9% { opacity: 1; }
  12% { opacity: 0.5; }
  20% { opacity: 1; }
  25% { opacity: 0.3; }
  30% { opacity: 1; }
  70% { opacity: 0.7; }
  72% { opacity: 0.2; }
  77% { opacity: 0.9; }
  100% { opacity: 1; }
}
.retro-flicker {
  animation: text-flicker 3s infinite;
}
