﻿
*{
    margin:0;
    padding:0;
}

body {
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
}

h2{
    text-align: center;
    margin: 0 0 1rem 0;
  
}
.roll-preview{
    font-size:14px;
    font-weight:700;
}
.borderbox {
    width: auto;
    height: auto;
    background-color: #f0f0f0;
    padding: 10px;
    margin: 10px;
   /* border: 2px solid #333;
    border-radius: 15px;
    box-sizing: border-box;*/
    page-break-after: always; /* force page break on print */
}
.coursecode {
    text-align: left;
    display: grid;
    justify-content: space-between;
    grid-template-columns: 2fr 1fr;
    grid-column-gap: 1px;
    font-family: "Times New Roman", Times, serif;
    font-size: 19px;
    font-weight: 700;
}
.firstdigits {
    background-color: purple;
}
.no-print {
    display: flex;
    justify-content: space-between;
    margin: 1px 0;
    font-size: 1.1rem;
    font-weight: 100;
}
.print-container {
    /*width: auto;
    height: auto;
    background-color: #f0f0f0;
    padding: 5px;
    margin: 10px;
    border: 2px solid black;
    border-radius: 15px;*/
}


/*table {
    width: 100%;
    font-size: 16px;
    border-collapse: collapse;
    page-break-inside: auto;
}*/

.table th, .table td {
    padding: 6px 8px;
    text-align: left;
}

.table thead {
    background-color: #f0f0f0;
}

.print-button {
    margin-bottom: 1rem;
}

tr {
    page-break-inside: avoid;
    page-break-after: auto;
}


@media print {
    body {
        counter-reset: page;
    }

    .page-number {
        position: fixed;
        bottom: 0;
        right: 0;
        font-size: 12px;
        padding: 5px 10px;
        color: #333;
    }

        .page-number::after {
            counter-increment: page;
            content: "Page " counter(page);
        }

    /* Ensure proper page breaks and spacing */
    .page-break {
        page-break-after: always;
        break-after: page;
    }

    .record-block {
        page-break-inside: avoid;
    }
}
    .no-print {
        display: none;
    }
    
    }
    @page {
        size: A4 portrait;
        margin: 5mm 1mm 25mm 1mm; /*Top, right, bottom, left */
    }

    @page {
        @bottom-right {
            content: "--------------------\A A.O.C\A B.A. 4th SEMESTER EXAM-2025\A FAKIRAGRAM COLLEGE CENTRE";
            font-size: 12pt;
            font-family: "Times New Roman", Times, serif;
            text-align: right;
            vertical-align: bottom;
            white-space: pre-line;
            line-height: 1.4;
            margin: 50px;
            padding: 8px;
        }

    }
        
@media print{
    .container {
        display: block;
        width: auto;
        margin:10px;
        padding:10px;
    }

}
