@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2d3436;
    padding: 20px;
}

.card-container {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.header h1 {
    color: #ff4757;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.subtitle {
    color: #636e72;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.input-wrapper {
    text-align: left;
}

.input-wrapper label {
    display: block;
    font-size: 0.85rem;
    color: #636e72;
    margin-bottom: 5px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dfe6e9;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

input:focus {
    border-color: #ff4757;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.1);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider span {
    background: #ff4757;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

button {
    background: #ff4757;
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

button:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
}

.secondary-btn {
    background: #f1f2f6;
    color: #2f3542;
    margin-top: 15px;
    box-shadow: none;
}

.secondary-btn:hover {
    background: #dfe4ea;
}

.hidden {
    display: none;
}

#result-section {
    margin-top: 30px;
    animation: slideUp 0.5s ease forwards;
}

.result-box {
    padding: 20px;
    border-radius: 16px;
    background: #f8f9fa;
    margin-bottom: 15px;
    border: 2px dashed #dfe6e9;
}

#result-letter {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 10px;
}

#result-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

#result-desc {
    color: #636e72;
    font-size: 0.95rem;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
