/* CSS Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}


/* Default styles for all devices */

.tile {
    padding: 10px;
    margin-bottom: 10px;
}

.container {
    justify-content: center;
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px;
}


/* Media query for screens with a maximum width of 768px (Mobile devices) */

@media screen and (max-width: 768px) {
    .tile {
        padding: 5px;
        margin-bottom: 5px;
    }
    .container {
        padding: 10px;
    }
}


/* .container-header {
    text-align: center;
    /* background: url('../images/backgd.jpg') center/cover fixed; *
    background: url('../images/header/backgd.png') center/cover fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    padding: 10rem;
    color: aliceblue;
    background-color: black;
} */


/* .header {
    height: 450px;
    text-align: center;
    background: url('../images/header/logo.jpg') center/cover fixed;
    background-position: center;
    background-repeat: no-repeat;
   
    /* Use 'contain' to fit the image within the container *

padding: 10rem;
color: aliceblue;
background-color: black;

}
*/

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}


/* Basic CSS for the candidate-info section */

.candidate-info {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
}

.candidate-info:last-child {
    margin: 0 auto;
    padding: 20px;
}

.candidate-info img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc;
}

.candidate-info h2 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
}

.candidate-info p {
    font-size: 16px;
    margin-top: 10px;
}

.candidate-info form {
    margin-top: 20px;
}

.candidate-info label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.candidate-info input[type="number"] {
    width: 25%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px;
}

