.certificatebody {
    border: 2px solid black;
    height: 100%;
    padding: 2rem 6rem;
}

.heading {
    font-size: 80px;
    font-weight: 600;
    color: black;
}

.fillable p {
    font-weight: 550;
    font-size: 1.3rem;
}

.fillable .input {
    border-bottom: 2px dashed black;
    width: 600px;
}

.downloadBtn {
    border-radius: 8px;
    padding: 8px 16px;
    border: 1px solid #e2a60d;
    background: #e2a60d;
    color: white;
}

.downloadBtn:hover {
    background-color: white !important;
    color: #e2a60d;
}

@media print {
    body {
        margin: 0;
    }

    .certificatebody {
        padding: 2rem;
        page-break-inside: avoid;
    }

    .main {
        width: 210mm;
        /* A4 width */
        height: 297mm;
        /* A4 height */
        margin: auto;
    }

    .certificatebody {
        height: auto;
        /* Ensure the height is flexible */
    }

    .heading {
        font-size: 48px;
        /* Reduce font size slightly */
    }

    .fillable p {
        font-size: 1.2rem;
    }

    /* Set exact margins to fit an A4 size paper */
    @page {
        size: A4;
        margin: 1cm;
    }
}
