* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('img/voter1.webp');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100vh;
    margin: 0;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

header {
    background: #ffffff;
    color: #333;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-icons {
    display: flex;
    gap: 20px;
}

.nav-icons a {
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.icon {
    font-size: 1.2rem;
}

.info-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    max-width: 90%;
    width: 400px;
}

.info-content h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.info-content p {
    text-align: left;
    font-size: 0.95rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
}

ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

header a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}

header a:hover {
    color: #000;
}

ul {
    list-style: none;
    display: flex;
    gap: 20px;
}


.container {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    background: transparent;
}

.container P {
    text-align: center;
    font-size: 1.2rem;
    color: black;
}


.card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}


/* Animated h1 with a floating effect */
h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-align: center;
    animation: fadeInDown 1s ease-out forwards,
        floatContinuous 3s ease-in-out infinite;
    transition: color 0.3s ease;
}

/* Entrance: Fades in from the top */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatContinuous {

    0%,
    100% {
        transform: translateY(0);
        text-shadow: 0 5px 15px rgba(227, 227, 220, 0.1);
    }

    50% {
        transform: translateY(-10px);
        color: white;
        text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
}

.subtitle {
    font-size: 1rem;
    color: #777777;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


.form-group {
    text-align: left;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #333;
    /* Darker border on click */
}

/* Button Styling */
.btn-primary {
    background-color: #333;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.support-link {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #888;
}

.support-link a {
    color: #007bff;
    text-decoration: underline;
}


.candidate-option {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.2s;
}

.candidate-option:hover {
    background: #f0f0f0;
}

.candidate-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
    cursor: pointer;
}

.candidate-option label {
    margin-bottom: 0;
    /* Override your existing label margin */
    cursor: pointer;
    flex-grow: 1;
    text-align: left;
}



.ballot-slide {
    display: none;
}

.ballot-slide.active {
    display: block;
}

.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.candidate-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.candidate-card p {
    color: black;
    font-weight: 900;
    margin: 10px 0 5px;
}

.candidate-card img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 100px;
    margin-bottom: 10px;
}

.candidate-card.selected {
    border-color: #333;
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    min-height: 50px;
}

#nextBtn {
    margin-left: auto;
}

.btn-secondary {
    background: #ccc;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

#review-content {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    max-width: 800px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

#review-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 0px solid #eee;
    padding-bottom: 10px;
}

/* Removes the extra margin/line from the last item */
#review-content p:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.container-footer {
    background: #222;
    color: #bbb;
    padding: 40px 0;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}


/* Footer Container */
.container-footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 50px 0 20px 0;
    margin-top: 40px;
    width: 100%;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}


.footer-left {
    text-align: left;
    flex: 1;
}

.footer-left h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #007bff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #fff;
}

.footer-right {
    text-align: right;
    flex: 1;
}

.footer-right h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.footer-right p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #888;
}

.newsletter-form {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.newsletter-form input {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    width: 200px;
}

.btn-subscribe {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-subscribe:hover {
    background: #555;
}

/* Bottom Copyright Section */
.footer-bottom {
    text-align: center;
    font-size: 1rem;
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 1rem;
    color: whitesmoke;
}

.container-footer hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 0;
}