body {
    font-family: Arial, sans-serif;
    background-color: #1a2a44;
    color: #333;
    margin: 0;
    padding: 20px;
    padding-top: 40px; /* Consolidated padding-top to ensure content starts below fixed counters */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 1px !important;
}

h2 {
    color: #fff;
    text-align: center;
    margin-top: 1px !important;
    margin-bottom: 10px !important;
}

.container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    transition: all 0.5s ease;
}

.container.single-column {
    justify-content: center;
}

.container.single-column .forms-column {
    width: 100%;
    max-width: 500px;
}

.container.single-column .results-column {
    width: 0;
    opacity: 0;
    overflow: hidden;
}

.container.two-column {
    justify-content: space-between;
}

.container.two-column .forms-column {
    width: 48%;
    max-width: none;
}

.container.two-column .results-column {
    width: 48%;
    opacity: 1;
    max-width: none;
}

.forms-column, .results-column {
    transition: width 0.5s ease, opacity 0.5s ease;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

textarea, input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="submit"], input[type="button"] {
    background-color: #1a2a44;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #2b3e66;
}

.result-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    background-color: #f5c518;
    padding: 15px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #1a2a44;
}

.result-body {
    padding: 20px;
    background-color: #f9f9f9;
}

.result-body p {
    margin: 5px 0;
    font-size: 1em;
}

.status-listed {
    color: #d9534f;
    font-weight: bold;
}

.status-not-listed {
    color: #5cb85c;
    font-weight: bold;
}

.divider {
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

.message {
    color: #fff;
    text-align: center;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spinner-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f5c518;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container for the counters (just a wrapper, no positioning needed) */
.counter-container {
    z-index: 1001; /* Ensure the container and its children are above other elements */
}

/* Style for the IPs Checked counter 
.check-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f5c518;
    color: #1a2a44;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}*/

/* Style for the counter container */
.counter-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1001;
}

.check-counter {
    background-color: #f5c518;
    color: #1a2a44;
    font-family: Poppins;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 180px;
    text-align: center;
    box-sizing: border-box;
    font-size: 0.9em;
}

.bmc-wrapper {
    background-color: #f5c518 !important;
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 180px;
    box-sizing: border-box;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bmc-container {
    width: 100%;
    height: 25px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.bmc-btn {
    background: transparent !important; /* Remove the yellow background */
    min-width: 0 !important; /* Override the script's min-width */
    width: auto !important;
    height: auto !important; /* Override the script's height */
    font-size: 3rem !important; /* Match the counter's font size */
    font-weight: bold !important;
    padding: 0 5px !important; /* Override the script's padding */
    border-radius: 5px !important; /* Override the script's border-radius */
    border: none !important;
    box-shadow: none !important;
    display: flex !important; /* Use flex instead of inline-flex */
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important; /* Override the script's line-height */
}

.bmc-btn span {

    background: transparent !important;
    font-size: 1rem !important; /* Explicitly set the text size to match the counter */
}






/*@media (max-width: 768px) {
    .container.two-column .forms-column,
    .container.two-column .results-column {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .container {
        gap: 10px;
    }
    .forms-column form,
    .result-card {
        margin-bottom: 15px;
    }
    .check-counter {
        top: 10px;
        right: 10px;
        font-size: 0.9em;
        padding: 8px 12px;
    }
    
}*/


@media (max-width: 768px) {
    body {
        padding-top: 220px; /* Increased to account for the height of the counter-container */
    }
    .container.two-column .forms-column,
    .container.two-column .results-column {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .container {
        gap: 10px;
    }
    .forms-column form,
    .result-card {
        margin-bottom: 15px;
    }
    /* Adjust the counter container position */
    .counter-container {
        top: 10px;
        right: 10px;
    }
    /* Adjust the IPs Checked counter */
    .check-counter {
        top: 10px;
        right: 10px;
        width: 140px; /* Reduced from 180px */
        font-size: 0.8em; /* Slightly smaller font size */
        padding: 6px 10px; /* Slightly smaller padding */
    }
    /* Adjust the Buy me a coffee button */
    .bmc-wrapper {
        width: 140px; /* Reduced from 180px */
        padding: 6px 10px; /* Slightly smaller padding */
    }
    .bmc-btn {
        font-size: 3rem !important; /* Reduced emoji size from 3rem */
    }
    .bmc-btn span {
        display: none !important; /* Hide the "Buy me a coffee" text */
    }
    /* Adjust the user info container */
    .user-info-container {
        width: 140px; /* Reduced from 180px */
    }
    /* Adjust the info boxes (ISP, Location, Country) */
    .info-box {
        font-size: 0.8em; /* Slightly smaller font size */
        padding: 6px 10px; /* Slightly smaller padding */
    }
}

.grecaptcha-badge { 
    visibility: hidden !important; 
}
/* Style for the reCAPTCHA Score counter (now inside the form, not fixed) */
.recaptcha-counter {
    background-color: #f5c518;
    color: #1a2a44; /* Default color (dark blue) before the score loads */
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 10px 0;
}

/* Class for a good reCAPTCHA score (green) */
.recaptcha-counter.ok {
    color: #fff !important; /* Green */
    background-color: #064028;
}

/* Class for a bad reCAPTCHA score (red) */
.recaptcha-counter.not-ok {
    color: #fff !important; /* Red */
    background-color: #ff0000;
}

/* Style for the score value inside the counter */
.recaptcha-counter #scoreValue {
    font-weight: bold;
}

.pScore {
    color: #1a2a44;
    font-size: 10px;
}


    
/* User Info Container (Now Inside Counter Container) */
.user-info-container {
    display: flex;
    flex-direction: column;
    width: 180px; /* Match the width of the other buttons */
    margin-top: 0.5px; /* Match the gap used in counter-container */
}

.info-box {
    background-color: #f5c518;
    color: #1a2a44;
    font-family: Poppins, sans-serif;
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9em;
    text-align: center;
    margin-top: 5px; /* Gap between info boxes */
}

.info-box strong {
    font-weight: bold;
}

.info-box .fi {
    vertical-align: middle;
}