/* Root Variables: Define Color Palette */
:root {
    --color-primary: #00D6FD;
    --color-secondary: #001A4B;
    --color-accent: #3CFF70;
    --color-light: #04F3CC;
    --color-warning: #8BF934;
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Text colors */
    --text-dark: #333;
    --text-light: #f4f4f9;

    /* Backgrounds */
    --background-light: #f4f4f9;
    --background-dark: #001A4B;
}

/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--background-light);
    color: var(--text-dark);
}

p {
    margin: 0 0 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Header and Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



@media (max-width: 750px) {
  .ad-bar-left, .ad-bar-right { display: none; }
}

#submit{
    margin:5rem;
}
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 10px;
}

.nav-link {
    color: var(--color-secondary);
    text-decoration: none;
    margin: 0 10px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link.active {
    font-weight: bold;
    text-decoration: underline;
    pointer-events: none;
    color: var(--color-black);
    background-color: var(--color-light);
}

.nav-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: var(--color-light);
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-warning);
}

/* Buttons */
button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--color-secondary);
}

/* Scroll-to-Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    box-shadow: var(--color-accent);
    display: none;
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--color-warning);
}


/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

fieldset {
    border: 2px solid #4CAF50;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #ffffff;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #4CAF50;
}

.inputs {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.btn-style {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-style:hover {
    background-color: #45a049;
}

.flex-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.full-width {
    width: 100%;
}

.table-display {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    text-align: left;
}

.table-display th, .table-display td {
    border: 1px solid #ddd;
    padding: 8px;
}

.table-display th {
    background-color: #4CAF50;
    color: white;
}

.mouse-hover {
    position: relative;
    display: inline-block;
}

.mouse-hover-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.mouse-hover-content a {
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
}

.mouse-hover-content a:hover {
    background-color: #ddd;
}

.mouse-hover:hover .mouse-hover-content {
    display: block;
}

.footer-container {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.footer-table {
    width: 100%;
    margin: 0 auto;
}

.footer-item h3 {
    color: #4CAF50;
    margin: 5px 0;
}

.footer-item a {
    color: white;
    text-decoration: none;
}

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

.row1{
    
    display: flex;
    width: 100%;

}

.elment{
    width: auto;
    flex: 1;
}

        .element1{
         display: flex;
        justify-content: center;
        }

        /* The container <div> - needed to position the mouse-hover content */

        .mouse-hover {
             position: relative;
            display: inline-block; 
            }

        /* mouse-hover Content (Hidden by Default) */

        .mouse-hover-content {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            min-width: 160px;
            box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        }

        /* Links inside the mouse-hover */

        .mouse-hover-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
        }

        /* Change color of mouse-hover links on hover */

        .mouse-hover-content a:hover {
            background-color: #f1f1f1
        }

        /* Show the mouse-hover menu on hover */

        .mouse-hover:hover .mouse-hover-content {
            display: block;
        }

        /* Change the background color of the mouse-hover button when the mouse-hover content is shown */

        .mouse-hover:hover .dropbtn {
            background-color: #3e8e41;
        }

         /* Container for the tree */
         /* First layer pre-opened */
        .tree ul.pre-open {
        display: block; /* Display the first layer */
      }



        .tree-container {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        width: 80%;
        max-width: 1200px;
        overflow: auto;
      }
  
      /* Tree styling */
      .tree ul {
        list-style-type: none;
        padding-left: 0;
        margin-left: 20px;
      }
  
      .tree li {
        margin: 5px 0;
        position: relative;
      }
  
      .tree li div {
        cursor: pointer;
        border: 2px solid #8B4513; /* Dark Brown */
        padding: 10px;
        background-color: #f0fff0; /* Light Green */
        color: #8B4513; /* Dark Brown */
        border-radius: 5px;
        font-weight: bold;
        transition: background-color 0.3s ease;
      }
  
      .tree li div:hover {
        background-color: #d5e8d4; /* Lighter Green */
      }
  
      .tree ul ul {
        display: none;
        padding-left: 20px;
      }
  
      .tree li.open > ul {
        display: block;
      }
  
      .tree li::before {
        content: '';
        position: absolute;
        top: 0;
        left: -20px;
        border-left: 2px solid #8B4513; /* Dark Brown */
        height: 100%;
        width: 20px;
      }
  
      .tree li:first-child::before {
        height: 50%;
        top: 20px;
      }
  
      .tree li > div::before {
        content: '';
        position: absolute;
        top: 10px;
        left: -10px;
        border-top: 2px solid #8B4513; /* Dark Brown */
        width: 10px;
      }
  
      .tree li:first-child > div::before {
        border-top: none;
      }
  
      .tree-container::-webkit-scrollbar {
        width: 10px;
      }
  
      .tree-container::-webkit-scrollbar-thumb {
        background-color: #8B4513;
        border-radius: 10px;
      }
  
      .tree-container::-webkit-scrollbar-track {
        background-color: #f9f9f9;
      }
  
      /* Responsive adjustments */
      @media only screen and (max-width: 768px) {
        .tree-container {
          width: 100%;
        }
  
        .tree li div {
          font-size: 14px;
          padding: 8px;
        }
      }

      /* form   */
      header {
        background-color: #228B22;
        color: white;
        padding: 10px;
        text-align: center;
        }

nav ul {
 list-style-type: none;
 padding: 0;
 margin: 0;
}

nav ul li {
 display: inline;
 margin: 0 15px;
}

nav ul li a {
 color: white;
 text-decoration: none;
 font-weight: bold;
}

nav ul li a:hover {
 text-decoration: underline;
}

#delayDisplay, #timeDisplay {
    margin-top: 15px;
    color: #5D4037; /* dark brown */
}

#Wcompleted, #WsubmitBtn {
    display: inline-block;
    background-color: #8BC34A; /* light green */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

#WsubmitBtn {
    display: none;
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
form {
    background-color: #FFF; /* white background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    
    max-width: 400px;
    justify-self: center;
}
.options {
    list-style-type: none;
    padding: 0;
}

.options li {
    background-color: #e0f2e9;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.options li:hover {
    background-color: #c9e4d9; /* light green hover */
}

.options li.correct {
    background-color: #4caf50;
    color: white;
}

.options li.incorrect {
    background-color: #f44336;
    color: white;
}
.MCQbtn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #00563f; /* dark green */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.MCQbtn:hover {
    background-color: #003f2e;
}

.MCQresult {
    text-align: center;
    margin-top: 40px;
}
#scrollToTopBtn {
    color: inherit;
    content: "\f062";
    display: inline-block;
    font: normal normal normal 16px/1 FontAwesome;
    font-size: 16px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    line-height: 1.71428571;
    margin-right: 4px;
    text-rendering: auto;
    transform: translate(0, 0);
}

#iframe{
    width: 100%;
    height: 700px;
    border: none;
}



.form-wrapper {
    margin-top: 40px !important;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
    border: 2px solid #e0e0e0;
    padding: 32px 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    overflow: auto;
}