* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", serif;
    letter-spacing: 0.5px;
}
body {
    background-color: #f5f4f8;
    width: 100%;
    height: 100vh;
}
#top {
    background-color: #f6f6f9ed;
    height: 80px;
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
}
#top h1 {
   align-items: center;
   margin: 0 auto;
   align-content: center;
   color: black;
   font-size: 1.5em;
   text-transform: capitalize;
}

#container {
    width: 100%;
    padding: 20px 20px;
    margin: 0px auto;
    background-color: #f6f6f9ed;
    box-shadow: 1px 10px 10px #b5b5baed;
    border-radius: 0px;
}
h1 {
    font-size: 1.2em;
    color: white;
    text-transform: uppercase;
}
h2 {
    font-size: 1em;
    text-transform: uppercase;
}
.btn {
    width: auto;
    height: 3em;
    border-radius: 5px;
    border: none;
    background-color: #587EF4;
    color: white;
    font-size: .8em;
    text-transform: uppercase;
    padding: 0px 20px 0px 20px;
    font-weight: normal;
}
.btn:hover {
    background-color: #0e44e3;
}
#reset {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-left: 10px;
    text-transform: uppercase;
    font-family: inherit;
    counter-reset: red;
    font-weight: 600;
    color: white;
}
#reset:hover {
    background: red;
    color: white;
}

.first-section {
    background-color: #2d417b;
    border-radius: 5px;
    padding: 25px 20px;
    margin: 10px 5px;
    
}
.form-btn-section {
    width: 100%;
}
.form-btn-section .btn {
    width: 60%;
    font-size: 1em;
    font-weight: 600;
    margin: 0;
}
#reset {
    width: 30%;
    padding: 15px 15px;
    font-size: .8em;
}
#left h2 {
    padding-bottom: 15px;
    color: white; 
}
#left .btn {
    margin-top: 15px;
}
#budget-input {
    background-color: #F7F9FD;
    height: 40px;
    margin-top: 5px;
}
#left {
    width: 100%;
}
#right {
    background-color: transparent;
    height: 8rem;
    width: 100%;
}
#right h2 {
    color: white;
    text-align: center;
    font-size: 1.2em;
    padding-top: 25px;
    margin-top: 0;
}
#right p {
    font-size: 3em;
    text-align: center;
    padding: 0;
    margin: 0;
}
.form-box {
    width: 100%;
    background-color: white;
    margin: 15px auto;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    border: 1px solid #ccc; 
}

input[type=text] {
    width: 100%;
    height: 40px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #F7F9FD;
    padding-left: 10px;
    font-size: .9em;
    
}
input[type=text]::placeholder {
    font-size: .9em;
    font-family: "Inter";
    color: black;
    
}
.form-items select {
    width: 100%;
    height: 40px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 20px 0 20px 0;
    font-family: "Inter";
    font-size: .9em;
    text-transform: capitalize;
    padding-left: 5px;
    background-color: #F7F9FD;
}
.transactions {
    width: 100%;
    background-color: white;
    margin: 10px auto;
    padding: 15px 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.transactions h2 {
    padding-bottom: 1em;
}
.transactions ul {
    display: flex;
}
.transactions ul li {
    display: flex;
    width: 100%;
    background-color: #F7F9FD;
    height: 50px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 10px;     
}
.transactions ul li p {
    display: flex;
    align-items: center;
    font-size: .9em;
}
#recordsTable  {
    width: 100%;
    display: block;
    overflow-x: auto;
    background-color: #F7F9FD;
    border-collapse: collapse;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}
#recordsTable tr {
    width: auto;
    background-color: #F7F9FD;
    padding: 10px 0px 10px 0px;
}
#recordsTable td {
    width: 50%;
    height: 50px;
    padding: 0 15px 10px 15px;
}
.delete-btn {
    width: auto;
    border-radius: 5px;
    border: none;
    background-color: #F7F9FD;
    color: black;
    font-size: .9em;
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 600;
    padding: 15px;
}
.delete-btn:hover {
    background-color: red;
    color: white;
}
#error-message, #error-message-expenses {
    font-weight: bold;
    color: red;
    padding-top: 10px;
    height: auto;
    padding-bottom: 0px;
    margin-bottom: -5px;
    display: none;
    font-size: .8em;
}
#budget {
    width: 100%;
    height: auto;
    background-color: #587EF4;
    display: flex;
    padding: 10px;
    justify-content: space-between;
    margin: 20px 0px;
    border-radius: 5px;
}
#budget h2, p {
    color: white;
    padding: 10px;
}

@media (min-width: 767px){
    #container {
       width: 95%;
       display: flex;
       flex-direction: row;
       flex-wrap: wrap;
       border: 1px solid #ccc;
    }
    .full {
        display: flex;
        width: 100%;
        padding-right: 0px;
        margin: 0;
    }
    .form-box {
        width: 50%;
        padding: 10px;
        margin-right: 15px;
        margin-bottom: 20px;           
    }
    .transactions {
        width: 99%;
        padding: 10px;
        margin: 0px 0px;
    } 
    #recordsTable td {
        font-weight: 600;
        text-transform: capitalize;
    }
    .form-items select {
        height: 40px;
    }
    .first-section {
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        width: 100%;
        display: flex;
        align-items: center;
      }
    #budget-form {
        width: 100%;
        padding: 30px 10px;
    } 
    #budget-form input[type=text] {
        height: 40px;
        background-color: #F7F9FD;
        width: 100%;
    }
    #budget-form .btn {
        font-weight: 500;
        font-size: 1em;
        margin-top: 25px;
        background-color: #587EF4;
        padding: 10px 30px;
        width: 75%;
    }
    #budget-form .btn:hover {
        background-color: rgb(68, 68, 219);
    }
    #reset {
        padding: 15px 30px;
        margin-top: 25px;
        font-size: .8em;
    } 
    .form-btn-section {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }  
    #left {
        width: 50%;
        padding: 0;
        margin: 0;
        border: none;
    }  
    #right {
        width: 40%;
        border: none;
        background-color: #587EF4;
        margin: 0 auto;
        border-radius: 5px;
        padding: 0px 0px;
    }  
    #charts {
        display: flex;
        align-items: center;
        width: 99%;
        flex-direction: column;
        background-color: f6f6f9ed;
        margin-top: 30px;
    }
    #total_budget_chart_div {
        width: 100%;
        margin-top: 0px;
        margin-bottom: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #ccc;
        border-radius: 5px;
        min-height: 500px;
    }
    #income_expense_chart_div {
        width: 100%;
        margin-top: 0px;
        margin: 0px auto;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
}
