
.before,
.after {
  margin: 0;
}

.before figcaption,
.after figcaption {
  background: #fff;
  color: #2e3452;
  opacity: 0.8;
  padding: 12px;
  position: absolute;
  top: 10%;
  transform: translateY(-50%);
  line-height: 100%;
  font-size: 18px;
}

.before figcaption {
  left: 12px;
}

.after figcaption {
  right: 12px;
}

select {
	margin: 0 auto;
	color: #001F3F;
	width: 160px;
	height: 25px;
	cursor: pointer;
	text-align-last: center;
	text-align: center;
	-ms-text-align-last: center;
	-moz-text-align-last: center;
}

input {
  width: 180px;
}

/* Anchor offset for fixed header */
section {
  scroll-margin-top: 110px;
}

section::before {
  content: "";
  display: block;
  height: 7px;
  margin-top: -7px;
  pointer-events: none;
}

.section-header h1 {
  font-size: 3em;
  margin-bottom: 10px;
  color: #000080;  /* navy color */
  font-weight: bold;
  margin-top: 50px;
}

.section-header h2 {
  color: #000080;  /* navy color */
  font-weight: bold;
}


/* MARK: View */
.para-bi-margin {
  color: #001F3F;
  margin-left: 0px; /* 20px top/bottom, 40px left/right */
  margin-right: 0px;
  text-align: justify;
  text-align-last: left;  /* last line normal, others justified */
}

.caption-bi-margin {
  color: #001F3F;
  font-size: 16px;
  margin-left: 10px;
  margin-right: 10px;
  text-align: justify;
  text-align-last: left;  /* last line normal, others justified */
}

.caption-figtab{
  font-size: 16px;
  color: #001F3F;
  margin-top: 9px;
}

/* Video spacing */
.video-container {
  margin-top: 30px;
  width: 100%; 
  display: inline-block;
}

/* Image hover effects */
img {
  transition: all 0.3s ease;
}

embed {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.w3-display-container img:hover,
.w3-display-container embed:hover,
embed:hover {
  border-color: #000080;
  box-shadow: 0 4px 12px rgba(0, 0, 128, 0.15);
  transform: translateY(-3px);
  border-radius: 8px;
}


/* MARK: Overview --- Statistics */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  text-align: center;
  gap: 0.5rem;
}

.stat h2 {
  grid-row: 1;
  font-size: 50px;          
  line-height: 1;
  position: relative;
  top: 1px;                /* pushes text down slightly */
  margin: 0;
  font-weight: 650;
}

.stat p {
  grid-row: 2;
  margin: 0;
  font-size: 1em;
  color: #3737d8;
  font-weight: bold;
}

.stat:nth-child(1) { grid-column: 1; }
.stat:nth-child(2) { grid-column: 2; }
.stat:nth-child(3) { grid-column: 3; }
.stat:nth-child(4) { grid-column: 4; }
.stat:nth-child(5) { grid-column: 5; }
.stat:nth-child(6) { grid-column: 6; }


/* MARK: Abstract */

details {
  margin: 1em 0;
  padding: 0.5em 1em;
  background: #f8f8f8;
  border-radius: 8px;
}

summary {
  font-weight: bold;
  cursor: pointer;
}





/* MARK: Comparison details */

.datasets-comparison-details {
  margin: 20px 0;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
}

.datasets-comparison-details summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  /* margin-bottom: 10px; */
  text-align: left;
  color: #001F3F;
}

.datasets-comparison-details[open] {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0 ,0 ,0.1);
}


/* MARK: Download */

