body {
    font-family: lemonmilk;
    background-color: #000000;
    color: white;
}

tr.sticky th {
  background: black;
  position: sticky;
  top: 149px; /* Don't forget this, required for the stickiness */
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

label {
    margin-bottom: 0;
}

/* Datatables overrides start */
table.dataTable thead th,table.dataTable thead td {
    border-bottom: 0px solid #111;
}

table.dataTable thead .sorting {
    background-image: none !important;
}

table.dataTable thead .sorting_asc {
    background-image: url("/static/images/protected/tables/sort_asc.png") !important;
}

table.dataTable thead .sorting_desc {
    background-image: url("/static/images/protected/tables/sort_desc.png") !important;
}

table.dataTable tbody tr {
    background-color: black;
}

/* add this class to a table row (tr) to show the row as active */
table tbody tr.active td {
    background-color: rgba(255, 255, 255, 0.15);
}

table.dataTable tfoot tr td {
    border-top: 1px solid;
}

.dataTables_wrapper .dataTables_filter input {
    background-color: #111;  /* dark background */
    color: white;             /* text color */
    border: 1px solid #333;   /* optional border */
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Optional: placeholder text color */
.dataTables_wrapper .dataTables_filter input::placeholder {
    color: #bbb;
}

/* Optional: make the label "Search:" also white */
.dataTables_wrapper .dataTables_filter label {
    color: white;
}
/* Datatables overrides end */

.season-select {
    background-color: #111;
    color: white;
    border: 1px solid #333;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1.1rem;
}

/* Bootstrap overrides start */
.card {
    border-radius: 0.75rem;
}

/* Make navbar toggler larger */
.navbar-toggler {
    padding: 1rem;
    font-size: 1.5rem;
}

.navbar-toggler-icon {
    width: 2rem;
    height: 2rem;
}

/* Make navbar larger */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-size: 2rem;
}

.navbar-nav .nav-link {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link.active {
    color: white;
    font-weight: bold;
}

.navbar .dropdown-menu {
    background-color: #222222;
    border-color: #444444;
    margin-top: 0;
}

.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
    background-color: #444444;
    color: white;
}

.players-table th {
    white-space: nowrap;
}

.draft-roster-table {
    font-size: 0.8rem;
}

.draft-roster-table th,
.draft-roster-table td {
    padding: 0.25rem 0.4rem;
}

#rosterTable.dataTable.no-footer {
    border-bottom: 0;
}

#rosterTable th.roster-secondary-sort.sorting_asc,
#rosterTable th.roster-secondary-sort.sorting_desc {
    background-image: none !important;
}

.payout-timeline-chart {
    height: 320px;
    width: 100%;
}

.overview-payout-timeline-chart {
    height: 480px;
}

.position-pill {
    border-radius: 999px;
    color: white;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: bold;
    line-height: 1;
    min-width: 2.4rem;
    padding: 0.25rem 0.4rem;
    text-align: center;
}

.position-pill-qb { background-color: #8e44ad; }
.position-pill-rb { background-color: #38a169; }
.position-pill-wr { background-color: #f97316; }
.position-pill-te { background-color: #3182ce; }
.position-pill-n\/a { background-color: #666666; }

.share-page-button {
    margin-right: 0.5rem;
}

.share-page-button.screenshot-hidden {
    visibility: hidden;
}

.draft-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.draft-badge {
    border-radius: 999px;
    color: white;
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.35rem 0.65rem;
}

.draft-badge-stack { background-color: #4c6fff; }
.draft-badge-strategy { background-color: #8e44ad; }
.draft-badge-construction { background-color: #17a2b8; }
.draft-badge-exposure { background-color: #e67e22; }
.draft-badge-value { background-color: #198754; }
.draft-badge-reach { background-color: #dc3545; }
.draft-badge-neutral { background-color: #6c757d; }

.breadcrumb {
    border-radius: 0;
}

.breadcrumb-item {
    font-size: 1.5rem;
}

.btn-secondary:not(:disabled):not(.disabled).active {
    background-color: #222222;
    border-color: #111111;
}

/* Bootstrap overrides end */

.dark {
    background-color: #222222;
    color: white;
}

.light {
    background-color: white;
    color: black;
}

.flex-container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@font-face {
    font-family: 'lemonmilk';
    src: url('/static/fonts/Lemon Milk Pro Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

a.no-style {
    color: inherit;  /* Inherit the text color from the parent */
    text-decoration: none; /* Remove underline */
}

/* Hide scrollbar on Chrome, Safari, Edge */
body::-webkit-scrollbar {
  width: 0px;  /* Hide scrollbar but allow scrolling */
}

.blinking-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: green;
    animation: blink 1s infinite;
}

/* Blinking animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Custom switch styling */
.custom-switch {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.custom-switch .custom-control-label {
    padding-left: 4vw; /* Moves the label away from the switch */
    position: relative;
    cursor: pointer;
    font-size: 1vw;
}

.custom-switch .custom-control-label::before {
    background-color: #ccc;
    border-radius: 1vw;
    height: 1.5vw;
    width: 3vw;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: background-color 0.3s ease-in-out;
}

.custom-switch .custom-control-label::after {
    content: "";
    background-color: white;
    border-radius: 50%;
    height: 1.25vw;
    width: 1.25vw;
    position: absolute;
    top: 50%;
    left: 0.25vw;
    transform: translateY(-50%);
    transition: transform 0.3s ease-in-out;
}

.custom-switch .custom-control-label {
    padding-left: 4vw; /* Moves the label away from the switch */
    position: relative;
    cursor: pointer;
    font-size: 1vw;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff; /* Bootstrap primary color */
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translate(1.5vw, -50%);
}

.custom-switch-lg {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.custom-switch-lg .custom-control-label::before {
    background-color: #ccc;
    border-radius: 2vw;
    height: 3vw;
    width: 6vw;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: background-color 0.3s ease-in-out;
}

.custom-switch-lg .custom-control-label::after {
    content: "";
    background-color: white;
    border-radius: 50%;
    height: 2.5vw;
    width: 2.5vw;
    position: absolute;
    top: 50%;
    left: 0.5vw;
    transform: translateY(-50%);
    transition: transform 0.3s ease-in-out;
}

.custom-switch-lg .custom-control-label {
    padding-left: 8vw; /* Moves the label away from the switch */
    position: relative;
    cursor: pointer;
    font-size: 2vw;
}

.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff; /* Bootstrap primary color */
}

.custom-switch-lg .custom-control-input:checked ~ .custom-control-label::after {
    transform: translate(3vw, -50%);
}

.screenshot-preview-body {
    max-height: 65vh;
    overflow: auto;
    padding: 0;
}

.screenshot-preview-body img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}
