/* *********************** */
/* css for Drupal elements */
.body.group-main-content > .field-name-field-ced-abstract, .body.group-main-content {
    margin-bottom: 0px!important;
}
.l-main .page-content .group-content .group-left{
   padding: 0px!important;
}
.l-main .page-content .group-content{
   background-color: black!important;
   max-width: none!important;
}

#breadcrumb{
   display: none!important;
} 

.body.group-main-content a{
   color: #b7c4f3 !important;
}

.l-main .page-header{
	padding-bottom: 0px !important;
	padding-top:1.25rem!important;
}

h1, .h1 {
    font-size: 2.125rem;
}

.field-items:has(h1){
	    text-align: -webkit-center;
}

@media print, screen and (min-width: 67.5em) {
    .main-site .page-header:after {
        background: none !important;
    }
    
    .l-main .page-header{
    margin-bottom: 0; 
    }
}


/* *********************** */


/* css for timeline app    */
/*keep the folllowing code for back up, previous background style*/

/*.container-wrapper{*/
/*  margin: 0;*/
/*  font-family: 'Segoe UI', sans-serif;*/
/*  background: linear-gradient(rgba(128, 128, 128, 0.7), rgba(128, 128, 128, 0.7)), */
/*              url(files/background_flag.jpg) no-repeat center center / cover;*/
/*  z-index: -1;*/
/*  }*/

  /*div[data-time] {*/
/*    align-items: start;*/
/*    height: fit-content;*/
/*    display: grid;*/
/*    grid-template-columns: repeat(2, 1fr);*/
/*    gap: 20px;*/
/*    max-height: 80vh;*/
/*    overflow-y: auto;*/
/*    padding: 20px;*/
/*    box-sizing: border-box;*/
/*    background-color: #32323269;*/
/*    backdrop-filter: blur(3px);*/
/*}*/
/*div[data-time] > div {*/
/*   padding: 15px;*/
/*}*/
  
.container-wrapper {
  position: relative;
  --bg-opacity: 1;
}

.container-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(64, 64, 64, 0.7), rgba(64, 64, 64, 0.7)),
              url('files/background_flag.jpg') no-repeat center center / cover;
  opacity: var(--bg-opacity);
  transition: opacity 0.5s ease-in-out;
  z-index: 0;
  pointer-events: none;
}

.timeline-wrapper {
  position: relative;
  z-index: 1;
}


div[data-time] {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  background-color: #2f479887;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
  align-items: flex-start;
  height: fit-content;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 2rem;
}

div[data-time] > div {
  flex: 1 1 calc(50% - 20px); /* Two columns with 20px gap */
  box-sizing: border-box;
  padding: 15px;
}


