body {
    font-family: "Varela Round", sans-serif;
}

.background {
    height: 100vh;
    width: 100%;
    background: linear-gradient(45deg, #000000, #16181C, #3a2f4d);
    background-size: 300% 300%;
    background-attachment: fixed;
}

.animated-background {
    animation: color 30s ease-in-out infinite;
}

@keyframes color {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.title {
    text-align: center;
    color: white;
    font-size: 2em;
    margin-top: 20px;
}

.progressContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
}

/* Total progress tracker */
.total-progress {
    text-align: center;
    color: white;
    margin: 20px 0;
    max-width: 800px;
    /* Set a maximum width */
    width: 100%;
    /* Ensure it takes the full width up to the max-width */
    margin: 0 auto;
    /* Center the progress bar */
}

.total-progress h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.total-progress p {
    font-size: 1.2em;
    margin: 5px 0;
}

/* Progress bar container */
/* Progress bar container */
.progress-bar {
    position: relative;
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
    height: 20px;
}

/* Progress bar fill for the first 100% */
.progress {
    height: 100%;
    background-color: #4caf50;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Progress bar fill for the second 100% */
.progress-second {
    height: 100%;
    background-color: #388E3C;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Progress bar fill for the third 100% */
.progress-third {
    height: 100%;
    background-color: #1B5E20;
    ;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-divider {
    border-right: 1px solid #26292f;
}

/* Centered percentage text */
.percentage-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 0;
    left: 0;
    height: 100%;
    line-height: 20px;
    /* Match the height of the progress bar */
    color: #000;
    /* Adjust color for better visibility */
    font-weight: bold;
}

.fullDisclaimer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9em;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    color: rgb(175, 175, 175);
}

/* Container for the country data */
#myDiv {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    /* Set a maximum width */
    margin: 0 auto;
    /* Center the container */
}

/* Style for the dropdown button */
.dropbtn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background-color: #4caf50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 200px;
}

.dropbtn:hover {
    background-color: #45a049;
}

.dropdownContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Add some space between the buttons */
    flex-wrap: wrap;
    /* Allow wrapping to the next line if needed */
}

.actionButton {
    margin: 0;
    /* Remove the margin to align with the dropdown button */
}


/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
    width: auto;
    margin-top: 20px;
    text-align: center;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #26292F;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 5px;
    margin-top: -20px;
    /* Ensure no margin */
    padding-top: 0;
    /* Ensure no padding */
    border-radius: 10px;
    width: 200px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    background-color: #26292F;
    border-bottom: 1px solid #3a2f4d;
    border-radius: 10px;
    text-align: center;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #3a2f4d;
}

/* Show the dropdown menu when hovering over the button */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Individual country data card */
.country-data {
    position: relative;
    background-color: #26292F;
    border: 1px solid rgb(3, 40, 62);
    border-radius: 10px;
    padding: 15px;
    width: 200px;
    /* Fixed width */
    height: 300px;
    /* Fixed height */
    text-align: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Country flag style */
.country-flag {
    display: block;
    margin: 0 auto 10px;
    width: 125px;
    /* Fixed width */
    height: 78px;
    /* Calculated height based on 8:5 aspect ratio */
    border-radius: 10px;
}

.country-flag:hover {
    cursor: pointer;
}

/* Country name style */
.country-name {
    font-size: 1.4em;
    /* Slightly larger font size */
    font-weight: bold;
    margin-bottom: 10px;
}

/* Total count style */
.total-count {
    font-size: 1em;
    margin-bottom: 10px;
}

/* Percentage style */
.percentage {
    font-size: 1em;
    margin-bottom: 10px;
}

/* Treshold style */
.treshold {
    font-size: 1em;
    margin-bottom: 10px;
}

/* Additional styling for better readability */
.country-data p {
    margin: 5px 0;
}

.total-count {
    display: inline-block;
    position: relative;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.count-up {
    transform: translateY(-100%);
    opacity: 0;
}

.count-down {
    transform: translateY(100%);
    opacity: 0;
}

.image img {
    display: block;
    margin: 0 auto;
    width: 50vw;
    max-width: 500px;
    margin-top: 20px;
    border-radius: 10px;
}

.gold-frame {
    border: 0px solid gold;
    box-shadow: 0 0 10px gold;
}

.silver-frame {
    border: 0px solid silver;
    box-shadow: 0 0 10px silver;
}

.bronze-frame {
    border: 0px solid #cd7f32;
    box-shadow: 0 0 10px #cd7f32;
}

footer {
    text-align: center;
    color: white;
    background-color: #26292F;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    border-top: 1px solid #3a2f4d;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

footer a {
    color: #4caf50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.buttonContainer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    /* Add margin to the bottom */
}

.actionButton {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background-color: #4caf50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 200px;
}

.actionButton:hover {
    background-color: #45a049;
}

.actionButton:hover {
    background-color: #45a049;
}

.signature-method {
    display: none;
    font-size: 1em;
    margin-bottom: 10px;
}

footer a:hover {
    color: #45a049;
}

.SignButton {
    display: block;
    margin: 20px auto 0px auto;
    padding: 15px 30px;
    font-size: 1.2em;
    color: white;
    background-color: #4caf50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.SignButton:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.SignButton:active {
    background-color: #3e8e41;
    transform: translateY(0);
}

.SignContainer {
    text-decoration: none;
}


.Backgroundbutton img {
    width: 35px;
    filter: invert();
}

.Backgroundbutton {
    display: flex;
    margin: auto auto 70px auto;
    padding: 5px 5px;
    font-size: 0.8em;
    color: white;
    background-color: #4caf50;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate360 0.7s ease-in-out;
}

.threshold-progress-container {
    text-align: center;
    color: white;
    margin: 20px 0;
    max-width: 500px;
    /* Set a maximum width */
    width: 100%;
    /* Ensure it takes the full width up to the max-width */
    margin: 0 auto;
    /* Center the progress bar */
}

.threshold-progress {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
    display: flex;
}

.threshold-progress-segment {
    height: 20px;
    background-color: #ddc514;
    flex: 1;
    position: relative;
}

.threshold-progress-segment:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ffffff;
}

.threshold-progress-container h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

.TotalEIDsignatures {
    text-align: center;
    font-size: 1em;
    margin-bottom: 10px;
    color: white;
    margin: 0 auto;
}

.TotalFormSignatures {
    text-align: center;
    font-size: 1em;
    margin-bottom: 10px;
    color: white;
    margin: 0 auto;
}