.navbar-avatar {
  object-fit: cover;
  width: 32px;
  height: 32px;
  max-height: inherit !important;
  border-radius: 50%;
}

/* this removes bullets from the hover dropdown menu items when logged in */
.navbar-item li {
  list-style: none;
}

/* set  navbar background color based on user's prefered color scheme */
@media (prefers-color-scheme: light) {
  .navbar {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
  }
}

@media (prefers-color-scheme: dark) {
  .navbar {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
  }
}


/* Added by me */

.navbar {
  /* font-size: 0.8em; */
}

#app-nav .container {
  max-width: initial;
  display: block;
  text-align: center;
  min-height: 48px
}

#app-nav .container .navbar-brand {
  margin-right: 0 !important;
  position: absolute;
  left: 10px;
  top: 10px;
}

#app-nav .container button {
  position: absolute;
  right: 10px;
  top: 10px;
}

#app-nav #news-date-nav-title {
  cursor: pointer;
}
#app-nav #news-date-nav-title a {
  display: inline-block;
  margin: 0 30px;
  text-decoration: none;
}

.navbar-nav .nav-link.link-underline {
  text-decoration: underline !important;
}

#app-nav ul.dropdown-menu {
  font-size: 1em;
}

#app-nav .navbar-collapse.show ul.dropdown-menu {
  border: 0;
}

#profile-picture {
  display: flex;
  justify-content: center;
}

#profile-picture img.avatar {
  object-fit: cover;
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

#profile-upload-holder {
  padding-top: 0.5em;
}

#profile-upload-holder input[type="file"] {
  display: none;
}

.progress-bar {
  background-color: var(--primary);
  width: 2px;
}

#progress-bar-message {
  color: var(--gray);
}

.add-loading-dots:after {
  content: ' .';
  animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% {
    color: rgba(0, 0, 0, 0);
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  40% {
    color: black;
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  60% {
    text-shadow: .25em 0 0 black, .5em 0 0 rgba(0, 0, 0, 0);
  }

  80%, 100% {
    text-shadow: .25em 0 0 black, .5em 0 0 black;
  }
}

/* this makes the list items look nice on mobile */
.upgrade-features li {
  display: flex;
}

.upgrade-features li .pg-icon {
  margin-right: 0.5rem;
}

.upgrade-features li .upgrade-feature {
  width: 100%;
}

#subscription-details-table .subscription-detail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin: 0.5rem;
}

#subscription-details-table .subscription-detail .subscription-detail-label {
  width: 16rem;
  text-align: right;
  margin-right: 1rem;
}

#subscription-details-table .subscription-detail .subscription-detail-value {
  width: 100%;
}

#subscription-details-table .subscription-detail .subdetail {
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

#plan-selector .plan {
  height: 100%; /* fill the whole column */
  /* prevent shifting when border is added */
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 1rem;
}

#plan-selector .plan.is-selected {
  border: 3px solid var(--primary);
}

#plan-selector .plan .plan-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#plan-selector .plan .price {
  font-size: 1.5rem;
}

/* alpine.js cloak support */
[x-cloak] {
  display: none !important;
}

/* ensure htmx links use pointers */
a[hx-get] {
  cursor: pointer;
}

.h-100 {
  height: 100%;
}

.muted-link {
  color: hsl(0, 0%, 71%);
}

.muted-link:hover {
  color: hsl(0, 0%, 48%);
  text-decoration: underline;
}

/* this is the default class assigned to errors by django forms */
.errorlist {
  color: var(--danger);
}

img.socialicon {
  padding-right: 0.5em;
  max-width: 24px;
  max-height: 24px;
}

/* css loader https://loading.io/css/ */
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid var(--primary);
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

body {
    position: relative;
}

#nav-news-title {
    /* font-size: 0.8em; */
    text-align: center;
}
#nav-news-title .nav-link{
    padding: 0;
    position: relative;
    top: 5px;
}

/* body:not(.scrolled) #nav-news-title {
    display: none;
} */

#news-controls {
    text-align: right;
    a {
        text-decoration: none;
    }
}

#news-toolbar {
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    height: 100px;
}

#news-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    min-width: 320px;
    /* min-height: 100vh; */

    max-width: 800px; /* Limit overall width on larger screens */
    margin: 1rem auto; /* Center the list with some top/bottom margin */
    padding: 0 1rem; /* Add padding on the sides for smaller screens */
}

#news-container summary::-webkit-details-marker {
    display: none;
}

/* #news-container #news-date span {
    display: inline-block;
    margin: 0 1rem;
} */
#news-container #news-date-nav h1 {
    /* display: flex;
    justify-content: space-between; */
    margin-bottom: 0;
    text-align: center;
    /* font-size: 0.8em !important; */
}
#news-container #news-date-nav h1>* {
    display: inline-block;
    min-width: 20px;
}
#news-container #news-date-nav a {
    text-decoration: none;
    color: var(--bs-link-color);
}

#news-container #news-category {
    text-align: center;
}
#news-container #news-category h2 {
    display: inline;
}
#news-container #news-category ul {
    margin-bottom: 0;
}
#news-container #news-category .badge {
    font-weight: initial;
    font-size: 0.8em;
}

#news-container h1 {
    font-size: 2rem;
}

#news-container summary, #news-container .accordion-body .lead {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
#news-container summary {
    font-size: 1.4rem;
    font-weight: 600;
}
#news-container summary.accordion-button {
    padding: var(--bs-accordion-btn-padding-y) calc(var(--bs-accordion-btn-padding-x)/2);
}
#news-container .accordion-body {
    padding: var(--bs-accordion-body-padding-y) calc(var(--bs-accordion-body-padding-x)/2);
    padding-bottom: 0;
}
#news-container .accordion-body .lead {
    font-size: 1.2rem;
}
#news-container .accordion-body strong {
    font-weight: 500;
}
#news-container .accordion-body .blockquote {
    font-size: 1rem;
}

#news-container details.accordion-item {
    border-radius: var(--bs-border-radius);
}

#news-container details.accordion-item .accordion-button {
    background-color: var(--custom-card-bg);
}

#news-container details.accordion-item:not([open]) .accordion-button::after {
    background-image: var(--bs-accordion-btn-active-icon);
    transform: unset;
}

#news-container details.accordion-item[open] .accordion-button::after {
    background-image: var(--bs-accordion-btn-icon);
    transform: var(--bs-accordion-btn-icon-transform);
}

#news-container .accordion-body .more-button {
    /* font-size: 0.8em; */
    opacity: 0.5;
}

#news-container .accordion-body .additional {
    height: 0;
    overflow: hidden;
}

#news-container .accordion-body.expanded .additional {
    height: auto;
}
#news-container .accordion-body.expanded button {
    display: none;
}

#news-container article a, #news-container article .text-muted {
    text-decoration: none;
    /* font-size: 0.8em; */
}

#news-container article a:visited, #news-container article a:visited~.text-muted {
    color: var(--bs-gray-600) !important;
}

#news-container article a:hover {
    opacity: 1 !important;
    color: var(--bs-link-color) !important;
}

#news-nav-actions {
    flex-grow: 1;
}

#news-container+.dropup {
    z-index: 1000;
}
#news-container+.dropup .dropdown-toggle::after {
    margin-left: 0;
}
@charset "utf-8";

@charset "utf-8";

