* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.input-group {
    display: flex;
    margin-bottom: 20px;
}

#text-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#text-input:focus {
    outline: none;
    border-color: #6a11cb;
}

#check-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

#check-btn:hover {
    transform: scale(1);
}

#check-btn:active {
    transform: scale(0.95);
}

#result {
    min-height: 60px;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.result-default {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.palindrome {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.not-palindrome {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.examples {
    margin-top: 30px;
    text-align: left;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.examples h3 {
    margin-bottom: 10px;
    color: #444;
}

.examples ul {
    list-style-type: none;
    padding-left: 10px;
}

.examples li {
    margin-bottom: 8px;
    color: #666;
}

.examples li::before {
    content: "•";
    color: #6a11cb;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

@media (max-width: 500px) {
    .input-group {
        flex-direction: column;
    }

    #text-input {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    #check-btn {
        border-radius: 8px;
        padding: 12px;
    }

    .container {
        padding: 20px;
    }
}