@font-face{font-family:"NPKA";src:url(../../fonts/ka.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+10A0-10FF,U+1C90-1CBF,U+2D00-2D2F}
.theme-1990s { 
    --bg: #008080; 
    --text: #000; 
    --accent: #000080; 
    --card: #c0c0c0; 
    --border: 2px solid; 
    --font: 'Courier Prime', 'Courier New', monospace, NPKA; 
    --radius: 0px; 
}

.theme-2000s { 
    --bg: #e6f2ff; 
    --text: #333; 
    --accent: #ff6600; 
    --card: linear-gradient(#fff, #f0f0f0); 
    --border: 1px solid #b3d4fc; 
    --font: Verdana, Tahoma, sans-serif, NPKA; 
    --radius: 12px; 
}

.theme-2010s { 
    --bg: #f5f5f5; 
    --text: #424242; 
    --accent: #2196F3; 
    --card: #fff; 
    --border: 1px solid #e0e0e0; 
    --font: 'Inter', system-ui, sans-serif, NPKA; 
    --radius: 4px; 
}

.theme-2020s { 
    --bg: #0b0c10; 
    --text: #c5c6c7; 
    --accent: #ff1e40; 
    --card: rgba(31, 40, 51); 
    --border: 1px solid rgba(255, 30, 64, 0.3); 
    --font: 'Inter', system-ui, sans-serif, NPKA; 
    --radius: 16px; 
}

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font); 
    margin: 0; 
    padding: 0; 
    transition: all 0.4s ease; 
    min-height: 100vh; 
    overflow-x: hidden;
}

main { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.page-header { 
    text-align: center; 
    margin-bottom: 50px; 
}

.historic-title { 
    text-transform: uppercase; 
    color: var(--accent); 
    margin-bottom: 10px; 
}

.badge { 
    display: inline-block; 
    padding: 5px 12px; 
    background: var(--accent); 
    color: white; 
    border-radius: var(--radius); 
    margin-bottom: 15px; 
    font-weight: bold; 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 30px; 
    background: var(--card); 
    border-bottom: var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 100;
    flex-wrap: wrap; 
}

.mobile-brand { 
    display: none; 
    color: var(--accent); 
    text-transform: uppercase; 
    font-weight: bold; 
    font-size: 1.2em; 
}

.hamburger { 
    display: none; 
    background: transparent; 
    border: 2px solid var(--accent); 
    color: var(--text); 
    padding: 8px 15px; 
    border-radius: var(--radius); 
    cursor: pointer; 
    font-size: 1em; 
    font-weight: bold; 
    transition: 0.3s; 
}

.hamburger:hover { 
    background: var(--accent); 
    color: white; 
}

.nav-menu { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    align-items: center; 
}

.nav-links a { 
    color: var(--text); 
    text-decoration: none; 
    margin-right: 20px; 
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 0.85em; 
    transition: 0.3s; 
}

.nav-links a.active { 
    color: var(--accent); 
    border-bottom: 2px solid var(--accent); 
}

.era-controls button { 
    background: var(--card); 
    border: var(--border); 
    color: var(--text); 
    padding: 5px 15px; 
    margin-left: 5px; 
    border-radius: var(--radius); 
    cursor: pointer; 
    font-weight: bold; 
}

.era-controls button.active-era { 
    background: var(--accent); 
    color: #fff; 
}

.type-lab { 
    margin-bottom: 60px; 
    text-align: center; 
    border: 2px solid var(--accent) !important; 
    padding: 40px; 
    background: var(--card); 
    border-radius: var(--radius); 
}

#script-select { 
    width: 320px; 
    padding: 12px; 
    border-radius: var(--radius); 
    background: var(--bg); 
    color: var(--text); 
    border: 2px solid var(--accent); 
    cursor: pointer; 
    outline: none; 
    transition: 0.3s; 
    font-weight: bold; 
}

#script-select:hover { 
    box-shadow: 0 0 15px var(--accent); 
}

