* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100vh;
    overflow: hidden;
    font-size: 12px;
}

body {    
    height: 100vh;
    overflow-x: auto;
    display: flex;
    flex-direction: column; 
    color: #707070;
    background-color: #16171b;
    background-image: url('../img/bg-wallet.svg');
    background-repeat: no-repeat;
    background-position: 50% 30%;
    background-size: 150%;    
    font-family: 'Tahoma', sans-serif;
    line-height: 1.5;
}

header {
    text-align: center;
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    text-transform: uppercase;
    font-size: 2.5rem;
}

.panel {
    margin: 2px;
    padding: 1rem;
    background-color: #202125;
    border-radius: 1rem;
    box-shadow: 0 0 5px 0 rgba(0,0,0,0.03);    
}

.panel.nobg {
    background-color: transparent;
    box-shadow: none;
}

#noUser, #loggedUser {
    display: none;
}

/* login screen */
#noUser {
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#formLogIn {
    margin: 1rem;
}

#formLogIn img {
    display: block;
    margin: 0 auto;
}
#formLogIn button {
    display: block;
    margin: 2rem auto 0 auto;
    background-color: #01B075;
    border: none;
    outline: none;
    color: #fff;
    text-transform: uppercase;
    border-radius: 0.5rem;
    padding: 0.75rem 3rem;
    cursor: pointer;
}

#formLogIn input {
    width: 22rem;
    outline: none;
    border: none;
    border-radius: .25rem;
    padding: .75rem;
    color: #707070;
}
#formLogIn label {
    margin: 1rem 0 .25rem 0;
    display: block;
}


/* dashboard */
#loggedUser {
    flex-direction: column;
}

#walletWrap {
    display: none;
}

#iconWallet {
    height: 1rem;
    vertical-align: middle;
    margin: 0 3px 3px 0;
}

/* header */
#sectionActions {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sectionActions #walletWrap {
    color: #fff;
}

#sectionActions button {
    background: none;
    cursor: pointer;
    border: none;
    outline: none;
    margin: 1rem;
}

#sectionActions, #sectionChart, #sectionTable, #sectionSummary {
    width: 100%;
    text-align: center;
}
#sectionChartContentIn, #sectionChartContentOut {
    width: 100%;
    height: 400px;
}


/* summary */
#sectionSummary {
    display: flex;
    flex-wrap: wrap;
}

#sectionSummary .panel {
    width: 100%;
}

#sectionSummary h1 {
    font-size: 2.2rem;
    color: #fff;
    font-weight: normal;
}

#sectionSummary h2 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: normal;
    margin-top: .5rem;
}

#sectionSummary h3 {
    font-size: 1rem;
    font-weight: normal;
    margin-top: .25rem;
}

#sectionSummary .unit {
    font-size: 1rem;
    color: #707070;
    padding-left: .25rem;
}

#sectionSummary .unitUsd {
    font-size: 1.8rem;
    color: #707070;
    padding-right: .1rem;
}

.bubble {
    display: inline-block;
    background-color: #707070;
    padding: 0 .5rem;
    border-radius: .5rem;
    color: #fff;
}

#bubbleIn {
    background-color: #01B075;
}

#bubbleOut {
    background-color: #FF4A39;
}


/* tabs */
.tabs {
    display: flex;
    margin: 1rem 0;
}

.tabAction {
    width: 50%;
    cursor: pointer;
    font-size: 2rem;    
    color: #707070;
    border-bottom: 1px solid #707070;
    margin: 0 1rem;
}

#tabIn.active {
    color: #01B075;
    border-bottom: 1px solid #01B075;
}

#tabOut {
    text-align: right;
}

#tabOut.active {
    color: #FF4A39;
    border-bottom: 1px solid #FF4A39;
}

#sectionOut{
    display: none;
}

/* transaction table */
#sectionIn h2, #sectionOut h2 {
    font-weight: normal;
    color: #fff;
}

#sectionTableContentIn, #sectionTableContentOut {
    overflow: auto;
}

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

table th {
    border-bottom: 1px solid #707070;
    padding-bottom: .5rem;
    text-align: left;
    color: #909090;
}

table tr:nth-of-type(2) td {
    padding-top: .5rem;
}

table td {
    font-size: 0.8rem;    
    text-align: left;
    padding-right: .5rem;
}

.tdValue {
    color: #909090;
}

.tdHash, .tdFee {
    color: #505050;
}


/* highchart button fix */
.highcharts-button-box {
    fill: #16171b;
    stroke: #48494d;
}
.highcharts-button text {
    fill: #777 !important;
}



@media screen and (min-width: 540px){
    html {
        font-size: 14px;
    }
    .panel {
        margin: 0.5rem;
    }    
    #walletWrap {
        display: block;
    }
    #sectionSummary {
        flex-wrap: wrap;
    }
    
    #sectionSummary .panel {
        width: calc(50% - 1rem);
    }
}

@media screen and (min-width: 990px){
    html {
        font-size: 16px;
    }
    .panel {
        margin: 1rem;
    }    
    #sectionSummary {
        flex-wrap: wrap;
    }
    
    #sectionSummary .panel {
        width: calc(25% - 2rem);
    }
}