body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column; /* Changed to column to stack container and footer */
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px; /* Add some space before the footer */
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #007bff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #0056b3;
    margin-bottom: 15px; /* Adjusted margin-bottom */
    font-size: 2.2em;
}

.back-to-tools {
    margin-bottom: 25px; /* Space below the link */
}

.back-to-tools a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-to-tools a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.input-group {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#domainInput {
    flex-grow: 1;
    padding: 12px 18px;
    border: 2px solid #007bff;
    border-radius: 8px 0 0 8px;
    font-size: 1.1em;
    outline: none;
    transition: border-color 0.3s ease;
}

#domainInput:focus {
    border-color: #0056b3;
}

#lookupButton {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

#lookupButton:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

#lookupButton:active {
    transform: translateY(0);
}

.results-container {
    text-align: left;
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ced4da;
}

.results-container p {
    margin: 8px 0;
    line-height: 1.6;
    color: #495057;
}

.results-container p strong {
    color: #0056b3;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

.loading {
    color: #007bff;
    font-style: italic;
}

/* Table specific styles */
.dns-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.dns-table th,
.dns-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: left;
}

.dns-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.dns-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.dns-table tbody tr:hover {
    background-color: #e2e6ea;
}

/* Footer styles */
footer {
    margin-top: auto; /* Pushes the footer to the bottom */
    padding: 20px;
    color: #6c757d;
    font-size: 0.9em;
    text-align: center;
    width: 100%;
}