@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

/*
@font-face {
    font-family: 'dtl-bold';
    src: url('/keyword_trending/assets/Apex New Bold/Apex New Bold.otf');
}
@font-face {
    font-family: 'dtl-medium';
    src: url('/keyword_trending/assets/Apex New Medium/Apex New Medium.otf');
}

h1, h2, a {
    font-family: dtl-bold;
}
span, p, th, td, li, label, input {
    font-family: dtl-medium;
}
*/

.margins {
    margin: 10px;
    padding: 10px;
}
.no-margins {
    margin: 0;
}
.container{
  margin:0 auto;
}
.center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hidden {
    display: none;
}
.clear {
    clear: both;
}
.debug-border {
    border: 1px solid green;
}
.no-clear {
    clear: none;
}
.float-left {
    float: left;
}
.float-right {
    float: right;
}
.full-width {
    width: 97%;
}
.half-width {
    width: 47%;
}
.third-width {
    width: 32%;
}
.two-thirds-width {
    width: 62%;
}
.fifth-width {
    width: 17%;
}
.four-fifths-width {
    width: 77%;
}

/* platform selection and display */
.control-platform-label {
    height: 50px;
    width: 50px;
}
.post-platform-label {
    height: 12px;
    margin-right: 2px;
}
.post-platform-text {
    font-size: 12px;
}

/*header components*/

.header-cell {
    height: 50px;
}

/*keyword trending controls*/

.control-cell {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel {
    background-color: #F1F1F1;
    border-radius: 25px;
}

.blue-panel {
    background-color: #5CC2D9;
    border-radius: 25px;
}

/*cross platform components*/
.flex-container {
    display: flex;
    flex-wrap: wrap;
}
.flex-align-start {
    align-items: start;
}
.flex-align-center {
    align-items: center;
}
.flex-justify-end {
    justify-content: flex-end;
}
.flex-space-between {
    justify-content: space-between;
}

.post-header small,
.post-header small > a {
    color: #777;
    text-decoration: none;
}

.post-header small > a:hover,
.post-header small > a:active {
  text-decoration: underline;
}

.post-detail-toggle {
    display: none;
}

.post-detail-toggle:not(:checked) + p.post-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.post-detail-toggle:checked + p.post-content {
    overflow: hidden;
}

.post-content.rumor {
    border-left: 3px solid;
    border-left-color: #e4e4e7;
    color: #71717a;
    padding: 0 1em;
}

.post-content.rumor span {
    font-size: 14px;
}

.post-detail-toggle:not(:checked) + div.post-content.rumor {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.old-claim {
    font-size: 14px;
}
.badge.badge-primary {
    background-color: var(--bs-primary);
}
.badge.badge-secondary {
    background-color: var(--bs-secondary);
}
.badge.badge-warning {
    background-color: var(--bs-warning);
}
.badge.badge-danger {
    background-color: var(--bs-danger);
}
.badge.badge-info {
    background-color: var(--bs-info);
}
.badge.badge-success {
    background-color: var(--bs-success);
}
.badge.badge-orange {
    background-color: var(--bs-orange);
}

.profile-img {
    margin-right: 10px;
    width: 48px;
    height: 48px;
    clip-path: circle(24px at center);
}

.profile-img::before {
    content: '';
    background: url('/assets/avatar-fallback.png');
    background-size: cover;
    background-color: #ddd;
    display: inline-block;
    width: 48px;
    height: 48px;
}

.post-content p {
    margin-bottom: 0.3rem;
}

/*
.popover {
    padding: 20px;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 8px;
}
*/

.popover-body code {
   background-color: #ddd;
   padding: 1px;
   font-size: 1rem;
}

.search-tip-entry {
    margin: 5px auto;
}

.ms-n1 {
  margin-left: -0.25rem !important;
}

.platform-label {
  color: var(--bs-secondary-text-emphasis);
}

.post-content a, .main-content a {
    color: var(--bs-primary);
    text-decoration: underline;
}

.main-content a.btn {
    color: var(--bs-btn-color);
    text-decoration: none;
}

.main-content a.btn:hover, .main-content a.btn:focus {
    color: var(--bs-btn-hover-color);
}

.main-content a.btn.btn-card-action {

}
.main-content a.btn.btn-card-action:hover, .main-content a.btn.btn-card-action:focus {
    background-color: var(--bs-secondary-bg-subtle);
}

.post-content a:hover, .post-content a:focus,
.main-content a:hover, .main-content a:focus {
    color: var(--bs-primary-text-emphasis);
}

div[id^="loading-"] + div {
  z-index: 10;
}

.nav-link {
  background-color: transparent;
}

.nav-link:hover {
  background-color: var(--bs-primary-bg-subtle);
}

#header-div {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18vw;
    min-width: 16rem;
    overflow-y:scroll;
}

.main-content {
    margin-left: max(18vw, 16rem);
    width: min(82vw, 100vw - 16rem);
    padding: 0;
    z-index: 5;
    min-height: 100vh;
}

#eu_funded_img {
    width: 80%;
    max-width: 12rem;
}

#rank {
    min-width: 16rem;
}

.dash-spreadsheet-container table {
    --accent: var(--bs-primary) !important;
    --selected-background: var(--bs-primary-bg-subtle) !important;
    --selected-color: var(--bs-primary) !important;
}
.column-header--sort {
    margin-right: 0.25rem;
}

/* Prevents contents interpreted as MarkDown headings to display as an actual headings */
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
   font-size: inherit;
   font-weight: inherit;
}

/* Patches for flask-admin */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0);
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
  --bs-table-bg-type: rgba(0, 0, 0, 0);
}

.table-bordered>:not(caption)>* {
    border-color: #dee2e6;
    border-width: var(--bs-border-width);
}

.table-bordered>:not(caption)>*>* {
    border-width: var(--bs-border-width) 0;
}

.nav > .active a.nav-link {
    font-weight: 600;
    text-decoration: none;
    pointer-events: none;
}

a.navbar-brand {
    display: block;
}

.page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.page-item .page-link {
    background-color: var(--bs-light-bg-subtle);
}

th.col-notes, td.col-notes {
    word-break: break-all;
}

img.tiktok-thumbnail {
    max-height: 40%;
    max-width: 40%;
}

[id^='tooltip-target-'] {
    cursor: help;
}

.input-group>:not(:first-child) .Select-control {
    margin-left: calc(var(--bs-border-width)* -1);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 38px;
    border: var(--bs-border-width) solid var(--bs-border-color);
}

.dropdown-toggle { outline: 0; }

.nav-section-title {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
  border: 0;
}

.nav-item a {
  display: inline-flex;
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: .75rem;
  text-decoration: none;
}
.nav-item a:hover,
.nav-item a:focus {
  background-color: var(--bs-secondary-bg-subtle);
}

.bi-bluesky::before {
    content: url('/assets/bluesky.svg');
    width: 1em;
    height: 1em;
    vertical-align: -.25em;
}
