/*General styles*/
/*------------------------*/
h1 {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #112d32;
    padding-bottom: 20px;
}

.background{
    background: rgb(247,244,239);
    width:100vw;
    padding: 3rem;
}


/*Index Page styles*/
/*------------------------*/

.indexWrapper{
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome {
    position: relative;
    padding: 4rem;
    border-radius: 4px;
    width: 600px;
    justify-content: center;

}

.indexFields{
    display: flex;
    flex-direction: column;
    padding: 4rem;
    border-radius: 4px;
    margin: 2rem;
    width: 50%;
    justify-content: center;
    background-color: #88bdbc;
}

.actionFields{
    display: flex;
    flex-wrap: wrap;
    border-radius: 4px;
    margin: 1rem;
    width: 600px;
    justify-content: center;
}

.indexLogo{
    width: 240px;
    height: 118px;
    margin-bottom: 3rem;
}

.indexFields p{
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.actionbox{

    width: 250px;
    height: 250px;
    margin: 1rem;
    background-color: #88bdbc;
    border-radius: 4px;

}



.actionbox:hover {
    box-shadow: 0 0.5em 0.5em -0.4em #112d32
}


.main-item {
    display: flex;
    justify-self: center;
    flex-wrap: wrap;
    flex-direction: column;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #112d32;
    background-color: #88bdbc;
    padding: 2.8em;
    text-align: center;
}




/*Forms styles (Login Register etc) */
/*------------------------*/


.container{
    height:100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.defaultForm{
    display: flex;
    flex-direction: column;
    background-color: #88bdbc;
    padding: 3rem 3rem 1rem 3rem;
    width: 500px;
    border-radius: 4px;
}


label {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #112d32;
    margin-top: 1rem;
    margin-bottom: 0.4rem;

}

label, input .block {
    display:block;
    width:100%;
}

div a {
     color: black;
    text-decoration: none;
    margin-top: 10px;
}

div a:hover{
    color: #112d32;
  text-decoration: underline;
}

.link{
    text-align: right;
}

.textInput {
    background-color: #f7f4ef;
    width: 96%;
    border: 1px solid #112d32;
    border-radius: 0.2em;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
}

.textInput:focus {
    outline: none;
    box-shadow: 0 0.5em 0.5em -0.4em #112d32;
}

button {
    background-color: #88bdbc;
    border: 1px solid black;
    border-radius: 10%;
    padding: 0.4rem 0.48em;
    font-size: 1em;
    transition: all 0.20s;
    font-family: 'Lato', sans-serif;
}

button:hover {
    box-shadow: 0 0.5em 0.5em -0.4em #f7f4ef;
    transform: translateY(-0.2em);
    transition: ease-in;
    cursor: pointer;
}


select-items;{
    color: black;
}





/*Utility classes*/
/*------------------------*/

.marginTop{
    margin-top: 3rem;
}


.displayNone{
    display: none;
}




/*Media Querries*/
/*------------------------*/

@media (max-width: 1500px) {

    .welcome {
        width: 350px;
        margin-right: 2rem;
    }

}


@media (max-width: 1120px) {

    .indexWrapper{
        display: flex;
    flex-direction: column;
    }

    .welcome{
        width: 100%;
    }

    .actionFields{
        width: 80%;
    }

    .indexFields{
        width: 100%;
        margin-top: 0;
    }

}


@media (max-width: 700px) {



    .welcome{
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    .indexLogo{
        display:none;
    }

    .defaultForm{
        width: 300px;
    }

}



/*Balance Page*/
.img-balance {
    width: 100px;
    margin-top: 1em;
    margin-bottom: 1em;
}

.wrapper{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}


.row{
    width: 100%;
    justify-content: space-evenly;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2em 2em;
    margin: 2rem 4rem 1rem 4rem;
    color: #112d32;
    background-color: #88bdbc;
    border-radius: 0.2em;
        font-family: 'Lato', sans-serif;
        font-size: 1.2em;
        text-transform: uppercase;
}

.textright{
    margin-bottom: 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
}


.balance-h2 {
    font-family: 'Lato', sans-serif;
    font-size: 1.0em;
    color: #112d32;
    margin-top: 1rem;
}

.balance-p {
    font-family: 'Lato', sans-serif;
    font-size: 0.8em;
    color: #112d32;
}

.balance_score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem;
}


#income_row{
    display: none;
}

#expense_row{
    display: none;
}





/*Balance Page Table*/

table {
    width: 50%;
    overflow: scroll;
}

.table-head {
    font-size: 0.7em;
    padding: 1em;
    margin: 0.2 0.6em;
    background-color: #fff;
    border-bottom: 1px solid #fff;
}

.table-content {
    font-size: 0.6em;
    padding: 1em;
    margin: 0.6 0.6em;
    border-bottom: 1px solid #fff;
}



@media (max-width: 600px) {
    .desc {
        display: none !important;
    }
}

.content{
    height: 95%;
    width:95 vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.welcome-menu {
    max-width: 400px;
    background-color: #88bdbc;
    position: relative;
    top: 20vh;
    border-radius: 0.5em;
    margin-bottom: 1em;
    padding: 1em;
    min-width: 15em;
}

.logo-index {
    width: 200px;
    position: relative;
    top: 40vh;
}

.logo-welcome {
    width: 200px;
    position: relative;
    top: 20vh;
    margin-bottom: 3em;
}


.date-input {
    background-color: #f7f4ef;
    width: 96%;
    border: 1px solid #112d32;
    border-radius: 0.2em;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
}

.date-input:focus {
    outline: none;
    box-shadow: 0 0.5em 0.5em -0.4em #112d32;
}

.balance-input {
    background-color: #f7f4ef;
    width: 96%;
    border: 1px solid #112d32;
    border-radius: 0.3em;
    font-family: 'Lato', sans-serif;
    font-size: 0.8em;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.balance-input:focus {
    outline: none;
    box-shadow: 0 0.5em 0.5em -0.4em #112d32;
}

.balance_score {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav {
    top: 3rem;
}

.nav-item {

    color: #112d32;
    text-decoration: none;
    font-size: 1em;
    font-family: 'Lato', sans-serif;
}

.nav-item:hover {

    border: 1px solid #fff;
    background-color: #fff;
    border-radius: 0.4em;
    font-family: 'Lato', sans-serif;
}

.nav-logo {
    max-width: 150px;
}


.img-description {
    width: 100px;
    margin-bottom: 1em;
}

.img-option {
    width: 20%;
    margin-top: 1em;
    margin-bottom: 1em;
    display: inline;
}

.img-balance {
    width: 100px;
    margin-top: 1em;
    margin-bottom: 1em;
    display: inline-block;
}


.piechart {
    margin-top: 2em;
    display: inline;
    position: relative;
    width: 90%;
    justify-content: center;
    align-items: center;
}



@media (max-width: 1550px) {

    .content{
        height: 90%;
        flex-direction: column;
        margin-top: auto;
        justify-content: unset start;

    }


    @media (max-width: 800px) {

        .content{
            flex-direction: column;
        }


        .titles{
            background-color: none;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-items: center;
            font-size: 0.7em;
        }

        .img-balance{
            display: none;
        }
        .login-menu {
            top: 1vh;
            margin-left: 1em;
            margin-right: 1em;
            width: 90%;
        }

        .logo-index {
            width: 150px;
            height: 72px;
            top: 1vh;
        }

        .logo-welcome {
            width: 150px;
            height: 72px;
            top: 1vh;
            margin-bottom: 2em;
        }

        .welcome-menu {
            top: 1vh;
            margin-left: 1em;
            margin-right: 1em;
            width: 90%;
        }

    }