/*    *****************
          TO DO
      *****************
*  remove ununsed css
*  add page for videos
*  bled slideshow showing none image placeholder icons*  
*  on small screen change caption sizing
*  album footer is showing
 
*/

/*    *****************
      BASIC PAGE STYLES
      *****************
*/

body {
    color: #fff;
    font-size: 16px;
    font-family: "Madimi One", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url("../Images/IMG_20230923_112817478_HDR.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

a,
a:active,
a:hover,
a:link,
a:visited,
.btn {
	padding: 1px;
	text-decoration: none;
	/*	font-family: 'Poiret One', cursive;
  font-family: "Shadows Into Light", cursive; 
  font-family: "Madimi One", sans-serif;*/
	color: #FFF;
	font-family: "Quicksand", sans-serif;
	font-size: 2.2rem;
}

a.active {
	cursor: default;
	background: rgba(6, 4, 102, .7) !important;
}

::-webkit-scrollbar {
	width: 10px;
	/* Set scrollbar width */
}

::-webkit-scrollbar-track {
	background: #fff;
	/* Set scrollbar track (the background area) color */
}

::-webkit-scrollbar-thumb {
	background: #FF0000;
	/* Set scrollbar thumb (the draggable area) color */
}

/* And blue when hovered upon by the cursor*/

::-webkit-scrollbar-thumb:hover {
	background: rgb(6, 4, 102);
	;
}

h1 {
width: 100%;
	margin: 0px auto;
	padding: 10px;
	font-family: "Ephesis", cursive;
	font-size: calc(14px + (48 - 20) * ((100vw - 300px) / (1600 - 300)));
	text-align: center;
	background-color: rgba(21, 21, 21, 0.7);
}

h2 {
	margin: 0px auto;
	padding: 10px;
	text-align: center;
	font-family: "Tangerine", cursive;
	font-size: calc(14px + (48 - 24) * ((100vw - 300px) / (1600 - 300)));
	background-color: rgba(21, 21, 21, 0.8);
}

h5 {
	margin: 0;
	padding: 13px 0;
	border-radius: 4px;
	background: linear-gradient(to right, rgba(0, 0, 0, 0) 1%, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0) 91%, rgba(0, 0, 0, 0) 100%);
	font-size: 2rem;
	/*	font-family: 'IM Fell Double Pica SC', serif;*/
	font-family: "Courgette", cursive;
}

ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.smallText {
	display: inline-block;
	margin-top: 10px;
}

.smallerText {
	margin: 0 1px;
	padding: 0 4px;
	border-radius: 4px;
	background: #fff;
	color: #3f0a07;
	font-size: 1.1rem;
	opacity: .7;
}

/* --end basic styles-- */

.container {
    display: flex;
    justify-content: space-between;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0 ; 
}

/*    -------------------
       LEFT SIDEBAR MENU
      -------------------
*/

#sideNavHome {
	flex: 1;
	margin: 0;
	padding: 0;
}

.navbar {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 0 5px; 
	border: none;
	text-transform: capitalize;
	background: transparent;
}


/* CONTROLS THE Toggling of navigation */

#menu {
	padding: 15px 3px;
	margin: 0;
	font-size: 2.3rem;
	background-color: rgba(21, 21, 21, 0.4);
}

/* LEFT SIDEBAR MENU grouping  */

.navbar-default {
	border: none;
	/*	font-family: 'Poiret One', cursive;*/
}

/*      --------------
        ACCORDION MENU 
        --------------
*/

/* ACCORDION HEADERS and NON accordion links too   ALL MENU LINKS ON BOTH SIDEBARS */

#menu>ul>li>a,
.nav-link,
.list-group,
.list-group-item {
	border: none;
	background: transparent;
}


/* CONTROLS THE NAVIGATION hover  FOR non AND ACCORDION LINKS   */

#menu>ul>li:hover,
#sideNav>nav>ul>li:hover,
#sideNavHome>nav>ul>li:hover,
#menu>ul>li>a:hover,
#accordion a:hover,
#sideNav>nav>ul>li>a:hover,
#sideNavHome>nav>ul>li>a:hover,
#thumbsHome ul>li:hover {
	color: #fff;
	background-color: rgba(6, 4, 102, .7);
}

