body {
	margin: 0;
	font-family: Arial, sans-serif;
	
	
}
#mainlayout{
	display: grid;
  min-height: 100vh;
  grid-template-areas:
    "sidenav topnav toprightimage"
	"sidenav body rightside"
	"sidenav body rightside";
	
  grid-template-rows: auto 3fr 3fr;
  grid-template-columns: 1fr 5fr 1fr;/**/
--topnavheight: 100px;
--topnavborderpx: 1px;
}
#websiteName{
	font-family: cursive;
	font-size: 1.6em;
	color: #4a0a77;
}
.navbar-content{
	position: sticky;
	top: 0;
	height: 100vh;
	
	
	
}

.navbar {
	grid-area: sidenav;
	/*background-color: #333;
	background-color: #2d2330;
	background-color: #301c36;
	background-color: #5a3465;
	background-color: #9757a8;*/
	border-right: 1px solid;
	background-color: #f2f2f2;
	top: 0;
	left: 0;
	
	flex-direction: column;
	align-items: center; /* Center items horizontally */
}

.navbar-title {
	color: white;
	padding: 10px;
}

.navbar-logo {
	padding: 5px 5px;
}

.navbar-logo img {
	width: 100%;
	cursor: pointer;
	border-radius: 10px;
}

.navbar-logo:hover {
	background-color: #cccccc;
}

.navbar-dropdown {
	/*width: 100%;*/
	display: none;
	
	padding: 5px 5px;
}

.navbar-dropdown img {
	width: 100%;
	/*display: block;
	text-decoration: none;
	margin-bottom: 5px;*/
	cursor: pointer;
	border-radius: 10px;
}

.navbar-dropdown img:hover {
	background-color: #aaa;
}
/*
.navbar-about{
	position: absolute;
	bottom: 80px;
	
	
}
.navbar-login {
	position: absolute;
	bottom: 20px;
	
}*/

.navbar-about,
.navbar-login {
	position: absolute;
	bottom: 0;
	left: 50%; /* Center horizontally */
	transform: translateX(-50%); /* Adjust horizontally to center */
	text-align: center;
	width: 100%; /* Ensure buttons span the entire width of the parent */
	/*margin: 0 auto;  Center the content horizontally */
}
.navbar-login {
  bottom: 40px; /* Adjust the vertical position of the login button */
}
.navbar-about button,
.navbar-login button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin: 8px 4px;
    letter-spacing: 0.5px;
}

.navbar-about button {
    background: linear-gradient(to bottom right, #ffd137, #ffb300);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 209, 55, 0.4);
    border: 1px solid #ffc107;
}

.navbar-login button {
    background: linear-gradient(to bottom right, #60ccff, #39bfff);
    color: #000;
    box-shadow: 0 4px 15px rgba(96, 204, 255, 0.4);
    border: 1px solid #4dc4ff;
}

.navbar-about button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 209, 55, 0.6);
    background: linear-gradient(to bottom right, #ffe066, #ffc107);
}

.navbar-login button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 204, 255, 0.6);
    background: linear-gradient(to bottom right, #7fd6ff, #4dc4ff);
}

.navbar-about button:active,
.navbar-login button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/*
topnav topnav topnav
sidenav body about
sidenav body videos
*/
.navbar-about button:hover
 {
	background-color: #ffda60;
}
.navbar-login button:hover{
	background-color: #7fd6ff;
}
 /* Fullscreen popup */
.popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
	z-index: 9999; /* Ensure popup appears above other content */
}

.popup-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	padding: 20px;
	border-radius: 5px;
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
}
.top-navbar {
	position: sticky;
	grid-area: topnav;
	background-color: white;
	border-bottom: var(--topnavborderpx) solid #ccc;  /*Add a bottom border */
	border-right: 1px solid #ccc;
	top: 0;
	display: flex;
	align-items: center; /* Center items vertically */
	/*justify-content: space-between;  Distribute items evenly along the horizontal axis */
	justify-content: left; /* Distribute items evenly along the horizontal axis */
	padding: 0px 0px 0px 0; /* Add padding to the left and right */
	height: var(--topnavheight) - var(--topnavborderpx) ;
	z-index: 200;
}

