/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- General
- Banner
- The Modal (background) 
- Main Dashboard
- Tabs
- DatePickerRange (Calendar)
- Mobile devices
–––––––––––––––––––––––––––––––––––––––––––––––––– */


/* General
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#app-container * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    background-color: #1e2130;
    color: #f3f5f4;
    font-family: "Open Sans", sans-serif;
    width: 100%;
    height: 100vh;
    max-width: 100% !important;
    overflow-x: hidden;
    margin: 0;
}

#big-app-container {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5rem;
}

#loading-1 {
    background-color: #1e2130
}

/* Banner
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.banner {
    height: fit-content;
    background-color: #1e2130;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #4B5460;
    padding: 1rem 10rem;
    width: 100%;
}

.banner h5 {
    font-family: 'Open Sans Semi Bold', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    font-size: 2.2rem;
    letter-spacing: 0.1rem;
    /* text-transform: uppercase; */
}

.banner h6 {
    font-size: 1.6rem;
    line-height: 1;
}

.banner button {
    color: #95969A;
    margin-right: 10px;
    height: 3rem;
    line-height: 3rem;
}

#banner-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.banner button:hover {
    color: #91abdf;
    border-color: whitesmoke;
}

.banner Img {
    height: 5rem;
    margin: 0px 10px;
}


/* The Modal (background) 
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.modal {
    display: none; /*Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1005; /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.markdown-container {
    width: 60vw;
    margin: 10% auto;
    padding: 10px 15px;
    background-color: #2d3038;
}

.close-container {
    width: 100%;
    margin: 0;
    padding: 0;
    height: 40px;
}

.closeButton {
    padding: 0 15px;
    font-weight: normal;
    float: right;
    height: 100%;
    border: none;
}

.closeButton:hover {
    color: #91abdf;
}

/* Main Container
–––––––––––––––––––––––––––––––––––––––––––––––––– */

#app-container {
    background: #161a28;
    margin: 1rem 2rem;
    max-width: 100%;
    width: 100%;
    height: calc(100vh - 10rem - 1px);
}

#app-content {
    background: inherit;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Tabs
–––––––––––––––––––––––––––––––––––––––––––––––––– */

#tabs {
    width: 100%;
}

.custom-tabs {
    background-color: #1E2130;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    height: fit-content;
    cursor: pointer;
}

#metrics-tab.custom-tab, #charts-tab.custom-tab, #wallet-tab.custom-tab {
    background-color: #161a28;
    letter-spacing: 1px;
    color: inherit;
    border: 0;
    border-bottom: #1E2130 solid 4px !important;
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 18px;
}

#metrics-tab.custom-tab--selected, #charts-tab.custom-tab--selected, #wallet-tab.custom-tab--selected {
    border-bottom: #91abdf solid 4px !important;
}

#wallet-tab.custom-tab {
    margin-right: 6px;
}

#metrics-tab.custom-tab {
    margin-right: 6px;
}

/* #charts-tab.custom-tab {
    margin-left: 3px;
} */

/* .section-banner {
    color: darkgray;
    font-size: 1.5rem;
    text-align: left;
    padding: 1rem 2rem;
    border-bottom: 1px solid #4b5460;
} */


/* Tab1 content
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#intro-wallet-container {
    font-weight: bold;
    margin: 6rem 5rem 1rem;
    font-size: 1.6rem;
}

#wallet-container {
    display: grid;
    place-items: center;
    margin: 4rem 5rem 16rem; 
}

#wallet-input-container {
    display: grid;
    place-items: center;
    margin-top: 1rem;
    margin-bottom: 4rem;
    margin-left: auto;
    margin-right: auto;
}

#input-on-submit-wallet {
    height: 5rem;
    width: 40rem;
    color: darkgray;
    margin-left: auto;
    margin-right: auto;
}

#input-on-submit-wallet:focus {
    outline: none black;
    color: #91abdf;
}

/* input[type="text"] .Select, .Select div, .Select input,.Select span {
    color: rgb(225, 37, 37);
} */

/* #input-on-submit-wallet .Select, .Select div, .Select input,.Select span {
    width: 30rem;
    color: darkgray;
} */

#submit-btn-wallet {
    height: 5rem;
    width: 20rem;
    color: darkgray;
    margin-left: auto;
    margin-right: auto;
}

#submit-btn-wallet:hover {
    color: #91abdf;
    border-color: #91abdf;
}

#wallet-display-container {
    display: grid;
    place-items: center;
    width: 100%; 
    margin: 1rem 2rem 2rem;
}

#wallet-display-box {
    /* display: flex; */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #1E2130;
    height: 10rem;
    width: 100%; 
    padding: 15px;
    border-top: 3px solid #91abdf;
    border-radius: 2px;
    overflow: hidden; 
}

#wallet-display-output {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
}

#wallet-address {
    font-size: 1.5rem;
    overflow: scroll;
    padding-left: 10px;
    padding-right: 10px;
    color: darkgray;
    background-color: #161a2832;
}

#wallet-ada {
    font-size: 2.8rem;
    padding-left: 10px;
    padding-right: 10px;
    color: #91abdf;
    
}

/* Tab2 content
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#intro-metrics-container {
    font-weight: bold;
    margin: 6rem 5rem 1rem;
    font-size: 1.6rem;
}


/* ----- Network Metrics ----- */
#metrics-container {
    margin: 4rem 5rem 1rem;
}

