:root {

    --font-body: 'Noto Sans', sans-serif;
    --font-deva: 'Noto Sans Devanagari', var(--font-body);
    --font-bodo: 'Noto Sans Devanagari', var(--font-body);
    --font-beng: 'Noto Sans Bengali', var(--font-body);
    --font-assa: 'Lohit Assamese', var(--font-body);
    --font-engl: 'Courier New', monospace;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    background: #ffffff;
    font-family: var(--font-body);
    min-height: 100vh;
    padding: 30px;
    padding-bottom: 90px;
}

.center-text {
    text-align: center;
}

.container {

    max-width: 1100px;
    margin: auto;

}

.heading {
    font-size: 30px;
}

.title {

    text-align: center;
    font-size: 52px;
    margin-bottom: 10px;

}

.subtitle {

    text-align: center;
    color: #666;
    margin-bottom: 40px;

}

.lang-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;

}

.lang-card {

    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 7px 7px;
    cursor: pointer;
    transition: 0.3s;

}

.lang-card:hover {

    transform: translateY(-5px);

}

.lang-card.active {

    border: 2px solid #000;
    background: #000;
    color: #fff;

}

.lang-card.faded {

    opacity: 0.35;

}

.lang-card h3 {

    margin-bottom: 10px;
    font-size: 24px;

}

.upload-section {

    background: #fafafa;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px dashed #ccc;

}

.hidden {

    display: none;

}

.drop-zone {

    display: block;
    border: 3px dashed #bbb;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;

}

.drop-zone:hover {

    background: #f2f2f2;

}

.drop-zone input {

    display: none;

}

.drop-content h2 {

    margin-bottom: 10px;

}

.convert-btn {

    width: 100%;
    margin-top: 20px;
    padding: 18px;
    border: none;
    border-radius: 14px;
    background: #000;
    color: #fff;
    font-size: 18px;
    cursor: pointer;

}

.output-section {

    margin-top: 40px;
    background: #fafafa;
    border-radius: 20px;
    padding: 30px;

}

.output-section h2 {

    margin-bottom: 20px;

}

textarea {

    width: 100%;
    min-height: 350px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #ddd;
    resize: vertical;
    font-size: 20px;
    line-height: 1.8;

}

.font-asm {
    font-family: var(--font-assa);
}

.font-eng {
    font-family: var(--font-body);
}

.font-ben {
    font-family: var(--font-beng);
}

.font-hin,
.font-bod {
    font-family: var(--font-deva);
}


/*  IMAGE PREVIEW */

.preview-container {
    margin-top: 20px;
    text-align: center;
}

.preview-container img {

    max-width: 100%;
    max-height: 320px;
    border-radius: 16px;
    border: 2px solid #ddd;
    object-fit: contain;
    background: #fff;
    padding: 10px;

}

.preview-container p {

    margin-top: 12px;
    font-size: 14px;
    color: #555;
    word-break: break-word;

}

.drop-zone.dragover {
    border-color: #000;
    background: #f1f1f1;
}


/* =========================
   FIXED FLOATING FOOTER
========================= */

.floating-footer {

    position: fixed !important;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    z-index: 999999;
    pointer-events: none;
}

/* =========================
   FOOTER CONTENT
========================= */

.footer-content {

    background: rgba(0, 0, 0, 0.88);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
    white-space: nowrap;

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px) {

    .floating-footer {

        padding: 10px;

    }

    .footer-content {

        width: 100%;

        text-align: center;

        white-space: normal;

        font-size: 12px;

        line-height: 1.5;

    }

}

@media(max-width:768px) {

    .title {

        font-size: 38px;

    }

}
