:root {
  --primary-color: #06757E;
  --primary-color-darker: #05646c;
  --secondary-color: #F45B69;
  --tertiary-color: #fed766;
  --black: #272727;
  --off-white: #eff1f3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  main {
    padding: 20px;
    padding-top: 100px; /* Shifted content down by the height of the navbar */
    max-width: 1200px;
    margin: 0 auto; /* Centers the content */
    flex: 1;
  }

  main.wrapper {
    text-align: center; /* Centers the child elements */
    padding: 20px;
    padding-top: 53px; /* Shifted content down by the height of the navbar */
    max-width: 1200px;
    margin: 0 auto; /* Centers the content */
  }

  .brand-font {
    font-family: 'Sigmar', cursive !important;
  }
  

  .clearfix::after {
    content: "";
    display: table;
    clear: both;
  }

  body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--black); 
    color: #fff;

 /*   background-color: #f5f5f5; */
  /*  color: #333; */
  }

  .game-body {
    font-family: Arial, sans-serif;
    background-color: var(--black);
    margin: 0;
    /* float: left; (Removed) */
    /* width: 65%; (Removed) */
    box-sizing: border-box; /* Ensure the padding and margin do not affect the width */
  }
  
  
  .category-section {
    position: relative;
    margin-bottom: 20px;
  }
  
/* header styling */

h1 {
  font-size: x-large;
  font-weight: 700;
  margin-bottom: 1rem;
}

.category-content > h1, .hp-seo-content > h1 {
  font-size: x-large;
}

  h2 {
    margin-top: 20px;
    margin-bottom: 5px;
  }

  h3 {
    margin-top: 20px;
    margin-bottom: 5px;
  }

  .category-content > p, .hp-seo-content > p, #long-desc > p {
    margin-top: 20px;
    margin-bottom: 5px;
  }

  /* Navigation bar style */

  .header-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Update the existing header class */
  header {
    background-color: var(--primary-color);
    height: 80px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
  }
  
  .logo a {
    color: white;
    font-size: 26px;
    font-weight: bold;
    margin-left: 20px;
    text-decoration: none;
  }
  
  nav {
    margin-left: auto;
   
  }
  
  .hamburger-menu {
    display: none;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
  }
  
  .nav-links li {
    position: relative;
  }
  
  .nav-links li a {
    color: white;
    display: block;
    font-size: 18px;
    padding: 0 20px;
    text-decoration: none;
    line-height: 80px;
  }

  .nav-links li ul a {
    line-height: 26px;
  }
  
  .nav-links li:hover {
    background-color: #111;
  }
  
  .nav-links ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    width: 200px;
    padding: 0;
    list-style: none;
    display: none;
  }
  
  .nav-links ul li {
    text-align: left;
  }
  
  .nav-links ul li a {
    color: white;
    display: block;
    padding: 10px 20px;
    text-decoration: none;
  }
  
  .nav-links li:hover > ul {
    display: block;
  }

  .hamburger-menu i:last-child {
    display: none;
  }
  
  .nav-links.show ~ .hamburger-menu i:first-child {
    display: none;
  }
  
  .nav-links.show ~ .hamburger-menu i:last-child {
    display: block;
  }

  .hamburger-menu i:last-child {
    display: none;
  }
  
  .hamburger-menu.close i:first-child {
    display: none;
  }
  
  .hamburger-menu.close i:last-child {
    display: block;
  }
  

  .hp-seo-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  

  /*  Styling of the breadcrumbs */

  .breadcrumb{
    max-width: 1200px;
    padding-top: 102px;
    margin: 0 auto;
    color: #fff;
    font-size: small;
  }





  /* styling of the books */

  .book-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .book {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .book-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .book-author {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
  }
  
  .carousel {
    overflow: hidden;
    position: relative;
  }
  
  .carousel-inner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  
  .carousel-inner::-webkit-scrollbar {
    display: none;
  }
  
/* ... unchanged styles ... */

.carousel-inner > div {
  flex: 0 0 150px;
  padding: 10px;
  scroll-snap-align: start;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-inner img {
  width: 150px;
  height: 200px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: none;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  display: none; 
}

.category-section:hover .arrow {
  display: block; /* Add this line */
}

#relatedbar:hover .arrow {
  display: block; /* Add this line */
}

/* ... unchanged styles ... */

.see-more {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  background-color: #1a1a1a;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
}

/* ... unchanged styles ... */

  
  
  .left-arrow {
    left: 0;
  }
  
  .right-arrow {
    right: 0;
  }
  
  .category-section:hover .arrow {
    display: block;
  }
  
/* Jumbotron styling */
.jumbotron {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 310px;
  border-radius: 10px;
}

.slides-container {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.slide {
  flex: 1;
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: none;
}

.slide.active{
  display:block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 20px;
  color: #fff;
  text-align: center;
  z-index: 1;
}

.slide-caption h2 {
  font-size: xx-large;
}

.cta-button {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: #fff
}


.dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}


.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
}

