/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 80%;
    margin: auto;
    background: white;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
}

/* Navigation Bar */
.navbar {
    background: #000000;
    padding: 15px;
    text-align: center;
}

.navbar a {
    color: white;
    margin: 10px;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    display: inline-block;
}

.navbar a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Logout Button */
.logout {
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
}

.logout:hover {
    background: #c82333;
}

/* Form Styles */
form {
    margin: 20px auto;
    padding: 20px;
    width: 50%;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input, select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #218838;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
}


/* Certificate Section */
.certificate-heading {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

/* List Styling */
.certificate-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* List Items */
.certificate-list li {
    margin: 10px 0;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

/* Download Button */
.download-btn {
    display: inline-block;
    background: linear-gradient(to right, #4CAF50, #2E8B57);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hover Effect */
.download-btn:hover {
    background: linear-gradient(to right, #2E8B57, #4CAF50);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 600px) {
    .certificate-list li {
        width: 100%;
    }
    
    .download-btn {
        width: 90%;
        text-align: center;
        padding: 10px;
    }
}


img.cert_thumb{
    width:200px;
    border:5px solid white;
    box-shadow:0px 0px 10px gray;
    margin-bottom:15px;
}



/* Footer */
footer {
    text-align: center;
    background: #333;
    color: white;
    padding: 10px;
    margin-top: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        /*width: 95%;*/
    }

    form {
        width: 80%;
    }

    input, select, button {
        width: 100%;
    }
}
