/* Basic Reset */
#age-calculator * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container Styling */
#age-calculator {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: inherit; /* Use theme default background */
    border-radius: 10px;
    font-family: inherit; /* Use theme default font */
    color: inherit; /* Use theme default text color */
}

/* Form Styling */
#age-calculator-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#age-calculator-form label {
    font-weight: bold;
}

#age-calculator-form input[type="text"],
#age-calculator-form button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: inherit; /* Use theme default background */
    color: inherit; /* Use theme default text color */
}

#age-calculator-form button {
    background: #0073e6;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

#age-calculator-form button:hover {
    background: #005bb5;
}

/* Result Styling */
#age-result {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    animation: fadeIn 1s;
}

.result-item {
    flex: 1;
    padding: 10px;
    border-right: 1px solid #ccc;
}

.result-item:last-child {
    border-right: none;
}

.result-item span {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}