/* backend dev wants to know how to center a div */


/* Mobile */
@media screen and (max-width: 480px) {
    body {
        font-size: 12px !important;
    }

    .nes-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .loginIntroLogo {
        width: 75px;
        height: 75px;
    }

    .navBtn {
        font-size: 5px;
    }

    .manageAccountsBtn {
        width: 90%;
    }
    
    .mobileModalBody {
        font-size: 10px;
    }

    .assetChartBtn {
        font-size: 9px;
    }

    .tableFont {
        font-size: 6px;
    }

    .orderTableFont {
        font-size: 6px;
    }

    .hiddenScroll {
        overflow-y: scroll ;
        height: 70vh;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hiddenScrollPortfolio {
        overflow-y: scroll ;
        height: 90vh;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hiddenScrollWatchlist {
        overflow-y: scroll ;
        height: 90vh;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hiddenScroll::-webkit-scrollbar {
        display: none;
    }

    .hiddenScrollPortfolio::-webkit-scrollbar {
        display: none;
    }

    .hiddenScrollWatchlist::-webkit-scrollbar {
        display: none;
    }

}

/* Desktop */
@media screen and (min-width: 500px) {

    .container {
        padding-right: 30%;
        padding-left: 30%;
    }

    .container-half {
        padding-right: 10%;
        padding-left: 10%;
    }

    .container-asset {
        padding-right: 15%;
        padding-left: 15%;
        max-height: 50vh !important;
    }

    .tableMargin {    
        margin-left: 5%;
        margin-right: 5%;
    }

    .tableFont {
        font-size: 12px;
    }

    .manageAccountsBtn {
        width: 60%;
    }

    .loginIntroLogo {
        width: 200px;
        height:200px;
    }

    .hiddenScroll {
        overflow-y: scroll ;
        height: 80vh;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hiddenScrollPortfolio {
        overflow-y: scroll ;
        height: 90vh;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hiddenScrollWatchlist {
        overflow-y: scroll ;
        height: 90vh;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hiddenScroll::-webkit-scrollbar {
        display: none;
    }

    .hiddenScrollPortfolio::-webkit-scrollbar {
        display: none;
    }

    .hiddenScrollWatchlist::-webkit-scrollbar {
        display: none;
    }

}

body {
    overflow-x: hidden; 
    overflow-y: hidden;
}

.isHidden {
    display: none !important;
}

.isVisible {
    visibility: visible;
    height: auto;
}

/* .centered {
    display: block;
    align-content: center;
} */

/* .centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
} */

.center {
    text-align: center;
}

.progressDiv {
    z-index: 3;
    position: fixed;
    /* margin: auto; */
    top: 35%;
    left: 25px;
    /* right: 50%; */
    /* bottom: 15%; */
    width: 250px;
}

.progressDiv.is-dark .progressContainer {
    background-color: #212529;
}

.progress {
    border-image-repeat: stretch !important;
}

.progressContainer {
    width: calc(100vw - 50px);
    background-color: #fff;
}

.form_field {
    border-image-repeat: stretch !important;
}

.search_field {
    width: calc(100% - 55px) !important;
    padding-right: 0px !important;
    margin-right: 0px !important;
    border-image-repeat: stretch !important;
    font-size: 16px;
    text-transform: uppercase;
}

.watchlistHeader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.watchlistSearchWrap {
    flex: 1;
    min-width: 0;
}

#tickerSearchWatchlist {
    width: calc(100% - 8px) !important;
}

.select-field {
    width: calc(100% - 12px) !important;
}

.theme-warning {
    background-color: #f7d51d;
    color: #212529;
    box-shadow: inset -4px -4px #e59400;
}

.theme-btn {
    background-color: transparent;
    border-color: transparent;
    /* width: 17px !important; */
    padding: 0px !important;
    margin: 0px !important;
}

.section-margin-top {
    margin-top: 8px;
}

.genericMargin {
    margin-top: 8px !important;
}

.genericPadding {
    padding-top: 20px;
}

.testPadding {
    padding-top: 20px;
}

.container-margin {
    margin-top: 4px;
    margin-right: 4px;
    margin-left: 4px;
    margin-bottom: 2px;
}

.nav-section {
    margin-top: 8px;
}

.logout-section {
    margin-top: 8px;
}

.tabAlSignup {
    display: none;
}

.cancelSignupBtn {
    display: none;
    margin: 20px !important;
}

/* dropdown */
/* z index breaks darkmode*/

.dropdown{
    font-size: 12px;
    border-top: 0 !important;
    visibility: hidden;
    height: auto;
    padding: 0px !important;
}

/* table */
/* width breaks border image */

.tableStyle {
    width: calc(100% - 8px);
    border-image-repeat: stretch !important;
}

.watchlistTableScroll {
    overflow-x: hidden;
    width: calc(100% - 5px);
}

#watchlistTitle {
    margin-bottom: 16px;
}

.heightControl {
    height: calc(100vh - 8px);
}

/* General Fixes for NES.CSS */

.nes-btn {
    border-image-repeat: stretch !important;
}

.password-toggle {
    cursor: pointer;
    margin-top: 4px;
    font-size: 10px;
}

.nes-select {
    border-image-repeat: stretch !important;
}

/* Fix for NES.CSS dark mode */

.dark-fix {
    overflow: hidden;
}

#dialog-review-order-body {
    max-height: 60vh;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#dialog-review-order-body::-webkit-scrollbar {
    display: none;
}

h3.is-dark {
    color: #fff;
    background-color: #212529;
}

.nes-btn.is-dark {
    color: #fff;
    background-color: #212529;
    border-image-source: url('data:image/svg+xml;utf8,<?xml version="1.0" encoding="UTF-8" ?><svg version="1.1" width="5" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M2 1 h1 v1 h-1 z M1 2 h1 v1 h-1 z M3 2 h1 v1 h-1 z M2 3 h1 v1 h-1 z" fill="rgb(255,255,255)" /></svg>');
}

.nes-progress.is-dark {
    color:#fff;
    background-color: #212529;
    border-image-source: url('data:image/svg+xml;utf8,<?xml version="1.0" encoding="UTF-8" ?><svg version="1.1" width="5" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M2 1 h1 v1 h-1 z M1 2 h1 v1 h-1 z M3 2 h1 v1 h-1 z M2 3 h1 v1 h-1 z" fill="rgb(255,255,255)" /></svg>');
}

.nes-progress.is-dark::-webkit-progress-value {
    background-color: #fff;
}

.nes-progress.is-dark::-moz-progress-bar {
    background-color: #fff;
}

#assetInfoHeader {
    position: relative;
}

.addToWatchlistBtn {
/* position: absolute; */
/* right: 10px; */
/* right: 10%; */
/* float: right; */
/* top: 5px; */
}

