/* ========================================================================== */
/* PAGE ELEMENTS                                                              */
/* ========================================================================== */

body {
    background-color: #f3f3f3;
}

/* Global body and typography styles */
h1 {
    font-family: "Fugaz One", sans-serif;
    font-size: 4.25rem; /* Default size for screens similar to a MacBook */
    line-height: 0.95;
    margin-top: 25px;
}
@media (min-width: 1600px) {
    h1 {
        font-size: 6rem;
    }
}
@media (max-width: 1024px) {
    h1 {
        font-size: 3.25rem;
    }
}
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
}

h2 {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1;
    margin-top: 25px;
    margin-bottom: 55px;
}

h3 {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 0;
}
@media (min-width: 1600px) {
    h3 {
       margin-top: 65px;
    }
}

h4 {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 0;
}

p,
ul {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 400;
    /* For general page styling we use a fixed value.
       Inside #loading-content, we’ll override this to use relative units */
    font-size: 1rem;
    line-height: 1.37;
    margin-bottom: -5px;
}

li {
    margin-top: 10px;
}

hr {
    border: none; /* Remove default styling */
    height: 1px;  /* Set thickness */
    background-color: black;
    margin-top: 15px;
}

.b-footer {
    padding: 1em 2em 2em 2em;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 400;
    font-size: 0.7em;
    color: black;
    text-align: right;
}


/* ========================================================================== */
/* LOGO                                                                       */
/* ========================================================================== */

.b-sys-logo {
    font-size: 3.5em;
    margin-top: 35px;
}
@media (min-width: 1600px) {
    .b-sys-logo {
       margin-top: 45px;
    }
}


/* ========================================================================== */
/* LAYOUT                                                                     */
/* ========================================================================== */

/* Main page grid layout */
.layout-container {
    display: grid;
    grid-template-columns: 40% 60%; /* Left 1/3, Right 2/3 */
    height: 98vh;
}
@media (max-width: 1024px), (max-aspect-ratio: 4/3) {
    .layout-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
}

/* Sidebar (1/3 width) */
.b-sys {
    padding: 2.5em;
    overflow-y: auto;
    max-height: 95vh;
}

/* ========================================================================== */
/* LAYOUT – Right Section (b-model)                                           */
/* ========================================================================== */

/* Ensure the right section uses flex and its height is defined by its grid cell */
.b-model {
    display: flex;
    flex-direction: column;
    height: 100%;      /* This makes it fill its parent (.layout-container)'s height */
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Annotation section: Occupies the top 5% of .b-model */
.b-sys-annotation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 5%;  
    background-color: #f3f3f3;
    padding: 5px;
    margin: 0;
    z-index: 10;
}

/* Model Display: Occupies the bottom 95% of .b-model */
.b-model-verge {
    height: 90%;       /* 95% of the container’s height */
    background-color: #fdfdfd;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    border-radius: 25px 5px 5px 25px; /* Adjust the border-radius if needed */
    border: 1px solid black;
    margin-left: 50px;
    transform: none;
}


/* Additional model elements (remain unchanged) */
.b-model-svg {
    position: absolute;
    top: 10%;       /* Adjust the distance from the bottom as needed */
    left: 12.5%;          /* Start at the horizontal center of the container */
    transform: translateX(-50%);  /* Shift left by half its width to achieve perfect centering */
    width: 50px;        /* Adjust the size as needed */
    height: 50px;
    opacity: 1;
    padding: 0;
    z-index: 0;
}

#b-model-iframe {
    position: flex;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: 0;
    z-index: 1;
}



/* ========================================================================== */
/* TOGGLE                                                                     */
/* ========================================================================== */

/* Toggle container settings (part of .b-sys-annotation, already merged above) */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    font-size: 0.9em;
    font-style: italic;
    color: black;
}

/* Pill toggle style */
.pill {
    width: 50px;
    height: 25px;
    background-color: black;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

/* Circle inside the toggle */
.circle {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: left 0.3s ease-in-out;
}

/* Active toggle state */
.pill.active {
    background-color: #2ac080;
}
.pill.active .circle {
    left: 27px;
}

/* Positioning toggle in top-right corner */
#b-sys-v3d-a1 {
    position: absolute;
    top: 20px;         /* adjust distance from the top */
    right: 20px;       /* adjust distance from the right */
    pointer-events: auto;
}

/* ========================================================================== */
/* BUTTONS                                                                    */
/* ========================================================================== */

button {
    background-color:#fdfdfd;
    border: 1px solid black;
    border-radius: 5px;
    padding: 1em;
}

button:hover {
    background-color:#dcdcdc;
}

/* Button stack container */
.button-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    margin-top: 25px;
}

/* Stacked button style */
.stack-btn {
    width: 100%;
    font-size: 1.2em;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

/* Inline system button */
#return {
    z-index: 100;
    background-color: red;
}

.b-sys-btn {
    margin-top: 35px;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    font-style: italic;
    font-size: 1em;
    color: black;
    cursor: pointer;
    display: inline-block;
    transform-origin: center;
    transition: transform 0.3s ease-out, filter 0.3s ease-in-out;
    backface-visibility: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
.b-sys-btn:hover {
    transform: scale(1.015) translate3d(0, 0, 0);
    color: #2ac080;
}

/* ========================================================================== */
/* CONTENT                                                                    */
/* ========================================================================== */

.b-sys-home {
    max-width: 90%;
}

.b-sys-description {
    margin-bottom: 50px;
}


/* ========================================================================== */
/* ACCORDIONS                                                                 */
/* ========================================================================== */

.b-sys-af {
    margin-top: 25px;
}

.b-sys-af-content {
    padding: 1em;
}

details {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    font-size: 1em;
    margin: 15px 0 -5px;
    background-color:#fdfdfd;
    border: 1px solid black;
    border-radius: 5px;
    box-shadow: 2px 2px 0px black;
    padding: 1em;
}

summary {
    cursor: pointer;
    list-style: none;
}

summary .icon {
    font-size: 14px;
    margin-right: 8px;
    transition: transform 0.3s ease-out;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] summary .icon {
    transform: rotate(90deg);
}

span {
    cursor: pointer;
}

.prompt-text {
    display: inline-block;
    color:#2ac080;
    border-bottom: 2px dashed #2ac080;
    padding-bottom: 0px; /* Fine-tune spacing */
}

.stack-btn {
    margin-bottom: 5px;
    position: relative;
    padding: 1em;
    font-size: 1em;
    font-weight: 600;
    border: 1px solid black;
    background-color: #fdfdfd;
    color: black;
    box-shadow: 2px 2px 0px black;
    cursor: pointer;
    transition: background 0.3s ease;
    overflow: hidden; /* Ensures smooth text transition */
}

.stack-btn:hover {
    background-color: #dcdcdc;
}

/* Modify button text on hover */
.stack-btn::after {
    content: " Learn More →";
    position: absolute;
    right: 2%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-family: "IBM Plex Mono", monospace;
    font-size: 1em;
    font-weight: 400;
    font-style: italic;
}

.stack-btn:hover::after {
    opacity: 1;
}