.dot.active {
  background-color: #fff;
}


/* Footer section styling */

footer {
  background-color: #1a1a1a;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  
}

footer .links {
  line-height: 2.4;
}

footer a {
  white-space: nowrap;
  color: white;
  text-decoration: none;
  margin-right: 20px;
}

footer a:hover {
  text-decoration: underline;
}

.website-name {
  margin: 10px 0;
}

.website-name p {
  font-size: 20px;
  font-weight: bold;
}




/* Styling of the individual story pages */


.game-container {
  width: 100%;
  max-width: 600px;
  background-color: #222;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/*
h1 {
  text-align: center;
  margin-bottom: 30px;
}

*/

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  margin: 5px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin-bottom: 10px;
}



button.arrow {
  width: inherit;
}

#game-choices {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#game-navigation {
  text-align: center;
}

#game-text {
  margin-bottom: 30px;
}

#progress-container {
  background-color: #f3f3f3;
  height: 20px;
  width: 100%;
  margin-top: 30px;
  position: relative;
}

#progress-bar {
  background-color: #3498db;
  height: 100%;
  width: 0%;
  position: absolute;
}

/* Add styles for the left and right sidebars */
.left-sidebar,
.right-sidebar {
  display: none; /* Initially hide the sidebars */
}



/* Styles for long-desc div */
#long-desc {
  /* float: left; (Removed) */
  /* width: 35%; (Removed) */
  box-sizing: border-box; /* Ensure the padding and margin do not affect the width */
  padding: 20px;
  margin-top: 20px; /* Add margin-top */
  display: inline-block; /* Make it an inline-block element to inherit the text-align:center from parent */
}



 /* Media queries for responsive styling */

 @media screen and (max-width: 768px) {

  .logo a {
    font-size: 22px;
  }

  .hamburger-menu {
    display: block;
    cursor: pointer;
    color: white;
    font-size: 24px;
    margin-right: 20px;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    background-color: #333;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.3s ease-in;
    transform: translateX(-100%);
  }

  .header-container {
    padding-top: 23px;
  }
  
  .nav-links.show {
    transform: translateX(0);
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links li a {
    line-height: 50px;
  }
  
  .nav-links ul {
    position: static;
    display: block;
    width: 100%;
    margin-top: 0px;
    text-align: center;
  }
  
  .nav-links ul li {
    display: inline-block;
    width: 100%;
    text-align: center;

  }
  
  .nav-links ul li a {
    padding: 10px;
  }
  
  .nav-links ul ul {
    position: static;
    margin: 0;
    padding: 0;
    display: none;
  }
  
  .nav-links ul ul li a {
    line-height: 40px;
    padding: 10px 30px;
  }
  
  .nav-links li:hover > ul {
    display: block;
  }

  .search-container {
    display: grid !important;
  }

  .search-container > button {
    max-width: 800px;
    width: 100%;
    margin:0;
  }

  #searchInput {
    margin-bottom: 10px;
  }

  #addOptionBtn::before {
    content: "+";
  }

  #removeOptionBtn::before {
    content: "-";
  }

  #gotonodeInput {
    max-width: 40px;
  }

}

/* Responsive styling for small screen sizes */

@media screen and (max-width: 320px) {
  .logo a {
    font-size: 17px;
  }
  .header-container {
    padding-top: 27px;
  }
}


/* Dark Mode Styling */

body.dark-mode {
  background-color: #333;
  color: #fff;
}

header.dark-mode {
  background-color: #222;
}

footer.dark-mode {
  background-color: #222;
}

.breadcrumb.dark-mode {
  color: #fff;
}

.game-body.dark-mode{
  background-color: #222 !important;
}

.game-container.dark-mode {
  background-color: #222 !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-top:22px;
  margin-bottom:22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}





/* Media query for desktop screens */
@media (min-width: 1024px) {
  .left-sidebar,
  .right-sidebar {
    display: block; /* Show the sidebars on desktop screens */
    width: 205px; /* Set the width for the sidebars */
    padding: 20px;
  }

  /* Update the content-container element to use a flex layout */
  .content-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Prevent wrapping of the elements */
    max-width: 1200px; /* Set the max-width of the container */
    margin: 0 auto; /* Center the container */
    padding-top: 78px; /* Add padding to the top to account for the navbar */

  }

  /* Modify main element padding on desktop screens */
  main {
    padding: 20px;
    padding-top: 100px; /* Shifted content down by the height of the navbar */
  }
}
