html {
	scroll-behavior: smooth;
}

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: 20px;
}

#h1andlogo {
	display: flex;
}

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

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

#mainJumbo {
	background-image: url("https://econaturalist-assets.s3.us-east-2.amazonaws.com/images/ecolodges/crarc/costa-rican-amphibian-research-center-hero.webp");
}

#yatamalogo {
	width: 150px;
}

.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: 300px;
	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;
	border-top: 0;
	min-width:14%;
}

#rightSideBar {
	border: solid lightgrey 2px;
	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;	
}

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

#sidebarInner a {
	color: white;
}

.sidebarInnerInner h2 {
	margin: 10px 0 0 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;
}

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

#outerCarousel2 {
	height: 60vh;
	background-color: black;
}

#outerCarousel2 .carousel-inner, #outerCarousel2 .carousel-item {
	height: 100%;
}

#outerCarousel2 .carousel-item {
	background-color: black;
}

/*The following is used for responsive image resizing when dealing with
multiple image dimension ratios*/
#outerCarousel2 img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    /*The following centers the image horizontally and vertically*/
    /*Note that we cannot use flex box in the carousel*/
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#outerCarousel2 span {
	background-color: rgb(1,1,1,.8);
	color: rgb(255,255,255,1);
}

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

#stickyUp h2 {
	margin: 0;
}

#tours {
	overflow: hidden;
}

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

#accomIcons li {
	display: flex;
}

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

#note {
	width: 40%;
}

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

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

.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);
}

.scaleDown {
	transform: scale(.7);
}

/*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;
}

/*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%;
	}

	#outerCarousel1:hover {
	width: auto;
	}

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

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