body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    text-align: center;
}

header h1 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.2em;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.info-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.info-card h2 {
    font-size: 1.5em;
    font-weight: 400;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-card h2 .icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.info-card p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card .label {
    font-weight: 700;
    color: #333;
}

#ip-address {
    font-weight: 700;
    color: #2980b9;
    font-size: 1.3em;
}

.ipv6-primary-display {
    font-size: 1.1em;
    word-break: break-all; 
    overflow-wrap: break-word;
}

.ipv6-small {
    font-size: 0.9em;
    color: #888;
    margin-top: 8px; 
    display: block;
}

.org-small {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
    display: block;
}

.note, .error-message {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 10px;
}

.error-message {
    color: #c0392b;
    font-weight: bold;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #7f8c8d;
}

a {
    text-decoration: none;
    color: #0a4e97;
}

a:hover {
    text-decoration: underline;
}

/* DNS page */

.dns-table-container {
    overflow-x: auto;
}

.dns-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.dns-table th,
.dns-table td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
word-wrap: break-word;
word-break: break-word;
white-space: normal;
overflow-wrap: break-word;
}

.dns-table td:nth-child(4) {
    font-family: monospace;
    max-width: 400px;
    overflow-x: auto;
}

.dns-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.dns-table tbody tr:hover {
    background-color: #f1f1f1;
}

.button-group {
    margin: 10px 0;
}

.button-group button {
    margin-right: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid #888;
    background-color: #f7f7f7;
    border-radius: 3px;
}

.copied-msg {
    display: none;
    color: green;
    font-size: 0.9rem;
}

/*

form input[type="text"],
form select {
    margin-bottom: 10px;
    width: 100%;
}

form button {
    margin-top: 10px;
    width: 100%;
}

*/


/* Simple Navigation bar footer */
.simple-nav {
    text-align: center;
    margin-top: 20px; /* Space between the body and the nav */
    margin-bottom: 40px; /* Space between the nav and the footer */
}

.nav-link {
    font-size: 1.1rem;
    color: #2980b9; /* Light blue color */
    text-decoration: none;
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background-color: #2980b9; /* Darker blue background on hover */
    border-radius: 4px;
}

/* Active link styling */
.nav-link.active {
    font-weight: bold;
    color: #fff;
    background-color: #2980b9; /* Highlighted with blue background */
    border-radius: 4px;
}


@media (max-width: 600px) {
    .nav-link {
        font-size: 1rem;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 25px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .info-card h2 {
        font-size: 1.3em;
    }

    .info-card p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .info-card {
        padding: 15px;
        margin-bottom: 20px;
    }

    .info-card h2 {
        font-size: 1.2em;
    }

    .info-card p {
        font-size: 0.95em;
    }
}

/* IP address card */
@media (max-width: 480px) {
    #ip-address {
        font-size: 1.15em; 
    }

    .ipv6-primary-display {
        font-size: 1.05em; 
    }

    .ipv6-small,
    .org-small {
        font-size: 0.8em;
    }
}

@media (max-width: 380px) { 
    #ip-address {
        font-size: 1em; 
    }

    .ipv6-primary-display {
        font-size: 0.93em;

    }
}


/* Responsive DNS */

@media (max-width: 600px) {
    form {
        display: flex;
        flex-direction: column;
    }

    form input[type="text"],
    form select,
    form button {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (min-width: 1024px) {
    .dns-container {
        max-width: 960px;
    }
}


/* fixed width */

@media (min-width: 601px) {
    .dns-form {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .dns-form input[type="text"] {
        width: 300px;
        flex: 0 0 auto;
    }

    .dns-form select {
        width: 150px;
        flex: 0 0 auto;
    }

    .dns-form button {
        width: 100px;
        flex: 0 0 auto;
    }
}

/* full width-auto */
/*
@media (min-width: 601px) {
    .dns-form {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .dns-form input[type="text"],
    .dns-form select {
        flex: 1 1 auto;
        min-width: 200px;
    }

    .dns-form button {
        flex: 0 0 auto;
    }
}
*/
/* full width-auto */