/* Global ................*/
 :root {
    --dark-blue:#363f5f;
    --green: #49AA26;
    --light-green: #3dd705;
    --dark-green: #2d4a22;
    --red: #e92929;
    --white: #f0f2f5;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    font-size:93.75%; /*15px*/
}
body{
    background:var(--white);
    font-family: 'Montserrat', sans-serif;
    
}
.sr-only{ /*Hide elements on screen for people with accessibility software*/
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nownap ;
    border-width: 0;
}
.container{
    width: min(90Vw, 800px);
    margin: auto;
}

/* Titles ................*/
h2{
    margin-top: 3.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark-blue) ;

    font-weight: normal;
}


/* Links and Buttons ................*/
a{
    color: var(--green);
    text-decoration: none;
}

a::hover{
   color: var(--light-green); 
}

button{
    
    height: 50px;

    border: none;

    color:white;
    background: var(--green);

    padding: 0;

    border-radius: 0.25rem;
    
    cursor: pointer;
   
}


button:hover{
    background: var(--light-green);

}
.botton.add{
    display: inline-block;
    margin-bottom: 0.8rem;
}

.button.cancel{
    color: var(--red);
    border: 2px var(--red) solid;
    border-radius: 0.25rem;

    height: 50px; 
    width: 45%;
    background:var(--white);
    
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.6;
}
.button.cancel:hover{
    opacity: 1;
    }


/* Header ................*/
header{
    background: var(--dark-green);
    padding: 2rem 0 10rem; 
    text-align: center;
}

#logo h1{
    color: #fff;
    font-weight: 100;
}


/* Balance ................*/
#balance{
    margin-top: -8rem;
}

#balance h2{
    color: #fff;
    margin-top: 0;
}


/* Cards ................*/
.card{
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 0.25rem;

    margin-bottom: 2rem;

    color: var(--dark-blue);
}
.card h3 {
    font-weight: normal;
    font-size: 1rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card p {
    font-size:2rem;
    line-height: 3rem;

    margin-top: 1rem;
}
.card.total{
    background: var(--green);
    color:#fff;
}


/* Table ................*/
#transaction{
    display: block;
    overflow-x: auto;
    
}
#data-table{
    
    width: 100%;
    border-spacing: 0 0.5rem;
    color: #969cb3;
    overflow-y:hidden

   
}
table thead tr th:first-child, 
table tbody tr td:first-child{  
    border-radius: 0.25rem 0 0 0.25rem;
}
table thead tr th:last-child, 
table tbody tr td:last-child{
border-radius: 0 0.25rem  0.25rem 0;

}
table thead th{
    background: #fff;

    font-weight: normal;
    padding: 1rem 2rem;

    text-align: left; 
}
table tbody tr{
    opacity: 0.7;

}
table tbody tr:hover{
    opacity: 1;

}
table tbody td{
    background: #fff;
    padding: 1rem 2rem;
}

td.description{
    color:var(--dark-blue);
}
td.income{
    color: #12a454;
}
td.expense{
    color: var(--red);
}


/* Modal ................*/

.modal-overlay{
    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.7);

    position: fixed;
    top: 0;

    display:flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    z-index: 9999;
}

.modal-overlay.active{
    opacity:1;
    visibility: visible;
}

.modal{
    background:var(--white);
    padding: 2.4rem;
    width: 90%;
    max-width: 500px;

    position: relative;
    z-index: 1;   
}

/* Forma ................*/
#form{
    max-width: 500px;

}

#form h2{
    margin-top: 0;
}

input{
    border: none;
    border-radius: 0.2rem;

    padding: 0.8rem;

    width: 100%;
}

.input-group{
    margin-top: 0.8rem;
}

.input-group small{
   opacity: 0.4;
}

.input-group.actions{
    display: flex;
    justify-content: space-between;
    align-items: center ;
}

.input-group.actions .botton,
.input-group.actions button{ 
    width: 48%;

}




/* Footer ................*/
footer{
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 2%;
    margin-right: 5%;
}

#econome-money-icon{
    color: var(--light-green);
    font-weight: bold;
}

.econome-icon-contact{
    margin-left: 10px;
}


.econome-icon-contact:hover {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    transition: all .2500s ease-in-out; 
}

.econome-nav-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-blue);
}

.econome-contact-container{
    display: flex;
    align-items:center;
}

.econome-contact-name{
    margin: 5px 10px 0 5px;
    font-size: 1rem;
    color: var(--dark-blue);
}


/* Responsive ................*/
@media (min-width: 800px){
    html{
        font-size: 87.5%; /* 14px*/
    }

    #balance{
        display: grid;
        grid-template-columns:repeat(3, 1fr);
            gap: 1rem;
    }
}
