body {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 1030;
}

.object-fit-cover {
  object-fit: cover;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

/*
  Bootstrap's own .btn class sets background-color/border-color/color directly
  (not just its .btn-* color variants), at the same specificity as a plain
  class selector here would be - so this targets the element's #id instead.
  An ID always outweighs a class, regardless of stylesheet load order, so this
  wins without needing !important.
*/
#back-to-top-btn {
  position: fixed;
  right: 16px;
  bottom: calc(100px + env(safe-area-inset-bottom, 0));
  width: 44px;
  height: 44px;
  padding: 0;
  z-index: 1020;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(190, 206, 220, 0.35);
  border-color: transparent;
  color: #495057;
  backdrop-filter: blur(2px);
}

#back-to-top-btn:hover,
#back-to-top-btn:focus {
  background-color: rgba(108, 117, 125, 0.6);
  color: #212529;
}

#back-to-top-btn.show {
  display: flex;
}
