/*project specific styles*/
        /*graph specific style*/
        .node.process {
            fill: rgba(70, 131, 180, 0.76);
        }
        .node.resource {
            fill: rgba(255, 166, 0, 0.718);
        }
        #rag-container .link {/*modification on 31Jan*/
            /*stroke: #999;*/
            stroke-opacity: 0.6;
            stroke-width: 2px;
        }
        .boundary {
            fill: none;
            stroke: black;
            stroke-width: 3px;
        }
        .highlight1 {
            stroke: green;
            stroke-width: 1px;
        }
        .process-node {
            r: 20px;
        }
        .resource-node {
            width: 40px;
            height: 40px;
        }
        .node text {
            font-size: 12px;
            fill: white;
        }
        .resource-group {
            fill: rgba(200, 200, 200, 0.3);
            stroke: #555;
            stroke-width: 2px;
            cursor: move;
        }
        /*button specific styles*/
        .blue{
            background-color: rgb(246, 185, 80);
        }
        .blue:hover{
            background-color: #007bff;
            color: aliceblue;
        }
        .button_box button{
            height: 20px;
            border-radius: 5px;
            margin: 0 auto;
            padding-left: 10px;
            padding-right: 10px;
            width: fit-content;
        }
        .button_box {
          margin-top: 10px;
            display: flex;
            flex-wrap: wrap;         /* allow wrapping to new lines */
            justify-content: center; /* center align on larger screens */
            gap: 10px;               /* spacing between buttons */
            padding: 10px;
            box-sizing: border-box;
            background-color: rgb(187, 210, 230);
            border-radius: 5px;
        }
        .hold-button-highlighted{
            background-color: yellow;
        }
        .circular-button-highlighted{
            background-color:green;
        }
        .delete-button-highlighted{
            background-color:red;
        }
                
        .input{
            display: none;
        }
        .input_visible {
            position: fixed;
            top: 50%;
            left: 50%;
            max-height: 90vh;
            overflow-y: auto;
            transform: translate(-50%, -50%);
            background: #fff;
            /* padding: 50px 10px 10px 10px; */
            padding: 2rem 1.5rem;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            width: 90%;
            max-width: 450px;
            text-align: center;
            font-family: 'Segoe UI', sans-serif;
        }

        /* Text */
        .input_visible p {
            font-size: 1.15rem;
            font-weight: 600;
            color: #222;
            margin-bottom: 1.5rem;
            word-wrap: break-word;
        }

        /* Inputs */
        .input_visible input {
            width: 100%;
            padding: 0.75rem;
            font-size: 1rem;
            border: 1px solid #ccc;
            border-radius: 10px;
            margin-bottom: 1rem;
            box-sizing: border-box;
        }

        /* Input focus */
        .input_visible input:focus {
            border-color: #007BFF;
            outline: none;
        }

        /* Buttons */
        .input_visible button {
            width: 100%;
            padding: 0.75rem;
            font-size: 1rem;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
            margin-top: 0.5rem;
        }

        /* Cancel - red */
        #cancel-button,
        #cancel-button-resorce,
        #cancel-button-resorce-multiple {
            background-color: #f44336;
            color: white;
        }

        /* Submit - green */
        #submit-button,
        #submit-button-resorce,
        #submit-button-resorce-multiple {
            background-color: #4CAF50;
            color: white;
        }
        #acceptence_button_message{
            background-color: #4c98af;
            color: white;
        }

        /* Hover effects */
        .input_visible button:hover {
            opacity: 0.95;
            transform: scale(1.02);
        }

        /* Scroll only inside form */
        .input_visible::-webkit-scrollbar {
            width: 6px;
        }
        .input_visible::-webkit-scrollbar-thumb {
            background-color: rgba(0,0,0,0.2);
            border-radius: 4px;
        }

.justified{
    text-align: justify;
}

#rag-container {
  display: flex;
  justify-content: center;   /* horizontal center */
  align-items: center;       /* vertical center */
  width: 100%;               
  height: 600px;             /* or set fixed height */
}




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

::selection {
  color: rgb(11, 0, 48);
  background: rgba(110, 188, 230, 0.675);
}

