:root {
  --main-bg: #e9e1f6;
  --violet: #c097ff;
  --dark: #202626;
  --year-btn-bg: #c097ff;
  --year-btn-text: #202626;
  --year-btn-active-bg: #202626;
  --year-btn-active-text: #c097ff;
  --line-color: #c097ff;
  --circle-color: #c097ff;
}
body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.main-container-carrusel {
  width: 100%;
  margin: 0 auto;
  padding-top: 42px;
  min-width: 340px;
  min-height: 0;
  padding-bottom: 50px;
}
.main-title {
  font-size: 2.1rem;
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.1;
  margin-left: 8px;
  font-family: "Woodland", Arial, sans-serif;
}
.row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.desc-text {
  font-size: 12px;
  color: #262729;
  max-width: 340px;
  line-height: 1.5;
  margin-top: 5px;
  margin-right: 10px;
  text-align: right;
}
.years-list {
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  margin-left: 8px;
}
.year-btn {
  background: var(--year-btn-bg);
  color: var(--year-btn-text);
  border: none;
  border-radius: 16px;
  padding: 7px 22px;
  font-size: 1.1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  outline: none;
}
.year-btn.active {
  background: var(--year-btn-active-bg);
  color: var(--year-btn-active-text);
}
.timeline-carrusel {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  min-height: unset;
  height: auto;
  padding-bottom: 160px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.timeline-carrusel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.timeline-year-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 240px;
  margin-top: 8px;
}
.timeline-track {
  position: relative;
  height: 90px;
  width: 100%;
  min-width: 170px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
}
.timeline-line-bg {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 25px;
  border-radius: 32px;
  background: var(--line-color);
  opacity: 0.38;
  z-index: 1;
  width: 100%;
}
.timeline-line-fg {
  position: absolute;
  top: 41px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-color);
  opacity: 0.95;
  z-index: 2;
  width: 100%;
}
.timeline-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}
.timeline-point {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  z-index: 4;
  width: 70px;
  min-width: 54px;
  min-height: 90px;
  justify-content: flex-start;
}
.month-label {
  font-size: 1.08rem;
  margin-bottom: 2px;
  color: #1b1820;
  font-weight: bold;
  white-space: nowrap;
  margin-top: 0;
}
.circle-btnti {
  background: #c097ff;
  border: none;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  cursor: pointer;
  margin-bottom: 0;
  margin-top: 2px;
  box-shadow: 0 1px 6px rgba(80, 0, 120, 0.1);
  outline: none;
  z-index: 6;
  position: relative;
  transition: box-shadow 0.2s;
  display: block;
  padding: 0;
  box-sizing: border-box;
}

.circle-btnti:focus {
  box-shadow: 0 2px 16px rgba(80, 0, 120, 0.18);
}
.year-label {
  font-weight: bold;
  font-size: 1.16rem;
  margin-bottom: 17px;
  background: var(--violet);
  color: var(--dark);
  padding: 4px 26px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 14px 0 rgba(100, 0, 90, 0.05);
}
/* Custom Tippy theme */
.tippy-box[data-theme~="lilac"] {
  background-color: #c097ff !important;
  color: #1b1820;
  border-radius: 18px;
  font-family: "Montserrat", Arial, sans-serif;
  padding: 0;
  box-shadow: 0 2px 22px rgba(80, 0, 120, 0.12);
  font-size: 15px;
  width: 640px;
  max-height: none !important;
  overflow: visible !important;
}
.tippy-box[data-theme~="lilac"] .tippy-arrow {
  color: #c097ff;
}
.tippy-content {
  max-height: none !important;
  overflow: visible !important;
}
.tippy-tabs {
  display: flex;
  border-bottom: 1px solid #b885fa;
  margin-bottom: 9px;
}
.tippy-tab-btn {
  background: none;
  border: none;
  outline: none;
  font-weight: bold;
  font-family: "Montserrat", Arial, sans-serif;
  color: #1b1820;
  padding: 7px 13px 7px 13px;
  margin-right: 2px;
  font-size: 0.8em;
  border-radius: 9px 9px 0 0;
  cursor: pointer;
  transition: background 0.17s;
}
.tippy-tab-btn.active {
  background: #b885fa;
  color: #202626;
}
.tippy-tab-content {
  padding: 4px 11px 10px 11px;
  min-width: 220px;
  max-width: 560px;
  min-height: 60px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 0.98em;
}

.tippy-details {
  flex: 1;
  min-width: 0;
}
.tippy-title {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 1.09em;
}
.tippy-date {
  color: #444;
  font-size: 0.99em;
  margin-bottom: 8px;
}
.tippy-desc {
  color: #1b1820;
  font-size: 0.8em;
  margin-bottom: 0;
  line-height: 1.39;
}
.tippy-img {
  width: 84px;
  max-width: 100px;
  max-height: 70px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  align-self: flex-start;
  display: block;
  margin-top: 6px;
}
@media (max-width: 540px) {
  .main-container {
    width: 99vw;
    padding: 2vw;
  }
  .timeline-carrusel {
    gap: 15px;
  }
  .tippy-box[data-theme~="lilac"] {
    max-width: 99vw;
  }
  .tippy-tab-content {
    flex-direction: column;
  }
  .tippy-img {
    width: 100%;
    max-width: 98vw;
  }
}
