html,
body {
  height: 100%;
  margin: 0;
}

a {
  text-decoration: none;
}

.container a {
  color: #108dca;
}

#edit-btn {
  margin-bottom: 8px;
  color: #fff;
}

.btn-cta {
  background: #108dca;
  border-color: #108dca;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}
.btn-cta:hover,
.btn-cta:focus {
  filter: brightness(1.06);
  color: #fff;
}

.card-body {
  display: flex;
  flex-direction: column;
}

.art-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.info-container {
  margin: 2rem auto;
}

.info {
  margin-bottom: 2rem;
}

.art-piece {
  margin-bottom: 2.5rem;
}

.oliver-container {
  text-align: center;
}

.header {
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: 'Madimi One';
}

.container .header {
  font-size: 32px;
}

.container,
.navbar a {
  font-family: 'Noto Sans';
}

#navbar-brand {
  font-family: 'Madimi One';
}

.container p,
.container ul,
.form-text,
.text-muted {
  font-weight: 400;
}

.container h4,
.container h5,
.tagline {
  font-weight: 700;
}

.container button,
.edit-btn {
  font-weight: 700;
}

.home-container {
  margin-top: 10px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.oliver {
  max-width: 60%;
  height: auto;
}

.cta-container {
  text-align: center;
  margin-top: 20px;
}

/* "New" badge */

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.775rem;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #ffd86f, #ff9f6e);
  color: #1f1f1f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.badge-new .emoji {
  line-height: 1;
}

/* Entry pop (one-time) */
.badge-new.in-view {
  animation: badge-pop-in 320ms cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

/* Optional gentle pulse after it’s visible (2 cycles max) */
.badge-new.pulse {
  animation: badge-pulse 1500ms ease-in-out 400ms 2 both;
}

/* Optional shimmer sheen (only while in view) */
.badge-new.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-120%);
  animation: badge-shimmer 1600ms ease-in-out 1;
  pointer-events: none;
}

.badge-new {
  position: relative;
} /* needed for ::after */

/* Keyframes */
@keyframes badge-pop-in {
  0% {
    transform: scale(0.85);
    filter: blur(0.5px);
    opacity: 0;
  }
  60% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    filter: none;
    opacity: 1;
  }
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes badge-shimmer {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* My Shared Art changes */
/* Card polish */
.art-piece.card {
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden; /* keep rounded corners crisp */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.art-piece .card-header {
  padding: 0.85rem 1rem;
  background: #f8f9fa;
}

/* Conversation summary strip */
.piece-summary {
  border-top: 1px solid #eef0f2;
  background: #fbfcfd;
  padding: 0.9rem 1rem;
}

.summary-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.summary-label {
  color: #6c757d;
}

.summary-value {
  font-weight: 600;
}

.summary-badge {
  background: #fff3cd; /* soft warning */
  color: #7a5a00;
  border: 1px solid #ffe69c;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.last-message {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.last-label {
  color: #6c757d;
  margin-right: 0.35rem;
}

/* CTA button: high contrast, subtle elevation */
.btn-cta {
  background: #0d6efd; /* Bootstrap primary */
  color: #fff !important;
  border: 1px solid #0b5ed7;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.15);
}

.btn-cta:hover,
.btn-cta:focus {
  background: #0b5ed7;
  border-color: #0a58ca;
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}

/* Tighten card body spacing a bit for compact stacks */
.art-piece .card-body {
  padding: 1rem;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .badge-new,
  .badge-new.in-view,
  .badge-new.pulse,
  .badge-new.shimmer::after {
    animation: none !important;
    transition: none !important;
  }
}

/* .comments-section {
  padding: 12px;
} */

.comment-form {
  display: flex;
  align-items: center;
}

.conversation {
  padding: 12px;
}

.input-group {
  display: flex;
  width: 100%;
}

.form-control {
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px;
  resize: none;
  flex-grow: 1;
}

.reply-form {
  margin-bottom: 0.5rem;
}

.divider {
  color: black;
}

.replyTextarea {
  width: 100%;
  box-sizing: border-box; /* Ensure padding and border are included in the width */
  min-height: 40px; /* Set a minimum height */
  max-height: 200px; /* Set a maximum height */
  overflow-y: auto; /* Allow scrolling if the content exceeds the max height */
  resize: none; /* Prevent manual resizing by the user */
  /* padding-left: 20px; Add some padding for aesthetics */
}

.sendButton {
  border: none;
  background: none;
  cursor: pointer;
  padding-left: 10px;
  margin-right: -10px;
}

.sendButton svg {
  width: 24px;
  height: 24px;
}

.sendButton:disabled {
  cursor: not-allowed;
}

/* Disabled state */
.sendButton:disabled svg {
  color: gray;
}

/* Active state (enabled but not hovered) */
.sendButton:not(:disabled) svg {
  color: #007bff;
}

/* Hover state */
.sendButton:not(:disabled):hover {
  cursor: pointer;
}

.sendButton:not(:disabled):hover svg {
  color: #0056b3;
}

.received-comments-section {
  padding: 12px;
}

.conversation-header {
  padding: 10px;
  background-color: #efe;
}

.likes-container {
  padding: 5px;
  background-color: #fee;
}

.like-button {
  border: none;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.05s ease;
}

.like-button:active {
  transform: scale(0.98);
}
.like-button.liked .like-text {
  font-weight: 600;
}

.like-button:hover {
  background-color: #eee;
}

.heart-icon {
  margin-right: 6px;
}

.unliked-text {
  color: #777;
  font-weight: 400;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 15px;
  border: 1px solid #888;
  width: 80%;
  position: relative;
}

.modal-content ul {
  list-style: none;
  margin-top: 2.5rem;
  padding: 0;
}

.modal ul li {
  position: relative; /* For positioning the heart icon */
  padding-left: 1.75em; /* Add space for the heart icon */
}

.modal ul li::before {
  content: '❤️'; /* Add the heart emoji */
  position: absolute;
  left: 0; /* Position the heart icon to the left of the list item */
  top: 0;
}

.close {
  color: #aaa;
  position: absolute; /* Position the close button absolutely */
  left: 10px; /* Position it to the right */
  top: 10px; /* Position it to the top */
  font-size: 28px;
  font-weight: bold;
  cursor: pointer; /* Change cursor to indicate it's clickable */
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Notifications */

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

#notification-link.has-unread {
  color: #dc3545;
  transition: color 0.2s ease;
}

#notification-link.has-unread:hover {
  color: #bb2124;
  animation: wiggle 0.3s ease;
}

.notification-section-heading {
  /* margin-top: 2rem; */
  font-size: 1.2rem;
  font-weight: bold;
}

.notification-list {
  list-style: none;
  padding: 0;
}

.notification-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #fefefe;
  transition: background-color 0.3s ease;
}

