html {
    background-image: url('background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center bottom;
    margin: 0;
    padding: 0;

}

.expense-chart {
    grid-area: graph;
    display: flex;
    border-color: white;
    border-style: solid;
    height: 100%;
    width: 100%;
    border-width: 2px;
    box-sizing: border-box;
    justify-content: center; /* Centers the content horizontally */
    background-color: rgba(0, 0, 0, 0.5); /* Optional: add a semi-transparent background */
    
}




.expense-text {
    color: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
    grid-template-areas:
        "header header header header"
        "form form form total"
        "table table table table";
    
    

}

#expense-form {
    grid-area: form;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "name amount date"
        "submit delete clear";
    background-color: #16283F;
    padding: 5px;
    border-radius: 15px;
    width: 100%;
    gap: 20px;
    margin-bottom: 0px;
    border: 2px #344B65 solid;
}

.total-label {
    display: flex;
    justify-content: center;
    font-size: clamp(1rem, 2vw, 2rem);
    color: white;
}

.total-number {
    display: flex;
    justify-content: center;
    font-size: clamp(1rem, 2vw, 2rem);
    align-items: center;
    color: rgb(8, 240, 8);
}

.total-expenses {
    grid-area: total;
    background: linear-gradient(
        145deg,
        rgba(12, 67, 57, 0.95),
        rgba(9, 37, 42, 0.98)
    );
    box-sizing: border-box;
    align-self: stretch;
    margin: 0;
    color: white;
    border-radius: 15px;
    width: 100%;
    border: 1px #35DDA0 solid;
    box-shadow: 0 0 8px rgba(53, 221, 160, 0.25),
    inset 0 0 15px rgba(53, 221, 160, 0.05);
}

#delete-expenses {
    position: relative;
    grid-area: delete;
    flex-direction: column;
    background-color: #FF3131;
    color: white;
    padding: 20px;
    border-radius: 15px;
    width: 100%;
}

#clear-expenses {
    grid-area: clear;
    flex-direction: column;
    background-color: #696b6e;
    color: white;
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
}

#submit-expenses {
    grid-area: submit;
    background-color: #1FFF0F;
    color: white;
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
}

#expense-name {
    grid-area: name;
    background-color: #16283F;
    color: white;
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
}

#expense-amount {
    grid-area: amount;
    background-color: #16283F;
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-sizing: border-box;
    width: 100%;
}

#expense-date {
    grid-area: date;
    background-color: #16283F;
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-sizing: border-box;
    width: 100%;

}

.expense-list {
    grid-area: table;
    text-align: center;
    background-color: #16283F;
    border-radius: 15px;
    color: white;
    padding: 25px;
    border: 2px #344B65 solid;

}


#expense-title {
    margin: 0;
    font-size: 50px;
    color: white;
    
}

#expense-subtitle {
    margin: 5px 0 0;
    font-size: 20px;
    color: #57737a;
    
}




table {
    
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #91A3B0;
    text-align: center;
    padding: 8px;

}

header {
    grid-area: header;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

#logo {
    order: -1;
    width: 75px;
    height: 75px;
}

#header-text {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;

}

@media (max-width: 768px) {
    .expense-text {
        display:grid;
        grid-template-columns: 1fr;
        min-width: 0;
        grid-template-rows: auto auto auto auto auto;
        grid-template-areas:
            "header"
            "form"
            "total"
            "table";
        gap: 12px;
    }
    #expense-form {
        grid-area: form;
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
        grid-template-rows: auto auto auto auto auto;
        grid-template-areas:
            "name"
            "amount"
            "date"
            "submit"
            "delete"
            "clear";
    }
    .total-expenses {
        grid-area: total;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}



