  /* Define theme colors */
  :root, html[data-theme="light"] {
    --bg-color: #ffffff;						/*change back to ffffff */
    --text-color: #222222;						/*change back to 222222 */
	--bg-glass: rgba(230, 230, 230, 0.99);
  }
  html[data-theme="dark"] {
    --bg-color: #4d4d4d;
    --text-color: #f5f5f5;
	--bg-glass: rgba(77, 77, 77, 0.99); 
  }
  body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.2s, color 0.2s;
	overflow-x: auto;
	margin: 1px;
    line-height: 1.3;
      font-family: var(--global-font, Arial), sans-serif;
      font-size: var(--global-size, 16px);
  }	

        /* Main application container */
        .main-container {
		 position: sticky;
            max-width: 100%;
 /*         margin: 2px auto;
			border: 0px solid #ddd; */
            border-radius: 8px;
            border-color:red;
    /*        box-shadow: 0 0px 0px rgba(0,0,0,0.1);   */
			z-index: 100
        }

  /* 1. SEPARATE TITLE DISPLAY SCREEN */
    .slide-title-display {
      background-color: rgb(64 64 64);      /* Solid Dark Grey */
   /*   color: rgb(255 255 255);              White text */
      font-size: 24sp;
      font-weight: bold;
      padding: 15px 30px;
      border-radius: 6px;
      margin-bottom: 20px;
      min-width: 300px;
      text-align: center;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* 2. SLIDESHOW CONTAINER */
    .slideshow-container {
      position: relative;
      width: 100%;
      max-width: 2200px;
      height: 600px;
/*      background-color: rgb(220 220 220); /* Solid Light Grey placeholder */ */
      border-radius: 8px;
      overflow: auto;
 /*     box-shadow: 0 8px 16px rgba(0,0,0,0.15);  */
    }

    /* 3. INDIVIDUAL SLIDES */
    .my-slide {
      display: none; /* Hidden by default */
      width: 100%;
      height: 100%;
    }

    /* Dummy slide content coloring (Replace with <img> tags if preferred) */
    .slide-content {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 48sp;
  /*    color: white;    */
      font-weight: bold;
    }
    .bg-red    { background-color: #d9534f; }
    .bg-blue   { background-color: #0275d8; }
    .bg-green  { background-color: #5cb85c; }
    .bg-orange { background-color: #f0ad4e; }



        /* Button styling */
        .btn {
            padding: 2px 4px;
            background-color: rgba(0, 0, 0, 0.1);
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .btn:hover {
            background-color: #bac6d2;
        }

        /* Disabled state formatting */
        .btn:disabled {
            background-color: #cccccc;
            color: #666666;
            cursor: not-allowed;
        }

  .zoomed {
    transform: scale(2); /* Adjust 1.5 to your desired zoom level */
  }
  
  .content {
  overflow: auto;
  transition: height 0.3s ease;
}

/* Target the specific details element when open */
#zaMech4[open] .content {
  height: 800px; /* Adjust this to your desired height */
  overflow-y: auto;
}

        /* Basic layout styling */
        .controls-wrapper {
            margin-bottom: 20px;
            padding: 10px;
            background-color: #f4f4f4;
            border-radius: 5px;
        }
        label {
            margin-right: 10px;
        }
        select {
            padding: 2px;
            margin-right: 10px;
			width: auto;
            border-radius: 4px;
		  /* Removes default browser styling (arrows, borders, shading) */
		  appearance: none;
		  -webkit-appearance: none;
		  -moz-appearance: none;

		  /* Makes the background and edges completely invisible */
		  background: transparent;
		  border: none;
		  color: inherit;
		  
		  /* Optional: Ensures the text color is readable against your background */
		  
		  /* Optional: Standardizes cursor behavior */
		  cursor: pointer; 
		}

		/* Removes the default styling arrow specifically for Internet Explorer */
		select::-ms-expand {
		display: none;	
        }
		
        /* Target paragraph defaults */
        #text-content {
            line-height: 1.6;
            transition: all 0.2s ease; /* Smooth transition when changing styles */
        }
		

.dropbtn{
    padding: 3px;
    border: none;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    cursor: pointer;
}


/* Hide the menu by default */
.dropdown-menu {
  background: var(--bg-glass) !important;
  border-radius: 10px;
  border: 1px solid grey;
  padding: 12px 12px;
  display: none;
  position: absolute;
  top: 30%;
  left: 0;
  z-index: 100;
}

/* JavaScript will toggle this class on and off */
.dropdown-menu.show {
  display: block;
}

.hide {
  display: none;
}

/* Erase the browser's black fullscreen curtain layer */
:fullscreen::backdrop {
  background-color: transparent !important;
}

/* Ensure the element you are fullscreening maintains its own color */
:fullscreen {
  background-color: #ffffff !important; /* Replace with your specific color code */
}
 
 .dropbtn1{
    padding: 3px;
    border: none;
    border-radius: 4px;
    background: transparent;
    letter-spacing: 1px;
    cursor: pointer;
	color: inherit;
	text-decoration: none !important;
}
 

html, body, :fullscreen {
  min-height: 100dvh !important; /* Dynamic Viewport Height fills the true pixel area */
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: auto; /* Prevents tiny sub-pixel scrolling gaps */
}
  

/*---------------------------------simulations */
.items{
width: 100%;
display: flex;
flex-wrap: wrap;
 font-family: calibri light;
}

/*------------------about popup-------------------*/
    .about-link:hover {
      text-decoration: underline;
    }

    /* Backdrop Dimmer (Hidden by default) */
    .popup-overlay {
      display: none; 
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1000;
    }

    /* Pop-Up Window Box */
    .popup-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: var(--bg-glass);
      padding: 30px;
      border-radius: 8px;
      width: 400px;
      max-width: 90%;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* Close Button Layout */
    .close-btn {
      float: right;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      color: #aaa;
      line-height: 20px;
    }
    .close-btn:hover {
      color: #000;
    }
	
       .search-container {
            position: sticky;
			background-color: var(--bg-color);
            top: 0;
            padding: 1px;
            border-bottom: 1px solid grey;
            margin-bottom: 2px;
            z-index: 1000;
        }
        input, button {
            padding: 2px 4px;
            margin-right: 5px;
        }
        button {
            border: none;
            cursor: pointer;
            border-radius: 8px;
        }
        button:hover {
            background-color: #bac6d2;
        }
        .nav-btn {
            background-color: #6d6d6d;
        }
        .nav-btn:hover {
            background-color: #bac6d2;
        }
        #counter {
            margin-left: 10px;
        }
        details {
            border-radius: 4px;
            padding: 0em .5em 0;
			margin-top: 0 !important;
            margin-bottom: 5px;
        }
        details[open] {
            padding: .5em;
        }
        .highlight {
            background-color: grey;
            color: black;
        }
        .highlight.active {
            background-color: grey;
            outline: 2px solid green;
        }
		
/* Removes the arrow icon in modern browsers */
summary {
  list-style: none;
  font-weight: bold;
  padding: .2em;
  cursor: pointer;
}

/* Removes the arrow icon in older Safari and Chrome versions */
summary::-webkit-details-marker {
  display: none;
}