html {
	scroll-behavior: smooth;
}

.navbar-nav {
	flex-wrap: wrap;
}

main {
  font-family: "Barlow", sans-serif;
  font-style: normal;
  font-size: 1.1em;
}

main p {
	line-height: 2rem;
}

/*h2, h3, h4, h5, h6 {
	font-weight: bold;
}*/

h2 {
	margin-top: 2em;
}

/*Jumbo............................................*/
#mainJumbo{
	background-size: cover;
	height: 300px;
	width: 100%;
	padding:0;
	margin: 0;
	position: relative;
}

.bluestripe {
	width: 100%;
	background-color: blue;
	height: 50px;
}

.whitestripe {
	width: 100%;
	background-color: white;
	height: 50px;
}

.redstripe {
	width: 100%;
	background-color: red;
	height: 100px;
}

#titlediv {
	height: 300px;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	padding-left: 20px
}

#lowerContent{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

#tableofcontents{
	border: solid black 1px;
	width:22%;
	min-width: 275px;
}

#tocinner{
	margin: 10px 5px;
	padding: 5px;
	border: solid black 1px;
	box-shadow: 1px 1px 2px black;
	display: flex;
	flex-direction: column;
	position: sticky;
    top: 75px;
    font-size: 1em;
    overflow-y: auto;
    max-height: 90vh;
    transition-duration: 1s;
    line-height: 1.7em;
}

.outerul ul li {
	line-height: 2em;
}

.outerul{
	padding: 0;
	list-style-position: inside;
	list-style-type: none;
}

.innerul {
	list-style-type: none;
}

.chevronright {
	width: 20px;
	height: 20px;
	border: solid black 1px;
	border-radius: 5px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	list-style-type: none;
	transition-duration: .5s;
}

.chevronright:hover {
	background-color: lightgrey;
}

.rotated {
	transform: rotate(90deg);
	background-color: yellow;
}

#tocinner button {
	padding: 0;
}

.btn:focus {
  box-shadow: none;
}

#mainContent{
	width: 70%;
	padding: 0 40px 0 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	margin: auto;
}

#stickyUp {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index:1;
	padding: 1px;
	font-size: 1.5em;
}

#stickyUp h2 {
	margin: 0;
}

.smallestPhotoDiv {
	float: right;
	width: 200px;
	margin-left: 20px;
}

figcaption {
	background-color: rgb(240,240,240);
	font-size: small;
	padding: 5px;
}

.smallestPhoto {
	width: 200px;
	border-radius: 5px;
	box-shadow: 2px 2px 5px black;
}

.smallerPhotoDiv {
	float: right;
	width: 350px;
	margin-left: 20px;
}

.smallerPhoto {
	width: 350px;
	border-radius: 5px;
	box-shadow: 2px 2px 5px black;
}

.largestPhotoDiv {
	width: 670px;
	margin: 0 auto;
}

.largestPhoto {
	width:670px;
	border-radius: 5px;
	box-shadow: 2px 2px 5px black;
}

.rectanglePhoto {
	box-shadow: none;
	border-radius: 0;
}

table {
	display: table;
	font-family: sans-serif;
	font-weight: normal;
	border: 1px solid black;
	border-radius: 5px;
	border-collapse: separate !important;
  box-sizing: border-box;
	font-size: .875em;
  line-height: 1.7142857;
}

td {
	border-right: 1px solid black;
	border-bottom: 1px solid black;
	padding: 5px;
	margin: 0;
}

.subheader {
  background-color: #f0f0f0;
  font-weight: bold;
  text-align: left;
}

#spanishTerms {
	max-height: 60vh;
	overflow-y:scroll;
}

.floatright {
	float: right;
}

#domesticflights, #taxi, #bus {
	display: inline;
}

blockquote {
  float: right;
  width: 50%;
  padding: 20px;
  margin: 10px;
  background-color: #f9f9f9;
  border-left: 5px solid #ccc;
  font-style: italic;
  font-size: .8em;
  color: #333;
}

.internal-reference {
  background-color: rgb(250,250,250);
  border-left: 4px solid red;
  padding: 1em 1.25em;
  margin: 2em 0;
  font-size: 1.05em;
  line-height: 1.6;
  color: #333;
  border-radius: 4px;
}

.internal-reference a {
  text-decoration: underline;
  font-weight: 500;
}

#spanish-pdf, #bus-pdf, #bus-pdf2 {
	margin-bottom: 20px;
	padding: 10px !important;
	width: fit-content;
}