#metrics-display-container {
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-wrap: wrap;
    /* column-gap: 10px; */
}

.network-metrics-title {
    color: darkgray;
}

.network-metrics-box {
    background-color: #1e2130;  
    /* background-color: #464c6e;  Alternative color  */
    margin: 10px;
    padding: 5px 10px;
    display: inline-block;
    white-space: nowrap;
}

.network-metrics-left {
    margin-left: 10px; 
    margin-right: 50px;
    text-align: left;
    display: inline-block;
    width: 5em;
}

.network-metrics-right {
    margin-right: 10px;
    text-align: right;
    display: inline-block;
}

#img-content-1 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    padding-bottom: 50px;
    width: 85%;
}

/* Tab3 content
–––––––––––––––––––––––––––––––––––––––––––––––––– */

#charts-tab-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#graphs-container {
    display: flex;
    flex-direction: column;
    flex: 3 1;
    max-width: calc(95%);
    width: 90%;
}

/* ----- Charts Container ----- */
#chart-main-container {
    position: relative;
    z-index: 4;
    width: 100%;
}

#graphs-selection-row-1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin: 10px;
    border-bottom: #1E2130 solid 0.8rem;
    border-left: #1E2130 solid 0.8rem;
    border-right: #1E2130 solid 0.8rem;
    padding: 15px;
}

.selection-container{
    white-space: nowrap;
    margin-right: 5px;
}

/* DatePickerRange (Calendar)
–––––––––––––––––––––––––––––––––––––––––––––––––– */

#date-picker-container  {
    white-space: nowrap;
    margin-left: 5px;
}

.DateInput {
    background: #1E2130;
    width: 93px;
}

.DateRangePickerInput  {
    background-color: #1e2130;
    border: 2px solid #1e2130;
}

input[type="text"] {
    background-color: #1E2130;
    border: 1px solid #1E2130;
}

input[type="text"]:focus {
    border: 1px solid #91abdf;
    color: #91abdf;
}

.DateInput_input, .DateInput_input_1 {
    text-align: center;
    line-height: calc(1.5em + 0.75rem);
    font-weight: 400;
    color: #fff;
    background-clip: padding-box; 
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.DateRangePickerInput_clearDates {
    padding: 5px;
    margin: 0 5px 0 5px;
}

.DateInput_fangShape {
    fill: #42559a;
}
.DateInput_fangStroke {
    stroke: #42559a;
    fill: #42559a;
}

.CalendarMonth , 
.DayPicker, 
.DateRangePicker_picker, 
.CalendarMonthGrid, 
.CalendarMonthGrid_month {
    background-color: #383f53;
}

.DayPickerNavigation_button__default {
    border: 1px solid #95969A;
    background-color: #383f53;
}

.DayPickerNavigation_svg__horizontal {
    fill: #95969A;
}

.CalendarMonth_caption, 
.DayPicker_weekHeader {
    color:#f3f5f4
}

.CalendarDay__selected,
.CalendarDay__selected:active,
.CalendarDay__selected:hover {
    background: #42559a;
    border: 1px double #1e2130;
    color: #fff
}

.CalendarDay__selected_span {
    background: #91abdf;
    border: 1px double #1e2130;
    color: #fff
} 

.CalendarDay:hover{
    background: #1e2130;
    border: 2px double #1e2130;
}

/* below makes .CalendarDay_selected invalid */
/* .CalendarDay__default {
    border: 1px solid #e7e4e5;
    color: #484848;
    background: #fff;
} */

.DayPickerKeyboardShortcuts_panel {
    background: #2d3038;
}

.DayPickerKeyboardShortcuts_show__bottomRight::before {
    border-right: 33px solid #2d3038;
}

.DayPickerKeyboardShortcuts_showSpan {
    color: #95969A;
}


/* Device = Most of the Smartphones Mobiles / ipad (Portrait)
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media only screen and (max-width: 950px) {

    body {
        font-size: 1.3rem;
    }

    #big-app-container {
        padding: 1rem;
    }

    .banner {
        flex-direction: column-reverse;
        padding: 1rem 0.5rem;
    }

    #banner-text {
        text-align: center;
    }

    .banner h5 {
        font-size: 1.9rem;
        text-transform: none;
    }

    .banner h6 {
        font-size: 1.3rem;
    }

    #banner-logo button {
        display: none;
    }

    #logo {
        width: 50px;
        height: 50px;
        margin: 0;
    }

    .banner Img {
        height: 3rem;
        margin: 1rem;
    }

    #app-container {
        height: auto;
    }

    #intro-metrics-container {
        margin: 4rem 2rem 0rem 2rem;
        font-size: inherit;
    }

    #intro-wallet-container {
        /* margin: top right bottom left */
        margin: 4rem 2rem 2rem 2rem;
        font-size: inherit;
    }

    #wallet-container {
        margin: 4rem 2rem 10rem; 
        font-size: inherit;
    }

    #input-on-submit-wallet {
        /* height: 5rem; */
        width: 30rem;
    }

    #submit-btn-wallet {
        /* height: 5rem; */
        width: 18rem;
    }

    #wallet-address {
        font-size: 1.3rem;
        margin-bottom: 1px;
    }

    #wallet-ada {
        font-size: 2.5rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 800px) {
    #wallet-tab.custom-tab {
        margin-right: 0;
    }
    #metrics-tab.custom-tab {
        margin-right: 0;
    }

    #charts-tab.custom-tab {
        margin-left: 0;
    }
}