:root {
  letter-spacing: 0.6;
  --screen-width: 100vw;
  --filter-popup-width: 260px;
  --conference-timeline-width: calc(var(--screen-width) - var(--filter-popup-width) - 80px);
  --conference-timeline-centered-width: calc(var(--screen-width) - 160px);
  --content-container-max-width: calc(var(--conference-timeline-width)*0.43);
}

body {
  font-family:
    "Source Han Serif",
    "Noto Serif",
    "Noto Serif SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

.confirm-btn,
body {
  background: rgb(240, 240, 240);
  font-weight: 400;
  margin-top: 40px;
}

/* nav */
.nav {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 1000;
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav .nav-btn {
  text-align: center;
  /* padding: 4px; */
  border-radius: 100%;
  ;
}

/* .nav a:hover, a:active {
  background-color: #dddddd;
} */

.nav a i {
  font-size: 1.7rem;
  color: #242424;
}

.nav a i:hover {
  color: #cbc03d;
}

/* switch */
.switch {
  position: relative;
  display: flex;
  width: 40px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: -1px;
  bottom: 0px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border: 2px solid #ccc;
}

input:checked+.slider {
  background-color: #242424;
}

input:focus+.slider {
  box-shadow: 0 0 1px #555555;
}

input:checked+.slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border: 2px solid #242424;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
  border-color: #ccc;
  border-width: 2px;
}


/* dropdown selection */
.filter-wrapper {
  position: fixed;
  top: 56px;
  right: 40px;
  max-width: var(--filter-popup-width);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  background-color: #fff;
  border-radius: 2px;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 16px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #696969c6;
}

.filter-options {
  padding: 10px 0;
  box-sizing: border-box;
  position: relative;
  width: 100%;
}

.dropdown-button {
  cursor: pointer;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  user-select: none;
  font-size: 14px;
}

.selected-areas-display {
  padding: 8px 10px;
  font-size: 13px;
  color: #555;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-top: 5px;
  word-wrap: break-word;
  line-height: 1.4;
}

.selected-areas-display.all-selected {
  color: #888;
  font-style: italic;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: -178px;
  right: 115%;
  background-color: #fff;
  border-radius: 2px;
  border: 1px solid #696969c6;
  min-width: 260px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 6px, rgba(0, 0, 0, 0.07) 0px 0px 0px 1px !important;
  z-index: 1;
  font-size: 14px;
}

.dropdown-menu label {
  display: block;
  padding: 10px;
  clear: both;
  font-weight: normal;
}

.area-list {
  max-height: 400px;
  overflow-y: auto;
}

.dropdown-menu .areaSelectionBtn {
  margin: 0 10px 10px 10px;
  display: flex;
  justify-content: flex-end;
}

.confirm-btn {
  background-color: #242424;
  border: none;
  border-radius: 50%;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
}

/* dropdown selection */

/* slider */
.slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#dateSliderContainer {
  padding: 10px;
  margin: 0 20px 20px;
}

#dateSliderInfo {
  margin: 2px 16px 0 16px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}


.slider {
  width: 100%;
  /* Adjust as needed */
}

.noUi-target {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.noUi-base {
  transform: translateY(-50%);
  height: 2px;
}

.noUi-connect {
  background: #696969;
}

.noUi-connects {
  top: 10px;
  background: #dddddd;
}

.noUi-horizontal .noUi-handle {
  width: 32px;
  height: 32px;
}

.noUi-handle {
  background-color: #ffffff;
  /* Change handle color */
  border: 1px solid #ccc;
  /* Change handle border */
  border-radius: 50%;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12);
}

.noUi-handle:before {
  background-color: #ffffff00;
}

.noUi-handle:after {
  background-color: #ffffff00;
}

/* slider */

#conference-timeline {
  position: relative;
  max-width: var(--conference-timeline-width);
  margin: 0 calc(var(--filter-popup-width) + 40px) 0 auto;
}

