$theme-colors: (
  "success": #007a33;
);

a.mybutton {
  margin: 5px 0 5px 20px;
}

.accordion-button:not(.collapsed) {
  color: #007a33;
  background-color: mintcream;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23007a33'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#home-carousel {
  padding: 0 !important;
}

.solution {
  background-color: rgba(255,255,255,0.5);
  border-radius: 15px;
  padding: 20px;
  margin: 15px;
}

.solution:hover {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.solution a.btn.button-outline, a.btn.button-outline {
  margin-top: 15px;
  font-size: 14px;
  color: #404040 !important;
  border: 1px solid #404040;
  background:0 0;
  border-radius: 0;
}

.solution a.btn.button-outline:hover, a.btn.button-outline:active, a.btn.button-outline:focus {
  color: #fff !important;
  border: 1px solid #404040 !important;
  background: #404040 !important;
}

.sticker {
  position: absolute;
  width: 100px;
}

div.moduletable h3.user-title {
  text-align: center !important;
}

.timeline {
  --color: rgba(30, 30, 30);
  --bgColor: rgba(255,255,255,0.5);
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 2rem;
  font-family: "Poppins", sans-serif;
  color: var(--color);
  background: var(--bgColor);
}

.timeline.box {
  height: 900px;
  overflow-y: scroll;
}

.timeline ul {
  --col-gap: 2rem;
  --row-gap: 2rem;
  --line-w: 0.25rem;
  display: grid;
  grid-template-columns: var(--line-w) 1fr;
  grid-auto-columns: max-content;
  column-gap: var(--col-gap);
  list-style: none;
  width: min(60rem, 90%);
  margin-inline: auto;
}

/* line */
.timeline ul::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 40;
  background: rgb(225, 225, 225);
  border-radius: calc(var(--line-w) / 2);
}

/* columns*/

/* row gaps */
.timeline ul li:not(:last-child) {
  margin-bottom: var(--row-gap);
}

/* card */
.timeline ul li {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: var(--inlineP);
  grid-row: span 2;
  display: grid;
  grid-template-rows: min-content min-content min-content;
}

/* date */
.timeline ul li .date {
  --dateH: 3rem;
  height: var(--dateH);
  margin-inline: calc(var(--inlineP) * -1);

  text-align: center;
  background-color: var(--accent-color);

  color: white;
  font-size: 1.25rem;
  font-weight: 700;

  display: grid;
  place-content: center;
  position: relative;

  border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* date flap */
.timeline ul li .date::before {
  content: "";
  width: var(--inlineP);
  aspect-ratio: 1;
  background: var(--accent-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;

  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

/* circle */
.timeline ul li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--bgColor);
  border: 0.3rem solid var(--accent-color);
  border-radius: 50%;
  top: 50%;

  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
.timeline ul li .title,
.timeline ul li .descr {
  background: var(--bgColor);
  position: relative;
  padding-inline: 1.5rem;
}

.timeline ul li .title {
  overflow: hidden;
  padding-block-start: 1.5rem;
  padding-block-end: 1rem;
  font-weight: 500;
}

.timeline ul li .descr {
  padding-block-end: 1.5rem;
  font-weight: 300;
}

/* shadows */
.timeline ul li .title::before,
.timeline ul li .descr::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
}

.timeline ul li .title::before {
  bottom: calc(100% + 0.125rem);
}

.timeline ul li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

@media (min-width: 40rem) {
  .timeline ul {
    grid-template-columns: 1fr var(--line-w) 1fr;
  }
  .timeline ul::before {
    grid-column: 2;
  }
  .timeline ul li:nth-child(odd) {
    grid-column: 1;
  }
  .timeline ul li:nth-child(even) {
    grid-column: 3;
  }

  /* start second card */
  .timeline ul li:nth-child(2) {
    grid-row: 2/4;
  }

  .timeline ul li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  .timeline ul li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }
  .timeline ul li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }
}

.icon-minus {
  display: none;
}

.btn.btn-sm.float-end[aria-expanded="true"] .icon-plus {
  display: none;
}

.btn.btn-sm.float-end[aria-expanded="true"] .icon-minus {
  display: block;
}

.btn.btn-sm.float-end[aria-expanded="false"] .icon-plus {
  display: block;
}

.btn.btn-sm.float-end[aria-expanded="false"] .icon-minus {
  display: none;
}

#sidebar2 {
  display: none;
}

@media (max-width: 767px) {
  #sidebar2 {
    display: block;
  }
  
  #sidebar {
    display: none;
  }
}

#sidebar2 div.moduletable {
  margin-bottom: 10px;
}

#sidebar2 div.moduletable h3 {
  color: #007a33;
  background: none;
  border-bottom: 1px solid #007a33;
}

@media print {
  table {
    page-break-after: auto;
  }
  
  table tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  
  table td {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  
  table thead {
    display:table-header-group;
    top: 50px;
  }
}