/* STYLE SHEET  FOR  "INTIMACY WITH GOD"  CONTENT PAGE AND EPISODES */

/* General Styles  */

.soc_media_img {
	transition: width 0.3s;
	width: 90%; /* Make the image responsive */
	height: auto; /* Maintain aspect ratio */
}

a {
	color: #909;
	font-style: italic;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	}

.popout_panel a {
	line-height: 1.5rem;
	font-size: 0.9rem;
	margin-left: 0.1em;
	margin-right: 0.1em;
	font-style: italic;
	font-weight: bold;
	text-align:right;
	color: #909;
}

.cross_container {
	position:relative;
}

.cross_top_right{
  position: absolute;
  top: 0px; /* Adjust as needed */
  right: 0px; /* Adjust as needed */
}

.initially_blank {
	width: 90%;  /* Adjust the max width and height as needed */
	height: 40px;
	color: #171;
	line-height: 1.1rem;
	font-size: 0.9rem;
	margin-left: 0.1em;
	margin-right: 0.1em;
	font-style: italic;
	font-weight: bold;
}

.navbar a {
	display: block;
	color: #f8f;
	font-style: normal;
	font-weight:normal;
	text-align: center;
	padding: 1em 1em;
	text-decoration: none;
}

.navbar a:hover {
	background-color: #f8f;
	color: black;
}

.dynamic-menu a {
	display: block;
	color: #f8f;
	padding: 1em 1em;
	text-align: center;
	text-decoration: none;
	font-style: normal;
	font-weight:normal;

}

.dynamic-menu a:hover {
	background-color: #f8f;
	color: black;
}

.share_text a {
	cursor: pointer;
	color:#fff;
	background-color: #fff;
}

.footnote a {
	cursor: pointer;
	position: relative; /* otherwise z-index does not work */
	z-index: 7;
}

.above_overlay {
	position: relative; /* otherwise z-index does not work */
	z-index: 2;  /*overlay z = 1, slide in menus z = 4 */
}

/* Colour the button on the change_daily_study page */
.above_overlay_button {
	position: relative; /* otherwise z-index does not work */
	z-index: 2;  /*overlay z = 1, slide in menus z = 4 */
	border-color:#ca0bb9;
	border-width:3px;
	background-color: black; 
	font-size: 16px;
	color: #fa3bc9;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	margin: 5px;
}

.above_overlay_button:hover {
	background-color: #ca0bb9;
	color: black;
}

