body {
    font-family: Arial, sans-serif;
    background-color:#e6e9ed ;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    color: #ffffff;
   /* background-color: #00a1af;*/
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
}

.form-container {
    width: 350px;
    max-width: 450px; /* Adjust max-width for responsiveness */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.output-container {
    width: 85%;
    height: 48.8em;
   /* padding: 20px;*/
    padding-left: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap;
    overflow: auto;
    margin: 0px;

}

 select, input[type="submit"] {
    width: auto; 
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
select, button[type="button"] {
    width: auto; 
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

label {
    font-weight: bold;
}

input[type="text"]{
    width: 100%;
    height: 35px;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"] {
    cursor: pointer;
    font-size: large;
}
button[type="button"] {
    cursor: pointer;
    font-size: large;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.all-container {
    display: grid;
    grid-template-columns: repeat(8,0fr);
    gap: 3px;
    margin-top: 10px; 
    margin-left: 9%;
}

.all-container label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-color);
}

.options-container label {
    display: flex;
    align-items: center;
}

.options-container input[type="checkbox"] {
    margin-right: 5px;
}
.option-label {
    display: flex;
    align-items:center;
    font-size: 14px;
    color: #000000;
}

.option-label input[type="checkbox"] {
    margin-right: 8px;
}
.any-container {
    display: grid;
    grid-template-columns: repeat(8,0fr);
    gap: 10px;
    margin-top: 10px; 
}
.any-container label{
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-color);
}
header {
    background-color: #00a1af;
    padding: 15px;
    color: white;
    border-radius: 8px;
}


.header-container {
    display: flex;                 /* Use flexbox for layout */
    justify-content: center;       /* Center content horizontally */
    align-items: center;           /* Center items vertically */
    position: relative;
    height: 100px;
    padding: 10px;
    width: 100%;                   /* Ensure the container spans the full width */
    border-radius: 8px;
}


header h1 {
    margin: 0;
    font-size: 24px;
    border-radius: 8px;
}
footer {
    background-color: #14737c;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
    border-radius: 8px;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.footer-image {
    max-width: 100%;  
    height: auto;
}
/* Logo should stay at the left */
.header-image {
    max-width: 250px;              /* Set max width for logo */
    height: auto;
    margin-right: auto;            /* Push the logo to the left */
}


.header-title {
    position: absolute;            /* Absolute positioning for centering */
    left: 50%;                     /* Move title to the center */
    transform: translateX(-50%);   /* Center horizontally */
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
}



/* Tablets and smaller screens (768px and below) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;        /* Maintain horizontal layout */
        justify-content: space-between; /* Align logo and title naturally */
        padding: 0 10px;
        border-radius: 8px;
    }

    .header-title {
        position: relative;         /* Remove absolute positioning */
        left: 0;                    /* Reset left positioning */
        transform: none;            /* Remove centering transform */
        text-align: center;         /* Keep text centered */
        font-size: 1.3rem;
        margin: 0 auto;             /* Center the title using auto margins */
    }

    .header-image {
        max-width: 150px;           /* Adjust logo size for smaller screens */
    }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    .header-container {
        flex-direction: row;        /* Keep items in a row */
        justify-content: space-between; /* Distribute logo and title */
        border-radius: 8px;
    }

    .header-image {
        max-width: 120px;           /* Further reduce logo size */
    }

    .header-title {
        font-size: 1.1rem;          /* Smaller font size */
    }
}

/* Adjust styling for form and output containers for mobile view */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack containers vertically */
    }
    
    .form-container {
        order: 2; /* Make sure form container appears below output container */
        width: 100%;
        max-width: none; /* Remove max-width for full width on smaller screens */
    }
    
    .output-container {
        order: 1; /* Make sure output container appears above form container */
        width: 100%;
    }
    .all-container {
        margin-left: 10%
    }
}
@media (max-width: 1080px) {
    .container {
        flex-direction: column; /* Stack containers vertically */
    }
    
    .form-container {
        order: 2; /* Make sure form container appears below output container */
        width: 100%;
        max-width: none; /* Remove max-width for full width on smaller screens */
    }
    
    .output-container {
        order: 1; /* Make sure output container appears above form container */
        width: 100%;
    }
    .all-container {
        margin-left: 10%
    }
}
/* Apply box-sizing to all elements */
*, *::before, *::after {
    box-sizing: border-box;
}
.nameserver-option label {
    font-size: 14px;
    color: #000000;
}
.nameserver-option input[type="radio"] {
    margin-left: 5%;
}
.nameserver-option select,
.nameserver-option input[type="text"] {
    margin-top: 5px;
    margin-left: 10%;
    width: 90%;
    height: 33px;
}
.ansi-green-b {
    color: green;
    font-weight: bold;
}
time {
    color: green;
}
.ip {
    color: blue;
}

.website {
    color: magenta;
}

.dns-type {
    color: orange;
}
.comment {
    color: gray;
}
.dns-record {
    display: flex;
    font-family: monospace;
    /* margin-top: 0px;
    margin-bottom: 0px;  */
}
.dns-record i {
    flex: 0 0 5%;
    white-space: nowrap;
}


.dns-record span {
    margin-right: 5px; /* Adjust this for column spacing */
    margin-top: 0px;
}
pre {
    margin: 0px;
}

.dns-record a {
    margin-right: 5px; /* Adjust this for column spacing */
    margin-top: 0px;
}

.time {
    color: green;
    width: auto;

}

.ttl {
    color: blue;
    width: auto;

}

.in {
    color: black;
    width: auto;

}

.record-type {
    color: orange;
    width: auto;
}

.nameserver {
    color: magenta;
    width: auto; /* Let the domain expand naturally */
}