.type-display { 
    padding: 40px; 
    background: rgba(0,0,0,0.05); 
    border-radius: var(--radius); 
    margin-top: 20px; 
    border: 1px dashed var(--accent); 
}

#sample-text { 
    font-size: 2.5em; 
    margin-bottom: 10px; 
    word-break: break-word; 
}

.font-asomtavruli { 
    font-family: serif; 
    letter-spacing: 2px; 
}

.font-nuskhuri { 
    font-family: serif; 
    font-style: italic; 
}

.font-mtavruli { 
    font-feature-settings: "case" on; 
    text-transform: uppercase; 
}

.timeline-container { 
    position: relative; 
    padding: 60px 0; 
    display: flex; 
    flex-direction: column; 
    min-height: 70vh; 
}

.timeline-container::after { 
    content: ''; position: absolute; width: 4px; 
    background: linear-gradient(to bottom, transparent, var(--accent) 5%, var(--accent) 95%, transparent);
    top: -40px; bottom: -80px; left: 50%; transform: translateX(-50%); z-index: 1; 
}

.timeline-row { 
    display: flex; 
    width: 100%; 
    margin-bottom: 80px; 
    position: relative; 
}

.timeline-dot { 
    position: absolute; 
    width: 20px; 
    height: 20px; 
    background: var(--bg); 
    border: 4px solid var(--accent); 
    border-radius: 50%; 
    left: 50%; 
    transform: translateX(-50%); z-index: 10; 
}

.timeline-card { 
    background: var(--card); 
    border: var(--border); 
    border-radius: var(--radius); 
    padding: 30px; position: relative; 
    z-index: 2; 
    width: 42%; 
}

.row-left { 
    justify-content: flex-start; 
    text-align: right; 
}

.row-right { 
    justify-content: flex-end; 
    text-align: left; 
}

.row-button-top { 
    display: flex; 
    width: 100%; 
    margin-top: 0px; 
    margin-bottom:20px; 
    justify-content: center; 
    z-index: 999;
}

.row-button-top button {
    width: 200px; 
    min-height: 30px; 
}

.row-button-bottom { 
    display: flex; 
    width: 100%; 
    margin-top: 20px; 
    margin-bottom:0px; 
    justify-content: center; 
    z-index: 999;
}

.row-button-bottom button {
    width: 200px; 
    height: 30px; 
}

@media (max-width: 767px) {

    .mobile-brand { 
        display: block; 
    }
    .hamburger { 
        display: block; 
    }
    .nav-menu { display: none; 
        flex-direction: column; 
        width: 100%; 
        margin-top: 20px; 
        text-align: center; 
    }

    .nav-menu.active { 
        display: flex; 
    } 
    .nav-links { 
        display: flex; 
        flex-direction: column; 
        margin-bottom: 20px; 
    }
    .nav-links a { 
        margin: 15px 0; 
        font-size: 1em; 
    }
    .era-controls { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 10px; 
    }
    .era-controls button { 
        margin: 0; 
    }

    .timeline-container::after { 
        left: 30px; 
        transform: translateX(-50%); 
    }
    .timeline-dot { 
        left: 30px; 
        transform: translateX(-50%); 
    }
    .timeline-card { 
        width: calc(100% - 70px); 
        margin-left: 60px; 
        text-align: left !important; 
    }
    .timeline-row { 
        justify-content: flex-start !important; 
    }
}
/* demo additions */
#sample-text { font-family: NPKA, var(--font); }
.demo-note { max-width: 46rem; margin: 0 auto 30px; padding: 12px 16px; border: var(--border); border-radius: var(--radius); background: var(--card); font-size: .9em; text-align: center; }
main { margin-top: 30px; }
.timeline-card p, .timeline-card h2 { overflow-wrap: anywhere; }
@media (max-width: 767px) { #script-select { width: 100%; } .type-lab, .type-display { padding: 20px; } #sample-text { font-size: 1.7em; } }
