@charset "utf-8";
/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=Smooch+Sans:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Sinhala:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gemunu+Libre:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yaldevi:wght@200..700&display=swap');

<!--
body {
      margin: 0;
      font-family: "Noto Serif Sinhala", "Roboto Condensed", serif;
      background-color: #f4f4f4;
    }
#topLine {
	 position: relative;
	left:0px;
	top:0px;
	width:100%;
	height:10px;
	/*background-color:#5C0000;*/
	z-index:1;
}
#mahawansayaLogo {
	 position: relative;
	left:0px;
	width:100%;
	height:150px;
	z-index:1;
	text-align:center;
	vertical-align:middle;
}
#mahawansaPradeepikawaLogo {
	 position: relative;
	left:0px;
	width:100%;
	height:100px;
	z-index:1;
	text-align:center;
	vertical-align:middle;
	background-color: #111111;
}
#menuLine {
	 position: relative;
	left:0px;;
	top: 150px;
	width:100%;
	height:35px;
	z-index:1;
	text-align:center;
	background-color:#996600;
}
.blackLine {
	 position: relative;
      width: 100%;
	  left:0px;
      display: flex;
      justify-content: center;
      gap: 40px; /* Space between divs */
	  z-index:10;
	  top:185px;
	  height:310px;
	  background-color:#000000;
	  padding-top:20px;
	  padding-bottom:20px;
}
.kingPic {
	  width: 100%;
	  height: 300px;
	  background: linear-gradient(180deg, #cccccc, #ffffff); /* Gradient background */
	  display: flex;
	  justify-content: center;
	  color: white;
	  vertical-align:text-top;
	  border-radius: 15px; /* Rounded top-left corner */
	  font-family: "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(12px, 4vw, 24px); /* Responsive font size */
	  font-size-adjust:inherit;
	  border-top:solid 5px #ffffff;
	  padding:10px;  
}
.circle-king {
  border-radius: 50%;
  width:100px;
}
.menuLine2 {
	  position: relative;
      width: 100%;
	  left:0px;
      display: flex;
      justify-content: center;
      gap: 2px; /* Space between divs */
	  z-index:10;
	  height:35px;
}
.kingsNo {
		padding:0 10px;
		background-color:#FFFFFF;
		font-family: "Smooch Sans", serif;
	  font-style: normal;
	  font-size: 34px; /* Responsive font size */
	  font-size-adjust:inherit;
	  position:absolute;
	  border-bottom-right-radius: 20px;
	  border-top-left-radius: 10px;
	  font-weight:bold;

}
.kingsNo:hover {
  background-color:#cccccc;
}
.dynastyKings {
		
		
		font-family: "Smooch Sans", serif;
	  font-style: normal;
	  font-size: 100px; /* Responsive font size */
	  font-size-adjust:inherit;
	  	   font-weight:bold;
	line-height: 80px;

}
.tab {
	  height: 35px;
	  background: linear-gradient(180deg, #540505, #270000); /* Gradient background */
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  color: white;
	  vertical-align:middle;
	  border-top-left-radius: 10px; /* Rounded top-left corner */
	  border-top-right-radius: 10px; /* Rounded top-right corner */
	  border-bottom-left-radius: 0; /* Ensure bottom corners are square */
	  border-bottom-right-radius: 0;
	  font-family: "Yaldevi", "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(12px, 4vw, 24px); /* Responsive font size */
	  font-size-adjust:inherit;
	  border-top:solid 5px #961515;
	  padding-left:15px;
	  padding-right:15px;
}
.tab:hover {
  transform: scale(1); /* Slightly enlarge on hover */
  background: linear-gradient(180deg, black, #6e0000); /* Reverse gradient on hover */
  border-top:solid 5px #ffea00;
}

.tab:active {
  border-top:solid 5px #961515;
  transform: scale(0.95); /* Slightly shrink on click */
}

.tab a {
  color: inherit; /* Inherit text color */
  text-decoration: none; /* Remove underline */
}
.tabOver {
	  height: 35px;
	  background: linear-gradient(180deg, orange, #6e0000); /* Reverse gradient on hover */
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  color: white;
	  vertical-align:middle;
	  border-top-left-radius: 10px; /* Rounded top-left corner */
	  border-top-right-radius: 10px; /* Rounded top-right corner */
	  border-bottom-left-radius: 0; /* Ensure bottom corners are square */
	  border-bottom-right-radius: 0;
	  font-family: "Yaldevi", "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(14px, 4vw, 20px); /* Responsive font size */
	  font-size-adjust:inherit;
	  border-top:solid 5px #ffea00;
	  padding-left:15px;
	  padding-right:15px;
}

.tab2 {
	  height: 35px;
	  background: linear-gradient(180deg, #333333, #000000); /* Gradient background */
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  color: white;
	  vertical-align:middle;
	  border-top-left-radius: 10px; /* Rounded top-left corner */
	  border-top-right-radius: 10px; /* Rounded top-right corner */
	  border-bottom-left-radius: 0; /* Ensure bottom corners are square */
	  border-bottom-right-radius: 0;
	  font-family: "Yaldevi", "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(14px, 4vw, 20px); /* Responsive font size */
	  font-size-adjust:inherit;
	  border-top:solid 5px #333333;
	  padding-left:15px;
	  padding-right:15px;
}

.gradient-button {
  background: linear-gradient(45deg, #111111, #666666, #333333);
  border: none;
  color: white;
  padding: 8px 24px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  outline: none;
  font-family: "Gemunu Libre", "Roboto Condensed", serif;
}

/* Hover Effect */
.gradient-button:hover {
  background: linear-gradient(45deg, #333333, black, #333333);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

/* Active (Click) Effect */
.gradient-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.styled-div {
  display: block; /* Ensure full width is clickable */
  background-color: white;
  color: black;
  border-radius: 8px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  text-decoration: none; /* Remove underline */
  border:solid 1px #CCCCCC;
  margin-bottom: 5px;
}

/* Ensure the text inside the div also changes color */
.styled-div .eraName div {
  transition: color 0.3s ease-in-out;
}

/* Hover effect */
.styled-div:hover {
  background-color: #ececec;
  color: maroon;
}

/* Ensure text inside the div inherits the hover color */
.styled-div:hover .eraName div {
  color: maroon;
}




a {
  color: inherit; /* Inherit text color */
  text-decoration: none; /* Remove underline */
}

.duration {
	  font-family: "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(10px, 4vw, 20px); /* Responsive font size */
	  font-size-adjust:inherit;
}
/*------------- ERA PAGE ----------------------------*/
.eraNumber {
  background: linear-gradient(45deg, maroon, red, #5d0000);
  border: none;
  color: white;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  outline: none;
   font-family: "Smooch Sans", serif;
   font-size:40px;
}
.eraDuration {
	  font-family: "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(30px, 4vw, 40px); /* Responsive font size */
	  font-size-adjust:inherit;
	  text-align:right;
	  width:30%;
}
.eraPageName {
      width: 70%;
      display: flex;
	  position:relative;
	  padding-left:10px;
	  font-family: "Roboto Condensed", serif;
	  font-style: normal;
	  font-size: clamp(30px, 4vw, 40px); /* Responsive font size */
 }
.eraPageNameBanner {
  width: 100%;
  height: 250px;
  position: absolute;
  padding-left: 10px;
  font-family: "Roboto Condensed", serif;
  font-style: normal;
  font-size: clamp(30px, 4vw, 40px); /* Responsive font size */
  text-align: center;
  color: #ffffff;

  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
}

 .eraSeporator {
      display: flex; 
	  justify-content: center; 
	  align-items: center; 
	  width: 50px; 
	  border-radius:10px; 		
	  font-family: "Roboto Condensed", serif;
	  font-style: normal;
	  font-size: clamp(20px, 4vw, 20px); /* Responsive font size */
 }
  .row1 {
      
	  border-radius:10px; 		
	  font-family: "Roboto Condensed", serif;
	  font-style: normal;
	  padding: 20px;
	  text-indent:inherit;
	  margin:10px;
	  background-color:#E9E9E9;
 }
 .row1:hover {
 		color:#990000;
	  
 }
 .kingdom {
      
	  border-radius:10px; 		
	  font-family: "Roboto Condensed", serif;
	  font-style: normal;
	  padding-bottom: 5px;
	  padding-top: 5px;
	  margin-top: 10px;
	  font-size: clamp(20px, 4vw, 20px); /* Responsive font size */
	  width:80%;
	  margin:auto;
      justify-content: center; /* Center the inner divs horizontally */
	  color:#FFFFFF;
 }
 /*------------- ERA PAGE END ----------------------------*/
/*-------------------era banner  -----------------------------------------*/
.banner {
  display: block;
  max-width: 100%;
  height: auto;        /* normal scaling on large screens */
  margin: 0 auto;      /* center horizontally */
  object-fit: cover;   /* crop if needed */
}

/* Mobile (up to 768px width) */
@media (max-width: 768px) {
  .banner {
    height: 200px;     /* fixed height */
    object-fit: cover; /* ensures it fills nicely */
    object-position: center; /* centers the image */
  }
}
/*-------------------era banner end-----------------------------------------*/

.kingsName {
	  font-family: "Yaldevi", "Roboto Condensed", serif;
	  font-style: normal;
	  font-size: clamp(12px, 4vw, 18px); /* Responsive font size */
	  font-size-adjust:inherit;
	  font-weight:400;
}
.galleryTitle {
	  font-style: normal;
	  font-size: clamp(14px, 4vw, 22px); /* Responsive font size */
	  font-size-adjust:inherit;
	  font-weight:400;
}
.title {
	  font-size: clamp(25px, 4vw, 30px); /* Responsive font size */
	   font-family: "Noto Serif Sinhala", "Roboto Condensed", serif;
	text-align: left;
    }
.title2 {
	  font-size: clamp(25px, 4vw, 30px); /* Responsive font size */
	   font-family: "Yaldevi", "Noto Serif Sinhala", "Roboto Condensed", serif;
	text-align: center;
	color: #620001;
	border-bottom: 3px solid #710001;
    }
.eraName {
      width: 95%;
      display: flex;
	  position:relative;
	  padding:10px;
 }
 .relations {
      width: 95%;
      display: flex;
	  position:relative;
	  padding:10px;
 }
 
.theBook {
      width: 30%; /* 40% for each inner div, together 80% */
	  margin-right:20px;
	  margin-bottom:20px;
	  border-radius: 15px; /* Rounded top-left corner */
}
.featuresImage {
      width: 100%; /* 40% for each inner div, together 80% */
	  margin-right:20px;
	  margin-bottom:20px;
	  border-radius: 15px; /* Rounded top-left corner */
}
/*-------------------the book -----------------------------------------*/

.main-div {
      width: 80%;
      display: flex;
	  margin:auto;
      justify-content: center; /* Center the inner divs horizontally */
      background-color: #f4f4f4;
	  position:relative;
	  margin-top:30px;
	  
 }
 .main-div2 {
      width: 80%;
      display: flex;
	  margin:auto;
      justify-content: center; /* Center the inner divs horizontally */
      background-color: #FFFFFF;
	  position:relative;
	  margin-top:20px;
	  margin-bottom:20px;
	  padding:20px;
	  border-radius: 25px;
	  border: solid 1px #CCCCCC;
	  
 }
 .kingFlex {
      width: 100%;
      display: flex;
	  margin:auto;
      justify-content: right; /* Center the inner divs horizontally */
	  position:relative;
	  
 }
 .bot-div {
      width: 100%;
	  margin:auto;
      background-color: #333333;
	  position:relative;
	  padding-top:30px;
	   font-size: clamp(14px, 4vw, 14px); /* Responsive font size */
	   font-family: "Roboto Condensed", serif;
	   color:#FFFFFF;
	   text-align:center;
	   padding-bottom:40px;
 }
 .bot-div a{
 	 color: inherit; /* Inherit text color */
  text-decoration: none; /* Remove underline */
 
 }
 .bot-div a:hover{
 	 color: inherit; /* Inherit text color */
     text-decoration: underline; /* Remove underline */
 
 }

    /* Inner divs */
.inner-div1 {
      width: 25%; /* 40% for each inner div, together 80% */
      margin: 0 10px; /* Add spacing between the divs */
      color: white;
      padding: 20px;
}
.inner-div2 {
      width: 100%; /* 40% for each inner div, together 80% */
      color: black;
      text-align:justify;
	  font-size: clamp(10px, 4vw, 15px); /* Responsive font size */
	
}
	
/*----------------------the book end ----------------------------------*/
/*-------------------the gray box -----------------------------------------*/

.gray-div {
      width: 100%;
      justify-content: center; /* Center the inner divs horizontally */
      background-color: #d9d9d9;
	  position:relative;
	  
 }
.container {
	margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 6 columns */
    gap: 10px; /* Space between divs */
	margin-bottom: 20px;
  }
   @media (max-width: 1900px) {
    .container {
      grid-template-columns: repeat(6, 1fr);
    }
  }
  @media (max-width: 1400px) {
    .container {
      grid-template-columns: repeat(5, 1fr);
    }
  }
  @media (max-width: 992px) {
    .container {
      grid-template-columns: repeat(4, 1fr);
    }
  }

 @media (max-width: 760px) {
    .container {
      grid-template-columns: repeat(3, 1fr);
		gap: 10px; /* Space between divs */
    }
  }

  /* Small screens (mobile) - 2 columns */
  @media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr; /* 1 column, full width */
  }
}

.container-era {
	margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* 6 columns */
    margin-bottom: 20px;
	gap: 10px; /* Space between divs */
  }
   @media (max-width: 1900px) {
    .container-era {
      grid-template-columns: repeat(6, 1fr);
		gap: 10px; /* Space between divs */
    }
  }
  @media (max-width: 1400px) {
    .container-era {
      grid-template-columns: repeat(5, 1fr);
		gap: 10px; /* Space between divs */
    }
  }
  @media (max-width: 992px) {
    .container-era {
      grid-template-columns: repeat(4, 1fr);
		gap: 20px; /* Space between divs */
    }
  }

 @media (max-width: 760px) {
    .container-era {
      grid-template-columns: repeat(3, 1fr);
		gap: 10px; /* Space between divs */
    }
  }

  /* Small screens (mobile) - 2 columns */
  @media (max-width: 600px) {
  .container-era {
     grid-template-columns: repeat(2, 1fr);
	  gap: 10px; /* Space between divs */
  }
}
 .containerGallery {
	margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 6 columns */
    gap: 10px; /* Space between divs */
	margin-bottom: 20px;
  }
   @media (max-width: 1900px) {
    .containerGallery {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  @media (max-width: 1400px) {
    .containerGallery {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 992px) {
    .containerGallery {
      grid-template-columns: repeat(2, 1fr);
    }
  }
.tab2 {
	  height: 30px;
	  background: linear-gradient(180deg, #333333, #000000); /* Gradient background */
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  color: white;
	  vertical-align:middle;
	  border-top-left-radius: 10px; /* Rounded top-left corner */
	  border-top-right-radius: 10px; /* Rounded top-right corner */
	  border-bottom-left-radius: 0; /* Ensure bottom corners are square */
	  border-bottom-right-radius: 0;
	  font-family: "Yaldevi", "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(14px, 4vw, 20px); /* Responsive font size */
	  font-size-adjust:inherit;
	  border-top:solid 5px #333333;
	  padding-left:15px;
	  padding-right:15px;
}

  /* Small screens (mobile) - 2 columns */
  @media (max-width: 600px) {
    .containerGallery {
      grid-template-columns: repeat(1, 1fr);
    }
	  
  }
.gray-div-inner {
      width: 80%;
	  margin:auto;
	  display: flex;
      justify-content: center; /* Center the inner divs horizontally */
	  
 }
    /* Inner divs */
.gray-div1 {
      width: 100%; /* 40% for each inner div, together 80% */
      margin: 20px; /* Add spacing between the divs */
      padding: 20px;
	  background-color:#FFFFFF;
	  border-radius: 15px; /* Rounded top-left corner */
	  color: black;
	  font-size: clamp(10px, 4vw, 20px); /* Responsive font size */
	   font-family: "Noto Serif Sinhala", "Roboto Condensed", serif;
}
.relations-div1 {
      width: 100%; /* 40% for each inner div, together 80% */
      margin: 20px; /* Add spacing between the divs */
      padding: 20px;
	  background-color:#FFFFFF;
	  border-radius: 15px; /* Rounded top-left corner */
	  color: black;
	  font-size: clamp(10px, 4vw, 20px); /* Responsive font size */
	   font-family: "Noto Serif Sinhala", "Roboto Condensed", serif;
}

	
/*----------------------gray box end ----------------------------------*/
/*-------------------- DURATION BAR -----------------------------------*/



.top-bar {
  border-bottom: solid 3px #FFFFFF;
}

.bottom-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #CCCC00;
  width: 100%;
  padding: 5px;
}


.slider-container2 {
  position: relative;
  width: 100%;
  overflow: hidden; /* Hide overflow */
    background-color: #000000;

}

.slider-wrapper {
  overflow: hidden;
  width: 80%;
  padding-left:50px; 
padding-right:50px;
margin:auto;
}
.slider2 {
  display: flex;
  gap: 3px; /* Space between slides */
  justify-content: left;
  transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.slide2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align content at the bottom */
  align-items: center;
  border-radius: 5px;
  padding: 2px;
  color:#FFFFFF;
}
/*.slider2 {
  display: flex;
  gap: 20px; 
  transition: transform 0.5s ease-in-out;
}

.slide2 {
  min-width: 185px; 
  background-color: red;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
}*/

.top-bar {
  border-bottom: solid 3px #000000;
}

.bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background-color: yellow;
  padding: 5px;
}
.youtube {
  width:330px;
  height:200px;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev2 {
  left: 10px;
}

.next2 {
  right: 10px;
}

.readmore a {
  font-family: "Yaldevi", "Roboto Condensed", serif;
  color:#CC0000;
}
.readmore a:hover {
  font-family: "Yaldevi", "Roboto Condensed", serif;
  color:#660000;
  text-decoration:underline;
}
/*--------------------------DURATION BAR END -----------------------*/
/*---------------------- King's Slide ---------------------------------*/

.slider-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
  overflow: hidden;
  border-top: solid 5px #6e0000;
}

.slider-container-white {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  left: 0px;
  background-color: #ffffff;
  overflow: hidden;
}
.slider-container-white1 {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #ffffff; /* White background */
  padding: 20px 0;
}

.slider {
  display: flex;
  gap: 10px; /* Space between slides */
  justify-content: left;
  transition: transform 0.5s ease-in-out;
  padding: 30px 70px; /* Optional padding around the slides */
}


.slide {
  flex: 0 0 auto;
  width: 185px; /* Default width */
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5px;
  border:solid 1px #ffffff;
}
.slide:hover {
  background: #ebebeb;
  border:solid 1px #999999;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.slide-yellow {
  flex: 0 0 auto;
  width: 185px; /* Default width */
  text-align: center;
  background: #D29104;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5px;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.slide p {
  margin: 10px 0;
  font-size: 1rem;
}
.slideGallery {
  flex: 0 0 auto;
  width: 350px; /* Default width */
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border:solid 1px #ffffff;
}
.slideGallery:hover {
  background: #ebebeb;
  border:solid 1px #999999;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.slideGallery-yellow {
  flex: 0 0 auto;
  width: 350px; /* Default width */
  text-align: center;
  background: #D29104;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5px;
}

.slideGallery img {
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.slideGallery p {
  margin: 10px 0;
  font-size: 1rem;
}

/* Slider Wrapper */
.slider1 {
  display: flex;
  gap: 20px; /* Space between slides */
  justify-content: center;
  transition: transform 0.5s ease-in-out;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  font-family: "Roboto Condensed", serif;
}

/* Individual Slide */
.slide1 {
  flex: 0 0 auto;
  width: 185px; /* Default width for larger screens */
  text-align:left;
  background: #f4f4f4;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  transition: all 0.3s ease-in-out;
  margin-bottom:20px;
}


.slide-era {
  flex: 0 0 auto;
  width: 185px; /* Default width */
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5px;
  border:solid 1px #ffffff;
}
.slide-era:hover {
  background: #ebebeb;
  border:solid 1px #999999;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.slide-era img {
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.slide p {
  margin: 10px 0;
  font-size: 1rem;
}
.slide1 img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.slide1 p {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom:10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 10px;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.arrow.prev {
  left: 10px;
}

.arrow.next {
  right: 10px;
}
/*---------------------- TOOL TIP--------------------------*/

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip img {
  width: 30px;
  border-radius: 8px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 40px; /* Tooltip appears above */
  left: 40px;;
  transform: translateX(0px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  font-size: clamp(10px, 4vw, 20px); /* Responsive font size */
}

.tooltip .tooltiptext img {
  width: 80px;
  height: auto;
  border-radius: 5px;
  margin-bottom: 5px;
}

.tooltip .tooltiptext::after {
  position: absolute;
  top: 0px;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/*----------------------- TOOL TIP END -----------------------------------*/

/* Responsive adjustments */
@media (max-width: 1024px) {
  .slider-wrapper {
  	overflow: hidden;
  	width: 80%;
  	padding-left:65px; 
	padding-right:65px;
	margin:auto;
	}
  .slide {
    width: 150px; /* Smaller slide width on medium devices */
  }
   .slider1 {
    align-items: center; /* Center align them */
  }
  .slider {
  display: flex;
  gap: 5px; /* Space between slides */
  justify-content: left;
  transition: transform 0.5s ease-in-out;
  padding: 30px 50px; /* Optional padding around the slides */
}

  .slide1 {
    width: 100%; /* Each slide takes full width */
    max-width: 40%; /* Keeps some margin on the sides */
  }
  .slide-era {
    width: 100%; /* Each slide takes full width */
    max-width: 100%; /* Keeps some margin on the sides */
	margin-top:20px;
	margin-bottom:20px;
  }
  .gray-div-inner {
  	width: 90%;
	margin:auto;
    flex-direction: column; /* Stack divs vertically */
    align-items: center; /* Center divs horizontally when stacked */
  }
  
  .main-div {
    /* flex-direction: column;  Stack divs vertically */
	 width: 80%;
	  margin:auto;
      justify-content: center; /* Center the inner divs horizontally */
      background-color: #f4f4f4;
	  position:relative;
 }
 .kingFlex {
 		flex-direction: column;
      width: 100%;
	  margin:auto;
      justify-content: right; /* Center the inner divs horizontally */
	  position:relative;
	  padding-top:10px;
	  
 }
 /*------------- ERA PAGE ----------------------------*/
.slider-wrapper {
  	overflow: hidden;
  	width: 100%;
  	padding-left:65px; 
	padding-right:65px;
	margin:auto;
	}
.eraNumber {
   margin-top:20px;
   margin-bottom:10px;
   margin-right:20px;
   background-color:#FF6600;
   font-size:40px;
}
.eraDuration {
	  font-family: "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(25px, 4vw, 25px); /* Responsive font size */
	  font-size-adjust:inherit;
	  text-align:left;
	  padding-left:10px;
	  width:100%;
}
.eraPageName {
      width: 100%;
	  position:relative;
	  font-family: "Roboto Condensed", serif;
	  font-style: normal;
	  font-size: clamp(25px, 4vw, 25px); /* Responsive font size */
 }
  .theBook {
      width: 100%; /* 40% for each inner div, together 80% */
	  border-radius: 15px; /* Rounded top-left corner */
	  margin-top:20px;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 5px;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev2 {
  left: 10px;
}

.next2 {
  right: 10px;
}
.kingsNo {
		padding:0 5px;
		background-color:#FFFFFF;
		font-family: "Smooch Sans", serif;
	  font-style: normal;
	  font-size: 24px; /* Responsive font size */
	  font-size-adjust:inherit;
	  position:absolute;
	  border-bottom-right-radius: 10px;
	   border-top-left-radius: 10px;
	  font-weight:bold;

}
.kingsNo:hover {
  background: #ccc;
}
.gray-div1 {
      width: 100%; /* 40% for each inner div, together 80% */
      margin: 20px; /* Add spacing between the divs */
      padding: 20px;
	  background-color:#FFFFFF;
	  border-radius: 15px; /* Rounded top-left corner */
	  color: black;
	  font-size: clamp(10px, 4vw, 17px); /* Responsive font size */
	   font-family: "Noto Serif Sinhala", "Roboto Condensed", serif;
}
.youtube {
  width:100%;
  height:100%;
}
	.slideGallery {
  flex: 0 0 auto;
  width: 250px; /* Default width */
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border:solid 1px #ffffff;
}
 /*------------- ERA PAGE END ----------------------------*/
}

@media (max-width: 768px) {
 .slider-wrapper {
  	overflow: hidden;
  	width: 100%;
  	padding-left:65px; 
	padding-right:65px;
	margin:auto;
	}
  .slide {
    width: 120px; /* Smaller slide width on small devices */
  }
  .slide p {
    font-size: 0.9rem; /* Adjust font size */
  }
  .slider1 {
    flex-direction: column; /* Stack slides vertically */
    align-items: center; /* Center align them */
  }

  .slide1 {
    width: 100%; /* Each slide takes full width */
    max-width: 80%; /* Keeps some margin on the sides */
  }
  .slide-era {
    width: 100%; /* Each slide takes full width */
    max-width: 80%; /* Keeps some margin on the sides */
  }
  .gray-div {
    flex-direction: column; /* Stack divs vertically */
    align-items: center; /* Center divs horizontally when stacked */
  }
 .gray-div-inner {
    flex-direction: column; /* Stack divs vertically */
    align-items: center; /* Center divs horizontally when stacked */
  }

  .gray-div1 {
    width: 80%; /* Adjust width for better appearance on mobile */
  }
   .relations-div1 {
    width: 80%; /* Adjust width for better appearance on mobile */
  }
  .theBook {
      width: 100%; /* 40% for each inner div, together 80% */
	  border-radius: 15px; /* Rounded top-left corner */
	  margin-top:20px;
}
.main-div {
     /*flex-direction: column;  Stack divs vertically */
	 width: 80%;
	  margin:auto;
      justify-content: center; /* Center the inner divs horizontally */
      background-color: #f4f4f4;
	  position:relative;
 }
  /*------------- ERA PAGE ----------------------------*/
.eraNumber {
   margin-top:20px;
   margin-bottom:10px;
   margin-right:20px;
}
.eraDuration {
	  font-family: "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(25px, 4vw, 25px); /* Responsive font size */
	  font-size-adjust:inherit;
	  text-align:left;
	  padding-left:10px;
	  width:100%;
}
.eraPageName {
      width: 100%;
	  position:relative;
	  font-family: "Roboto Condensed", serif;
	  font-style: normal;
	  font-size: clamp(25px, 4vw, 25px); /* Responsive font size */
 }
 .youtube {
  width:100%;
  height:100%;
}
	.slideGallery {
  flex: 0 0 auto;
  width: 250px; /* Default width */
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border:solid 1px #ffffff;
}
 /*------------- ERA PAGE END ----------------------------*/

}

@media (max-width: 480px) {
  .slider-wrapper {
  	overflow: hidden;
  	width: 100%;
  	padding-left:65px; 
	padding-right:65px;
	margin:auto;
	}
  .slide {
    width: 120px; /* Smallest slide width on extra small devices */
  }
  
  .slide p {
    font-size: 0.8rem; /* Adjust font size */
  }
   .slider1 {
    flex-direction: column; /* Stack slides vertically */
    align-items: center; /* Center align them */
  }

  .slide1 {
    width: 100%; /* Each slide takes full width */
    max-width: 80%; /* Keeps some margin on the sides */
  }
  .slide-era {
    width: 100%; /* Each slide takes full width */
    max-width: 95%; /* Keeps some margin on the sides */
  }
  .gray-div-inner {
    flex-direction: column; /* Stack divs vertically */
    align-items: center; /* Center divs horizontally when stacked */
  }
  .main-div {
    /* flex-direction: column;  Stack divs vertically */
	 width: 80%;
	  margin:auto;
      justify-content: center; /* Center the inner divs horizontally */
      background-color: #f4f4f4;
	  position:relative;
 }
  /*------------- ERA PAGE ----------------------------*/
.eraNumber {
   margin-top:20px;
   margin-bottom:10px;
    background-color:#FF6600;
}
.eraDuration {
	  font-family: "Smooch Sans", serif;
	  font-style: normal;
	  font-size: clamp(25px, 4vw, 25px); /* Responsive font size */
	  font-size-adjust:inherit;
	  text-align:left;
	  padding-left:10px;
	  width:100%;
}
.eraPageName {
      width: 100%;
	  position:relative;
	  font-family: "Roboto Condensed", serif;
	  font-style: normal;
	  font-size: clamp(25px, 4vw, 25px); /* Responsive font size */
 }
  .theBook {
      width: 100%; /* 40% for each inner div, together 80% */
	  border-radius: 15px; /* Rounded top-left corner */
	  margin-top:20px;
}

 /*------------- ERA PAGE END ----------------------------*/
}

/*---------------------- King's Slide ---------------------------------*/
