* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, sans-serif;
    background-color: #0a0a23;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

main {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    text-align: center;
    color: #E9E4D4;
}

.pal-div {
    width: 90%;
    max-width: 450px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    gap: 15px;
}

label {
    color: #000000;
    font-weight: bold;
}

.input {
    width: 100%;
    padding: 10px;
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
    border: none;
    border-bottom: 2px solid black;
    border-radius: 5px;
}

.button {
    cursor: pointer;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background-color: #FF5349;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #e0433f;
}

.results {
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    color: #000000;
    font-weight: bold;
    text-align: center;
    word-break: break-word;
}

.palindrome-def {
    text-align: center;
    width: 90%;
    max-width: 450px;
    padding: 20px;
    background-color: #a0e7ff;
    color: #003366;
    border-radius: 10px;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .pal-div, .palindrome-def {
        padding: 15px;
    }

    .button {
        width: 100%;
    }
}
