body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
}

input {
    margin-bottom: 20px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 10px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

#result {
    margin-top: 20px;
    font-size: 18px;
}

.explanation {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin-bottom: 20px;
    text-align: justify;
}

.explanation h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.explanation p {
    font-size: 16px;
    margin-bottom: 10px;
}

footer {
    text-align: center;
    margin-top: 20px;
}

footer p {
    font-size: 14px;
    color: #555;
}

@media (max-width: 600px) {
    .container, .explanation {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .explanation h2 {
        font-size: 20px;
    }

    .explanation p {
        font-size: 14px;
    }

    button {
        padding: 8px;
        font-size: 14px;
    }

    input {
        padding: 8px;
        font-size: 14px;
    }

    footer p {
        font-size: 12px;
    }
}
