/* General body styling for all pages */
body {
    font-family: Arial, sans-serif; /* Consistent font across all pages */
    margin: 20px;
    padding: 10mm;
    background-color: #f9f9f9;
}

/* Prize Navigation Styling */
div.prizeNavigation {
    background-color: #FFFFE8;
    border: 1px dotted black;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-variant: normal;
}

div.prizeNavigation a {
    color: #0073e6;
    text-decoration: none;
    margin-right: 15px;
    font-weight: normal;
}

div.prizeNavigation a:hover {
    text-decoration: underline;
}

/* Body content styling */
div.bodycontent h2 {
    margin-bottom: 20px;
}

/* Prize links */
p.links1 a {
    color: navy;
}

/* Prize list table styling */
table.prizelist td {
    text-align: left;
    vertical-align: top;
    padding: 5mm;
    width: 3cm;
    min-width: 3cm;
    max-width: 4cm;
}

table.prizelist td a:visited {
    color: navy;
}

/* Prize applicants table styling */
table.prizeapplicants {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table.prizeapplicants th,
table.prizeapplicants td {
    text-align: left;
    vertical-align: top;
    padding: 10px;
    border: 1px solid #ddd;
}

table.prizeapplicants th {
    font-weight: bold;
    background-color: #f9f9f9;
}

table.prizeapplicants td a:visited {
    color: navy;
}

/* Prize ratings table styling for prizeRatingTable.php*/
table.prizeratings {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.prizeratings th,
table.prizeratings td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

table.prizeratings th {
    background-color: #f9f9f9;
    font-weight: bold;
}

table.prizeratings td.reviewers {
    width: 20%;
}

table.prizeratings td.winners {
    width: 80%;
}

/* PrizeReviewerLogin Page Styling */
.welcome-message {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #e0f7fa;
    border-radius: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

a {
    text-decoration: none;
    color: #007acc;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: 1px solid #ddd;
    margin: 20px 0;
}

.links {
    margin: 10px 0;
}

/* ChangeOfPassword Page Styling for changeOfPasswordPrizeReviewer.php*/
/* Success and Error Messages */
.prizereview-message {
    font-weight: bold;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
}

.prizereview-message.success {
    color: #28a745;
    background-color: #e8f5e9;
    border: 1px solid #c3e6cb;
}

.prizereview-message.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Link Styling */
.prizereview-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.prizereview-link:hover {
    text-decoration: underline;
}

/* Form Container */
.prizereview-form-container {
    width: 100%;
    max-width: 600px;
    margin: 0; /* Align to the left */
    padding: 10px 0;
}

.prizereview-form-title {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: left;
}

/* Form Table Styling */
.prizereview-form-container table {
    width: 100%;
    border-spacing: 10px; /* Add spacing between fields */
}

.prizereview-form-container td {
    padding: 10px 0;
    vertical-align: middle;
    text-align: left;
}

.prizereview-form-container input[type="text"],
.prizereview-form-container input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.prizereview-submit-button {
    display: inline-block;
    width: auto;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
}

.prizereview-submit-button:hover {
    background-color: #0056b3;
}

/* Action Links Styling */
.prizereview-actions {
    margin-top: 20px;
}

.prizereview-actions a {
    display: block;
    margin-top: 5px;
    color: #007bff;
    text-decoration: none;
}

.prizereview-actions a:hover {
    text-decoration: underline;
}

/* styling for prizeRating.php */
/* Restrict width of the explanation column and enable text wrapping */
table#prizeratingform td.explanation {
    font-size: 1.2em;
    color: #333;
    padding: 10px;
    vertical-align: top;
    width: 40%; /* Restrict the width */
    max-width: 400px; /* Ensure it doesn't exceed 400px */
    word-wrap: break-word; /* Wrap long text */
}

/* Spacing between prize candidates */
table#prizeratingform label {
    font-size: 1.2em;
    line-height: 1.8em; /* Add vertical spacing */
    display: block;
    color: #555;
    margin-bottom: 8px; /* Add spacing between checkboxes */
}

/* Add spacing between checkbox and name */
table#prizeratingform label input[type="checkbox"] {
    margin-right: 10px; /* Add space between checkbox and text */
}

/* Add spacing above the submit button */
table#prizeratingform input[type="submit"] {
    background-color: #007bff;
    color: white;
    font-size: 1em;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 20px; /* Add spacing above the button */
}

table#prizeratingform input[type="submit"]:hover {
    background-color: #0056b3;
}