.ip-address {
    color: blue;
}
.query {
    color: darkcyan; 
}
.answer {
    color: darkgreen; 
}
.authority {
    color: darkgoldenrod; 
}
.additional {
    color: darkmagenta; 
}
.header-key {
    color: brown; 
}
.header-value {
    color: darkslategray; 
}
.uncategorized {
    color: black; 
}
.error {
    color: red;
    font-weight: bold;
}
.mx-priority {
    color: purple; 
}
.mx-mail-exchanger {
    color: teal; 
}

h2 {
    margin: 0;
}
p{
   margin-top:0 ;
}


#copyText {
    display: none;
}
.copy-btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: flex;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #45a049;
}



        /* Modal (background) */
        .modal {
            display: none; /* Hidden by default */
            position: fixed; 
            z-index: 1; 
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto; 
            background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
        }

        /* Modal content */
        .modal-content {
            background-color: #fefefe;
            margin: 15% auto; /* 15% from the top and centered */
            padding: 20px;
            border: 1px solid #888;
            width: 30%; /* Could be more or less, depending on screen size */
            text-align: center;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        .error-message {
            color: red;
            font-weight: bold;
        }


        #nameserversInput {
            width: 90%;            /* Full width */
            margin-left: 10%;
            height: 40px;          /* Fixed height, can be adjusted */
            padding: 3px;          /* Inner padding for better readability */
            font-family: Arial, sans-serif; /* Font style */
            font-size: 14px;        /* Font size */
            color: #333;            /* Text color */
            border: 1px solid #ccc; /* Border color */
            border-radius: 5px;     /* Rounded corners */
            resize: vertical;       /* Allows resizing only vertically */
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
            background-color: #ffffff; /* Light background color */
            transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for border and shadow */
        }
    
        #nameserversInput:focus {
            border-color: #007bff;  /* Border color on focus */
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Enhanced shadow on focus */
            outline: none;          /* Removes default outline */
        }
    
        /* Optional: Style the disabled state */
        #nameserversInput:disabled {
            background-color: #e4e4e4; /* Lighter background when disabled */
            cursor: not-allowed;       /* Change cursor to indicate it's disabled */
            opacity: 0.7;              /* Slightly faded appearance */
        }




        .output-container {
            width: 100%;
            height: 48.8em;
           /* padding: 20px;*/
            padding-left: 20px;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            white-space: pre-wrap;
            overflow: auto;
            margin: 0px;
        
        }

        .homepage-body {
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            overflow: auto;
            
            width: 100%;
            height: 48.8em;
            padding-left: 20px;
            background-color: #fff;
            border: 1px solid #ccc;


            
            font-family: Arial, sans-serif;
            margin: 0 auto;
            padding: 10px;
            font-size: 14px;
            line-height: 1.4;
        }
        
        .homepage-h1 {
            font-size: 24px;
            margin-bottom: 10px;
            color: black
        }
        
        .homepage-h2 {
            font-size: 18px;
            margin-top: 15px;
            margin-bottom: 12px;
        }
        
        .homepage-p, .homepage-ul, .homepage-ol {
            margin-bottom: 12px;
        }
        
        .homepage-ul, .homepage-ol {
            padding-left: 20px;
        }
        
        .homepage-li {
            margin-bottom: 5px;
        }
        
        .homepage-code {
            font-family: monospace;
            background-color: #f2f2f2;
            padding: 1px 5px;
            border: 1px solid #ccc;
            font-size: 12px;
        }


        /* Loading overlay */
        .loading-overlay {
            display: none; /* Hidden by default */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6); /* Dark transparent background */
            z-index: 9999;
        }

        .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 18px;
        }

        /* Spinner animation */
        .spinner-border {
            display: inline-block;
            width: 3rem;
            height: 3rem;
            vertical-align: text-bottom;
            border: 0.25em solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: spinner-border 0.75s linear infinite;
        }

        @keyframes spinner-border {
            to { transform: rotate(360deg); }
        }

        .notification {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 25px;
            background-color: #ff6156; /* Red background for errors */
            color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            font-size: 16px;
            z-index: 1000;
            text-align: center;
            max-width: 80%;
            width: auto;
        }
        


        .hidden {
            display: none;
        }
        .styled-button {
            flex: 1; /* Allow buttons to grow and take equal space */
            padding: 10px 15px; /* Add padding for button size */
            background-color: #4CAF50; /* Green background */
            color: white; /* White text color */
            border: none; /* Remove default border */
            border-radius: 5px; /* Rounded corners */
            cursor: pointer; /* Pointer cursor on hover */
            font-size: 16px; /* Font size */
            transition: background-color 0.3s; /* Smooth background color transition */
        }
        
        .styled-button:hover {
            background-color: #45a049; /* Darker green on hover */
        }

        .button-container {
            display: flex;
            gap: 10px; /* Space between buttons */
            flex-wrap: wrap; /* Allow wrapping on smaller screens */
        }
        
        .button-container input[type="submit"],
        .button-container button {
            box-sizing: border-box;
            flex: 1; /* Makes both buttons take up equal space */
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            cursor: pointer;
            font-size: large;
            text-align: center;
        }
        
        /* Medium screens (e.g., tablets) */
        @media (max-width: 768px) {
            .button-container input[type="submit"],
            .button-container button {
                font-size: medium;
                padding: 8px;
            }
        }
        
        /* Small screens (e.g., phones) */
        @media (max-width: 480px) {
            .button-container {
                flex-direction: column; /* Stack vertically */
            }
        
            .button-container input[type="submit"],
            .button-container button {
                width: 100%;
                font-size: medium;
                padding: 10px;
            }
        }
        