/* the menu group for targeting glyphicons with flex */

.panel-heading.list-group-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

/* glyphicon CONTROLS */

.more-less {
	font-size: 1rem;
}

.glyphicon-menu-down {
	font-weight: bold;
	font-size: 1.2rem;
}

/* CONTROLS THE COUNTRY FIRST TEAR links AND THE REGIONS links */

#morocco>ul,
#france,
#peru>ul,
#slovenia>ul {
	padding: 20px 0 20px 10px;
	background-color: rgba(21, 21, 21, 0.6);
	font-size: 1.9rem;
}

a.list-group-item:focus {
	font-weight: bold;
	color: #0303FD;
	text-shadow: none;
	background-color: rgba(234, 234, 234, 1);
}

/* CONTROLS THE FRANCE SubACCORDION */

#france {
	padding: 15px 0 15px 0;
}

/* CONTROLS THE FRANCE SubACCORDION REGIONS */

#france .panel-heading.list-group-item:focus {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	text-shadow: none;
	font-weight: bold;
	color: #0303FD;
	background-color: rgba(234, 234, 234, 1);
}

#france .panel-heading.list-group-item:hover {
	color: #fff;
	background-color: rgba(6, 4, 102, .7);
}

#burgundy {
	padding: 0 15px;
	font-size: 2rem;
	background-color: rgba(21, 21, 21, 0.9);
}

#burgundy>ul {
	padding: 15px 0;
}

#slovenia {
	overflow-y: scroll;
	/* Enable vertical scrolling */
	overflow-x: hidden;
	/* Hide horizontal scrolling */
	max-height: 40vh;
}

/* --end left sidebar-- */

/*    ***********************************************
        MAIN CONTENT  MAP, ALBUM AND SLIDESHOW AREA
      ***********************************************
  */

.mainContentHome {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 7;
  max-height: 100vh;
	z-index: 3;
	margin-left: 10px;
	margin-right: 10px;
}


/*  STYLES for slovenia image hotspots     */
.rectangular-hotspot {
	z-index: 14;
	position: absolute;
	display: block;
	width: 25%;
	/* adjust as needed */
	height: 26%;
	/* adjust as needed */
	overflow: hidden;
	backface-visibility: hidden;
	top: 0;
	/* position at the top of the parent div */
	left: 53%;
	/* position at the center of the parent div */
	transform: translateX(-53%);
	/* shift the hotspot to the left by half its width to truly center it */
}

.rectangular-hotspot .content {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	/* Align vertical last element to the bottom */
	align-items: center;
	text-align: center;
	height: 106%;
}

.rectangular-hotspot .content p {
	z-index: 15;
	font-size: calc(6px + (20 - 12) * ((100vw - 300px) / (1600 - 300)));
	color: white;
	padding: 1px 5px;
	background-color: #0C1D40;
	border: solid #FFFFFF 2px;
}

#popup {
	display: none;
	position: fixed;
	left: 10%;
	/* position at the center of the parent div
	transform: translateX(-10%); */
	top: 13%;
	justify-content: center;
	align-items: center;
	background-color: #fff;
	padding: 15px;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
	border: solid black 3px;
	z-index: 16;
	width: 69.3vw;
}

#full-size-img {
	width: 100%;
	max-height: 80vh;
}


/* controls map and its hotspots

IMPORTED STYLES from https://www.codehim.com/html5-css3/responsive-image-hotspots/ & massively tweaked by microsoft bing & bots   
*/

.map,
#slideshow {
	z-index: 15;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;  
  height: 100%;
	position: relative;
}
.map-image-wrapper,
.slideshow-item {
	position: relative;
	display: inline-block;
	/* This will make the div size match the image size */
	padding: 10px;
	margin: auto;
	background-color: rgba(21, 21, 21, 0.6);
	max-height: 100%;
}