.candidate-info button[type="submit"] {
    display: block;
    margin: 0 auto;
    /* Center horizontally */
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

.candidate-info button[type="submit"]:hover {
    background-color: #555;
    margin: 5px;
}


/* Media Query for Mobile Devices */

@media (max-width: 767px) {
    .candidate-info {
        padding: 10px;
    }
    .candidate-info h2 {
        font-size: 20px;
    }
    .candidate-info p {
        font-size: 14px;
    }
    .candidate-info input[type="number"] {
        font-size: 14px;
    }
    .candidate-info button[type="submit"] {
        padding: 8px 16px;
        font-size: 16px;
    }
}

.btn:hover {
    color: #000;
    background-color: #ebf1ec;
}

.btn {
    display: inline-block;
    color: rgb(9, 9, 9);
    /* background-color: rgb(169, 189, 96); */
    padding: 10px 20px;
    margin: 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

@media screen and (max-width: 768px) {
    .nav {
        flex-direction: column;
    }
    .nav li {
        display: block;
        margin-bottom: 10px;
    }
    .header {
        padding: 5rem;
    }
    .header h1 {
        font-size: 24px;
        margin-bottom: 5px;
        /* Adjust the margin for smaller screens */
    }
    .home-container {
        padding: 20px;
    }
    .section-container {
        margin: 10px;
    }
    .services-section p,
    .commitment-section p {
        margin-bottom: 10px;
    }
    .sponsor-images img {
        max-width: 100px;
        padding: 10px;
        margin: 5px;
    }
}


/* Default styles for all devices */

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 10px;
    text-align: center;
}

.section-container {
    padding: 20px;
    margin: 20px;
    text-align: center;
}

.section-container:last-child {
    margin: 10px;
}


/* .services-section {
    text-align: center;
    margin: 10;
} */

.sponsor-images {
    overflow-x: auto;
    white-space: nowrap;
}

.sponsor-images img {
    max-width: 150px;
    padding: 20px;
    margin: 5px;
}


/* Media query for screens with a maximum width of 768px (Mobile devices) */

@media screen and (max-width: 768px) {
    .column {
        flex-basis: 100%;
        padding: 10px;
    }
    .services-section {
        margin: 10px;
        padding: 10px;
    }
    .services-section p,
    .commitment-section p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .sponsor-images img {
        max-width: 100px;
        padding: 10px;
        margin: 5px;
    }
}

@media screen and (max-width: 768px) {
    .nav {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
    p {
        font-size: 14px;
    }
}

.column {
    flex-basis: 48%;
    padding: 10px;
    border-radius: 5px;
    background-color: #f2f2f2;
    margin: 5px;
}

.column:last-child {
    margin-bottom: 5;
}


/* Media queries for mobile responsiveness */

@media screen and (max-width: 768px) {
    .row {
        display: block;
        margin: 2;
    }
    .column {
        flex-basis: 90%;
        margin: 5px;
    }
}

.contact-section .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.navbar-nav {
    display: flex;
    justify-content: end;
    flex-grow: 1;
    /* Add some padding at the end (right side) of the navbar */
}

.nav-item {
    margin: 0 10px;
    /* Add horizontal margin between each link */
}

.nav-item a {
    text-decoration: none;
    /* Remove underline from the links */
    color: black;
    /* Optional: Set the link color */
}


/* Optional: If you want to add vertical spacing as well */

.navbar-nav li {
    margin-top: 5px;
    margin-bottom: 5px;
}

.navbar-nav {
    display: flex;
    justify-content: end;
    flex-grow: 1;
    /* Add some padding at the end (right side) of the navbar */
}

.nav-item {
    margin: 0 10px;
    /* Add horizontal margin between each link */
}


/* Optional: If you want to add vertical spacing as well */

.navbar-nav li {
    margin-top: 5px;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

textarea {
    height: 150px;
}

a:hover {
    color: rgb(169, 189, 96) !important;
}

a {
    color: rgb(169, 189, 96)!important;
    justify-content: space-between;
}

.col-md-6 a {
    color: #45a049;
}


/* Media queries for mobile responsiveness */

@media screen and (max-width: 768px) {
    .candidate .column {
        flex-basis: 100%;
    }
}

.voted {
    margin: 50px;
    justify-content: space-between;
    align-items: center;
    /* padding: auto; */
    /* color: #57c74a; */
}

.column input[type="radio"]:checked+label .check-icon {
    display: inline-block;
}

.candidate .column:hover {
    transform: scale(1.05);
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 6px;
}

.img-fluid {
    width: 150%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* CSS for the image preview effect */


/* Style for the candidate's image */

.image-container img {
    display: inline-block;
    width: 150px;
    /* Set the desired width for the image */
    height: auto;
    /* Keep the aspect ratio of the image */
    transition: transform 0.3s ease;
}


/* Style for the image preview on hover */

.image-container:hover img {
    transform: scale(1.05);
}


/* Style for the image container */

.image-container {
    position: relative;
    /* To make the image preview absolute */
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    /* Rounded corners for the container */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Box shadow for a subtle effect */
}


/* Style for the candidate's image */

.preview-image {
    display: block;
    width: 90%;
    /* Make the image fill the container */
    height: auto;
    /* Keep the aspect ratio of the image */
    transition: transform 0.3s ease;
    /* Add a smooth transition on hover */
}


/* Style for the image preview on hover */

.image-container:hover .preview-image {
    transform: scale(1.05);
    /* Scale the image slightly on hover */
}


/* .btn-primary {
    margin-top: 20px;
} */


/* Custom styles for the navigation bar */

.navbar {
    justify-content: space-between;
    /* Aligns items to the left and right edges */
}

.navbar-nav {
    margin-left: auto;
    padding: 10px;
    /* Pushes the navigation links to the right */
}


/* Media queries */

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    p {
        font-size: 16px;
    }
    label {
        font-size: 18px;
    }
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 14px;
    }
    button[type="submit"] {
        padding: 10px 20px;
        font-size: 16px;
    }
}


/* Style for Bank Card inputs when Bank Card option is selected */

.card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    border-left: 5px solid rgb(169, 189, 96);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
    /* margin: 10px; */
}

.card:last-child {
    margin: -5px;
    padding: 5px;
    /* padding: 12px; */
}

button {
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgb(169, 189, 96);
    color: white;
    border: none;
    cursor: pointer;
    align-items: center;
}

button:hover {
    background-color: #45a049;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.confirmation-message,
.error-message {
    margin-top: 10px;
    text-align: center;
}


/* Apply red color to the error message */

.error-message {
    color: red;
}


/* Add any additional styles as needed */

.footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* CSS Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ... previous CSS rules ... */


/* Default styles for all devices */


/* 
.tile {
    padding: 10px;
    margin-bottom: 10px;
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px;
} */


/* Default styles for all screen sizes */


/* Styles for screens smaller than 768px (tablets and mobile devices) */

@media (max-width: 768px) {
    .column {
        width: 100%;
        float: none;
    }
}


/* Media query for screens with a maximum width of 768px (Mobile devices) */

@media screen and (max-width: 768px) {
    .tile {
        padding: 5px;
        margin-bottom: 5px;
    }
    .container {
        padding: 10px;
    }
    .nav {
        flex-direction: column;
    }
    .nav li {
        display: block;
        margin-bottom: 10px;
    }
    .header {
        padding: 5rem;
    }
    .header h1 {
        font-size: 24px;
        margin-bottom: 5px;
        /* Adjust the margin for smaller screens */
    }
    .home-container {
        padding: 20px;
    }
    .section-container {
        margin: 10px;
    }
    .services-section p,
    .commitment-section p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .sponsor-images img {
        max-width: 100px;
        padding: 10px;
        margin: 5px;
    }
    .column {
        flex-basis: 100%;
        padding: 10px;
    }
    .services-section {
        margin: 10px;
        padding: 10px;
    }
    .services-section p,
    .commitment-section p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .sponsor-images img {
        max-width: 100px;
        padding: 10px;
        margin: 5px;
    }
}


/* ... previous CSS rules ... */


/* Media queries for mobile responsiveness */

@media screen and (max-width: 768px) {
    .candidate .column {
        flex-basis: 100%;
    }
    /* Update payment container and card styles for mobile */
    .payment-container {
        padding: 20px;
    }
    .card {
        width: 100%;
    }
    /* Adjust other styles for smaller screens if needed */
}


/* Media queries for mobile responsiveness */

@media screen and (max-width: 768px) {
    .candidate .column {
        flex-basis: 100%;
    }
    /* Update payment container and card styles for mobile */
    .payment-container {
        padding: 20px;
    }
    .card {
        width: 100%;
    }
}