body {
  background-color: rgba(244, 240, 240, 0.622);
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* Header styles */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: rgb(0, 52, 65, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  color: white;
  top: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  z-index: 1000;

}

.logo img {
  width: 9vh;
  height: auto;
  margin-left: 10px;
  margin-right: 10px;
}

.vlab {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-align: left;
}

.nav-menu {
  display: flex;
  gap: 20px;
}


.results{
  display: inline-block;
  width: 50px;
}

#Extra_instructions{
  display:inline-block;
  margin-top: 10px;
  text-align: justify;

  width: 100%;
  border: solid black 2px;
  background-color: lightgray;
  border-radius: 5px;
  /* overflow: hidden; */
  font-size: 13px;
}

#Extra_instructions p{
  margin-left:5px;
  margin-right: 5px;
  padding-bottom: 15px;
}

#Extra_instructions h1{
  text-align: center;
  margin-bottom: 15px;
  margin-top: 10px;
}

#Extra_instructions p .bolder{
  font-weight: bold;
}



p img {
  vertical-align: middle;
  height: 1em; /* or use line-height */
}






.logo-container {
  display: flex;
  flex-direction: row;
  text-align: center;
  align-items: center;
}


.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
  padding-right: 10px;
}

.close-btn {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-menu a {
  margin-left: 5px;
  padding: 15px;
  text-decoration: none;
  color: #fff;
}

.nav-menu a:hover {
  background: rgba(111, 248, 248, 0.74);
  cursor: pointer;
}

.yourvlabtitle {
  font-size: 1rem;
  text-align: center;
  color: #000;
  padding-top: 1vh;
  font-weight: bold;
  width: 100%;
}

/* Navigation styles */
.pageview {
  display: grid;
  place-items: center;
  background-color: inherit;
}


/* Navigation Wrapper: This div will control the sticky behavior */
.navigation-wrapper {
  width: 100%;
  z-index: 900;
  min-height: 150px;
  /* Reserve minimum space for navigation */
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  border-radius: 20px;
  background-color: rgb(0, 30, 37);
  backdrop-filter: blur(2px);
  padding: 10px 20px;
  margin: 20px auto;
  max-width: 92%;
  gap: 4px;
}

.navigation .link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 98px;
  width: 94px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  background-color: rgb(0, 30, 37);
  transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
  border: 2.5px solid rgb(215, 211, 211);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  cursor: pointer;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.navigation .link:hover {
  background-color: rgba(7, 238, 238, 0.8);
}

.navigation .link img {
  height: 45px;
  margin-bottom: 5px;
}

.navigation .link span {
  font-size: 0.7rem;
  font-weight: 700;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  height: 40px;
  width: 40px;
  background-color: rgb(0, 52, 65, 1);
  color: cyan;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;            
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 0;                  
  margin: 0;
}

#backToTop svg {
  width: 20px;
  height: 20px;
  fill: white;
  transform: rotate(180deg);   
}

#backToTop:hover {
  background: cyan;
  color: white;
  transition: ease 0.5s;
}

.navigation-wrapper {
  position: sticky;
  top: 8vh; /* adjust for your header height */
  z-index: 999;
  min-height: 150px;
}
.sticky-trigger {
  height: 50px;
  width: 100%;
  pointer-events: none;
}

/* When sticky, the navigation itself becomes fixed */
.sticky-nav-wrapper .navigation {
  /* position: fixed; */
  top: 8vh;
  left:50%;
  transform:  scale(0.9);
  width: 92%;
  max-width: 1200px;
  background-color: rgba(135, 147, 150, 0.419);

  z-index: 999;
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sticky-nav-wrapper .navigation .link {
  height: 60px;
  width: 60px;
  border-width: 2px; 
  opacity: 0.95;
  padding: 8px;
  border-radius: 40px;

}
.sticky-nav-wrapper .navigation .link:hover {
  transform: scale(1.05);
}
.sticky-nav-wrapper .navigation .link img {
  height: 40px;
}
.sticky-nav-wrapper .navigation .link span {
  font-size: 0;
}

/* Responsive styles */
@media screen and (max-width: 840px) {
  .header {
    justify-content: space-between;
  }

  .logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .close-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    min-width: 200px;
    flex-direction: column;
    background-color: rgba(4, 74, 74, 0.74);
    backdrop-filter: blur(8px);
    transition: right 0.4s ease;
  }

  .nav-menu.show {
    right: 0;
  }

  .copy-button {
    position: absolute;
    padding-right: 500px;
    text-size-adjust: smaller;
  }

  .container .title {
    font-size: 2rem;
  }
   .sticky-nav-wrapper .navigation {
    left:50%;
    transform:  scale(0.85);
    width: 100%;
    padding: 4px;
    min-width: 450px;
  }
  
  .sticky-nav-wrapper .navigation .link {
    width: 45px; 
    height: 45px; 
    padding: 3px;
  }
  
  .sticky-nav-wrapper .navigation .link img {
    height: 35px; 
  }
  
  .sticky-nav-wrapper .navigation {
    font-size: 0; 
  }
  
  .sticky-nav-wrapper .navigation .link:hover {
    transform: scale(1.1);
  }
}

