body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 0;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

label, input, select {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

input[type="text"], input[type="number"], select {
    padding: 8px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

/* Styling the result output */
#result {
    max-width: 600px;
    margin: 15px auto;
    padding: 12px;
    background-color: #282c34;
    color: #61dafb;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-family: "Courier New", Courier, monospace;
}

#result div {
    white-space: pre-wrap; /* Ensures that text is wrapped */
    word-wrap: break-word; /* Forces long words to break */
    overflow-wrap: break-word; /* Forcibly breaks long words */
}

#result strong {
    color: #ffa500;
    display: block;
    margin-bottom: 5px;
}

/* Make sure the result box adjusts to different screen sizes */
@media screen and (max-width: 600px) {
    form, #result {
        width: 100%;
        padding: 8px;
    }
}
