/* Capture button */
.new-capture-button {
  width: 270px;
  height: 60px;
  font-size: 25px;
  font-weight: 500;
  border: 10px;
  border-radius: 50px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
  align-items: center;
}

/* Bootstrap 5 tweak: do not underline links unless hovered over */
a:not([class*="btn"]) {
    text-decoration: none;
}
a:not([class*="btn"]):hover {
    text-decoration: underline;
}

/* CSS collapse thing */
[data-bs-toggle="collapse"].collapsed .if-not-collapsed {
  display: none;
}

[data-bs-toggle="collapse"]:not(.collapsed) .if-collapsed {
  display: none;
}

/* Ressource preview */
img.ressource_preview{
  width:100%;
  height:100%;
  max-width:150px;
  max-height:150px;
  min-width:10px;
  min-height:10px;
}

/* Tables */
table {
  table-layout: fixed;
}

table td p {
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Tooltips */
.tooltip {
    position: absolute;
    text-align: left;
    background-color: light-dark(#212529, white);
    color: light-dark(white, black);;
    border: 2px solid;
    border-color: black;
    padding-top: 2px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 2px;
}

.tooltip img {
  background-color: light-dark(white, #212529);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  width: 150px;
}

/* boaty */
.boatymcboat {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Arrows */
.arrow-down {
  transform: rotate(180deg);
}

.arrow-right {
  transform: rotate(90deg);
}

.arrow-left {
  transform: rotate(270deg);
}

/* help Tooltip */
.help-tip{
    text-align: center;
    background-color: #BCDBEA;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 26px;
    cursor: default;
    position: relative;
    display:inline-block;
}

.help-tip:before{
    content:'?';
    font-weight: bold;
    color:#fff;
}

/* Make it more clear that an acordion is clickable */
.accordion-button.collapsed {
  background: var(--bs-info-bg-subtle);
}

/* Dark mode stuff */

@media (prefers-color-scheme: dark) {
  #tree_logo, #navbar_logo {
    filter: invert(1);
  }
}
