body{
  background-image: url(../img/bg-d.webp);
  background-color:#fbffff;
  background-size: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
span.copy-link-icon {
  right: 1em;
  top: 0.4em;
  color: #000;
  font-weight: 500;
  position: absolute;
  overflow: initial;
  white-space: nowrap;
  display: block;
  cursor: pointer;
  background: transparent;
  transition: all .5s;
}
.toggle-btn {
  background: rgb(208 233 255) !important;
}
.publish {
  font-size: 0.9em;
  padding: 1em 0;
  margin: 1.5em auto 0 auto;
  border-top: 2px dotted #013d64;
}
.publish .date {
  padding-right: 1em;
  border-right: 1px solid #fff;
}
p {
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}
.main-title{
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
}
.landing-wrap{
  height: 80vh;
  margin-top: 10em;
  width: 50%;
}
.indicator{
  margin: 1em 0 0 0;
  font-size: 0.9rem;
  animation: bounce 2s linear infinite;
}
.click-indicator {
  padding: 2em 0 1em 0;
  width: 50%;
  font-size: 0.9rem;
}
.indicator-click{
  width: 35px;
  cursor: pointer;
  animation: rotate 0.5s linear infinite;
}
.indicator-img{
  width: 40px;
  padding-right: 0.5em;
  cursor: pointer;
}
.ge-icon {
  margin: 1.5em 0 0.1em;
}
.ge-icon-img {
  width: 20%;
  margin-bottom: 0.5em;
}
.title-icon{
  width: 25%;
}
.question-inline-img{
  width: 10%;
}
.tag{
font-size: 0.8em;
font-weight: normal;
margin: 5em auto;
display: block;
text-align: center;
position: relative;
}
.tag a{
  color: #000;
  border: 1px solid #003e64;
  padding: 0.4em 1em 0.3em 1em;
  margin: 0.3em 0.3em 0.3em 0;
  color: var(--theme-ui-colors-text-secondary);
  background: var(--theme-ui-colors-white);
  border-radius: 50px;
  border: 1px solid #ccc;
  display: inline-block;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
  60% {
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
}
.arrow {
  animation: bounce 2s infinite;
  width: 35px;
  margin: auto;
  padding-top: 1.5em;
}
.icon{
  width: 35px;
  height: 35px;
}
.icon-checklist{
  margin: 0 0.5em 0.5em 0;
}
.icon-question:before {
  font-size: 0.9em;
  content: '?';
  font-weight: 900;
}
.icon-question{
  color: #fff;
  padding: 0.7em;
  margin-right: 0.4em;
  display: inline-flex;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  background: #e90044;
  position: relative;
  font-style: normal;
  border-radius: 50%;
}
.content-list{
  margin: 1em 0;
}
.timeline{
  background-color: #fff!important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  color: #000!important;
  width: 60%;
  padding: 3em 1em;
  border-radius: 10px;
  border: 1px dotted var(--theme-ui-colors-secondary);
  margin: auto;
}
.timeline-img{
  padding: 0.5em 3em;
}
.content-listing{
  margin: 2em auto;
}
.content-list p{
  margin-top: 0;
}
.list-group li{
  font-weight: 700;
  font-size: 0.9rem;
  /* border-right: 1px dotted #fff; */
}
.content-tree{
  padding: 2em 0 0 0!important;
}
.tree ul {
  margin: 0;
  padding: 0;
  padding-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
}

.tree li {
  display: inline-block;
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 20px 5px 0 5px;
}
.tree li small{
  color: #777;
}
/* Draw the connectors */
.tree li::before,
.tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 1px solid #003866;
  width: 50%;
  height: 20px;
}

.tree li::after {
  right: auto;
  left: 50%;
  border-left: 1px solid #003866;
}

/* Remove left-right connectors for elements without siblings */
.tree li:only-child::after,
.tree li:only-child::before {
  display: none;
}

/* Adjust spacing for single children */
.tree li:only-child {
  padding-top: 0;
}

/* Remove connectors from first and last child */
.tree li:first-child::before,
.tree li:last-child::after {
  border: 0 none;
}

/* Add vertical connector to the last nodes */
.tree li:last-child::before {
  border-right: 1px solid #003866;
  border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
  border-radius: 5px 0 0 0;
}

/* Downward connectors from parents */
.tree ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 1px solid #003866;
  width: 0;
  height: 20px;
}
.tree li p {
  border: 1px dotted #003866;
  margin-bottom: 0;
  display: inline-block;
  padding: 0.5em 1em;
  background-color: #fff;
  border-radius: 5px;
  font-weight: 600;
}


