/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
    min-height: 100vh;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Start CSS */

body {
    background-color: #0A0A0A;
    color: #FFFFFF;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    overflow-x: hidden;
    overflow-y: hidden;
}

@media screen and (max-width: 1000px) {
    body {
        display: flex;
        align-items: center;
        padding: 50px;
        height: 100vh;
    }

    main, nav, header, form, div {
        display: none;
    }

    .resizeNotification {
        display: block;
        height: fit-content;
        text-align: center;
        font-size: 40px;
    }
}

@media screen and (min-width: 1001px) {
    .resizeNotification {
        display: none;
    }

    .popup {
        position: fixed;
        background-color: #00BDDD;
        color: black;
        bottom: 40px;
        transform: translate(50%, 50vh);
        right: 50%;
        text-align: center;
        padding: 15px 40px;
        border-radius: 0.5em;
        user-select: none;
        pointer-events: none;
        transition: 700ms;
        z-index: 100;
    }

    .currentPg {
        /*color: #00BDDD;*/
        filter: invert(52%) sepia(92%) saturate(1911%) hue-rotate(150deg) brightness(100%) contrast(101%);
    }

    /* Login / Signup Page */

    #login-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        width: 100vw;
        height: 100vh;
    }

    #login-container-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 80px;
    }

    #login-container-left h1 {
        font-size: 80px;
        font-weight: bold;
    }

    #login-container-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #login-container-right h1 {
        font-size: 60px;
        text-align: left;
        font-weight: bold;
        width: 495px;
    }

    .tag {
        background: linear-gradient(rgb(255,255,255,0.3), rgb(255,255,255,0.075));
        border: 1px solid rgb(255,255,255,0.5);
        text-align: center;
        width: fit-content;
        padding: 20px;
        margin: 20px 0;
        border-radius: 5em;
    }

    #names {
        display: flex;
        flex-direction: row;
        width: 495px;
        justify-content: space-between;
    }

    input {
        background-color: #191919;
        color: white;
        outline: none;
        border: 1px solid rgb(255,255,255,0.5);
        padding: 12px;
        height: 14px;
        border-radius: 6px;
        transition: 200ms;
    }

    input:focus {
        outline: 3px solid rgba(45, 202, 255, 0.4);
        border: 1px solid rgb(255,255,255,1);
    }

    #names input {
        width: 209px;
    }

    .input {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 16px 0;
    }

    .input input {
        width: 469px;
    }

    label {
        font-size: 14px;
        font-weight: normal;
        color: #999999;
        margin: 0 0 6px 0;
    }

    .submitButton {
        border: none;
        border-radius: 4px;
        background-color: #00BDDD;
        color: black;
        width: 495px;
        height: 40px;
        padding: 12px;
        margin: 16px 0;
        transition: 200ms;
    }

    .submitButton:hover {
        background-color: #00dcff;
    }

    .loginredir {
        text-align: left;
        width: 495px;
        padding: 0;
        text-decoration: none;
        color: #00dcff;
    }

    .viewpass, .viewpass img {
        position: absolute;
        display: block;
        width: 25px;
        height: auto;
        right: 10px;
        top: 16px;
    }

    /* Home Page */

    .sidebar {
        display: block;
        position: absolute;
        z-index: 2;
        top: 0;
        bottom: 0;
        width: 64px;
        padding: 8px;
        outline: 1px solid #1F1F1F;
    }

    #topicons {
        margin: 66px 0;
        width: 100%;
        height: 190px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    #bottomicons {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        position: absolute;
        height: 110px;
        bottom: 32px;
        left: 0;
        right: 0;
    }

    #topicons img, #topicons a, #bottomicons img, #bottomicons a {
        width: 18px;
        height: auto;
    }

    #leadingContent {
        display: flex;
        flex-direction: row;
        position: absolute;
        z-index: 1;
        left: 80px;
        right: 0;
        height: 42px;
        padding: 16px;
        outline: 1px solid #1F1F1F;
    }

    #headerAccInfo, .headerBalanceInfo {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: fit-content;
        margin: 0 20px;
    }

    #accName, .number {
        font-size: 14px;
        line-height: 18px;
        color: white !important;
    }

    #accNum, .label {
        font-size: 12px;
        color: #999999;
        line-height: 18px;
    }

    .verticalLine {
        display: block;
        width: 2px;
        background-color: #595959;
        margin: 10px 0;
    }

    /* Home page main content */

    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        left: 80px;
        right: 0;
        top: 74px;
        bottom: 0;
    }

    #topcontainer {
        display: flex;
        flex-direction: row;
        justify-content: left;
        width: calc(100% - 40px);
        height: 130px;
        padding: 0 20px;
        outline: 1px solid #1F1F1F;
    }

    .bodycontainer {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
    }

    /* Candlesticks */

    .chart {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        position: relative;
        overflow-x: scroll;
        overflow-y: hidden;
        scrollbar-color: #3e3e3e #1F1F1F;
        scrollbar-width: none;
    }

    .candle {
        position: absolute;
        width: 10px;
        z-index: 1;
    }

    .wick {
        width: 2px;
        position: absolute;
        left: 4px;
        z-index: 1;
    }

    .body {
        width: 100%;
        position: absolute;
        z-index: 1;
    }

    .candlestickadd {
        display: flex;
        flex-direction: row;

    }

    .candlestickadd input {
        margin: 0 0 0 20px;
    }

    .candlesticksubmit {
        border: none;
        background-color: #00BDDD;
        color: black;
        transition: 200ms;
        padding: 20px;
        line-height: 0;
    }

    .candlesticksubmit:hover {
        background-color: #00daff;
    }

    /* Trading Sidebar */

    .tradingsidebar {
        display: flex;
        flex-direction: column;
        width: 400px;
        height: 100%;
    }

    .tradingsidebar h1 {
        box-sizing: border-box;
        text-align: left;
        width: 200px;
        margin: auto;
        padding: 20px 0 0 0;
        font-size: 25px;
    }

    .tradingsidebar h2 {
        box-sizing: border-box;
        text-align: left;
        width: 200px;
        margin: auto;
        padding: 20px 0;
        font-size: 20px;
    }

    .tradingsidebar h3 {
        box-sizing: border-box;
        text-align: left;
        width: 200px;
        margin: auto;
        padding: 20px 0 0 0;
        font-size: 14px;
        font-weight: normal;
        color: #999999;
    }

    /* Buy Sell Page */

    #chartcontainer {
        display: flex;
        flex-direction: row;
    }

    .buy-sell {
        display: block;
        width: 100%;
        height: 100%;
        outline: 1px solid #1F1F1F;
    }

    #orderbuttons {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .transactionbutton {
        border-radius: 0;
        border: none;
        width: 100px !important;
        height: auto;
        padding: 10px 15px !important;
        font-size: 15px;
        font-family: "Montserrat", sans-serif;
    }

    .transactionbutton:focus {
        border: none;
        outline: none;
    }

    #buy {
        text-align: left;
        border-radius: 0.5em 0 0 0.5em;
        transition: 300ms;
    }

    .buyselect {
        background-color: #00CC8F !important;
    }

    #buy:hover {
        background-color: rgba(0, 204, 143, 0.2);
    }

    #sell {
        text-align: right;
        border-radius: 0 0.5em 0.5em 0;
        transition: 300ms;
    }

    .sellselect {
        background-color: #F0004A !important;
    }

    #sell:hover {
        background-color: rgba(240, 0, 74, 0.2);
    }

    #priceinputs {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    #priceinputs label {
        margin: 0 0 15px 0;
    }

    #priceinputs input {
        box-sizing: border-box;
        padding: 20px 10px;
        width: 200px;
        font-size: 15px;
        font-family: "Montserrat", sans-serif;
    }

    #ordersubmit {
        box-sizing: border-box;
        margin: 10px 0;
        line-height: 0;
        padding: 0;
    }

    /* Orders Page */

    .orders {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: 100%;
        outline: 1px solid #1F1F1F;
    }

    .orders h2 {
        margin: 0 auto;
    }

    #orderslog {
        display: block;
        flex: 1;
        position: absolute;
        left: 0;
        right: 0;
        top: 60px;
        bottom: 0;
        outline: 1px solid #1F1F1F;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-color: #3e3e3e #1F1F1F;
        scrollbar-width: none;
    }