/* Content sections */
.main_practical {
  padding: 15px;
  background-color:inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1500px;
}

.container {
  flex: 1;
  width: 92%;
  max-width: 1440px;
  min-width: calc(100vw - 8vw);
  /* margin: 20px auto; */
  background-color: #fff;
  padding: 5vh;
  border: 1px solid #ccc;
  border-radius: 20px;
  text-align: justify;
  width: calc(100vw - 9vw);
    min-height: 95vh; 
}

.container .title {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
  text-align: center;
}

/* General List Styling */
#theory ul,
#procedure ul,
#theory ol,
#procedure ol {
  padding-left: 25px;
  margin-bottom: 20px;
  list-style-position: inside; /* Align markers with text */
  font-size: 1rem;
  color: #333;
}

/* Unordered List */
#theory ul,
#procedure ul {
  list-style-type: disc; /* Default bullet style */
}

/* Ordered List */
#theory ol,
#procedure ol {
  list-style-type: decimal; /* Numbered list */
}

/* List Items */
#theory li,
#procedure li {
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Nested Lists */
#theory ul ul,
#procedure ul ul,
#theory ol ol,
#procedure ol ol {
  padding-left: 35px;
  font-size: 1rem;
}

/* Links Inside List Items */
#theory li a,
#procedure li a {
  text-decoration: none;
  color: inherit;
}


/* Code block styles */
.switch-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

input[type="radio"] {
  display: none;
}

.switch-container label {
  cursor: pointer;
  padding: 10px 20px;
  background-color: rgb(0, 52, 65, 1);;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 10px;
}


.code-blocks {
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-block {
  display: none;
}

.code-block.active {
  display: block;
}


.copy-button:hover {
  background-color: #555;
}

.code-block {
  position: relative;
  background-color: #f7f7f7;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  overflow: hidden;
}

.code-block {
  display: none;
}

.code-block.active {
  display: block;
}


.code-content {
  position: relative;
  min-width: 1080px;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background-color: #464646;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.copy-button.copied {
  background-color: #171717;
  color: white;
}

.code-content:hover .copy-button {
  display: block;
}

.copy-button {
  display: none;
}

.switch-container input[type="radio"]:checked+label {
  background-color: #029ba6;
  display: block;
  border: 2px solid rgb(47, 255, 220);
  color: rgb(238, 255, 0);
}

/* .language-cpp,
.language-python {
  padding: 20px;
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
} */
.language-cpp,
.language-python {
  padding: 20px;
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
}

/* Quiz */
#quiz {
  justify-items: center;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

#quiz .title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

/* Instructions Section */
#quiz-instructions {
  background: #e8f5ff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #b5d9f7;
  max-width: 500px;
  
}

#quiz-instructions h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #004b87;
}

#quiz-instructions ul {
  list-style-type:decimal;
  padding-left: 20px;
  margin: 10px 0;
}

#quiz-instructions li {
  text-align: left;
  margin-bottom: 8px;
}

/* Start Quiz Button */
#start-quiz-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background: rgb(0, 52, 65, 1);;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

#start-quiz-btn:hover {
  background: #00a4b3;
}
#question {
  text-align: left;
  font-size: 18px;
  margin-bottom: 10px;
  color: #444;
}

.choices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.choices .choice {
  text-align: left;
  width: 100%;
  max-width: 400px;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.choices .choice:hover {
  background-color: #007bff;
  color: #fff;
}

.next-button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-end;
}

.next-button:hover {
  background-color: #0056b3;
}

