/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Main Container */
.container {
    max-width: 1024px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Headers */
h1 {
    text-align: center;
    color: #0d6efd;
}

h2,
h3 {
    color: #333;
    margin-bottom: 10px;
}

/* Form Styling */
form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    margin-right: 10px;
}

button {
    padding: 10px 15px;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0a58ca;
}

/* Results Section */
.results {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    /* Allow horizontal scrolling for wide content */
    word-wrap: break-word;
    /* Break long text lines */
    max-height: 100%;
    /* Optional: Limit height with vertical scroll */
    overflow-y: auto;
}

/* Formatting for WHOIS Output */
.results pre {
    white-space: pre-wrap;
    /* Preserve whitespace and wrap long lines */
    word-wrap: break-word;
    /* Break long words */
    font-family: monospace;
    /* Use monospace for better readability */
    font-size: 14px;
    /* Optional: Adjust font size */
    background-color: #eef1f7;
    /* Subtle background to differentiate */
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    /* Horizontal scrolling for wide content */
}

/* Styling for Individual Results */
.result-card {
    background: #ffffff;
    /* Pure white for better contrast */
    border: 1px solid #e6e6e6;
    /* Subtle border */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    margin-top: 0;
    color: #0d6efd;
    /* Match primary theme color */
}

.result-card ul {
    list-style: none;
    padding-left: 0;
}

.result-card ul li {
    margin-bottom: 5px;
}

/* Error Messages */
.error {
    color: #ff4d4d;
    /* Bright red for better visibility */
    background-color: #ffe5e5;
    /* Subtle red background */
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-top: 10px;
}

/* 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;
}

/* Container for the cards */
.card-container {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping for smaller screens */
    gap: 20px;
    /* Space between cards */
    margin-top: 20px;
    justify-content: space-between;
    /* Spread cards evenly */
}

/* Individual cards */
.result-card {
    background: #ffffff;
    /* White background */
    border: 1px solid #e6e6e6;
    /* Subtle border */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    /* Equal width for cards */
    min-width: 200px;
    /* Minimum width for each card */
    max-width: 300px;
    /* Maximum width for each card */
    text-align: center;
    /* Center text */
}

/* Card headings */
.result-card h3 {
    margin-top: 7px;
    color: #0d6efd;
    font-size: 18px;
}

h3 {

    color: red;
    font-size: x-large;
    font-weight: bolder;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        /* Stack cards vertically on small screens */
        gap: 15px;
        /* Smaller gap for stacked layout */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    form {
        flex-direction: column;
    }

    input[type="text"] {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    button {
        width: 100%;
    }

    .results {
        max-height: none;
        /* Allow full height on smaller screens */
        overflow-y: visible;
    }
}