body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

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

h1 {
    text-align: center;
    color: #007BFF;
}

form {
    margin-top: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input,
select,
button {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #007BFF;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

button:hover {
    background-color: #0056b3;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    font-family: monospace;
    white-space: pre-wrap;
}

.error {
    color: red;
}

.success {
    color: green;
}

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

.open-port {
    color: green;
    font-weight: bold;
}

.closed-port {
    color: red;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: x-large;
    line-height: 1.6;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 700px;
    /* for example */
    overflow-y: auto;
    /* allows scrolling */
}

@media (max-width: 600px) {

    input,
    select,
    button {
        width: 100%;
    }
}