/* General Page Styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 25vh;
}

/* Page Header */
h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007BFF;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 40px;
    color: #444;
}

/* Form Styling */
form#dnsForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form#dnsForm label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

form#dnsForm input[type="text"] {
    width: 100%;
    font-size: 1.5rem;
    padding: 10px 15px;
    border: 2px solid #007BFF;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
}

form#dnsForm input[type="text"]:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

form#dnsForm button {
    font-size: 1.2rem;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

form#dnsForm button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

form#dnsForm button:active {
    transform: translateY(0);
}

/* Table Styling */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

th {
    background-color: #007BFF;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
}

/* Circle Indicator Styling */
.circle {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.circle-green {
    background-color: green;
}

.circle-lightgreen {
    background-color: lightgreen;
}

.circle-gold {
    background-color: gold;
}

.circle-orange {
    background-color: orange;
}

.circle-red {
    background-color: red;
}

/* Progress Container Styling */
/* Loading Container */
#loadingContainer {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    height: 20px;
    overflow: hidden;
    position: relative;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Animated Line */
#loadingBar {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Moving Dot */
#pingDot {
    width: 20px;
    height: 20px;
    background-color: #4caf50;
    border-radius: 50%;
    position: absolute;
    animation: ping-animation 4s linear infinite;
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-container p {
    margin: 0 15px;
    font-size: 14px;
    color: #333;
}

/* Keyframes for Moving Dot */
@keyframes ping-animation {
    0% {
        left: 0%;
    }

    50% {
        left: 98%;
    }

    100% {
        left: 0%;
    }
}

/* Progress Bar */
#progressContainer {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    height: 20px;
    overflow: hidden;
    position: relative;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none;
    /* Hidden initially */
}

#progressBar {
    width: 0%;
    height: 100%;
    background-color: #4caf50;
    text-align: center;
    line-height: 20px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: width 0.3s ease;
    /* Smooth width transition */
}

#testInfo {
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
    color: #007BFF;
    /* Use a color matching your theme */
    font-style: italic;
    line-height: 1.5;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    form#dnsForm input[type="text"] {
        font-size: 1.2rem;
    }

    form#dnsForm button {
        font-size: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    @media screen and (max-width: 768px) {
        #progressContainer {
            max-width: 100%;
            /* Adjust to full width */
        }
    }
}