/* Styling for triple mounts test */
.apert2 {
	position: absolute;	
	top: 50%;	
	left: 50%;
	width: 200px;
	height: 100px;
	border: 5px solid blue;
	transform: translate(-50%, -50%);	
	background-color: green;	
	z-index: 250;
)

/* aperture-transparency.css - CSS styles for proper aperture transparency */

/* Z-index structure for proper stacking of apertures */
#themount {
    z-index: 0;
    position: relative;
}

#aperture1, .apert1 {
    z-index: 150;
    position: absolute;
    background-color: #FFFBEB; /* Light cream background */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.apert2 {
    z-index: 110;
    position: absolute;
    background-color: #FFFBEB;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    /* By default apert2 uses the same styles as apert1 */
}

.apert3 {
    z-index: 120;
    position: absolute;
    background-color: #FFFBEB;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

/* Classes for different transparency modes */
.full-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

.semi-transparent {
    background-color: rgba(255, 251, 235, 0.7) !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1) !important;
}

/* Special class for transparent backdrop */
.transparent-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFBEB;
    z-index: -1;
    pointer-events: none;
}

/* Styles for the exceeding overlay in force see-through mode */
.exceeding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFBEB;
    pointer-events: none;
    z-index: 1;
}

/* When an aperture is made fully transparent, ensure content is still visible */
.apert2.full-transparent > * {
    z-index: 2;
}

.apert3.full-transparent > * {
    z-index: 2;
}

/* Extra styles to handle multi-aperture transparency */
.multi-aperture-container {
    position: relative;
}

/* Special handling for when apert2 is larger than apert1 */
.apert2.larger-than-parent {
    /* Special styling for when apert2 extends beyond apert1 */
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Style adjustments for buttons */
button.transparency-control {
    padding: 6px 12px;
    margin: 4px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

button.transparency-control:hover {
    background-color: #e8e8e8;
}

button.transparency-control.active {
    background-color: #4a90e2;
    color: white;
    border-color: #2a70c2;
}