/* Hover state to ensure feedback when hovering */
.mobile-tab:hover {
  background-color: #003d64;
  border: #003d64 solid 1px;
  color: white;
}

/* The active class for highlighting the selected tab */

.list-container{
  background-color: #ffffffb0;
  border: 1px dotted var(--theme-ui-colors-secondary);
  border-radius: 10px;
  color: #000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}
.form-title{
  margin-bottom: 1em;
}
.title-form{
  background-color: var(--theme-ui-colors-secondary);
  border-radius: 10px 10px 0 0;
  color: #fff;
  padding: 0.8em 0 0.3em 0;
}
.title-form h4{
  font-weight: 600;
  line-height: 1.5;
}
.form-title h4,h2{
  font-weight: 800;
}
.list-group-item {
  background-color: #ffffff00;
  border: none;
  width: 20%;
  padding: 0 2em;
  font-size: 0.9rem;
  border-right: 1px dotted var(--theme-ui-colors-secondary);
  display: flex;
  flex-direction: column; 
  align-items: center; 
}
.list-group-item:last-child {
  border-right: none;
}
.icon-list {
  width: 80%;
  margin: 0.5em 0; 
}
.content{
  width: 50%;
  padding: 5em 0 2em 0;
}
.content h2{
  font-weight: 700;
}

.text-section {
  min-height: 100vh;
  width: 35%;
  font-size: 0.9rem;
}
.content-first-child{
  padding: 0!important;
}
.debate-wrap {
  height: 95vh;
  width: 90%;
  color: #fff;
  padding: 0.5em 1em;
  position: relative;
  border-radius: 10px;
  background-image: url(../img/parliament-bg.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.fix-it{
  position:sticky;
  top: 0;
}
.fixed-person {
  position: absolute;
  z-index: 50;
  left: 70%;
  align-items: baseline;
  display: flex;
  bottom: 0; 
}
.fixed-img {
  width: 45%;
}
.author-chan{
  font-size: 0.9rem;
  color: #fff;
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
}
.author-chan b{
  padding-right: 1em;
}
.scrollable-text::-webkit-scrollbar {
  display: none; 
}
.debate-q{
  padding: 2em;
  color: #fff;
  border: 1px solid #fff;
  background-color: #00000000;
  border-radius: 10px;
  width: 50%;
}

.debate-anwser{
  width: 50%;
  color: #000;
  border-radius: 10px;
  margin: 0 0 0 1em;
  padding: 2em;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.debate-anwser::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 80%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(255, 255, 255, 0.8);
}
.emphasis{
  font-weight: 600;
  background-color: #ed1e39;
  color: #fff;
}
.author-text{
  font-size: 0.8rem;
  margin: 0 !important;
}
.author-text b{
  padding-right: 1em;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(15deg); }
}
@keyframes moveLeftRight {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(0);
  }
}
@media (min-width: 200px) and (max-width: 1000px) {
  body{
    background-color:#fbffff;
    background-image: url(../img/m-bg.webp);
  }
  .main-title {
    font-size: 2rem;
    display: block;
  }
.list-group-item {
  border-right: none;
  width: 100%;
  padding: 0.5em 1em;
}

.content-first-child {
  padding: 1.5em 0 0 0 !important;
}
.ge-icon-img {
  width: 30%;
  margin-bottom: 0.2em;
}
.title-form {
  padding: 0.5em 0 0;
}
.tree-first{
  padding-top: 0 !important;
}
.icon-list {
  width: 30%;
}
.list-container {
  color: #000;
  width: 95%;
}
.content-list {
  margin:0;
  border-radius: 10px;
}
.content-list-m {
  background: #ffffffb0 !important;
  border: 1px dotted var(--theme-ui-colors-secondary);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
  .landing-wrap {
    width: 90%;
    height: auto;
  }
  .list-odd-item{
    background-color: #f1f4ff !important;
  }
  .list-odd-item-last{
    margin: 1em;
  }
  .content {
    width: 90%;
  }
  .voter-info{
    border: 1px dotted #777;
    margin: 0 1em 1em;
    border-radius: 10px;
  }
  .tree li::before, .tree li::after  {
    height: 35px;
  }

.timeline {
  width: 95%;
  margin: auto;
  padding: 2em 1em;
}
.form-title {
  margin-bottom: 0em;
}
.icon-question {
  font-size: 1.5rem;
}
.tree{
  padding: 0;
}
.tree li p {
  line-height: 1.3;
  padding: 0.5em 0.8em;
}
.lvl2{
  padding-top: 0px!important;
}
.title-form h4 {
  font-size: 1.3rem;
  line-height: 1.5;
}
.form-title h2 {
  font-size: 1.5rem;
  padding:0 1em;
}
.debate-chan {
  color: #000;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  position: relative;
}
.emphasis {
  font-size: 1.2rem;
}
.click-indicator {
  width: 100%;
  margin: 0;
}
.fixed-img {
  width: 40%;
  position: relative;
  left: 30%;
}
.author-chan p {
  font-size: 0.8rem;
}
.text-section {
  width: 100%;
}
.debate-q {
  padding: 2em 1.5em;
  width: 100%;
  height: auto;
}
.debate-anwser {
  width: 100%;
  margin: 0;
  height: auto;
}
}
/* Mobile Tabs Container */
.tabs-container {
  border-radius: 10px;
  width: 95%;
  margin: auto;
  height: 70dvh;
  color: #fff;
  max-height: 70dvh; 
  overflow-y: auto; 
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
/* Tab Links */
.tabs {
  width:50%;
  display: flex;
  margin: 0 3em;
  white-space: nowrap;
  position: sticky; /* Keep tabs fixed at the top */
  top: 0;
  padding: 0.2em 0 0 0;
  z-index: 55;
}
.tab-link {
  display: flex;
  margin: 0 0.5em;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    opacity: 0.5;
}
.tab-link.active {
  background-color: #ed1e39;
  opacity: 1;
  border: 1px solid #ed1e39;
}
.mp-tab {
  width: 90px;
  height: auto;
  margin-top: auto;
}
/* Tab Content */
.tab-content {
  z-index: 0;
  margin-top: 0.3em;
  display: none;
  color: #000;
  border-radius: 0 0 10px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-content::-webkit-scrollbar {
  display: none; 
}
.tab-content.active {
  display: flex;
}
/* Responsive adjustments */
@media (min-width: 200px) and (max-width: 1000px) {
  .debate-wrap {
    height: 95dvh;
    width: 95%;
    padding: 0.5em;
  }
  .tabs-container {
      width: 100%;
      border-radius: 10px;
  }
  .tabs {
    width:100%;
    margin: 0;
    padding: 0 1em;
    background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0.8) 100%);
  }
  .mp-tab {
    width: 55px;
  }
  .tab-link {
      padding: 0em;
      margin: 0 0.2em;
      width:55px;
      height: 55px;
  }
  .tab-content{
    margin-top: 0;
  }
  .tab-content.active {
    display: block;
  }
  .fixed-person {
    left: 0;
    bottom: 0;
  }
  .author-chan {
    line-height: 0.5;
    left: 0;
    text-align: center;
    right: 0;
    color: #000;
    border-radius: 0 0 10px 10px;
    background-color: #fff;
    padding: 0 1em;
  }
  .list-odd-item{
    background-color: #f1f9ff!important;
    border-top: 1px dotted var(--theme-ui-colors-secondary);
    border-bottom: 1px dotted var(--theme-ui-colors-secondary);
  }
  .question-inline-img {
    width: 15%;
}
.inline-display{
  display: inline;
  line-height: 1.4;
}
.content-listing {
  margin: 0em auto;
}
}
