/* main page core components */
header {
    text-align: center;
    padding: 20px;
    font-size: xx-large;
    border: lightgray solid 1px;
}

body {
    background-color: #f7f7f7;
    margin: auto;

}

a.active-url {
    color: black;
    text-decoration: underline;
    font-weight: bold;
}

#sidebar {
    background-color: #f3f3f3;
    width: 200px;
    height: 100vh;
    padding: 20px;
    float: left;
    border-right: 1px solid #ccc;


}

#sidebar .item {
    list-style-type: none;
    padding: 5px 0;
    font-size: large;
    color: black;
    text-decoration: none;

}

/* main page core components end */

/* page  containers */
#root {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: auto;
    border-radius: 10px;
    margin-top: 32px;
}

/* small screen page containers */
@media (max-width:1200px) {
    #root {
        padding: 20px;

    }

}

/* small screen page containers end */

.section-header {
    font-size: large;
    font-weight: bold;
    max-width: 900px;
    margin: auto;
    width: fit-content;
    text-align: left;

}



.section-content {
    display: flex;
    flex-direction: column;
    margin-top: 10px;



    gap: 10px;
    border-radius: 10px;


}

.sub-navigation {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 5px;
}

.sub-navigation a {
    text-decoration: none;
}

.sub-navigation div {
    font-size: medium;
}

.data {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.data-point {
    display: flex;

    align-items: center;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    border-color: lightgray;
    border-style: solid;
    max-width: 100px;
}

/* transactions page */
#create-transaction {
    display: none;

}

#transactions {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    cursor: pointer;
    white-space: nowrap;
}

.expense {
    background-color: rgba(255, 94, 94, 0.686);
    padding: 5px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    padding: 15px;
    width: 100%;
    justify-content: space-between;

}

.income {
    background-color: lightgreen;

    border-radius: 10px;
    display: flex;
    flex-direction: row;
    padding: 15px;
    width: 100%;
    justify-content: space-between;


}

.description {
    font-size: small;
    overflow: hidden;
    max-width: 150px;
    text-overflow: ellipsis;

}

.close-icon {
    width: 10px;
    height: 10px;
    align-self: flex-end;
    cursor: pointer;
}

.date,
.value,
.description {
    flex: 1;
}

/* transactions page */
form {
    border: lightgray solid 1px;
    padding: 20px;
    display: block;
    flex-direction: column;

}

input {
    margin-bottom: 10px;

}

form button {
    background-color: red;
}





.loader {
    border: 400px solid #fff;
    border-top: 400 px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    align-self: center;
    width: 100%;
    height: 100%;

    font-size: xx-large;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(0.75);
    }

    100% {
        transform: rotate(360deg) scale(0.75);
    }
}

@media screen and (max-width: 600px) {
    #sidebar {
        display: none;
    }
}