body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e6e6e6;
}

#trianglesbg {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: -1;
    transform: rotate(-6deg);
}

.stage {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevents lines from creating scrollbars */
}

.canvas-layers {
    position: absolute;
    top: 12%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Puts it behind the orb */
    pointer-events: none; /* Allows you to click things through the lines */
}

.line-canvas {
    position: relative;
    width: 100%;
    height: 15vh; /* Or whatever height you prefer */
    display: block;
    background: transparent !important;
    border: none;
}

.orb-container {
    position: relative;
    /* Set the desired size here */
    width: 40%;
    /* Maintains a perfect circle based on width */
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.orb {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4facfe, #00f2fe);
    box-shadow: 0 0 50px rgba(79, 172, 254, 0.6), inset 0 0 50px rgba(255, 255, 255, 0.4);
    animation: spin 4s linear infinite;
}

.orb-text {
    z-index: 10;
    color: white;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    /* Font size scales with the orb size */
    font-size: 2vw;
    text-align: center;
    transition: opacity 1s ease-in-out;
    padding: 10%; /* Keeps text away from the edges */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Base state for all sections */
.section {
    width: 40%;
    height: 500px;
    margin-top: 19vh;
    margin-inline: auto;
    
    /* Animation Properties */
    opacity: 0; 
    transition: all 1s ease-out, color 0.1s ease; /* Controls how smooth the slide is */
    
    /* Rest of your glass-card styling... */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 24px;
    color: black;
    text-align: center;
}

/* Starting positions */
.section1, .section3 {
    transform: translateX(calc(-40% - 150px)); /* Slide from left */
}

.section2 {
    transform: translateX(calc(40% + 150px)); /* Slide from right */
}

/* The state when the section becomes visible */
.section1.show, .section3.show {
    opacity: 1;
    transform: translateX(-40%);
}

.section2.show {
    opacity: 1;
    transform: translateX(40%);
}

.section h2 {
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.section p {
    font-size: 1.2rem;
    padding: 2rem;
    margin-block: auto;
}

body.dark-mode .section {
    color: white;
}

/*Directional Regraph Segment*/

#dr {
    display: block; 
    width: 100%; 
    background-color: #f0f0f0; /*fallback color */
    position: absolute;
}

.section4 {
    transform: translateX(800px);
    margin-bottom: 500px;
}

    .section4.shown { /*Section 4 is handled in a different way than other sections so it uses 'shown' not 'show'*/
        transform: translateY(-75px) translateX(400px);
        opacity: 1;
    }

.slider-container {
    width: 700px;
    height: 100px;
    padding: 20px;
    opacity: 1;
    position: relative;
    top: 800px;
    right: 25%;
    display: flex;
    flex-direction: row;
}

.slider-container p {
    position: relative;
    padding: 0 1rem 0 1rem;
}

    .slider-container h1 {
        position: relative;
        bottom: 14px;
    }

#ndSliders {
    background-color: transparent;
    position: relative;
    right: 0px;
}

/*input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;*/ /* Hide the default track background */
    /*cursor: pointer;
    box-sizing: border-box;
}*/

/* WebKit (Chrome, Safari) track */
/*input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 12px;
    background-image:
        radial-gradient(circle at 0% 50%, #444 6px, transparent 6px),
        radial-gradient(circle at 25% 50%, #444 6px, transparent 6px),
        radial-gradient(circle at 50% 50%, #444 6px, transparent 6px),
        radial-gradient(circle at 75% 50%, #444 6px, transparent 6px),
        radial-gradient(circle at 100% 50%, #444 6px, transparent 6px),
        linear-gradient(#ccc, #ccc);*/
    /* Ensure the line covers full width; dots are positioned explicitly above it */
    /*background-size: auto, auto, auto, auto, auto, 100% 5px;
    background-position: 0% center, 25% center, 50% center, 75% center, 100% center, center;
    background-repeat: no-repeat;
    border-radius: 3px;
    border: none;
}*/

/* Firefox track */
/*input[type="range"]::-moz-range-track {
    height: 6px;
    background-image:
        radial-gradient(circle at 0% 50%, #444 3px, transparent 3px),
        radial-gradient(circle at 25% 50%, #444 3px, transparent 3px),
        radial-gradient(circle at 50% 50%, #444 3px, transparent 3px),
        radial-gradient(circle at 75% 50%, #444 3px, transparent 3px),
        radial-gradient(circle at 100% 50%, #444 3px, transparent 3px),
        linear-gradient(#ccc, #ccc);
    background-size: auto, auto, auto, auto, auto, 100% 2px;
    background-position: 0% center, 25% center, 50% center, 75% center, 100% center, center;
    background-repeat: no-repeat;
    border-radius: 3px;
    border: none;
}*/

/* Thumb */
/*input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #007bff;
    margin-top: -3px;*/ /* Centers thumb on the track */
    /*box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: transform 0.1s ease-in-out;
}

input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #007bff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    border: none;
}*/

/* Active thumb scale */
/*input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.2);
}
input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.2);
}*/