.notification-item.unread {
  font-weight: bold;
  background-color: #eef6ff;
}

.notification-item.read {
  font-weight: normal;
  background-color: #f7f7f7;
}

.notification-item.read:hover {
  background-color: #f0f0f0;
}

.notification-link {
  text-decoration: none;
  color: inherit;
}

.notification-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-timestamp {
  font-size: 0.9rem;
  color: #888;
}

.blue-dot {
  margin-right: 8px;
  font-size: 0.8em;
  vertical-align: middle;
}

.notification-item.unread:hover {
  background-color: #cce2f2;
}

.unread-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mark-read-btn {
  padding: 5px 10px;
  border: 1px solid #888;
  background-color: #f5f5f5;
  color: #333;
  border-radius: 5px;
  cursor: pointer;
}

.mark-read-btn:hover {
  background-color: #e0e0e0;
}

/* Account settings success message */
.messages {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Account settings page - password eye */
/* Wrap so we can position the eye inside the input */
.pw-wrap {
  position: relative;
}

/* Make space for the eye on the right */
.pw-wrap input[type='password'],
.pw-wrap input[type='text'].pw-visible {
  padding-right: 2.25rem;
}

/* The eye button */
.pw-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Size + subtle state */
.pw-toggle svg {
  width: 20px;
  height: 20px;
  opacity: 0.65;
}
.pw-toggle:hover svg {
  opacity: 0.9;
}
.pw-toggle[aria-pressed='true'] svg {
  opacity: 1;
}

/* Additional media queries for fine-tuning responsiveness */
@media (max-width: 767.98px) {
  .header {
    font-size: 1.5rem;
  }
  .home-container h1 {
    font-size: 1.2rem;
  }
  .cta-container h4 {
    font-size: 1rem;
  }

  .oliver-caption {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) {
  .card-body {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }

  .art-buttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .oliver {
    max-width: 300px;
  }

  .container .header {
    font-size: 2.5rem;
  }
  .home-container h1 {
    font-size: 1.5rem;
  }
  .cta-container h4 {
    font-size: 1.2rem;
  }
}

@media (min-width: 992px) {
  .oliver {
    max-width: 300px;
  }

  .container .header {
    font-size: 3rem;
  }
  .home-container h1 {
    font-size: 2rem;
  }
  .cta-container h4 {
    font-size: 1.5rem;
  }
}

/* Custom styles for the navbar */
.navbar-brand {
  font-weight: bold;
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-item {
    text-align: center;
  }
}

.navbar-oliver {
  height: 30px; /* Adjust the height as needed */
  width: auto;
  vertical-align: top;
}

/* Custom styles for the dropdown menu */
.navbar-dark .dropdown-menu {
  background-color: #212529; /* Match the navbar dark background */
  border-color: #ffffff8c;
  color: #ffffff8c; /* White text for dropdown items */
  max-width: 250px; /* Set the maximum width of the dropdown menu */
  width: auto; /* Ensure the dropdown does not stretch beyond the content */
  margin: 0 auto; /* Center the dropdown menu */
}

.navbar-dark .dropdown-item {
  text-align: center;
  color: #ffffff8c; /* White text for dropdown items */
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus {
  color: #212529; /* Dark text on hover */
  background-color: white; /* White background on hover */
}

@media (min-width: 992px) {
  .navbar-dark .dropdown-item {
    text-align: left;
  }
}

/* Ensure the footer stays at the bottom */
footer {
  color: #ffffff8c;
  padding-top: 1rem;
  width: 100%;
}

footer a {
  color: #ffffff8c;
  text-decoration: none;
}

footer a:hover {
  color: #ffffffcc;
  text-decoration: underline;
}