/* When filters are hidden, center the timeline */
#conference-timeline.timeline-centered {
  margin: 0 auto;
  max-width: var(--conference-timeline-centered-width);
}

#conference-timeline .timeline-start,
#conference-timeline .timeline-end {
  display: table;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  background: #696969;
  border: 1px #696969 solid;
  border-radius: 10px;
  padding: 15px 30px;
  color: #fff;
  max-width: 5%;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

#conference-timeline .conference-center-line {
  position: absolute;
  width: 3px;
  height: 100%;
  top: 0;
  left: 50%;
  margin-left: -2px;
  background: #696969;
  z-index: -1;
}

#conference-timeline .conference-timeline-content {
  position: relative;
  padding-top: 40px;
  padding-bottom: 40px;
}

.timeline-article {
  width: 100%;
  /* height: 100%; */
  position: relative;
  overflow: hidden;
  margin: 0 0 20px 0;
}

.timeline-article .content-left-container,
.timeline-article .content-right-container {
  max-width: var(--content-container-max-width);
  width: 100%;
}

/* Ensure multiple containers on the same side stack vertically
   (prevents two left- or two right-containers from lining up horizontally) */
.timeline-article .content-right-container + .content-right-container {
  clear: right;
  margin-top: 10px;
}

.timeline-article .content-left-container + .content-left-container {
  clear: left;
  margin-top: 10px;
}

.timeline-article .timeline-author {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  color: #7e7e7e;
  text-align: right;
  margin-top: 12px;
  transform: translateY(0);
  transition: color 0.25s ease-in-out, transform 0.25s ease-in-out;
}



.timeline-author a {
  color: #7e7e7e;
  transition: color 0.25s ease-in-out, transform 0.25s ease-in-out;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  font-family: "Cinzel Decorative", serif;
  display: inline-block;
}


.timeline-author i {
  font-size: 20px;
  color: #7e7e7e;
  transition: color 0.25s ease-in-out, transform 0.25s ease-in-out;
  /* transform: translateY(0); */
  cursor: pointer;
  display: inline-block;
}

.timeline-author:hover a,
.timeline-author:hover i {
  color: #cbc03d;
  transform: translateY(-2px);
}



.timeline-article p {
  margin: 0 0 0 0;
  padding: 0;
  font-weight: 400;
  color: #242424;
  font-size: 0.85rem;
  line-height: 24px;
  position: relative;
  margin-bottom: 8px;
}

.timeline-article h4 {
  margin: 4 0;
  color: #797979;
  font-size: 0.65rem;
}

.timeline-article h3 {
  margin: 2 0 8 0;
  font-size: 1rem;
  color: #242424;
}

