body {
    font-family: Cambria, "Times New Roman", Times, serif;
    text-align: center;
}

.card-header {
    background-color: #FF7722; /* Bootstrap Primary */
    color: white;
}
.card-body {
    background-color: #FAD5A5; /* Bootstrap Light */
}

.guru-dev {
    font-weight: bold;
    font-size: 10px;
    color: #FF7722;
    margin-bottom: 4px;
    margin-top: -10px;
}

.header,
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.header img {
    width: 120px;
    height: 120px;
}

.title,
.subtitle {
    font-weight: bold;
}

.title {
    font-size: 28px;
}

.subtitle {
    font-size: 12px;
    color: #FF7722;
    margin-top: -10px;
}

.address {
    font-size: 14px;
    margin-top: -10px;
}


.center-logo {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    
}
.btn {
    font-size: 20px;
    background-color: #cbcdd0d9; /* Bootstrap 569eefd9 */
    
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;

}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('logo.png');
    background-size: 200px;
    /* Adjust size as needed */
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    /* Adjust transparency */
    z-index: -1;
    /* Place it behind other content */
}

.certificate {
   
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

.header,
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.header img {
    width: 80px;
    height: 100px;
}

.title,
.subtitle {
    font-weight: bold;
}

.title {
    font-size: 26px;
}

.subtitle {
    font-size: 12px;
}

#result-section h4,
h2,
h6 {
    margin: 5px 0;
    padding: 0;
    line-height: 1.2;
    font-weight: bold;
}

.certificate-title {
    margin: 10px 0;
    font-size: 24px;
    font-weight: bold;
    color: #b38f00;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center;
    background-color: transparent;
}

.table,
.table th,
.table td {
    border: 1px solid black;
    padding: 8px;
    background-color: transparent;
}

#student-name,
#student-id {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.details {
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ccc;
}

.details p {
    margin: 10px 0;
    line-height: 1.5;
}

.final-results {
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border: 1px solid #b38f00;
    border-radius: 5px;
    background-color: #fdf5e6;
}

.final-results.pass {
    color: green;
    border-color: green;
    background-color: #e0f7e0;
}

.final-results.fail {
    color: red;
    border-color: red;
    background-color: #f8d7da;
}

.final-results strong {
    font-size: 22px;
    color: #b38f00;
}

.print-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.print-button:hover {
    background-color: #45a049;
}


#studentID {
    padding: 10px;
    width: 250px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

#studentID:focus {
    border-color: #4CAF50;
}


/* Print-specific styles */
@media print {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }

    .certificate {
        width: 100%;
        margin: 0;
        padding: 0;
        page-break-inside: avoid;
    }

    .table {
        font-size: 12px;
        width: 100%;
    }

    .print-button-container {
        display: none;
    }

    /* Ensure images are larger while printing */
    .header img,
    .footer img {
        width: 100px;
        /* Set appropriate size */
        height: auto;
    }

    .center-logo {
        width: 120px;
        /* Ensure center logo is appropriately sized */
        height: auto;
    }

    /* If you have additional images, ensure they are properly sized */
    .certificate img {
        width: 100%;
        height: auto;
    }
}


/* Make the page more responsive for mobile */
@media (max-width: 768px) {
    .certificate {
        padding: 15px;
        width: 100%;
    }

    .header img {
        width: 50px;
        height: 65px;
    }

    .title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 10px;
    }

    .print-button {
        width: 100%;
        font-size: 14px;
    }

    #student-name,
    #student-id {
        font-size: 18px;
    }

    .table th,
    .table td {
        padding: 6px;
    }

    .details p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .certificate {
        padding: 10px;
    }

    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 8px;
    }

    .print-button {
        width: 100%;
        font-size: 12px;
    }

    .details p {
        font-size: 12px;
    }
}