.hotspot {
	z-index: 20;
	position: absolute;
	display: block;
	width: 30px;
	height: 30px;
	overflow: hidden;
	border-radius: 50% 50%;
	background-color: rgb(6, 4, 102);
	color: white;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
	backface-visibilty: hidden;
	transition: all 0.2s ease 0.1, border-radius 0.1s ease 0.2;
}


.hotspot.open {
	z-index: 21;
	opacity: 1;
	border-radius: 0 0;
	width: 70%;
	height: 70%;
	transition: all 0.2s ease, border-radius 0.2s ease;
	background-color: rgba(21, 21, 21, 0.7);
}

.hotspot .content {
	position: absolute;
	top: 45px;
	left: 15px;
	margin: 0;
	padding-right: 13px;
	overflow: auto;
	width: 96.5%;
	height: calc(95% - 20px);
	/* Instead of a specific height */
	opacity: 0;
	/*	background-color: rgba(21, 21, 21, 0.6);*/
	transition: opacity 0.2s ease 0s;
}

.hotspot.open .content {
	opacity: 1;
	/* fully visible when parent .hotspot has .open class */
}

.hotspot .content h4 {
	/*	background-color: rgba(21, 21, 21, 0.7);*/
	margin: -10px 0 0 0;
	display: flex;
	gap: 20px;
	justify-content: center;
	align-items: center;
	color: white;
	font-family: "Quicksand", sans-serif;
	font-weight: normal;
}

.hotspot .content h4 a {
	font-weight: bold;
}

.hotspot .content p {
	margin: 0 0 30px 0;
}

.hotspot .content .btn {
	margin-right: -10px;
	padding: 5px 10px;
	background-color: transparent;
	color: #FFF;
	box-shadow: 0px 0px 6px rgba(255, 255, 255, .3);
	/*  box-shadow: 0px 0px 5px  rgb(6, 4, 102);*/
	font-size: 2rem;
	text-shadow: none;
}

.hotspot .content .btn:hover {
	color: white;
	background-color: rgb(6, 4, 102);
}

.hotspot.open .icon {
	transform: rotate(45deg);
}

.hotspot.open .map {
	opacity: 1;
	transition: opacity 0.2s ease 0.2s;
}

.hotspot .icon {
	position: absolute;
	display: block;
	top: 0;
	right: 0;
	/* positions the close button to the right */
	width: 30px;
	height: 30px;
	overflow: hidden;
	font-size: 20px;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.hotspot.left-top .icon {
	top: 0;
	left: 0;
}

.hotspot.right-top .icon {
	left: auto;
	top: 0;
	right: 0;
}

.hotspot.left-bottom .icon {
	left: 0;
	bottom: 0;
}

.hotspot.right-bottom .icon {
	bottom: 0;
	right: 0;
}

.map-image,
.slideshow-item img {
	max-width: 100%;
	max-height: 89vh;
	display: block;
	margin: auto;
	border: solid WHITE 2px;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}




/*    CONTROLS THE SLIDESHOW and album CONTROL BUTTONS */

#slideshow,.slideshow-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: auto;  
  max-height: 100%;
	margin: 0;
	padding: 0px;
}
.slideshow-item{  
	max-width: 100%;
  height: 100%;
}


.slideshow-item img {
  padding: 0;
	width: auto;
	max-width: 85%;
	height: auto;
	max-height: 85vh;
	/*     preserve aspect ratio */
	object-fit: scale-down;
	box-shadow: -2px 9px 22px 10px rgba(0, 0, 0, 0.9);
	-webkit-box-shadow: -2px 9px 22px 10px rgba(0, 0, 0, 0.9);
	-moz-box-shadow: -2px 9px 22px 10px rgba(0, 0, 0, 0.9);
}



.album {
	/*    CONTROLS THE album image and nav buttons */
	display: flex;
  justify-content: space-between;
	align-items: center;
  gap: 5px;
  padding: 10px;
}

#iControl,
#picturecontrols,
.iControl {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 0;
	text-align: center;
	z-index: 16;
}

#iControl {
	flex: 0 0 5%;
}

