:root {
    --brand-color: #ceaa63;
    --footer-height: 160px;
    --footer-margin-top: 64px;
    --navbar-height: 48px;
    --navbar-margin-bottom: 32px;
}

html {
    font-family: 'Poppins', sans-serif;
    height: flex;
}

body {
    background-color: #efefef;
    overflow-y: auto;
    overflow-x: hidden;
    height: flex;
}

a {
    color: #005eb8;
    text-decoration: none;
    cursor: pointer;
}

hr {
    margin: 2rem auto;
    height: 2px !important;
    border-radius: 100%;
    opacity: 0.2;
}

.navbar {
    position: sticky;
    top: 0;
    padding: 0;
    height: var(--navbar-height);
    box-shadow: 0 0 16px #00000044, 0 0 4px #00000088;
    margin-bottom: var(--navbar-margin-bottom);
    z-index: 1020; /* bootstrap z-index sticky: https://getbootstrap.com/docs/5.0/layout/z-index/ */
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 56px;
    font-weight: 300;
    color: #ddd;
    letter-spacing: 0.5px;
}

.navbar .navbar-nav .nav-link {
    border-bottom: 3px solid transparent;
    padding: 6px 0 3px !important; /* to override bootstrap selector */
}

.navbar a.nav-link.active {
    border-bottom-color: var(--brand-color);
}

.alerts {
    margin-top: calc(-1 * var(--navbar-margin-bottom));
    margin-bottom: var(--navbar-margin-bottom);
}

.alerts .alert {
    margin: 0;
    border-radius: 0;
}

.page-container {
    min-height: calc(
        100vh
        - var(--navbar-height)
        - var(--navbar-margin-bottom)
        - var(--footer-height)
        - var(--footer-margin-top)
        - 24px
    );
}

.btn.btn-primary{
    background-color: #827153;
    border-color: #827153;
}

.btn.btn-primary:hover{
    background-color: #685b45;
    border-color: #827153;
}

.btn.btn-primary:disabled{
    background-color: #ddd;
    border-color: #ddd;
}

.btn.btn-outline-primary{
    color: #827153;
    border-color: #827153;
}

.btn.btn-outline-primary:hover{
    color: white;
    background-color: #827153;
    border-color: #827153;
}

.btn.btn-outline-primary:disabled{
    color: #848484;
    border-color: #848484;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #827153;
}

#btn-back-to-top {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    bottom: 50px;
    right: 50px;
    width: 50px;
    height: 50px;
    background-color: #000000DD;
    color: #DDD;
    border-color: #FFFFFF99;
    z-index: 2;
}
#btn-back-to-top.show {
    display: flex;
}

.header-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 72px;
    margin-top: calc(-1 * var(--navbar-margin-bottom));
    height: 320px;
    color: white;
    text-align: center;
    background-image: url('/static/header_dark.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.header-index hr {
    margin: 20px auto;
    width: 28vw;
    max-width: 240px;
    min-width: 160px;
    height: 0.5vw !important;
    min-height: 4px;
    max-height: 8px;
    background: var(--brand-color);
    border-radius: 0;
    opacity: 1;
}

.vertical-center {
    margin: 0;
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.horizontal-center {
    margin: 0;
    position: relative;
    left: 50%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.home-page-card {
    max-width: 900px;
    margin: -72px auto 32px;
    box-shadow: 0 0 16px #00000022;
    border-bottom: 4px solid #ceaa63;
}

.card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.card-unstyled,
.card-unstyled .card-header,
.card-unstyled .card-footer {
    background: none;
    border: none;
}

.card.pending-delete {
    border: 1px solid #D00;
}
.card.pending-delete .card-header {
    background: rgba(255, 0, 0, 0.05);
}

.page-footer {
    clear: both; /* clear any floats to keep aligned */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    justify-content: center;
    height: var(--footer-height);
    margin-top: var(--footer-margin-top);
    text-align: center;
    padding: 48px;
}

.footer-menu {
    display: flex;
    gap: 8px 16px;
    justify-content: center;
}

.footer-link {
    display: inline-block;
    color: inherit;
}

.nav-tabs .nav-link {
    border-bottom: none;
}
.tab-content {
    padding: 32px;
    border: 1px solid #dee2e6;
    border-top: none;
    background-color: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.nav-pills .nav-link.active,
.nav-pills .show >.nav-link {
    background-color: #827153;
}

.nav-pills .nav-link {
    color: currentColor;
}
.nav-pills a.nav-link:not(.active):hover {
    background-color: #00000022;
}

textarea {
    resize: none;
}

.accordion-button{
    background-color: #d8d3ca;
    color: black;
}

.accordion-button:not(.collapsed){
    background-color: #827153;
    color: black;
}

.accordion-button:hover {
    background-color: #827153;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.api-response-area {
    min-height: 500px;
    resize: none;
}

.yieldnodes_balance_img {
    display: block;
    width: 100%;
    max-width: 900px;
}

.auth-form {
    padding: 16px;
    margin: auto;
    max-width: 480px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 0 16px #00000011, 0 0 4px #00000022;
}

.text-ellipsis {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Forms */

.form-control:disabled {
    opacity: 1;
    background: none;
    border: none;
    padding-left: 0;
}

/* required asterisk in form labels */
label {
    font-weight: bold;
}
label sup {
    vertical-align: sub;
    margin-left: 2px;
    color: #D00;
    font-size: 14px;
    font-weight: bold;
}

/* The Modal (background) */
.modal {
  overflow: hidden;
}

/* Modal Content */
.modal-content {
  margin: auto;
}
.modal-body {
  overflow-y: scroll; /* Allow scrolling on the Y axis and not left to right on the X axis */
  -webkit-overflow-scrolling: touch; /* Fix weird scrolling behavior on iOS devices */
}

/* Mobile */

@media screen and (max-width: 768px) {
    :root {
        --footer-height: 120px;
        --footer-margin-top: 16px;
        --navbar-margin-bottom: 16px;
    }

    /* top nav */
    .navbar-nav .nav-item .nav-link.active {
        color: #fff;
        background-color: #827153;
        border: none;
    }
    .navbar-collapse .nav-link.active {
        border-radius: 999px;
    }
    .navbar-collapse {
        margin: 8px -8px 0;
        border-bottom: 2px solid #000;
        box-shadow: 0 4px 8px #000000AA;
    }

    #btn-back-to-top {
        bottom: 16px;
        right: 16px;
    }

    /* better My Data page */
    .tab-content {
        padding: 24px 16px;
    }
    .nav.nav-tabs .nav-link {
        padding: 8px;
        width: 33%;
    }
    .nav.nav-tabs .nav-link i {
        display: none;
    }

    /* disabled (prefilled) form fields appear as text */
    .form-control:disabled {
        padding: 0;
    }

    .card-header {
        padding: 0.5rem
    }
    .card-body {
        padding: 0.5rem;
    }

    /* footer and menu */
    .page-footer {
        padding: 24px 16px;
        font-size: 14px;
    }

    .footer-menu {
        gap: 8px;
    }
}

/* Change the brand based on the screensize */
@media screen and (min-width: 360px) {
    .brand-text-full {
        display: inline-block;
    }
    .brand-text-abbreviation {
        display: none;
    }
}

@media screen and (max-width: 360px) {
    .brand-text-full {
        display: none;
    }
    .brand-text-abbreviation {
        display: inline-block;
    }

}