.timeline-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.timeline-years {
  overflow-y: hidden;
  padding: 20px 0;
  padding-left: 4rem;
  scroll-behavior: smooth;
  max-height: 100vh;
  z-index: 10;
}
.timeline-years::-webkit-scrollbar {
  display: none;
}
.timeline-years ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /*height: 100%; */
}
.timeline-years li {
  position: relative;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  padding-left: 4rem;
  cursor: pointer;
  color: #ffffff;
  font-size: 20px;
  border-left: 2px solid #f5f5f5a6;
  transition: all 0.4s ease-in-out;
  transform: scale(1);
  opacity:0.9;
  
}
.timeline-years li.active {
  color: #ffffff;
  text-shadow: 0 0 3px #7b7070cc;
  opacity:1;
}
.timeline-years li::before {
  content: ''!important;
  position: absolute!important;
  left: -12px!important;
  top: 50%!important;
  transform: translateY(-50%)!important;
  width: 20px!important;
  height: 20px!important;
  background-color: #ebefff!important;
  border-radius: 50%!important;
  display: none!important; 
  transition: all 0.3s ease;
}
.timeline-years li.active::before {
  display: block!important;
  animation: pulse 1.2s ease-out infinite;
  box-shadow: 0 0 10px rgba(140, 163, 255, 0.8);
}
.timeline-years li .year {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.timeline-years li.active .year strong {
  font-size: 50px;
}
.year .summary {
  color: #f5f5f5;
  opacity: 0.8;
  margin-top: 2px;
  width: 16rem;
  vertical-align: top;
  display: flex;
}

.summary {
 margin-bottom: 0.5rem;
}

.summary:empty {
  display: none;
}

.timeline-years li.active .summary{
	font-size: 20px;
	opacity: 1;
	margin-bottom: 1rem;
}    
.timeline-content {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: center;
  padding: 7rem 1rem;
  margin-right: 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 100, 100, 0.3) transparent;
  max-width: calc(70% - 2rem);
}
/* WebKit scrollbar */
div[data-time]::-webkit-scrollbar {
  width: 8px;
}
div[data-time]::-webkit-scrollbar-track {
  background: transparent;
}
div[data-time]::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.3);
  border-radius: 4px;
}
div[data-time]::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 100, 100, 0.5);
}
.slide {
  opacity: 0;
  display: none;
  transform: translateY(50px);
  position: absolute;
  transition: all 0.6s ease;
  width: 100%;
  text-align: left;
  top:auto;
  flex-wrap: nowrap;
  padding: 1.5rem;
}
.slide.active {
  opacity: 1;
  transform: translateY(0);
  display: flex;
}
.slide h2 {
  margin-bottom: 10px;
  color: #becbfe;
  background-color: rgb(24 24 24 / 24%);
  padding: 8px 12px;
  margin: 16px 0 8px;
  border-left: 4px solid #4466d9;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 2px;
  width: max-content;
  text-transform: uppercase;
}
.slide p, .year {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.4;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(140, 163, 255, 0.6);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(140, 163, 255, 1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(140, 163, 255, 0.6);
  }
}

/* this is to allow first and last items to be positioned in the center */
ul.rotating-list { 
  padding-top: 20rem;    /* Half of the container height */
  padding-bottom: 20rem; /* Half of the container height */
}
div.rot-list-container ul.rotating-list { margin-left:0; }
.rotating-list .summary { vertical-align: top; }
.rotating-list .summary::before {  content: "\A"; white-space: pre; }
div.rot-list-container ul.rotating-list li:not(.active)::before { content: none; display: none; background: none; width: 0; height: 0; }
div.rot-list-container { 
  position: relative;         /* Required for proper offset calculation */
  overflow:hidden;
  /* overflow-y: auto;   */  /* Enables vertical scrolling when needed */ 
  /* overflow-x: hidden; */  /* Hides horizontal scroll */

}

/*New*/

	.timeline-years.rot-list-container {
	  max-height: 100vh; /* or desired height */
	  overflow-y: auto; /* vertical scrolling */
	  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
	  overscroll-behavior: contain; /* prevent scroll chaining */
	}




/* *********************** */

@media (max-width: 768px) {
	
.timeline-years li .summary {
    text-wrap: auto;
}
	
	/**/
.timeline-wrapper {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
  }

  .timeline-years {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .timeline-years ul.rotating-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .timeline-years ul.rotating-list li {
    flex: 0 0 auto;
    scroll-snap-align: center;
    min-width: 80px;
    text-align: center;
    opacity: 0.3;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .timeline-years ul.rotating-list li.active {
    opacity: 1;
    transform: scale(1.1);
  }
  
  .timeline-content {
  	max-width:800px;
  }
  
  .summary{
    justify-content: center;
    font-size: 1rem;
  }
  .timeline-years li.active .year strong{
  	 font-size: 30px;
  }
  .year .summary {
  	width:12rem;
  }
  
  /*.timeline-content{*/
  /*	justify-content: flex-start;*/
  /*}*/
  
  .timeline-years li{
  	border-left: 0px;
  }
  
  .timeline-years li.active::before {
    display: none!important;
    content: none!important; 
  }
    
}
