.a4-page {
    width: 210mm;  /* Fixed Width for A4 */
    height: 297mm; /* Fixed Height for A4 */
    padding: 15mm; /* Consistent padding */
    background-color: #fff;
    margin: 0 auto; /* Center the content */
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-size: 12px;
    overflow: hidden; 
    position: relative;
}
.assignment-title {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.logo img {
    width: 100px;
    height: auto;
    display: block;
    margin: 10px auto;
}
.content-table {
    margin: 10px 0;
    border-collapse: collapse; 
    width: 100%; 
}
.content-table td {
    font-size: medium;
    padding: 2mm; /* Consistent padding */
    vertical-align: top;
    border: 1px solid #ddd;
}
.content-table td:first-child {
    width: 1.5in; 
    white-space: nowrap; 
}

.content-table td:last-child {
    width: auto; 
}
.remark {
    font-size: 16px; 
    font-weight: bold;
    margin-top: 10px;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
@media print {
    body {
        margin: 0;
    }

    .a4-page {
        box-shadow: none;
        padding: 10mm;
        
    }

    .text-center {
        font-size: 24px; 
    }

    .content-table td {
        padding:3mm; 
    }
}

@media (max-width: 576px) {
    .a4-page {
        padding: 5mm; 
        width: 100%;  

    }
    .assignment-title{
        font-size: 20px;
    }
    .text-center {
        font-size: 20px; 
    }

    .content-table td {
        font-size: 14px; 
        padding: 3mm; 
    }
}