#iControl a,
#iControl a:active,
#iControl a:link,
#iControl a:visited {
	padding: 2px 4px;
	background: rgba(21, 21, 21, .7);
	border-radius: 25px;
	cursor: pointer;
	border: none;
	font-size: 1.1rem;
}

#iControl a:hover,
#playpause_btn:hover,
.iControl img:hover
/* this is for if I show pause button (it isnt' working right now)*/

	{
	background-color: rgba(6, 4, 102, .8);
}

#iControl img,
#picturecontrols img,
.iControl img {
	padding: 3px;
	height: 20px;
	border-radius: 25px;
	box-shadow: none;
}

.iControl img {
	height: auto;
	max-height: 40px;
}





/*   IS THIS IN USE ???  */
.viewFullsize {
	/*   controls the view larger image div overlay  CHANGE POSITIONING PROPERTIES ADD FLEX? */
	display: inline-block;
	position: absolute;
	top: 55px;
	left: 30%;
	width: 40%;
	height: 85%;
	background: transparent;
	z-index: 5;
}

/* -- end slideshow/album controls -- */




/* CONTROLS THE COOL slideshow   */

#slide {
	/* the slide column formating.  the parent div   */
	width: auto;
	height: auto;
	margin: auto;
	padding: 10px;
	overflow: hidden;
	text-align: center;
	z-index: 9;
}

#slideContent {
	/* slide layout control.  it's the div holding the pictureholder */
	width: 100%;
	height: 100%;
	margin: auto;
	overflow: hidden;
	color: #3d0818;
	text-align: center;
	z-index: 10;
}

#pictureholder {
	/* div directly from the coolslide script. where the pictures are loaded into  */
	width: auto;
	max-width: 100%;
	height: auto;
	margin: auto;
	overflow: hidden;
	text-align: center;
	z-index: 11;
}

#pictureholder img {
	/* the actual slideshow images  */
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto 5px auto;
	border-radius: 10px;
}

#picture2 {
	visibility: hidden;
}

#iDescription,
#captionholder, #caption-div {
	/*  caption controls for album AND slideshow*/
	width: 100%;
	height: auto;
	margin-right: auto;
	margin-left: auto;
	border: 0;
	color: #ffffff;
	font-family: "Quicksand", sans-serif;
	z-index: 13;
	background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 6%, rgba(0, 0, 0, 0.6) 19%, rgba(0, 0, 0, 0.8) 49%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0.4) 94%, rgba(0, 0, 0, 0) 100%);
}

#iDescription>p,
#captionholder, #caption-div {
	margin: 0 auto;
	text-align: center;
	padding: 4px 20px;
	font-size: 1.7rem;
}

/* -- end slideshow captions -- */





/* Video page controls */
#main-video {
    max-height: 79vh; /* Ensures the video doesn't exceed the height of the container */
    object-fit: contain; /* Keeps the aspect ratio of the video while fitting within the size specified */
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
}
.thumb-wrapper {
  position: relative;
  display: inline-block;
  width: 85%;
  height: 100%;
}

.thumb-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  height: 100%;
  background: rgba(6, 4, 102, .6);
  opacity: 0;
  transition: opacity .5s ease-out;
}

.thumb-wrapper.active::after {
  opacity: 1;
}

/* Video thumbnails */
.videoThumbnails {
    display: flex;
  justify-content: space-around;
    gap: 10px;
}
/* Thumbnail styling */
img.vidThumb  {
  height: 60px;
    width: 40px;    
  margin: 0;
	padding: 0;
  box-shadow: none;
  border: 1px solid white;
}




/*  ****************************
    RIGHT SIDEBAR AND THUMBNAILS
    ****************************
*/

#thumbsHome {
	flex: 2;
	margin: 0;
	padding: 0;
	max-height: 99vh;
	overflow-x: hidden;
}

#thumbsHome ul {
	font-size: 2.2rem;
	text-align: center;
	padding: 15px 3px;
	background-color: rgba(21, 21, 21, 0.4);
}