#retake-btn {
  display: none;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  width: 50%;
  max-width: 250px;
}

#retake-btn:hover {
  background-color: #218838;
}

#quiz-report {
  text-align: left;
  margin-top: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.quiz-report-question {
  margin-bottom: 15px;
}

.quiz-report-question p {
  font-weight: bold;
}

.quiz-report-question ul {
  list-style-type: none;
  padding-left: 0;
}


/* tnt */
/* Lists styling */
/*team and tools*/
#tnt .content { 
  padding: 10px;
  background-color: #ffffff;

}
/*team and tools*/

#tnt .content span {
  display: block;
  font-size: 1.2rem;
  font-weight: normal;
  color: #2e3035;
  margin-bottom: 7px;
  margin-top: 16px;
  /* Space above each section */
}

/* List Styling */
.ref-list,
.tools-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.ref-list li,
.tools-list li {
  padding: 10px;
  background-color: #f9fafb;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 1rem;
  color: #333;
  transition: background-color 0.3s ease;
  /* Smooth hover effect */
}

.ref-list li a,
.tools-list li span {
  text-decoration: none;
  color: inherit;
  font-weight: 400;
  transition: color 0.3s ease;
  /* Transition for link hover effect */
}

.ref-list li:hover,
.tools-list li:hover {
  background-color: #e6f0ff;
  /* Soft blue hover effect */
}

.ref-list li a:hover {
  color: #0073e6;
  /* Change link color on hover */
}

/* Mentors & Students Section Styling */
.ref-list li,
.tools-list li {
  font-size: 1.1rem;
  padding-left: 15px;
}

/* Styling for individual links */
.ref-list li a {
  color: #222529;
  /* Soft blue color for links */
  font-weight: 500;
  /* Bold the links slightly */
}



/* Tile control  */
#aim,
#theory,
#procedure,
#code,
#result,
#quiz,
#practice,
#references,
#tnt {
  display: none;
}

#aim {
  display: block;
}

#references a{
  color: #0073e6;
  text-decoration: underline;
  word-break: break-all;
}

/* Adjustments */

@media (max-width: 1000px) {
  .labtitle {
    font-size: 1rem;
    /* padding-top: 10vh; */
  }

  .navigation-wrapper {
    min-height: 120px;
   /* Smaller reserved space on mobile */
  }

  .navigation {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 8px;
  }

  .navigation .link {
    width: 70px;
    height: 76px;
    border-width: 1px;
    padding: 7px;
  border-radius: 10px;
  }

  .navigation .link img {
    height: 32px;
  }
  
  .navigation .link span {
    font-size: 0.65rem;
    font-weight: bold;
  }
  
  .container {
    /* width: 100%; */
    width: calc(100vw- 0vw);

    
    padding: 5vh;
  }

  .title {
    font-size: 1.6rem;
  }
  .code-block {
    overflow: scroll;
    /* width: 320px; */
  }
}

@media screen and (max-width: 500px) {
  .vlab{
    font-size: 1.5rem;
  }
   .yourvlabtitle {
    padding-top: 1rem;
    font-size: 80%;
  }
  .practical {
    margin-left: 0px;
    margin-right: 0px;
    padding: 5px;
    font-size: smaller;
  }

  .navigation .link {
    font-size: 0.5rem;
  }

  .navigation .link img {
    height: 30px;
    width: auto;
  }

  .container {
   padding: 3vh;
    margin: 0;
    text-align: left;
    width: calc(100vw- 0vw);
  }

  .choices {
    justify-content: space-between;
  }

  .choices .choice {
    /* width: 300px; */
    margin-left: 10px;
  }

  /* #code .container {
    width: 330px;
  } */

  .container .title {
    font-size: 1rem;
  }
}
/* For very small screens */
@media (max-width: 480px) {
  .sticky-nav-wrapper .navigation {
    transform: translateX(-50%) (0.8);
    min-width: 350px;
  }
  
  .sticky-nav-wrapper .navigation .link {
    width: 40px; 
    height: 40px; 
    padding: 3;
  }
  
  .sticky-nav-wrapper .navigation .link img {
    height: 30px; 
  }
}

@media (max-width: 340px) {
  .sticky-nav-wrapper .navigation {
    transform: translateX(-0%)  scale(0.75);
    min-width: 200px;
  }
}
