/* ✅ Global Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f1f1f1;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* ✅ Header */
header {
    background: linear-gradient(to right, #002855, #004080);
    color: white;
    padding: 20px;
    font-size: 24px;
}

/* ✅ Main Container */
.container {
    max-width: 700px;
    background: white;
    padding: 25px;
    margin: 40px auto;
    
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #003366;
}

/* ✅ Candidate Grid */
.candidates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* ✅ Candidate Card */
.candidate {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
    background: white;
    padding: 15px;
    
    border: 3px solid #004080;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

/* ✅ Candidate Images */
.candidate img {
    width: 200px;
    height: auto;

    border: 3px solid black;
}

.vote-button {
    font-size: 18px;
    font-weight: bold;
    background: red;
    color: white;
    padding: 10px 20px;

    border: 2px solid black;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease-in-out;
}

.vote-button.moved {
    transform: translate(50px, 50px); /* Moves the button once */
}

#captchaSection {
    background: #ffcc00;
    padding: 20px;
    margin-top: 20px;
    border: 4px solid black;
}

#captchaInput {
    font-size: 18px;
    padding: 10px;
    text-align: center;
    border: 2px solid black;
}

#captchaVerify {
    font-size: 18px;
    padding: 10px 20px;
    background: green;
    color: white;
    border: none;
    cursor: pointer;
}

#captchaVerify:hover {
    background: darkgreen;
}


/* ✅ Results Button */
#results-btn {
    background: green;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 12px 25px;
    cursor: pointer;
    margin-top: 20px;
}

#results-btn:hover {
    background: darkgreen;
}

/* ✅ Admin Reset */
#reset-btn {
    background: darkred;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 12px 25px;
    cursor: pointer;
    margin-top: 20px;
}

#reset-btn:hover {
    background: red;
}

/* ✅ Ad Popup */
.adPopup {
    position: fixed;
    width: 300px;
    background: white;
    padding: 15px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-align: center;
    border: 3px solid red;
    display: block !important;
}

/* ✅ Ad Image */
.adPopup .adImage {
    width: 280px;
    height: auto;
    cursor: pointer;
}

/* ✅ Close Button */
.adPopup .closeAd {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
}

.adPopup .closeAd:hover {
    background: darkred;
}
#voteCounterSection {
    background: #ccffcc;
    padding: 20px;
    margin-bottom: 20px;
    border: 3px solid green;
    font-size: 20px;
    font-weight: bold;
}

#buyVotesSection {
    background: #ffffcc;
    padding: 20px;
    margin-top: 20px;
    border: 3px solid #ff8800;
}

#voteAmount {
    font-size: 18px;
    padding: 10px;
    border: 2px solid black;
    width: 80px;
    text-align: center;
}

#buyVotesButton {
    font-size: 18px;
    padding: 10px 20px;
    background: orange;
    color: white;
    border: none;
    cursor: pointer;
}

#buyVotesButton:hover {
    background: darkorange;
}

.terms-container {
    max-width: 600px;
    margin: auto;
    text-align: center;
    padding: 20px;
}

.terms-box {
    height: 300px;
    overflow-y: scroll;
    background: #f8f8f8;
    padding: 15px;
    border: 3px solid red;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    text-align: left;
}

#agreeButton {
    padding: 10px 20px;
    font-size: 18px;
    background: gray;
    color: white;
    border: none;
    cursor: not-allowed;
    margin-top: 10px;
}

#agreeButton:not(:disabled) {
    background: green;
    cursor: pointer;
}

#scrollMessage {
    font-weight: bold;
    color: red;
    margin-top: 10px;
}

.data-warning {
    text-align: center;
    background: black;
    color: red;
    padding: 40px;
    font-family: "Courier New", monospace;
    font-size: 20px;
    border: 5px solid red;
    box-shadow: 0 0 20px red;
    max-width: 600px;
    margin: 50px auto;
}

.data-warning h1 {
    font-size: 32px;
    color: white;
    text-shadow: 0px 0px 10px red;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.4; }
}

.progress-container {
    width: 100%;
    height: 25px;
    background: darkred;
    border: 3px solid red;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: red;
    transition: width 0.5s linear;
}

.file-info, .progress-text {
    font-size: 18px;
    margin: 10px 0;
}

.data-list {
    list-style: none;
    padding: 0;
    font-size: 18px;
    margin: 20px 0;
    color: white;
}

.data-list li {
    margin: 10px 0;
}

#cancelButton {
    background: red;
    color: white;
    border: none;
    font-size: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

#cancelButton:hover {
    background: darkred;
}

.transfer-complete {
    text-align: center;
    background: black;
    color: red;
    padding: 40px;
    font-family: "Courier New", monospace;
    font-size: 22px;
    border: 5px solid red;
    box-shadow: 0 0 20px red;
    max-width: 600px;
    margin: 50px auto;
}

.transfer-complete h1 {
    font-size: 32px;
    color: white;
    text-shadow: 0px 0px 10px red;
    animation: blink 1s infinite alternate;
}

.transfer-complete p {
    font-size: 18px;
    color: white;
    margin-top: 15px;
}

.warning {
    font-size: 16px;
    font-style: italic;
    color: #ff6666;
    margin-top: 10px;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.4; }
}

#returnButton {
    background: red;
    color: white;
    border: none;
    font-size: 20px;
    padding: 12px 25px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
    border-radius: 5px;
}

#returnButton:hover {
    background: darkred;
}
