/* 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);
  }
}

/* MiddleEllipsis */

.middleEllipsis{
  /*width: 300px;*/
  white-space: nowrap;
  overflow: hidden;
  display: block;
  /* resize: horizontal; */
}

.middleEllipsisleft{
  /* white-space: normal;*/
  overflow: hidden;
  display: inline-block;
  max-width: 47%;
}

.middleEllipsiswrap{
  /*
  overflow-wrap: break-word;
  word-wrap: break-word;
  */
  /* hyphens: auto; never want that */
  overflow: hidden;
  width: 100%;
  /*height: 1.5rem; */
}

.middleEllipsisright{
  display: inline-block;
  max-width: 47%;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  /* height: 1.5rem; */
}

/* ---- vertical timeline ---- */

/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: light-dark(#212529, white);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.tl-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  color: light-dark(white, #212529);
  width: 50%;
}

/* The circles on the timeline */
.tl-container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: light-dark(#212529, white);
  border: 4px solid #FF9F55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.tl-left {
  left: 0;
}

/* Place the container to the right */
.tl-right {
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.tl-left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent light-dark(#212529, white);
}

/* Add arrows to the right container (pointing left) */
.tl-right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent light-dark(#212529, white) transparent transparent;
}

/* Fix the circle for containers on the right side */
.tl-right::after {
  left: -16px;
}

/* The actual content */
.tl-content {
  padding: 20px 30px;
  background-color: light-dark(#212529, white);
  position: relative;
  border-radius: 6px;
  overflow-wrap: break-word;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
/* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

/* Full-width containers */
  .tl-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

/* Make sure that all arrows are pointing leftwards */
  .tl-container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

/* Make sure all circles are at the same spot */
  .tl-left::after, .right::after {
    left: 15px;
  }

/* Make all right containers behave like the left ones */
  .tl-right {
    left: 0%;
  }
}
/* ---- vertical timeline ---- */