.topic-button{
	/*color: #333;  Set button text color 
	padding: 10px 20px;
	border-radius: 5px;
	background-color: #f0f0f0;  Set button background color 
	cursor: pointer;*/
	
	cursor: pointer;
	padding: 12px 28px;
	
    /*background-color: #7602cc;*/
	
	background: linear-gradient(to bottom right, #deb3fe, #d199ff);
	color: #4a0a77;
    border: 1px solid #c785ff;
    margin-left: 3px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(222, 179, 254, 0.4);
    transition: all 0.2s ease;
    font-weight: 600;
    margin-top: 4px;
	font-family: Arial, sans-serif;
}
.navbar-image {
    overflow: hidden;
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
	max-height:  var(--topnavheight);

	z-index: 100;
	position: sticky;
    top: 0;
    overflow: hidden;
	
}

.navbar-image-indiv {
    max-width: 100%; /* Set maximum width */
    max-height: 100%; /* Set maximum height */
    overflow: hidden;
    /*border: 1px solid black;  Add a border for visualization */
}

.navbar-image img {
    max-width: auto; /* Limit the width of the image */
    max-height:  var(--topnavheight); /* Limit the height of the image */
    height: auto; /* Allow the height to adjust automatically */
}
.right-section-content{
	
	position: sticky;
	display: flex;
	flex-direction: column;
	top: var(--topnavheight);
	min-height: calc(100vh - var(--topnavheight) );/*Had it minus this twice. Why? - var(--topnavheight)*/
}
.right-section {
	grid-area: rightside;
	/*border-left: 1px solid #ccc;
	min-height: 80%;*/
	
}

.about-section,
.stories-section {
	/*flex-grow: 1;*/
	
	/*flex: 1;  Ensure both sections take up equal space */
	padding: 20px; /* Add padding to the sections */
	margin: 20px;
	/*background-color: green;*/
	/*border: 2px solid #8b2fc9;  Purple border */
	border: 1px solid #ccc;
	border-radius: 10px; /* Rounded corners */
	/*background-color: #f0f0f0;  Light gray background */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}
.stories-section{
	
	/*grid-area: videos;*/
}
.about-section{
	/*grid-area: about;*/
	
}
.about-section h2{
	margin: 0;
}

.section-divider {
	border-top: 1px solid #ccc; /* Add a horizontal rule between sections */
	margin: 0 20px; /* Add margin to space out the divider */
}
.section-divider-left {
	border-top: 1px solid #ccc; /* Add a horizontal rule on the left side */
	
	top: 10%; /* Align with the top navbar */
	left: 10%; /* Position it to the right of the left navbar */
	height: 90%; /* Take up 90% of the remaining screen space */
	width: 1px; /* Set width for the divider */
	margin-left: -1px; /* Adjust to prevent double borders */
}
.middle-section {
	grid-area: body;
	display: flex;
	flex-direction: column;
	padding: 40px 20px;
	align-items: center;
	min-height: fit-content;
	overflow: hidden;
	background-color: #fafafa;
	position: sticky;

}
a{
	display: block;
}

.image-link img {
	max-width: 100%; /* Maximum width of the image (relative to the container) */
	max-height: 100%; /* Maximum height of the image (relative to the container) */
	display: block; /* Ensure the image behaves as a block element */
}
.active-topic {
    background: linear-gradient(to bottom right, #7602cc, #6001a5);
    color: white;
    border: 1px solid #6001a5;
    box-shadow: 0 4px 15px rgba(118, 2, 204, 0.4);
}

.lesson-divs{
	padding: 5px 5px;
	/* background-color: green; */
	margin-bottom: 10px; /* Add margin between images */
	margin-top: 10px; /* Add margin between images */
	width: 10%;
	height: 20%;
	display: block;
	overflow: hidden;
}

.lesson-main-div {
    width: 60%;
    min-height: 120px;
    display: flex;
    position: relative;
    margin-bottom: 25px;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e5e5e5;
}

.lesson-left-div {
    width: 30%;
    background: #7602cc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-right: 2px solid #6001a5;
    color: white;          /* Add this to ensure all text is white */
}

.lesson-left-div span {
    color: white !important;  /* Force white color */
    font-weight: 700;
    font-size: 1.2em;
    text-align: center;
    line-height: 1.4;
    padding: 15px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

/* Also target any other potential text elements */
.lesson-left-div p,
.lesson-left-div div {
    color: white;
}

.lesson-mid-div {
    display: none;
}

.lesson-right-div {
    width: 70%;
    background-color: white;
    min-height: 120px;
    display: flex;
    align-items: center;
    padding: 20px;
    font-size: 0.95em;
    color: #4b4b4b;
    line-height: 1.6;
    position: relative;
    border: none;
}

/* Hover states */
.lesson-main-div:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(118, 2, 204, 0.2);
    border-color: #7602cc;
}

.lesson-main-div:hover .lesson-left-div {
    background: #6001a5;  /* Darker purple on hover */
}

/* Active state */
.lesson-main-div:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(118, 2, 204, 0.2);
}

/* Add a completion status indicator (optional) */
.lesson-status {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e0e0e0;
}

.lesson-completed .lesson-status {
	background: #7602cc;
}

/* Add responsive adjustments */
@media (max-width: 1200px) {
	.lesson-main-div {
		width: 75%;
	}
}

@media (max-width: 768px) {
	.lesson-main-div {
		width: 90%;
		flex-direction: column;
		min-height: auto;
	}

	.lesson-left-div {
		width: 100%;
		padding: 15px;
	}

	.lesson-mid-div {
		width: 100%;
		height: 4px;
	}

	.lesson-right-div {
		width: 100%;
		padding: 15px;
	}
}

.topSectionMobile{
	display: none;
}
.topicSelectionSectionMobile{
	display: none;
}
@media only screen and (min-width: 600px) {
	.mobileContainer {
		display: none;
	}
}
@media only screen and (max-width: 600px) {
  body {
    
	
	
	
  }
  .navbar{
	  display: none;
  }
  .top-navbar{
	  display: none;
  }
  .navbar-image{
	  display: none;
  }
  .middle-section{
	  display: none;
  }
  .right-section{
	  display: none;
  }
  .right-section-content{
	  display: none;
  }
  
  #mainlayout{
	background-color: none;
	grid-template-areas:
    "topmobile"
	"toptopicmobile"
	"middlemobile"
	"bottommobile";
	
  grid-template-rows: auto;
  grid-template-columns: auto ;/**/
  }
	body, html {
				margin: 0;
				padding: 0;
				height: 100%;
			}
	.mobileContainer {
		display: flex;
		flex-direction: column;
		min-height: 100vh; /* Full viewport height */
	}
	  .topSectionMobile{
	  background-color: none;
	 grid-area: topmobile;
	display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto; /* Change from 10vh to auto */
    min-height: 60px; /* Minimum height instead of percentage */
    padding: 10px;
    box-shadow: 0 4px 2px -2px gray;
	
	}
	
	.leftSideTopMobile {
		flex: 1;
		
	}

	.leftSideTopMobile p {
		color: #4f006b;
		font-size: 1.5em;
		margin: 0;
	}

	.rightSideTopMobile {
		flex: 1;
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}

	.rightSideTopMobile select {
		padding: 10px;
    font-size: 1em;
    margin-right: 10px;
	}
	.topicSelectionSectionMobile {
		grid-area: toptopicmobile;
		height: auto; /* Change from 10vh to auto */
		min-height: 50px;
		padding: 10px;
		background-color: #e8e1e8;
		display: flex;
		justify-content: left;
		align-items: center;
		margin-top: 2px; /* Add margin for spacing */
	}

	.topicSelectionSectionMobile select {
		width: 150px;
		height: 30px;
	}

	.topicSelectionSectionMobile label {
		margin-right: 10px;
	}	

	#dropdownImage {
		max-height: 8vh; /* Adjust the height to fit within the section */
		border: 0px solid #ccc;
		border-radius: 8px;
	}
  
  .middle-section-mobile {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    background-color: #fafafa;
    overflow-y: auto; /* Allow scrolling if content is too long */
  }
}

.lesson-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #7602cc;
    transition: width 0.3s ease;
}

.lesson-status {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
}

.lesson-completed .lesson-status {
    background: #7602cc;
}


.mobile-logo {
      font-size: 26px;
      font-weight: bold;
    }

.mobile-language-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-flag-icon {
      width: 28px;
      height: 20px;
      border-radius: 2px;
    }

.mobile-language-selector {
  background: white;
  color: #333;
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
}

.mobile-header {
  background: linear-gradient(90deg, #7E57C2, #512DA8);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobileContainer{
	background-color: #e6e6e6;
}