* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #1E3C72, #2A5298);
    height: 100vh;
    justify-content: center;
    align-items: center;
    -webkit-user-select: none;  /* Chrome/Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer/Edge */
    user-select: none;          /* Standard syntax */
}

.container {
    display: flex;
    flex-direction: column; /* Stack glass-box and buttons vertically */
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    z-index: 1; /* Ensures container is above bubbles */
}
#prevBtn,#nextBtn
{
    min-width: 30px !important;
    height: 30px;
    border-radius: 50%;
    padding: 0px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-buttons {
    display: flex; /* Use flexbox for horizontal alignment */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    margin: 20px 0; /* Add margin to separate from content */
    gap: 10px; /* Space between elements */
    width: 290px !important;
    margin: 0px auto;
}

#pageJumpInput {
  z-index: 99999;
  position: relative;
  background-color: #fff;
}

/* Overlay background */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  transition: opacity 0.3s ease;
}

/* Popup box */
#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #ffffff;
  color: #333;
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 80%;
  max-width: 650px;
  z-index: 1000;
  text-align: left;
  opacity: 0;
  transition: all 0.3s ease;
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* Show animation */
#popup.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Header styling */
#popup h3 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

/* Paragraph styling */
#popup p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* Close button */
#close-popup {
  background: #d9534f;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: background 0.3s;
}
#close-popup:hover {
  background: #b52b27;
}

.nav-buttons .btn, 
.nav-buttons input[type="number"],
.nav-buttons button#goToPageBtn {
    padding: 10px 15px; /* Padding for all buttons and input */
    font-size: 14px; /* Ensure consistent font size */
    
}

.nav-buttons input[type="number"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 120px; /* Set fixed width for the input */
}

.nav-buttons button#goToPageBtn {
    background-color: #28a745;
    color: white;
}

.nav-buttons .btn:hover, 
.nav-buttons button#goToPageBtn:hover {
    background-color: #218838; /* Darker shade on hover */
}

.glass-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 40px 20px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 800px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.scrollable-content {
    height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 10px;
    position: relative;
}
#titletext {
    padding: 0px;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    max-width: 74%;
    color: black;
    line-height: 25px;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: bold;
    box-shadow: 0 4px 30px rgb(238 150 150 / 78%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: #c4ffff;
    margin:0px auto;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* Scrollbar styles inside .scrollable-content div */
.scrollable-content::-webkit-scrollbar {
  width: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
  background: #666;
}

.scrollable-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #000;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.message {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px; /* Add margin for spacing above the buttons */
    text-align: justify;
    padding: 0px 20px;
}
.message-div
{
    display:block !important;
}
.disabled-link {
    pointer-events: none;  /* Disables clicking */
    color: gray;           /* Changes the text color to indicate it's disabled */
    text-decoration: none; /* Removes the underline to make it look disabled */
}
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bubbles span {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    bottom: -80px;
    animation: rise 15s infinite ease-in;
}

.bubbles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 20%; width: 80px; height: 80px; animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 25%; animation-delay: 4s; }
.bubbles span:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; }
.bubbles span:nth-child(5) { left: 70%; width: 100px; height: 100px; animation-delay: 3s; }
.bubbles span:nth-child(6) { left: 80%; animation-delay: 6s; }
.bubbles span:nth-child(7) { left: 90%; width: 50px; height: 50px; animation-delay: 7s; }
.bubbles span:nth-child(8) { left: 65%; width: 40px; height: 40px; animation-delay: 5s; }
.bubbles span:nth-child(9) { left: 75%; width: 30px; height: 30px; animation-delay: 8s; }
.bubbles span:nth-child(10) { left: 50%; width: 20px; height: 20px; animation-delay: 9s; }

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-800px);
        opacity: 0;
    }
}