.period {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeAndArea {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.timeline-article p span.article-number {
  position: absolute;
  font-weight: 300;
  font-size: 44px;
  top: 4px;
  left: -60px;
  color: #00b0bd;
}

.timeline-article .content-left-container {
  float: left;
}

.timeline-article .content-right-container {
  float: right;
}

.timeline-article .content-left,
.timeline-article .content-right {
  position: relative;
  width: auto;
  background-color: #fff;
  border: 1px solid #696969;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
  border-radius: 2px;
  padding: 10px 18px;
}

.timeline-article .content-left {
  text-align: right;
}

.timeline-article .content-left:before,
.timeline-article .content-right:before {
  position: absolute;
  content: " ";
  top: 20px;
  transform: translateY(-50%);
  /* width: 65px; */
  width: calc((var(--conference-timeline-width) - var(--content-container-max-width) * 2) /2);
  height: 1px;
  background-color: #696969;
  border-radius: 1px;
}

.timeline-article .content-left:before {
  /* right: -65px; */
  right: calc((var(--conference-timeline-width) - var(--content-container-max-width) * 2) / -2);
}

.timeline-article .content-left:after {
  display: none;
}

.timeline-article .content-right:before {
  /* left: -66px; */
  left: calc((var(--conference-timeline-width) - var(--content-container-max-width) * 2) / -2);
}

.timeline-article .content-right:after {
  display: none;
}

.timeline-article .meta-date {
  position: absolute;
  top: 0;
  left: 50%;
  width: 80px;
  height: 62px;
  margin-left: -40px;
  color: #696969;
  border-top: 2px solid #696969;
  background: #F0F0F0;
}

.timeline-article .meta-date .date,
.timeline-article .meta-date .month {
  display: block;
  text-align: center;
  font-weight: 600;
}

.timeline-article .meta-date .date {
  font-size: 1.2rem;
  line-height: 40px;
}

.timeline-article .meta-date .month {
  font-size: 14px;
  line-height: 10px;
}

/*===== // Vertical Timeline =====*/

/*===== Resonsive Vertical Timeline =====*/
/* It affects the size of the display on the iPad, don't know why. */
@media only screen and (max-width: 830px) {

  #conference-timeline,
  #conference-timeline.timeline-centered {
    margin: 0 auto;
    max-width: var(--conference-timeline-centered-width);
  }

  #conference-timeline .timeline-start,
  #conference-timeline .timeline-end {
    margin: 0;
  }

  #conference-timeline .conference-center-line {
    margin-left: 0;
    left: 50px;
  }

  .timeline-article .meta-date {
    margin-left: 0;
    left: 20px;
  }

  .meta-date-timeline {
    margin-left: 0;
    left: 20px;
  }

  .timeline-article .content-left-container,
  .timeline-article .content-right-container {
    max-width: 100%;
    width: auto;
    float: none;
    margin-left: 110px;
    min-height: 53px;
  }

  .timeline-article .content-left-container {
    margin-bottom: 10px;
  }

  .timeline-article .content-left,
  .timeline-article .content-right {
    padding: 10px 25px;
    min-height: 65px;
  }

  .timeline-article .content-left {
    text-align: left;
  }

  .timeline-article .content-left .timeAndArea {
    flex-direction: row-reverse;
  }

  .timeline-article .content-left:before {
    content: " ";
    right: auto;
    left: -60px;
    top: 10px;
    transform: translateY(-50%);
    width: 60px;
    height: 1px;
    background-color: #696969;
    border-radius: 1px;
    position: absolute;
  }


  .timeline-article .content-left:after {
    display: none;
  }

  .timeline-article .content-right:before {
    content: " ";
    right: auto;
    left: -60px;
    top: 10px;
    transform: translateY(-50%);
    width: 60px;
    height: 1px;
    background-color: #696969;
    border-radius: 1px;
    position: absolute;
  }

  .timeline-article .content-right:after {
    display: none;
  }
}

@media only screen and (max-width: 400px) {
  #conference-timeline {
    max-width: 360px;
  }


  .timeline-article p {
    margin: 0;
  }

  .timeline-article p span.article-number {
    display: none;
  }

}

.century {
  color: rgba(255, 255, 255, 0);
  font-size: 1px;
}

/*===== // Resonsive Vertical Timeline =====*/

/* Date Inputs */
.date-inputs-container {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  align-items: center;
  width: -webkit-fill-available;
}

.date-input-group {
  display: contents;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
}

.date-input-group label {
  font-size: 12px;
  font-weight: 500;
}

.date-input-group input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  width: inherit;
}

.date-input-group input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.date-display {
  margin-bottom: 10px;
  font-size: 12px;
  color: #696969;
}

#dropdownSideMenu {
  padding: 10px;
  position: absolute;
  top: -279px;
  right: 115%;
  left: auto;
  width: 520px;
  max-height:600px;
  border: 1px solid #696969c6;
}

.leftList,
.rightList {
  max-height: 250px; 
  overflow-y: auto;
}

.areaLeft,
.areaRight {
  margin: 10px;
  font-weight: bold;

}