#thumbsHome a {
	text-shadow: /* Upper-left dark grey color */
	-1px -1px 0 #DAD9D9, /* Bottom-right light grey color */
	1px 1px 0 #424242;
	font-size: 1.9rem;
}

#thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 15px 3px 25px 3px;
	background-color: rgba(21, 21, 21, 0.8);
}

.thumbnail,
.thumbnail_center {
	padding: 0;
	margin: 0;
	border: none;
	background-color: rgb(6, 4, 102);
	position: relative;
	overflow: hidden;
}

.thumbnail::after,
.thumbnail_center::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(6, 4, 102, 1);
	/* color overlay */
	transition: opacity 0.3s ease-in-out;
	/* transition on opacity instead of background */
	opacity: 0;
}

.thumbnail img,
.thumbnail_center img {
	max-width: 60px;
	/* This ensures that the image itself doesn't carry a background color */
	background-color: transparent;
	transition: transform 0.3s ease-in-out;
	border: solid WHITE 2px;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
}

.thumbnail:hover::after,
.thumbnail_center:hover::after {
	opacity: 0.6;
}

.thumbnail:hover img,
.thumbnail_center:hover img {
	transform: scale(1.4);
}

.thumbnail_center.selected {
	opacity: 0.5;
	border: solid rgb(6, 4, 102) 4px;
}

.thumbnail_center.selected:hover {}

/* Style the scrollbar itself (width, background) */
#thumbsHome::-webkit-scrollbar {
	width: 10px;
	background: #fff;
}

/*  Handle (thumb) of the scrollbar */
#thumbsHome::-webkit-scrollbar-thumb {
	background-color: rgb(6, 4, 102);
	border-radius: 25px;
}

/*  Handle (thumb) on hover */

#thumbsHome::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* -- end right sidebar and thumbnails -- */



/*    *************
      FOOTER STYLES
      *************
*/

footer {
	display: flex;
	justify-content: center;
	flex-shrink: 0;
	gap: 20px;
	margin-top: 5px;
	padding: 10px 20px;
	background-color: rgba(21, 21, 21, 0.4);
}

footer a:hover {
	background: rgba(6, 4, 102, .8);
}

footer section {
	flex: 1;
	text-align: center;
}

/* -- end footer styles -- */





/*    ***********************
       SMALLER SCREEN STYLES
      ***********************
*/

@media (max-width: 800px) {
	body {
		font-size: 12px;
	}
	a,
	a:active,
	a:hover,
	a:link,
	a:visited,
	.btn {
		font-size: 1.4rem;
		font-weight: 500;
	}
  
	.container {
		flex-direction: column;    
    height: auto;
	}
  #sideNavHome, .mainContentHome, #thumbsHome{
    flex: auto;
  }
	#popup {
		top: 25%;
		left: 50%;
		/* position at the center of the parent div */
		transform: translateX(-50%);
		width: 100vw;
	}
	.hotspot,
	.hotspot .icon {
		width: 18px;
		height: 18px;
		top: -6px;
		left: -6px;
	}
	.hotspot.open .content {
		padding-bottom: 20px;
		height: 90%;
		width: 95%;
		display: block;
	}
  

  #slideshow{
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding-bottom: 10px;
  }
  
  .slideshow-item {
    justify-content: flex-start;
    max-height: 100%;
  }
  
 .slideshow-item   img{	
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 74vh;	
    margin: auto;
    border: solid WHITE 2px;
    /*     preserve aspect ratio */
    object-fit: scale-down;
    box-shadow: -2px 9px 22px 10px rgba(0, 0, 0, 0.9);
    -webkit-box-shadow: -2px 9px 22px 10px rgba(0, 0, 0, 0.9);
    -moz-box-shadow: -2px 9px 22px 10px rgba(0, 0, 0, 0.9);
}
  .iControl img{
    height: auto;    
    max-height: 30px;	
  }
	#iDescription,
	#captionholder {
		font-size: 1em;
    padding-bottom: 10px;
	}
  #thumbsHome{
    flex:auto;   
  }
}