.expander-icon {
  display: inline-block;
  position: relative;
}

/* Remove default disclosure triangle */
.expander-icon summary {
  list-style: none;
  cursor: pointer;
}
.expander-icon summary::-webkit-details-marker { display: none; }
.expander-icon summary::marker { content: ""; }

/* Icon base style */
.icon-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #e5e7eb;
  color: #333;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease;
}

/* Default icon = ℹ️ */
.icon-tooltip::before {
  content: "ℹ️";
}

/* Hover effect */
.icon-tooltip:hover {
  background: #d1d5db;
  transform: scale(1.05);
}

/* Tooltip text */
.icon-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.icon-tooltip:hover::after { opacity: 1; }

.expander-icon .body {
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 50%, #81d4fa 100%);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 0 8px rgba(129, 212, 250, 0.4);
  color: #111; /* Dark text for high contrast */
  animation: fadeSlideIn 0.3s ease-out;
  max-width: 100%;         /* never exceed parent width */
  box-sizing: border-box;  /* include padding/border in width calculation */
  overflow-wrap: break-word; /* break long words/URLs */
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-instructions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f9ff; /* soft blue */
  border-left: 4px solid #0284c7; /* blue accent line */
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #03314b;
  line-height: 1.4;

}

.info-instructions .info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

pre {
	background-color: white;
	display: inline-block;
	padding: 5px;
}

#info-instructions-icons {
	border-right: 1px solid #0284c7;
	padding-right:5px;
}



/* Change to X when open */
.expander-icon[open] .icon-tooltip::before {
  content: "✖";
}
.expander-icon[open] .icon-tooltip::after {
  content: "Click to close";
}

/* Alternate version with lightbulb */
.lightbulb-icon .icon-tooltip::before {
  content: "💡";
}

/* When open, lightbulb also turns into ✖ */
.lightbulb-icon[open] .icon-tooltip::before {
  content: "✖";
}

.videoChapter {
	width: 100%;
	padding-top: 40px;
}
#tabbed-content {
	width: 100%;
	border: none;
}

.videoChapter h3 {
	margin: 10px;
}

.videoDiv {
  flex: 0 0 70%;
  max-width: 70%;
  position: relative;
}
.videoIframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.videoAndDescription {
	display: flex;
	justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.videoDiv::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.videoInfo {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.videoChapter:nth-of-type(2n){
	background-color: lightgrey;
}
.videoChapter:nth-of-type(2n-1){
	background-color: black;
	color: white;
}



/*Media queries................................................*/
@media (max-width: 1043px){
	#titlediv {
		background-color: rgba(0,0,0,.4);
	}
}

@media (max-width: 990px){
	.navbar-brand {
		border-right: none;
		padding-right: 0;
	}
}

@media (max-width: 820px){

	nav li {
		margin: 10px 0;
		font-size: large;
	}

	#navbar {
		position: static;
	}

	#navbar li {
		margin: 5px 0;
		font-size: large;
	}

	main {
		flex-direction: column;
		align-items: center;
	}
}

@media (min-width: 768px) {
  .collapse.dont-collapse-sm {
    display: block;
    height: auto !important;
    visibility: visible;
  }
}

@media (max-width: 768px) {
  #mainContent {
  	align-items: flex-start;
  	width: 100%;
  	padding: 10px;
  }
  button {
  	text-align: left !important;
  }
  .smallerPhoto, .smallerPhotoDiv{
  	width: 100%;
  }
}

@media (max-width: 700px){
	.largestPhotoDiv {
		width: 350px;
	}

	.largestPhoto {
		width:350px;
	}

  .videoAndDescription {
    flex-direction: column;
    width: 100%;
  }

  .videoDiv, .videoIframe {
  	width: 100%;
  	max-width: 100%;
  }
  .videoInfo li{
  	position: relative;
  	padding-right: 0.75rem;
  }

  .videoInfo ul {
  	display: flex;
	  flex-wrap: wrap;
	  gap: 0.5rem;
	  padding: 0;
	  margin: 0;
	  list-style: none;
  }
  .videoInfo li::after{
  	content: "|";
	  position: absolute;
	  right: 0;
	  color: #666;
  }

}

@media (max-width: 465px){
	#mainJumbo p{
		margin: 0;
	}

	h1 {
		font-size: 1.875rem;
	}

}

@media (hover: none) {
  a:hover {
    background-color: transparent;
  }
}