.download-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.download-item {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.download-item:hover {
  border-color: #000080;
  box-shadow: 0 4px 12px rgba(0, 0, 128, 0.15);
  transform: translateY(-2px);
}

.download-item h3 {
  color: #000080;
  font-size: 1.5em;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.download-desc {
  color: #001F3F;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 0 20px 0;
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}


/* MARK: Citation */

.bibtex-box {
  position: relative;
  background-color: #d2d2ff;
  color: #001F3F;
  border-radius: 10px;
  padding: 20px 30px;
  margin: 30px auto;
  max-width: 900px;
  font-family: "Courier New", monospace;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bibtex-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.bibtex-header .bibtex-icon {
  /* width: 28px; */
  height: 30px;
  margin-right: 10px;
}

.bibtex-box pre {
  overflow-x: auto;
  font-size: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: #2d2dc9;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #6f6fff;
}



/* MARK: Header */

body {
  margin: 0;
  /* font-size: 27px; */
  /* font-family: Arial, sans-serif; */
}

/* Hidden by default */
#scrollHeader {
  position: fixed;
  top: -116px;  /* 👈 start hidden above page */
  left: 0;
  width: 100%;
  background-color: #000080;
  opacity: 0.95;
  color: white;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: top 0.4s ease;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#scrollHeader nav a {
  color: white;
  text-decoration: none;
  margin-left: 30px;
  font-size: 23px;
  font-weight: bold;
  /* top: 10px; */
}


#scrollHeader nav a:hover {
  /* opacity: 0.8; */
  color: rgb(255, 255, 0);
  text-decoration: underline;
}

.header-left {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.header-left:hover {
  opacity: 0.95;
  color: #d3d3f3;
}

.header-left .logo {
  /* width: 45px; */
  height: 45px;
  margin-right: 10px; /* space between icon and text */
  object-fit: contain; /* keep aspect ratio */
}

.header-left .title {
  margin: 11px;
  margin-top: 30px;
  /* padding: 0; */
  font-size: 45px;
  font-weight: bold;
  line-height: 45px;
  display: flex;
  align-items: center;
  height: 45px;
}


/* MARK: Footer */

.footer {
  width: 100%;
  padding: 16px;
  background: #000080;
  color: #fff;
  text-align: center;
  margin-top: 99px;
  font-size: 14px;
  font-weight: bold;

  /* opacity: 0; */
  /* transition: opacity 0.8s ease; */
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px; /* space between elements */
}

.footer-icon {
  width: 60px;   /* adjust size */
  height: auto;
  /* opacity: 0.9; */
}

.footer .ascii {
  font-family: monospace;
  font-size: 12px;
  margin: 0;
  white-space: pre;
}



/* MARK: Title */

/* -- TSBOW title -- */
#tsbow-title span {
    display: inline;
    transition: 
      color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      text-shadow 0.3s ease,
      filter 0.3s ease;
    cursor: pointer;
    /* margin-right: -1px;  */
}

/* -- TSBOW name: Traffic Surveillance... */
/* Synchronized highlight for T in title and subtitle */
.sync-tsbowT.highlight, .sync-tsbowT:hover {
  filter: drop-shadow(0 0 8px #FFCC00) brightness(1.1);
  transition: filter 0.2s;
}
.sync-tsbowS.highlight, .sync-tsbowS:hover {
  filter: drop-shadow(0 0 8px #33CCCC) brightness(1.1);
  transition: filter 0.2s;
}
.sync-tsbowB.highlight, .sync-tsbowB:hover {
  filter: drop-shadow(0 0 8px #FF6600) brightness(1.1);
  transition: filter 0.2s;
}
.sync-tsbowO.highlight, .sync-tsbowO:hover {
  filter: drop-shadow(0 0 8px #6699FF) brightness(1.1);
  transition: filter 0.2s;
}
.sync-tsbowW.highlight, .sync-tsbowW:hover {
  filter: drop-shadow(0 0 8px #FF0066) brightness(1.1);
  transition: filter 0.2s;
}

.resources {
  text-align: center;
  margin-top: 30px;
}

/* -- button -- */
.button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 11px;
  background-color:#0074D9;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.btn img {
  width: 30px;  
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
  filter: none; /*brightness(0) invert(1) : optional if icon is too dark */
  transform: translateY(-3px);
}

.btn span {
  font-size: 16px;
  margin-top: 5px;
}

.btn:hover {
  background-color: #000080 ;
  transform: translateY(-5px);
  text-decoration: underline;
}



/* End of style.css */