#orderslog td {
        font-size: 14px;
    }

    #orderslog table {
        box-sizing: border-box;
        width: 100%;
        padding: 0 10px;
    }

    #orderslog table td {
        box-sizing: border-box;
        padding: 4px;
    }

    /* Wallet */

    #walletcontainer {
        padding: 50px 100px;
    }

    #balanceContainer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 50px 0;
        text-align: center;
    }

    #walletcontainer h1 {
        font-size: 60px;
        width: fit-content;
    }

    #walletcontainer h2 {
        font-size: 30px;
        width: fit-content;
        margin: 20px auto;
        color: #999999;
    }

    #walletcontainer p {
        font-size: 40px;
        width: fit-content;
        margin: 20px auto;
    }

    .walletupdatecontainer {
        display: flex;
        flex-direction: column;
        justify-content: right;
    }

    #walletsettings {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        background-color: #1f1f1f;
        border-radius: 1em;
        margin: 50px 0 0 0;
        padding: 25px;
        width: 100%;
        height: 350px;
    }

    .balance {
        width: fit-content;
        margin: 0 25px;
    }

    .balance h2 {
        font-size: 20px !important;
        text-align: left !important;
        width: 100% !important;
    }

    .balance p {
        font-size: 25px !important;
        text-align: left !important;
        width: 100% !important;
    }

    .balanceupdate {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        margin: 20px 0;
    }

    .balanceupdate input {
        box-sizing: border-box;
        height: 42px;
        width: 257px;
        margin: 16px auto 0 auto;
    }

    .balancesubmit {
        border: none;
        background-color: #00BDDD;
        color: black;
        transition: 200ms;
    }

    .balancesubmit:hover {
        background-color: #00dcff;
    }

    .balanceremove {
        border: none;
        background-color: #f64650;
        color: black;
        transition: 200ms;
    }

    .balanceremove:hover {
        background-color: #f6616a;
    }

    #walletorderslog {
        box-sizing: border-box;
        display: block;
        flex: 1;
        position: relative;
        background-color: #1f1f1f;
        border-radius: 1em;
        margin: 10px 0;
        padding: 25px;
        width: 100%;
        height: 250px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-color: #3e3e3e #1F1F1F;
        scrollbar-width: none;
    }

    #walletorderslog table {
        box-sizing: border-box;
        width: 100%;
        padding: 0 10px;
    }

    #walletorderslog table td {
        box-sizing: border-box;
        padding: 4px;
    }

    #stockleadingcontent {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #stocksigninfo {
        display: flex;
        flex-direction: row;
        justify-content: left;
        margin: 0 0 5px 0;
    }

    #stocksigninfo p {
        margin: 0 5px;
    }

    #stocksign {
        font-size: 24px;
    }

    #companyname {
        font-size: 14px;
        line-height: 21px;
    }

    #stockmktprice {
        font-weight: bold;
        font-size: 40px;
        margin: 5px 0 0 0;
    }

    #stocktrailingcontent {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0 auto;
    }

    .stats {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        width: 30vw;
        padding: 0 30px;
    }

    .stats p {
        font-size: 14px;
        line-height: 21px;
        color: #999999;
        height: fit-content;
    }

    /* Settings Page */

    #settings {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        background-color: #1f1f1f;
        border-radius: 1em;
        margin: 50px 0;
        padding: 25px;
        width: 100%;
        height: 400px;
    }
    
    .userinfocontainer {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .userinfo {
        width: fit-content;
        margin: 0 25px;
    }

    .userinfo h2 {
        font-size: 20px !important;
        text-align: left !important;
        width: 100% !important;
    }

    .userinfo p {
        font-size: 25px !important;
        text-align: left !important;
        width: 100% !important;
    }

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

    .updatebuttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 105px;
    }

    .updateInput {
        margin: 0 20px;
        height: 35px;
        font-size: 15px;
        padding: 0 10px;
    }

    .update {
        padding: 0;
        width: 100px;
        height: 35px;
        font-size: 15px;
        background-color: #00BDDD;
        border: none;
        outline: none;
        color: black;
    }

    .update:hover {
        background-color: #00dcff;
    }

    .deletebuttons {
        display: flex;
        flex-direction: row;
        justify-content: left;
        align-items: center;
        margin: 0 25px;
        height: 105px;
    }

    .delete {
        padding: 0;
        width: 150px;
        height: 35px;
        font-size: 15px;
        background-color: #f64650;
        border: none;
        outline: none;
        color: black;
    }

    .delete:hover {
        background-color: #f6616a;
    }

    .deleteconfirm {
        padding: 0;
        width: 250px;
        height: 55px;
        font-size: 25px;
        background-color: #f64650;
        border: none;
        outline: none;
        color: black;
        margin: 20px;
    }

    .deleteconfirm:hover {
        background-color: #f6616a;
    }

    .return {
        padding: 0;
        width: 250px;
        height: 55px;
        font-size: 25px;
        background-color: #00BDDD;
        border: none;
        outline: none;
        color: black;
        margin: 20px;
    }

    .return:hover {
        background-color: #00dcff;
    }

    .confirmcontainer {
        box-sizing: border-box;
        margin: auto;
        display: flex;
        height: 100%;
        flex-direction: column;
        justify-content: left;
        align-items: center;
    }

    .confirmdelete {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .important {
        font-size: 20px !important;
        margin: 0 auto !important;
        color: #f64650;
    }

    /* Color indicators */

    .up {
        color: #00CC8F !important;
        transition: 300ms;
    }

    .candlestickUp {
        background-color: #00CC8F !important;
        transition: 300ms;
    }

    .down {
        color: #F0004A !important;
        transition: 300ms;
    }

    .candlestickDown {
        background-color: #F0004A !important;
        transition: 300ms;
    }
}