* {
    margin: 0;
    padding: 0;
}


body {
    font-family: Arial, sans-serif;
    background-color: #4D1821;
    color: #f4f7f9;
    padding: 20px;
} 


h1 {
    font-size: 48px;
    color: #fafafa;
    font-family: Avengeance;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 400; 
}


.summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}


.balance-card {
    background-color: #f9f9f9;
    color:#4D1821;
}


.income-card {
    background-color: #f9f9f9;
    color:#4D1821;
}


.expense-card {
    background-color: #f9f9f9;
    color:#4D1821;
}


.summary-cards section {
    flex: 1;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #d77285; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}


.summary-cards h2 {
    font-size: 20px;
    margin-bottom: 15px;
}


.summary-cards p{
    font-size: 28px;
    font-weight: bold;
}


.history-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #d77285;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}


.expense-logo{
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 30px;
}


.form-card {
    background-color: transparent;
    color: #FFFFFF;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}


.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    color: #4D1821;
    background-color: #FFFFFF;
    border: 1px solid #4D1821;
    border-radius: 15px;
    padding: 10px;
}


.form-group > label {
    color: #FFFFFF;
    font-weight: bold;
}


.type-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.type-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: bold;
} 


.type-options label:first-child {
    color: #2e9d62;
}

.type-options label:last-child {
    color: #f80d28;
}


.type-options input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: #d77285;
    cursor: pointer;
} 


button {
    background-color: transparent;
    color: #FFFFFF;
    border: none;
    padding: 13px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

button:hover {
    background-color: transparent;
}


.history-card h2 {
    color: #4D1821;
    font-size: 22px;
    margin-bottom: 20px;
}


#transactionHistory {
    list-style: none;
    padding: 0;
}

#transactionHistory li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #f4e9eb;
    color: #4D1821;
}


@media (max-width: 768px) {
    .summary-cards {
        flex-direction: column;
    }
    body {
        padding: 12px;
    }
    h1 {
        font-size:36px;
    }

    .expense-logo {
        width: 280px;
    }
    .form-card {
    padding: 15px 5px;
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group select {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    }
}


.summary-cards section {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-cards section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


main {
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #f4f7f9;
}