/* Styles for Phones */
@media only screen and (max-width: 640px) {

	html {
		font-size: 22px; /* Or another base font size of your choice */
	}
	
	body {
		font-family:  'Palatino','Garamond';
		font-size: 1rem;
		margin: 0em; 
		height: 100%;
/*		text-align: center; /* Center the content */
	}
	
	img {
		max-width: 100%;
		height: auto;
	/*	display: block; /* Ensure the image behaves like a block element */
		margin: 0 auto; /* Center the image within the container */
		border-radius: 0em;*/
	}

	h1 {
		font-family: 'Palatino','Garamond';
		font-size: 1.4rem;
		color: #333;
		text-align: center; /* Center the content */
		margin-top: 1em;
	}

	p {
		color: #00;
		line-height: 1.3;
		font-size: 1rem;
	}

	.share_text { /* Social media icons in here */
		background-color: #ffffff;
		top: 0px;
		height: 28px;
		width: 81%;
		margin-left: 50px;
		margin-right: 50px;
		margin-top: 0px;
		margin-bottom: 0px;
		font-family: 'Palatino','Garamond';
		font-size: 0.7rem;
		color: #333;
		line-height: 1.0;
		padding-left: 0px;
		padding-right: 0px;
		padding-top: 0px;
		padding-bottom: 0px;
		text-align: center; /* Center the content */
		position: fixed;
		z-index: 6;  /* Ensure the buttons appear z-above the overlay and navigation menu */
	}

	.share-icon {
		width: 25px;
		height: 25px;
		margin-right: 0px;
		margin-left: 0px;
	}

	.head {
		font-family: 'Palatino','Garamond';
		font-weight: bold;
		font-size: 1.1rem;
		color: #333;
		margin-top: 1.2em;
		text-align: center; /* Center the content */
	}
	
	.subhead {
		font-size: 0.7rem;
		text-align: center; /* Center the content */
		max-width: 85%;
		margin: 0 auto; /* Center the text_container */
	}

	.footnote {
		font-family:  'Arial';
/*		font-weight: bold; */
		font-size: 0.45rem;
		color: #000;
		line-height: 1.3;
		text-align: center; /* Center the content */
		margin-left: 2rem;
		margin-right:2rem;
		z-index: 6;
	}

	.bible {
		color: #171;
		line-height: 1.3;
		font-size: 1rem;
		margin-left: 1em;
		margin-right: 1em;
		font-style: italic;
		font-weight: bold;
	}

	.song {
		color: #911;
		line-height: 1.3;
		font-size: 1rem;
		margin-left: 1em;
		margin-right: 1em;
		font-style: italic;
		font-weight: bold;
	}

	.second_row {
		margin-left: 10px;
		margin-right: 10px;
		margin-top: 0px;
		margin-bottom: 0px;
		overflow: auto;
	}

	.text_container {
		max-width: 85%;
		margin: 0 auto; /* Center the text_container */
		 /*white-space: pre;      Stops consecutive spaces collapsing */
	}

	.top_left_sausage{ 
		display: block;
		top: 0px;
		left: 0px;
		height: 25px;
		width: 52px;
		margin-left: 0px;
		margin-top: 0px;
		padding-left: 0px;
		padding-top: 0px;
		position: fixed;
		z-index: 9;  /*Ensure the buttons appear z-above the overlay and navigation menu */
	}

	.top_right_sausage{ 
		display: block;
		top: 0px;
		right: 0px;
		height: 25px;
		width: 52px;
		margin-right: 0px;
		margin-top: 0px;
		padding-right: 0px;
		padding-top: 0px;
		position: fixed;
		z-index: 9;  /*Ensure the buttons appear z-above the overlay and navigation menu */
	}


.image_navigation_container {
    display: flex;               /* Use flexbox to align elements horizontally */
    align-items: center;         /* Vertically center the arrows and the container */
    justify-content: center;     /* Optional: Center the entire set of items horizontally */
    gap: 10px;                   /* Optional: Add space between the items */
}

.prev_arrow, .next_arrow {
    height: 25px;
    width: 20px;
}

.image_container {
    margin-top: 1em;
    margin-bottom: 1em;
    max-width: 60%;
    text-align: center;         /* Center text inside the image container */
}




	.navbar {
		overflow: hidden;
		background-color: #000; /* Set the background color to black */
		font-size: 0.9rem;
		color: white; /* Set the text color to white */
		position: fixed;
		top: 25px;
		height: 100%;
		width: 8em; /* Set the width of the vertical navbar */
		overflow-y: auto; /* Enable vertical scrolling */
		pointer-events: auto; /* Allow mouse events */
		/* Initial position off-screen */
		transform: translateX(-8em);
		transition: transform 0.3s ease-in-out;
		z-index: 8; /* Ensure the navigation menu appears above the overlay */
	}

	.navbar.visible {
		/* Bring the navigation menu back on-screen when the 'visible' class is added */
		transform: translateX(-0em);
	}

	.dynamic-menu {
		overflow: hidden;
		font-size: 0.9rem;
		color: #f8f;
		background-color: #000;
		position: fixed;
		width: 8em;
		top: 25px;
		height: 100%;
		right: 0;
		overflow-y: auto; /* Enable vertical scrolling */
		pointer-events: auto; /* Allow mouse events */
		z-index: 8; /* Ensure the dyn rh navigation menu appears above the overlay */
		/* Initial position off-screen */
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
	}

	.dynamic-menu.visible {
		/* Bring the dynamic menu back on-screen when the 'visible' class is added */
		transform: translateX(0);
	}

	.overlay {
		display: block;
		position: fixed;
		top: 25px;
		height: 100%;
		left: 0;
		width: 100%;
		background-color: rgba(0, 0, 50, 0.6); /* Semi-transparent black overlay */
		z-index: 7;
		opacity: 50;
		/* Initial position off-screen */
		transform: translateX(-40em);
	}

	.overlay.visible {
		/* Bring the grey overlay back on-screen when the 'visible' class is added */
		transform: translateX(-0em);
	}

	.popout_panel {
		display: none;
		position: fixed;
		z-index: 8;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 60%;
		max-height: 380px; /* Maximum height */
		height: auto; /* Adjust height based on content */
		background-color: #fff;
		border: 1px solid #ccc;
		padding: 20px;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	}

	.popout_panel_right_icon {
		position: relative;
		z-index: 4;
		display: block; /* or inline-block if you prefer */
		text-align:right;
		margin-left: 95%;
	}

	.popout_panel_scrollable_div {
		max-height: 290px; /* Maximum height */
		height: auto; /* Adjust height based on content */
		overflow-y: auto; /* Add a vertical scrollbar when content exceeds the maximum height */
		color: #171;
		border: 1px solid #ccc; /* Optional: Add border for better visibility */
		padding: 10px; /* Optional: Add padding for better readability */
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better appearance */
	}

	/* Specific style for <p> elements inside <div> with class "popout_panel_scrollable_div" */
	.popout_panel_scrollable_div p {
		line-height: 1.1rem;
		font-size: 0.9rem;
		margin-left: 0.1em;
		margin-right: 0.1em;
	}

}

