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;
}
@media (prefers-reduced-motion) {
    .animated-background {
        animation: none;
    }
}

@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, .time-left-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
}

/* Total progress tracker */
.total-progress, .time-left {
    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;
}

.schedule-status {
    font-size: 1em;
    margin: 0.5em 0;
    color: rgb(235, 235, 235);
}

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

/* 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 time limit */
.progress-danger {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    
    /* Create a repeating gradient */
    background: linear-gradient(90deg, #b30000 0%, #ff6666 50%, #b30000 100%);
    background-size: 200% 100%; /* Makes the gradient twice as wide */
    
    animation: progress 2s linear infinite;
}
@media (prefers-reduced-motion) {
    .progress-danger {
        animation: none;
    }
}

@keyframes progress {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* Progress bar fill for the first 100% */
.progress {
    height: 100%;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(90deg,#388E3C ,#65ca68, #388E3C);
    background-size: 200% 100%;
    animation: progress 2s linear infinite;
}
@media (prefers-reduced-motion) {
    .progress {
        animation: none;
    }
}

/* 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 bar fill for the fourth 100% */
.progress-fourth {
    height: 100%;
    background-color: #00834c;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
}

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

.progress-sixth {
    height: 100%;
    background-color: #00695c;
    ;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-seventh {
    height: 100%;
    background-color: #004D40;
    ;
    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;
}
@media (prefers-reduced-motion) {
    .dropbtn {
        transition: none;
    }
}

.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;
}

.threshold-cleared-message {
    text-align: center;
    color: white;
    background-color: #26292F;
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.threshold-cleared-message p {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

/* Goal reached encouragement message */
.goal-reached-encouragement {
    text-align: center;
    color: white;
    background-color: #26292F;
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.goal-reached-encouragement p {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

.goal-reached-encouragement p:first-of-type {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Secondary progress bar for extra signatures - now uses overlays */
.buffer-progress-overlay {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: width 0.8s ease-in-out, opacity 0.3s ease-in-out;
    border-radius: 5px;
}

/* Different colors for each 100k increment */
.buffer-100k {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: bufferProgress 3s linear infinite;
}

.buffer-200k {
    background: linear-gradient(90deg, #FF8C00, #FF6347, #FF8C00);
    background-size: 200% 100%;
    animation: bufferProgress 3s linear infinite;
}

.buffer-300k {
    background: linear-gradient(90deg, #FF4500, #DC143C, #FF4500);
    background-size: 200% 100%;
    animation: bufferProgress 3s linear infinite;
}

.buffer-400k {
    background: linear-gradient(90deg, #8A2BE2, #9400D3, #8A2BE2);
    background-size: 200% 100%;
    animation: bufferProgress 3s linear infinite;
}

.buffer-500k {
    background: linear-gradient(90deg, #4B0082, #663399, #4B0082);
    background-size: 200% 100%;
    animation: bufferProgress 3s linear infinite;
}

/* Buffer info display */
.buffer-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.buffer-text {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.buffer-milestone {
    font-size: 1em;
    color: #FFD700;
    font-weight: bold;
}

.buffer-count, .next-milestone {
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Explanation text for buffer progress increments */
.buffer-explanation {
    font-size: 0.85em;
    color: #B0B0B0;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
    opacity: 0.8;
}

/* Verification info display */
.verification-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.verification-info p {
    margin: 0 0 10px 0;
    font-size: 1em;
    font-weight: bold;
    color: #FFD700;
}

.verification-info ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    list-style-type: disc;
}

.verification-info li {
    margin: 8px 0;
    font-size: 0.95em;
    color: #E0E0E0;
    line-height: 1.4;
}

.verification-info p:last-child {
    margin-top: 15px;
    font-size: 0.85em;
    color: #B0B0B0;
    opacity: 0.8;
}

.verification-info p:last-child a {
    color: #B0B0B0;
    text-decoration: none;
}

.verification-info p:last-child a:hover {
    color: #D0D0D0;
    text-decoration: underline;
}

@keyframes goalPulse {
    0%, 100% {
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    }
}

@keyframes bufferProgress {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@media (prefers-reduced-motion) {
    .buffer-progress-overlay {
        animation: none;
    }
    .buffer-100k, .buffer-200k, .buffer-300k, .buffer-400k, .buffer-500k {
        background: #FFD700;
    }
}

/* 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;
}
@media (prefers-reduced-motion) {
    .total-count {
        transition: none;
    }
}

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

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

.today-count {
    font-size: 1.2em;
    margin: 5px 0;
    color: #76c7c0;
    font-weight: bold;
    position: relative;
    height: 1.5em; /* Fixed height to prevent layout shifts */
    display: block;
    overflow: hidden;
}

.today-count span {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.today-count.high-activity {
    color: #4caf50;
    animation: pulse 2s infinite;
}

.today-count.medium-activity {
    color: #8bc34a;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion) {
    .today-count.high-activity {
        animation: none;
    }
}

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

.ruby-frame {
    border: 0px solid #E0115F;
    box-shadow: 0 0 10px #E0115F;
}

.saphire-frame {
    border: 0px solid #a54cff;
    box-shadow: 0 0 10px #a54cff;
}

.diamond-frame {
    border: 0px solid #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

.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);
    z-index: 1000;
}

a {
    color: #4caf50;
    text-decoration: none;
    transition: color 0.3s ease;
}
@media (prefers-reduced-motion) {
    a {
        transition: none;
    }
}

.buttonContainer {
    display: flex;
    justify-content: center;
}

.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;
}
@media (prefers-reduced-motion) {
    .actionButton {
        transition: none;
    }
}

.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);
}
@media (prefers-reduced-motion) {
    .SignButton {
        transition: none;
    }
}

.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;
    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);
}
@media (prefers-reduced-motion) {
    .Backgroundbutton {
        transition: none;
    }
}

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

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

.rotate {
    animation: rotate360 0.7s ease-in-out;
}
@media (prefers-reduced-motion) {
    .rotate {
        animation: none;
    }
}

.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, .time-left-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;
}


.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--elementColor);
    border-radius: 100px;
    transition: border-radius 200ms, background-color 200ms;
    margin: 10px;
    z-index: 10000000000;
    height: 60px;
    backdrop-filter: blur(5px);
}
@media (prefers-reduced-motion) {
    .navbar {
        transition: none;
    }
}

.navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    margin: auto;
}

.navbar li {
    float: left;
    border-right: 0px solid #bbb;
    margin: 0.5vw;
}

.navbar li a {
    display: block;
    color: var(--textColor);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: transform 200ms, border-top 100ms, border-bottom 200ms;
    border-radius: 10px;
}
@media (prefers-reduced-motion) {
    .navbar li a {
        transition: none;
    }
}

.navbar li a:hover:not(.active) {
    transform: scale(0.9);

}

.active::after {
    content: "";
    display: block;
    height: 4px;
    background-color: #4caf50;
    width: 100%;
    border-radius: 1000px;
}

.navbar li a:not(.active) {
    margin-bottom: 4px;
}


:root {
    --elementColor: #26292F;
    --elementColor4: rgba(45, 45, 45, 0.7);
    --elementColorTransparent: rgba(38, 41, 47, 0.5);
    --textColor: rgb(255, 255, 255);
}

.OSS-notifier {
    text-align: center;
    font-size: 0.9em;
    color: rgb(175, 175, 175);
}

.space {
    height: 60px;
}

.paused {
  animation: none !important;
  background-position: 0 0 !important;
}

.country-data .progress {
    background: #4caf50;
    animation: none;
}

/* Keep the gradient animation for the main progress bar */
.main-progress {
    background: linear-gradient(90deg, #388E3C, #65ca68, #388E3C);
    background-size: 200% 100%;
    animation: progress 2s linear infinite;
}
@media (prefers-reduced-motion) {
    .main-progress .progress {
        animation: none;
    }
}