/* VERTICAL TIMELINE */
.uk-timeline .uk-timeline-item .uk-card {
  padding-left: 50px;
}

.uk-timeline .uk-timeline-item {
  display: flex;
  position: relative;
}

.uk-timeline .uk-card-body {
  margin-top: 20px;
}

.uk-timeline .uk-card-body .uk-card-subtitle {
  color: #009db4;
  font-size: 15px;
}

.uk-timeline .uk-timeline-icon {
  background-image: url("/images/icon/tortenetunk_buborek.png");
  background-size: 70px;
  width: 70px;
  height: 70px;
  background-repeat: no-repeat;
  position: absolute;
  left: -14px;
  padding: 8px 0 0 8px;
}

.uk-timeline .uk-timeline-item::before {
  background: #99c73e;
  content: "";
  height: 100%;
  left: 19px;
  position: absolute;
  top: 20px;
  width: 3px;
  z-index: -1;
}

.uk-timeline .uk-timeline-item .uk-timeline-icon .uk-badge {
  margin-top: 20px;
  width: 40px;
  height: 40px;
}

.uk-timeline .uk-timeline-item .uk-timeline-icon .uk-badge img {
  max-width: 50px;
}

.uk-timeline .uk-timeline-item .uk-timeline-content {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 0 0 0 1rem;
}

.timelineul {
  padding-right: 20px;
  list-style-type: none;
  padding-left: 0;
  margin-top: 20px;
}

.timelineul li {
  border-bottom: 2px solid rgb(194, 194, 194);
}

/* HORIZONTAL TIMELINE */
.timeline {
  --color1: #ff5000;
  --color2: #ffae00;
  --color3: #8ac900;
  --color4: #00aeff;
  --color5: #953fbb;
  --color6: #ba3a17;
  --color7: #00a0b4;
  margin-left: 100px;
  padding: 200px 0;
  display: inline-flex;
}
.timeline-item {
  position: relative;
  width: 150px;
  height: 30px;
  display: inline-table;
}

.timeline-item:nth-child(1) {
  width: 75px;
}

.arrow-end {
  position: absolute;
  right: -15px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.circle {
  position: absolute;
  background-position: center center;
  border-radius: 25px;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 0 12px 0px #4d4d4d;
}

.timeline-item:nth-child(1) .circle {
  left: 0;
}

.inner-circle {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 30px 30px;
  background-color: #fff;
  box-shadow: inset 0px 0px 6px 0px #000;
}

.buble-content {
  overflow: hidden;
  text-align: center;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 0 12px 0px #4d4d4d;
  width: 165px;
  height: 100px;
}

.timeline-item:nth-child(odd) .buble-content {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  top: -150px;
}

.timeline-item:nth-child(even) .buble-content {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  bottom: -160px;
}

.timeline-item:nth-child(1) .buble-content {
  left: -75px;
}

.content-year {
  padding: 5px;
  color: #fff;
  font-size: 20px;
}

.timeline-item:nth-child(even) .content-year-bottom {
  position: absolute;
  width: 155px;
  bottom: 0;
}

.content {
  margin: auto 0;
  padding: 5px;
  color: #000;
  font-size: 18px;
  height: 60px;
  display: block;
  position: relative;
}

.content p {
  display: flex;
  height: 100%;
  margin: auto 0;
  font-size: 12px;
  flex-direction: column;
  justify-content: space-around;
}

.content-half-circle {
  position: absolute;
  transform: translate(-50%, -50%);
  background-color: #fff;
  width: 50px;
  height: 20px;
  z-index: 9999;
}

.timeline-item:nth-child(odd) .content-half-circle {
  top: -50px;
  left: 50%;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  box-shadow: 1px 10px 9px 0px #bbbbbb;
}

.timeline-item:nth-child(even) .content-half-circle {
  bottom: -70px;
  left: 50%;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  box-shadow: -1px -9px 9px 0px #bbbbbb;
}

.timeline-item:nth-child(1) .content-half-circle {
  left: 0;
}

.grey-line {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 80px;
  background-color: #b7b7b7;
}

.timeline-item:nth-child(odd) .grey-line {
  top: -30px;
  left: 50%;
}

.timeline-item:nth-child(even) .grey-line {
  bottom: -130px;
  left: 50%;
}

.timeline-item:nth-child(1) .grey-line {
  left: 0;
}
