html {
	scroll-behavior: smooth;
}

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

main p {
	line-height: 2rem;
}

h1 { letter-spacing: -0.02em; }

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

h2 {
	margin-top: 20px;
}

h3, h4 { font-weight: 600; }

#h1andlogo {
	display: flex;
}

#h1andlogo div {
	display: flex;
	align-items: center;
	padding-right: 10px;
}


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

#mainJumbo {
	background-image: url("https://econaturalist-assets.s3.us-east-2.amazonaws.com/images/ecolodges/savegre/savegre-hero-1920.webp");
}

.blackScreen {
	background-color: rgba(1,1,1,.7);
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	padding: 10px;
	margin: 5px;
	border-radius: 1px 5px 50px 1px;
	min-height: 200px;
}

.blackScreen h1 {
	margin:0;
	opacity: 1;
}

.whiteOpacity {
	background-color: rgba(256,256,256,.1);
	/*height: 602px;*/
	width:100%;
	display: flex;
	flex-direction: row;
	align-items: center;
}

/*Second content (map and carousel). There's also media queries below........*/
#secondContent {
  display: flex;
  width: 100%;
  transition: width 2s ease;
  aspect-ratio: 2415 / 860;
}

#map, #outerCarousel1 {
  flex-shrink: 0;
  transition: width 2s ease; 
}

#map {
  width: 33.33%;
  max-width: 100%;
  background: url(https://econaturalist-assets.s3.us-east-2.amazonaws.com/images/ecolodges/otorongo/staticmap.webp) center center / contain no-repeat;
}

/* On hover, expand map */
#map:hover {
  width: 50%;
  transition-delay: .5s;
}

/* Shrink carousel when map is hovered */
#map:hover + #outerCarousel1 {
  width: 50%;
  transition-delay: .5s;
}

#outerCarousel1 {
  width: 66.66%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: black;
}
/*End of secondContent (map and carousel), except for media queries*/


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

#tableofcontents{
	border: solid black 1px;
	border-bottom: 0;
	min-width:14%;
}

#rightSideBar {
	width: 15%;
	color: white;
	padding: 5px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: darkgreen;
}

#sidebarInner {
	padding: 5px;
	display: flex;
	flex-direction: column;
	position: sticky;
    top: 40px;
    font-size: .8em;
    transition-duration: .5s;
}

#sidebarInner ul {
	padding-left: 20px;
}

#sidebarInner a {
	color: white;
}

.sidebarInnerInner h2 {
	margin: 10px 0 0 0;
}

#rightSideBar h2 {
	margin: 8px 0;
}

#tableofcontents ol{
	padding: 0;
	list-style-position: inside;
}

#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;
}

#mainContent{
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	margin: auto;
}

#mainContent h2 {
	text-align: center;
	margin: 10px 0 10px 0;
}

.mainContentSection {
	padding: 10px 40px;
	border-bottom: black solid 1px;
}

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

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

#stickyUp h2 {
	margin: 0;
}

#accommodations {
	width:100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	border-bottom: black solid 1px;
}

#accomLower {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

#accomIcons {
	display: flex;
	flex-direction: row;
}

#accomCol1, #accomCol2{
	width: 50%;
}

#note {
	width: 40%;
}

#note-outer {
	display: flex;
	justify-content: space-around;
	padding-bottom: 20px;
	flex-wrap: wrap;
}

#accommodations li {
	margin-bottom: 1em;
}

.iconDiv {
	border: solid black 1px;
	border-radius: 15%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	vertical-align: top;
	padding: 1px;
	margin-right: 4px;
}

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

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

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

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

.smallestPhoto {
	width: 250px;
	border-radius: 5px;
}

iframe{
	aspect-ratio: 16/9;
	width: 100%;
}

.vrTourLeft {
	float: left;
	width: 500px;
	margin-right: 20px;
}

.youtubeicon, .youtubeicon img {
	width: 1.3em;
	height: 1.3em;
}

.rot180{
	transform: rotate(180deg);
}

#speciesContainer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

#speciesContainer p {
	margin: 0;
	line-height: 1em;
}

.speciesCard {
	height: 250px;
	width: 250px;
	border: solid black 1px;
	border-radius: 5px;
	margin-bottom: 20px;
	box-shadow: 1px 1px 2px black;
	display: flex;
	flex-direction: column;
	transition-duration: 1s;
}

#speciesContainer a {
	text-decoration: none;
}

.speciesImgDiv {
	height: 165px;
	width: 100%;
	overflow: hidden;
}

.speciesName {
	width: 100%;
	padding: 5px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#speciesIntro {
	text-align: center;
}

.speciesImgDiv img {
	transition: transform .6s;
}

.speciesImgDiv img:hover{
	transform: scale(1.05);
}

#accomm360 {
	border-top: solid black 1px;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.still360Box {
	width: 100%;
	display: flex;
	flex-direction: row;
	border-bottom: white solid 1px;
}

.still360Box iframe {
	height:70vh;
}

.still360Desc{
	color: white;
	background-color: black;
	width: 30%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px;
}

.still360Desc p {
	margin: 0;
	font-size: small;
	line-height: 1em;
}

.still360Desc a {
	color: white;
  width: 100%;
}

.otorongoIn360Div {
	width: 100%;
	padding: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: white;
	background-color: black;
}

.video360Box {
	width: 100%;
	display: flex;
	flex-direction: row;
	border-bottom: white solid 1px;
}

.video360Desc{
	color: white;
	background-color: black;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 30%;
	padding: 10px;
}

.video360Desc h5 {
	text-align: center;
}

