body {
    font-family: sans-serif;
    background: radial-gradient(1200px 800px at 20% 10%, #a7c5fd 0%, transparent 60%),
              radial-gradient(1000px 600px at 80% 90%, #fdb7d6 0%, transparent 60%),
              linear-gradient(180deg, #eef2f7 0%, #f6f8fb 100%);
}

.everything {
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
    height: 100vh;           /* full page height */
}

.stack-group {
    display: flex;
    flex-direction: column; /* vertical stacking */
    align-items: center;    /* center horizontally */
    background-color: #1e1e1e;
    border: 10px solid #1e1e1e; /* 20px thick white border */
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,1.0);
}


#workspace {
    position: relative;     /* parent must be relative for absolute children */
}
#tab-container {
    position: absolute;
}
.tabs button {
    background: #444;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 5px;
    cursor: pointer;
}
.tabs button.active {
    background: #0077ff;
}
.tab-content {
    display: none;
    width: 100%;
    height: 100%;
}
.tab-content.active {
    display: block;
}

#toggle-training {
    width: 60px;
    align: center;
}

.relative-container {
    position: relative;
    display: inline-block;  /* keep side by side */
    vertical-align: top;    /* align top edges */
    margin-left: -2px;
    margin-right: -2px;
}

#canvas-input,
#canvas-target {
    display: block;
}

.gear {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.7);
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 6px;
    height: 27px;
}

#canvas-input-info-popup {
    z-index: 100;
    position: absolute;
    top: -165px;
    right: 10px;

    font-size: 14px;

    display: flex;
    flex-direction: column;
    gap: 8px;              /* space between items */
    align-items: flex-start; /* left-align */
    padding: 10px;
    background: #f5f5f5;  /* just for clarity */
    border-radius: 6px;

    width: 250px;

    /* Scrollable */
    max-height: 150px;      /* set the height you want */
    overflow-y: auto;       /* vertical scroll if content exceeds height */
    overflow-x: hidden;     /* hide horizontal scroll */
}

#canvas-target-gear-popup {
    z-index: 100;
    position: absolute;
    top: -165px;
    right: 10px;

    display: flex;
    flex-direction: column;
    gap: 8px;              /* space between items */
    align-items: flex-start; /* left-align */
    padding: 10px;
    background: #f5f5f5;  /* just for clarity */
    border-radius: 6px;

    width: 200px;

    /* Scrollable */
    max-height: 150px;      /* set the height you want */
    overflow-y: auto;       /* vertical scroll if content exceeds height */
    overflow-x: hidden;     /* hide horizontal scroll */
}

#canvas-target-gear-popup select,
#canvas-target-gear-popup #dropdown-list-container label {
    display: block; /* each takes full line */
    margin: 2px 0;
}

#canvas-target-info-popup {
    z-index: 100;
    position: absolute;
    top: -50px;
    right: 10px;

    font-size: 14px;

    display: flex;
    flex-direction: column;
    gap: 8px;              /* space between items */
    align-items: flex-start; /* left-align */
    padding: 10px;
    background: #f5f5f5;  /* just for clarity */
    border-radius: 6px;

    width: 250px;

    /* Scrollable */
    max-height: 150px;      /* set the height you want */
    overflow-y: auto;       /* vertical scroll if content exceeds height */
    overflow-x: hidden;     /* hide horizontal scroll */
}