/*===========================================================*/
/*===========================================================*/
/*===========================================================*/
/*===========================================================*/
/*===========================================================*/
/*===========================================================*/
/*===========================================================*/
/*===========================================================*/
/*===========================================================*/


/* Styles for Computers */
@media only screen and (min-width: 641px) {

	html {
		font-size: 24px; /* Or another base font size of your choice */
	}

	body {
		font-family: 'Palatino','Garamond' ;
		font-size: 1rem;
/*		margin: 1.25em; */
/* 		text-align: center; Center the content */
		height: 120%;
	}

	img {
		max-width: 100%;
		height: auto;
	/*	display: block; /* Ensure the image behaves like a block element */
		margin: 0 auto; /* Center the image within the container */
		border-radius: 0em;*/
	}

	p {
		color: #000;
		line-height: 1.3;
		font-size: 1rem;
	}

	h1 {
		font-family: 'Palatino','Garamond';
		font-size: 1.1rem;
		color: #333;
		margin-top: 0em;
		margin-bottom: 0.3em;
		text-align: center; /* Center the content */
		margin-left: 2rem;
		margin-right:2rem;
	}

	.share_text {
		font-family: 'Palatino','Garamond';
		font-size: 0.8rem;
		color: #000;
		margin-top: 0em;
		margin-bottom: 0em;
		text-align: right; /* Right justify the content */
		margin-left: 0rem;
		margin-right:8rem;
	}

	.share-icon {
		display: inline-block;
		width: 30px;
		height: 30px;
		margin-right: 0px;
		margin-left: 0px;
	}

	.head {
		font-family: 'Palatino','Garamond';
		font-size: 1.1rem;
		font-weight: bold;
		color: #333;
		margin-top: 0em;
		text-align: center; /* Center the content */
		margin-left: 2rem;
		margin-right:2rem;
	}

	.subhead {
		font-size: 0.7rem;
		text-align: center; /* Center the content */
		margin-left: 3rem;
		margin-right: 3rem;
	}

	.footnote {
		font-family:  'Arial';
/*		font-weight: bold; */
		font-size: 0.45rem;
		color: #00;
		line-height: 1.3;
		text-align: center; /* Center the content */
		margin-left: 2rem;
		margin-right:2rem;
	}

	.bible {
		color: #171;
		line-height: 1.3;
		font-size: 1rem;
		margin-left: 2em;
		margin-right: 2em;
		font-style: italic;
		font-weight: bold;
	}

	.song {
		color: #911;
		line-height: 1.3;
		font-size: 1rem;
		margin-left: 2em;
		margin-right: 2em;
		font-style: italic;
		font-weight: bold;
	}

	.top_left_sausage {
		display: none;
	}

	.top_right_sausage {
		display: none;
	}


	.second_row {
		margin-left: 4.5em;
		margin-right: 4.5em;
		margin-top: 0px;
		margin-bottom: 0px;
		overflow: auto;
	}
	
	.sausage_container {
		display: none;
	}

	.sausage {
		display:none;
	}

	.text_container {
		margin-left: 3rem;
		margin-right: 3rem;
		/* white-space: pre;      Stops consecutive spaces collapsing */
	}



.image_navigation_container {
    display: grid;
    grid-template-columns: auto 40% auto; /* Left arrow, center (image) at 40% width, right arrow */
    gap: 10px; /* Gap between arrows and image */
    align-items: center; /* Vertically center the content */
    justify-items: center; /* Ensure the arrows stay close to the center */
    width: 100%;
}

.prev_arrow, .next_arrow  {
	width: 20px; /* Set the size of the arrow */
    height: 30px;
 	}

.image_container {
    text-align: center; /* Center the text or image inside */
    padding-top: 10px;
    max-width: 100%; /* Ensures the image doesn't grow beyond the container */
}






	.navbar {
		overflow: hidden;
		font-size: 0.75rem;
		color: white;
		background-color: #000; /* Black */
		position: fixed;
		height: 100%;
		width: 8em; /* Vertical navbar width*/
		top: 0;
		left: 0;
		overflow-y: auto; /* Enable vertical scrolling */
		pointer-events: auto; /* Allow mouse events */
	}
	
	.dynamic-menu {
		overflow: hidden;
		font-size: 0.75rem;
		color: #f8f;
		background-color: #000;
		position: fixed;
		height: 100%;
		width: 8em;
		top: 0;
		right: 0;
		overflow-y: auto; /* Enable vertical scrolling */
		pointer-events: auto; /* Allow mouse events */
	}

	.navbar::-webkit-scrollbar,  .dynamic-menu::-webkit-scrollbar {/* WebKit (Chrome, Safari) */
		width: 6px;
	}

	.navbar::-webkit-scrollbar-thumb,  .dynamic-menu::-webkit-scrollbar-thumb {/* WebKit (Chrome, Safari) */
		background-color: #bbf;
	}

	.navbar::-webkit-scrollbar-track,  .dynamic-menu::-webkit-scrollbar-track {/* WebKit (Chrome, Safari) */
		background-color: #000;
	}

	@supports (scrollbar-color: auto) { /* Firefox scrollbar*/
		.navbar,  .dynamic-menu {
			scrollbar-color: #555 #000;
			scrollbar-width: thin; /* Adjust the width as needed */
		}
	}

	@supports (-ms-ime-align: auto) { /* Microsoft Edge scrollbar*/
		.navbar,  .dynamic-menu {
			scrollbar-color: #555 #000;
			scrollbar-width: thin; /* Adjust the scrollbar width as needed */
		}
	}

	.overlay {
		display: block;
		position: fixed;
		top: 0px;
		height: 100%;
		left: 0;
		width: 100%;
		background-color: rgba(0, 0, 50, 0.6); /* Semi-transparent black overlay */
		z-index: 7;
		opacity: 50;
		/* Initial position off-screen */
		transform: translateX(-100em);
	}

	.overlay.visible {
		/* Bring the grey overlay back on-screen when the 'visible' class is added */
		transform: translateX(-0em);
	}



	.popout_panel {
		display: none;
		position: fixed;
		z-index: 8;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 50%;
		max-height: 320px; /* Maximum height */
		height: auto; /* Adjust height based on content */
		background-color: #fff;
		border: 1px solid #ccc;
		padding: 20px;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	}

	.popout_panel_right_icon {
		position: relative;
		z-index: 4;
		display: block; /* or inline-block if you prefer */
		text-align:right;
		margin-left: 95%;
	}

	.popout_panel_scrollable_div {
		max-height: 230px; /* Maximum height */
		height: auto; /* Adjust height based on content */
		overflow-y: auto; /* Add a vertical scrollbar when content exceeds the maximum height */
		color: #171;
		border: 1px solid #ccc; /* Optional: Add border for better visibility */
		padding: 10px; /* Optional: Add padding for better readability */
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better appearance */
	}

	/* Style for <p> elements inside <div> with class "popout_panel_scrollable_div" */
	.popout_panel_scrollable_div p {
		line-height: 1.1rem;
		font-size: 0.9rem;
		margin-left: 0.1em;
		margin-right: 0.1em;
	}

}