.rotate360 {
  font-size: 64px;
  font-weight: bold;
  color: white; /* Pure bright white for the front layer */
  text-shadow: 
    1px 1px 0 #d9d9d9,
    2px 2px 0 #bfbfbf,
    3px 3px 0 #a6a6a6,
    4px 4px 0 #8c8c8c,
    5px 5px 0 #737373,
    6px 6px 0 #595959,
    7px 7px 0 #404040,
    8px 8px 0 #262626;
  transform-origin: center;
  transform: perspective(800px) rotateY(0deg); /* Initial state */
  opacity: 0; /* Hidden initially */
  transition: opacity 0.5s ease-out; /* Fade-in effect */
}

.rotate360.animate {
  animation: rotate3D 2s ease-in-out forwards;
  opacity: 1; /* Make visible during animation */
}

@keyframes rotate3D {
  from {
    transform: perspective(800px) rotateY(0deg);
  }
  to {
    transform: perspective(800px) rotateY(-45deg);
  }
}

/*Collapse section CSS.........................*/
.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;
}

/* rotate when open */
.chevronbutton[aria-expanded="true"] .chevronright {
  transform: rotate(90deg);
  background-color: yellow;
}

/* reset when closed */
.chevronbutton[aria-expanded="false"] .chevronright {
  transform: rotate(0deg);
  background-color: white;
}

#tocinner button {
	padding: 0;
}

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

.fancy-link {
      display: inline-block;
      padding: 12px 24px;
      background-color: #4a7c59; /* nature green */
      color: white;
      text-decoration: none;
      font-size: 1.2em;
      font-weight: bold;
      border-radius: 8px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.2);
      transition: all 0.3s ease;
      margin-bottom: 20px;
    }

.fancy-link:hover {
  background-color: #3a6447; /* slightly darker green */
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
  transform: translateY(-2px);
  color: #f5e663;
}

.internal-reference {
  background-color: #f2f8f4;
  border-left: 4px solid #557755;
  padding: 1em 1.25em;
  margin: 2em 0;
  font-size: 1.05em;
  line-height: 1.6;
  color: #333;
  border-radius: 4px;
}

.internal-reference a {
  color: #2a5d3f;
  text-decoration: underline;
  font-weight: 500;
}

.internal-reference a:hover {
  color: #1e3e2a;
}

.page-meta {
  font-size: 0.95em;
  color: #666;
  margin-top: 1em;
  margin-bottom: 2em;
  text-align: center;
  display: none;
}

.unstyled-link {
	text-decoration: none;
	color: inherit;
}


/*Media queries................................................*/

@media (max-width: 1111px){
	#tableofcontents, #rightSideBar, #mainContent, #tocinner, #sidebarInner {
		min-width: 20%;
	}
}

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

@media (max-width: 820px){
	main {
		flex-direction: column;
		align-items: center;
	}

	#outerCarousel1 img, #outerCarousel1{
		width:100%;
		display:block;
	}

	#stickyUp {
		display: none;
	}

	#secondContent {
		flex-direction: column-reverse;
	}

	#map, #map iframe {
		width: 100%;
		height: 300px;
	}

	#map:hover {
		width:auto;
	}

	#outerCarousel1 {
		width: 100%;
	}

	#note {
		width: 100%;
	}

	#accomCol1,#accomCol2 {
		width: 100%;
	}

	#accomCol1 ul,#accomCol2 ul {
		padding-left: 20px;
	}
	.blackScreen, .whiteOpacity, #mainJumbo {
		height: auto;
	}

	#mainJumbo {
		background-color: black;
		background-image: none;
	}

	#h1andlogo {
		flex-direction: column;
	}

	#map {
		background: url(https://econaturalist-assets.s3.us-east-2.amazonaws.com/images/ecolodges/otorongo/otorongo-map-820.webp);
	}

}

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

@media (max-width: 768px) {
	#mainContent {
		width:95%;
		margin: 0 auto;
		align-items: flex-start;
	}
	#tableofcontents{
	display: none;
	}
	#rightSideBar{
		width: 100%;
		border: 0;
	}

	#sidebarInner {
		flex-direction: row;
	}

	#lowerContent {
		flex-direction: column-reverse;
	}

}

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

	.mainContentSection {
		padding: 5px;
		width: 100%;
	}

	#mainContent {
		padding: 5px;
		width: 100%;
	}

	.smallerPhotoDiv {
		margin: 0;
	}
	.still360Box {
		flex-direction: column;
	}
	.still360Desc {
		flex-direction: row;
		width: 100%;
		justify-content: center;
		align-items: center;
	}

	.still360Box iframe {
		height: 50vh;
	}

	.video360Box {
		flex-direction: column;
	}

	.video360Desc {
		flex-direction: row;
		width: 100%;
	}

  .smallDisplayNone {
		display: none;
	} 

	.video360Box iframe {
		height: 50vh;
	}
}

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

/*Resizing hero image*/

/* Phones & small tablets — low res */
@media (max-width: 767px) and (max-resolution: 1.99dppx) {
  #mainJumbo {
    background-image: url('https://econaturalist-assets.s3.us-east-2.amazonaws.com/images/ecolodges/savegre/savegre-hero-750.webp');
  }
}

/* Phones & small tablets — retina */
@media (max-width: 767px) and (min-resolution: 2dppx) {
  #mainJumbo {
    background-image: url('https://econaturalist-assets.s3.us-east-2.amazonaws.com/images/ecolodges/savegre/savegre-hero-1500.webp');
  }
}

/* Large screens — retina */
@media (min-width: 768px) and (min-resolution: 2dppx) {
  #mainJumbo {
    background-image: url('https://econaturalist-assets.s3.us-east-2.amazonaws.com/images/ecolodges/savegre/savegre-hero-3840.webp');
  }
}