.mac-age-calculator {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    font-family: sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #c2e9f2);
}

.mac-shadow-box {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mac-shadow-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.mac-heading {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #343a40;
    animation: fadeIn 0.8s ease-in-out;
}

.mac-input-group {
    margin-bottom: 20px;
}

.mac-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #495057;
}

.mac-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.mac-input:focus {
    border-color: #007bff;
    outline: none;
}

.mac-button {
    width: 100%;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.mac-button-primary {
    background: linear-gradient(135deg, #29b6f6, #0288d1);
    color: white;
}

.mac-button-primary:hover {
    background: linear-gradient(135deg, #0288d1, #1565c0);
    transform: translateY(-2px);
}

.mac-result {
    margin-top: 25px;
}

.mac-data-box {
    padding: 15px;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Added shadow to answer boxes */
    border-radius: 8px; /* Added border radius to answer boxes */
    background-color: white; /* Added white background to answer boxes */
    margin-bottom: 10px; /*added margin bottom for spacing*/
}

@media (max-width: 600px) {
    .mac-age-calculator {
        width: 90%;
        margin: 20px auto;
        padding: 20px;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
.mac-label, .mac-heading {
    font-family: 'Poppins', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}