@media only screen and (max-width: 768px) {
    .glass-box {
        padding: 20px;
        width: 100%;
    }

    .title {
        font-size: 2rem;
    }

    .message {
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 20px; /* Smaller border radius */
    color: white;
    padding: 8px 12px; /* Smaller padding */
    font-size: 0.9rem; /* Smaller font size */
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 100px; /* Fixed small width */
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.nav-buttons {
    display: flex;
    justify-content: space-between; /* Space between buttons */
    width: 100%; /* Stretch buttons to align */
    max-width: 800px;
    margin-bottom: 50px;
}
@media only screen and (max-width: 767px) {
    .bubbles {
        display: none;
    }
}

.row
            {
                width:100%;
            }
            .container {
              padding: 20px;
              width: 100%;
              z-index: 1;
            }
            .scrollable-content
            {
                height:550px;
            } 
            .left {
              flex: 1;
              padding: 0px;
              float:right;
            }
            
            .right {
              flex: 2;
              padding: 0px;
              float:left;  
            }
            /* Category list */
            #categoryList {
              list-style: none;
              padding-left: 0;
              counter-reset: cat-counter;
            }
            
            /* Category item */
           #categoryList li {
                display: flex;
                align-items: center;
                text-align: left;
                margin: 8px 0;
                padding: 5px 12px;
                background-color: #c9df8a;
                border-radius: 30px;
                transition: background 0.3s ease;
                font-family: 'Segoe UI', sans-serif;
                font-weight: 500;
                color: #286a04;
                font-weight: bold;
            }
            
            /* Hover effect */
            #categoryList li:hover {
              background-color: #f0a64f;
            }
            
            /* Active state */
            #categoryList li.active {
              background-color: #d98c30;
              color: #fff;
            }
            
            /* Link inside li */
            #categoryList li a {
              color: inherit;
              text-decoration: none;
              flex-grow: 1;
            }
            
            /* Number icon */
            #categoryList li::before {
              counter-increment: cat-counter;
              content: counter(cat-counter);
              display: inline-block;
              background-color: #056a05;  
              color: #fff900;
              font-weight: bold;
              border-radius: 50%;
              width: 36px;
              height: 36px;
              line-height: 36px;
              text-align: center;
              margin-right: 12px;
              font-family: monospace;
              font-size: 20px;
              box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            }
            .glass-box {
                background: rgb(253 227 145 / 92%); 
                color: black; 
            }
            .message, .title
            {
                color: black; 
            }
            /* Flipbook effect container */
            .scrollable-content {
              position: relative;
              transform-style: preserve-3d;
              perspective: 1200px;
              transition: transform 0.6s ease-in-out;
            } 
            
            /* Right to left (Next) */
            .slide-in-rtl {
              animation: slideInRTL 0.6s ease forwards;
            }
            
            @keyframes slideInRTL {
              from {
                opacity: 0;
                transform: translateX(100px); /* from right */
              }
              to {
                opacity: 1;
                transform: translateX(0);
              }
            }
            
            /* Left to right (Previous) */
            .slide-in-ltr {
              animation: slideInLTR 0.6s ease forwards;
            }
            
            @keyframes slideInLTR {
              from {
                opacity: 0;
                transform: translateX(-100px); /* from left */
              }
              to {
                opacity: 1;
                transform: translateX(0);
              }
            }



            h5#mobileCategoryMenuLabel {
                color: black;
                font-size: 18px;
                font-weight: bold;
            }
            @media (max-width: 980px) {
                .col-md-4 {
                  display: none !important; /* Hide desktop sidebar */
                }
                .mobile-category-button {
                  display: block !important;
                }
                .col-md-8, .glass-box
                {
                    width:100% !important;
                }
                .d-md-none {
                    display: block !important;
                }
              }
            
              @media (min-width: 980px) {
                .mobile-category-button {
                  display: none !important;
                }
                .d-md-none {
                    display: none !important;
                }
              } 
              
              .category-header {
                  display: flex;
                  align-items: center;
                  cursor: pointer;
                }
                
                .toggle-icon,
                .toggle-placeholder {
                  margin-right: 10px;
                  font-weight: bold;
                  font-size: 20px;
                  width: 24px;
                  color: #1b6b00;
                }
                
                .toggle-placeholder {
                  visibility: hidden;
                }
                
                .subcategory-list {
                  margin-left: 32px;
                  margin-top: 6px;
                  list-style: none;
                  padding-left: 0;
                }
                
                .subcategory-item {
                  margin: 5px 0;
                  padding: 5px 10px;
                  background: #f1f9ed;
                  border-radius: 12px;
                }
                
                .subcategory-item a {
                  color: #357d10;
                  text-decoration: none;
                  font-size: 14px;
                }

