body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.container {
    display: flex;
    gap: 20px; /* Added gap between form and result */
    flex-wrap: wrap; /* Allow wrapping */
}
.form-container {
    width: 300px; /* Fixed width for the form container */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.result-container {
    /*width: 100%;*/
    /*min-width: 500px;*/
    /*max-width: 400px; /* Fixed width for the result container */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 20px; /* Added margin-top for small screens */
}
h1 {
    text-align: center;
}
label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
}
.ip-input {
    display: flex;
    align-items: center;
    gap: 5px;
}
.ip-input input {
    width: 20%; /* Adjusted width */
    padding: 5px; /* Decreased padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
}
.ip-input span {
    font-size: 1.5em;
}
select {
    width: 100%; /* Full width */
    padding: 10px; /* Decreased padding */
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in width */
}
button {
    width: 100%;
    padding: 10px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
button:hover {
    background-color: #c82333;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table, th, td {
    border: 1px solid #ddd;
}
th, td {
    padding: 10px;
    text-align: left;
    white-space: nowrap;
}
th {
    width: 50%; /* Fixed width for titles */
}
td {
    width: 50%; /* Fixed width for values */
}
tr:nth-child(even) {
    background-color: #f4f4f4;
}
tr:nth-child(odd) {
    background-color: #fff;
}
.fixed-width {
   /*  width: 340px; Width fixed to accommodate 255.255.255.255 - 255.255.255.255 */
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .result-container {
        margin-top: 20px;
    }
}
