/* Base Theme */
:root {
    --primary-color: #1B065E;
    --secondary-color: #FFAD05;
    --background-color: #F5ECCD;
    --text-color: white;
}

/* General Page Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 5%;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children horizontally */
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--primary-color);
    width: 100%;
    height: 120px; /* Approx. 2 inches */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    margin-bottom: 5px;
}

.header-content {
    display: flex;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    justify-content: center;
    position: relative;
}

.logo {
    width: 80px;
    height: 80px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin-left: 15px;
}

/* Logout Button */
.logout-btn {
    position: absolute;
    right: 10px;
    background-color: var(--secondary-color);
    border: none;
    color: var(--text-color);
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.logout-btn img {
	max-width: 30px;
}

.logout-btn:hover {
    background-color: #E0A800;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    width: 100%;
    height: 120px; /* Same as header */
    text-align: center;
    padding: 20px;
    margin-top: 5px;
}

.footer-content p {
    margin: 5px 0;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--secondary-color);
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Form Container */
.container {
    padding: 20px;
    border-radius: 10px;
    width: 95%;
    text-align: center;
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically (if needed) */
    margin: 5px 10px;
    color: #033860;
}

/* Form Container */
.form-container {
    background: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    color: white;
    width: 95%;
    text-align: center;
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically (if needed) */
    margin: 5px 10px;
}

/* Form Container */
.form-container {
    background: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    color: white;
    max-width: 325px;
    text-align: center;
}

/* Form Fields: Side by Side Layout */
.form-group {
    display: flex;
    align-items: center;  /* Align label and input vertically */
    justify-content: space-between;
    margin-bottom: 15px;
    text-align: left;
}

/* Labels */
.form-group label {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
}

/* Input Fields */
.form-group input,
.form-group select,
.form-group textarea {
    flex: 2;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    width: 100%;
	font-size: 13pt;
	font-weight: bold;
}

/* Checkbox & Radio Button Fix */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-left: 10px;
}

/* File Input Customization */
.form-group input[type="file"] {
    padding: 5px;
}

/* Voting Section */
.position {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Candidates Container */
.candidates {
    overflow: hidden; /* Ensures parent contains floated children */
	align-items: center; /* Center children horizontally */
}

/* Individual Candidate Box */
.candidate {
    width: 40%; /* Adjust based on how many candidates per row */
	min-height: 260px;
    margin: 1.5%;
    background: #F0F0F0;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    float: left;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.candidate:hover {
    background: #EAEAEA;
}

/* Selected Candidate Styling */
.candidate.selected {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

/* Candidate Image */
.candidate img {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

/* Candidate Name */
.candidate .name {
    font-size: 16px;
    font-weight: bold;
}

/* Candidate Party */
.candidate .party {
    font-size: 14px;
    color: #555;
}

/* Clear Floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid var(--primary-color);
    padding: 2px;
}

/* Button */
button {
    background: var(--secondary-color);
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 75%;
	border-radius: 5px;
	font-size: 15pt;
}

/* Rating */
.rating {
    font-size: 25px;
    cursor: pointer;
    color: var(--secondary-color);
}

div.notification {
    padding: 10px;
    margin: 5px;
    border: 2px dashed; 
    border-radius: 10px;
	width: 100%;
}

/* Notification types */
.notice {
    border-color: #2196F3;
    background-color: #E3F2FD;
    color: #0D47A1;
}

.warning {
    border-color: #FFC107;
    background-color: #FFF8E1;
    color: #FF6F00;
}

.error {
    border-color: #F44336;
    background-color: #FFEBEE;
    color: #B71C1C;
}

.success {
    border-color: #4CAF50;
    background-color: #E8F5E9;
    color: #1B5E20;
}

button.authorized {
	background-color: #4CAF50;
}

button.restricted {
	background-color: #F44336;
}

.container h1.label {
	background-color: var(--primary-color);
    color: #F8F9FA;
    padding: 10px;
    margin: 0;
}

section.position h2.label {
	background-color: var(--primary-color);
    color: #F8F9FA;
    padding: 10px;
    margin: 0;
}

th, tr.even-rank {
	background-color: #C6DDF0;
}