:root {
    --primary-color: #ff9933; /* Saffron-ish */
    --secondary-color: #138808; /* Green-ish */
    --text-color: #000080; /* Navy Blue */
    --white: #ffffff;
    --accent: #d21f3c;
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.poster-container {
    width: 100%;
    max-width: 600px; /* Typical poster ratio width */
    background: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    border: 5px solid var(--primary-color);
}

/* Decoration Backgrounds */
.decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
}

/* Header */
.header {
    background: linear-gradient(90deg, var(--primary-color), #ffbd6f);
    padding: 20px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.party-info h1 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.party-info h2 {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.party-symbol svg {
    width: 80px;
    height: 80px;
    color: var(--white);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.candidate-image-wrapper {
    position: relative;
    width: 100%; /* Full width */
    height: auto; /* Auto height to show full image */
    margin: 0 auto 20px;
}

.candidate-img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure full image is visible */
    border-radius: 10px;
    border: 4px solid var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.img-border {
    display: none; /* Hide decorative border for full image view */
}

.candidate-details .name {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 800;
    margin-bottom: 5px;
    background: -webkit-linear-gradient(var(--text-color), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.candidate-details .position {
    font-size: 1.4rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 5px;
}

.candidate-details .ward {
    font-size: 1.1rem;
    background: var(--secondary-color);
    color: var(--white);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
}

.slogan-box {
    background: #fff8e1;
    border-left: 5px solid var(--accent);
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-style: italic;
    color: #555;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.vote-appeal p {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.symbol-name {
    color: var(--primary-color); /* Highlight symbol name */
}

.election-date {
    margin-top: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
.candidate-image-wrapper {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    .poster-container {
        border: none;
        box-shadow: none;
        max-width: 100%;
        width: 100%;
    }
}

/* Transparency Notice Styles */
.transparency-notice {
    background: #f8f9fa;
    border-bottom: 2px solid #ccc;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    z-index: 10;
    position: relative;
}

.transparency-notice h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
}

.transparency-notice p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.transparency-notice .paid-by {
    font-weight: 600;
    border: 1px solid #333;
    padding: 8px;
    display: inline-block;
    margin-top: 5px;
    background: #fff;
}

.contact-email {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 0.85rem;
}
