@font-face {
  font-family: "OpenSans";
  src: url("../fonts/OpenSans/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
}

html {
  margin: 0;
}

body {
    background-color: #eeeeee;
    font-family: "OpenSans", sans-serif;
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0px solid #333;
  padding: 10px 0 0 0;
  margin-top: auto;
}

button {
  background: #c3c3c3;
  color: #fff;
  border: 0px solid #ccc;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 0;
}

button:hover {
  background: #676773;
}

button:active {
  background: #676773;
  color: #aaddff;
}

footer button {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 0;
    color: #808080;
    font: inherit;
    text-decoration: none;
    font-size: 11px;
    font-weight: 350;
    line-height: inherit;
    cursor: pointer;
    box-shadow: none;
}

footer button:hover {
    color: #808080;
    text-decoration: none;
    font-weight: 600;
    background: none;
    box-shadow: none;
    }

footer button:active {
    background: none;

}

footer button:focus-visible {
    outline: 2px solid #99c5ff;
    outline-offset: 2px;
    background: none;
    box-shadow: none;
}

.bigbox {
    background-color: #fafafa;
    color: #222222;
    border-radius: 10px;
    margin: 20px;
    padding: 40px 40px 20px 40px;
    border: 0px solid #ff0000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.hline {
    width: 100%;
    height: 1px;
    background: #ccc;
    margin: 20px 0;
}

.column_selector_box {
    margin: 20px 0;
    background: #ffffff;
    border: 0px solid #121212;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.10);
}

.custom_navbar {
  display: flex;                            /* d-flex */
  top: 0;                                   /* top-0 */
  left: 0;                                  /* start-0 */
  padding: 0;             /* */
  z-index: 3;                               /* z-3 */
  justify-content: space-between;           /* justify-content-between */
  align-items: center;                      /* align-items-center */
  border: 0px solid #ff00ff;

}

.logo {
    display: flex;
    align-items: center;
    border: 0px solid #505050;
}

.logotype {
    margin-left: 20px;
    border: 0px solid #00ff00;
    font-size: 24px;
    font-weight: 600;
}

.top_buttons {
    display: inline-flex;       /* lay buttons out in a row */
    align-items: center;        /* vertical centering */
    gap: 10px;                   /* space between buttons */
    border: 0px solid #898989;
}

.plot_menu {
    gap: 20px;
    border: 0px solid #590595;
}

.text_content {
    border: 0px solid #590595;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
}

h1 {
    border: 0px solid #590595;
    margin-top: 0;
}


/* minimal replacements after removing Bootstrap */
.d-none { display: none !important; }
.collapse { display: none; }
.collapse.show { display: block; }
.modal { display: none; }
.modal.show { display: block; }
/* optional scroll lock if you keep document.body.classList.add('modal-open') */
.modal-open { overflow: hidden; }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;     /* add this */
    align-items: center;          /* and this */
    z-index: 1000;
}

.modal.show {
    display: flex;                /* ensures flex centering is applied */
}

.modal > div {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ================================================== */
/* ========== COLLAPSE-EXPAND BUTTON START ========== */
/* ================================================== */

.collapse_expand_button {
    height: 24px;
    width: 24px;
    vertical-align: middle;
    margin: 0 10px;
    border: 0px solid #808080;
    padding: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 0 0;
}

.collapse_expand_button:hover {
    height: 24px;
    width: 24px;
    vertical-align: middle;
    margin: 0 10px;
    padding: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 0 0;
}

.collapse_expand_button:active {
    height: 24px;
    width: 24px;
    vertical-align: middle;
    margin: 0 10px;
    padding: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 0 0;
}

.collapse_expand_button span {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: translateY(-1.5px);
}

/* ================================================ */
/* ========== COLLAPSE-EXPAND BUTTON END ========== */
/* ================================================ */

/* ==================================== */
/* ========== X BUTTON START ========== */
/* ==================================== */

.close_button {
    height: 24px;
    width: 24px;
    vertical-align: middle;
    margin: 0 10px;
    border: 0px solid #808080;
    padding: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 0 0;
    position: absolute;
    top: 20px;
    right: 12px;
}

.close_button:hover {
    height: 24px;
    width: 24px;
    vertical-align: middle;
    margin: 0 10px;
    padding: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 0 0;
}

.close_button:active {
    height: 24px;
    width: 24px;
    vertical-align: middle;
    margin: 0 10px;
    padding: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 0 0;
}

.close_button span {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: translateY(-1.5px);
}

/* ================================== */
/* ========== X BUTTON END ========== */
/* ================================== */

/* ================================================= */
/* ========== COLUMN SELECTOR STYLE START ========== */
/* ================================================= */

.columnSelectorInner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    padding-top: 20px;
}

/* Make the first THREE items equal-width columns */
.columnSelectorInner > div:nth-child(1),
.columnSelectorInner > div:nth-child(2),
.columnSelectorInner > div:nth-child(3) {
    flex: 1 1 0;
    min-width: 260px;
}

/* Give the X/Y forms a nice scrollable box */
.columnSelectorInner > div > form {
    max-height: 300px;
    overflow: auto;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

/* Section headings */
.columnSelectorInner > div > div:first-child {
    font-weight: 600;
    margin-bottom: 6px;
}

/* Make the FOURTH block (Create Graph) full width below the three columns */
.columnSelectorInner > div:nth-child(4) {
    flex: 0 0 100%;
    text-align: center;
    margin-top: 0px;
}

/* Settings */
label[for="windowSizeInput"],
label[for="overlapInput"],
label[for="subsampleInput"] {
    display: inline-block;
    width: 120px;
    margin-right: 10px;
}

#windowSizeInput,
#overlapInput,
#subsampleInput {
    display: inline-block;
    width: 100px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 6px 10px;
    background: #fff;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* force each label–input pair onto its own line */
label[for="windowSizeInput"]::after,
label[for="overlapInput"]::after,
label[for="subsampleInput"]::after {
    content: "";
    display: block;
}

.smalltext {
    font-size: 13px;
    margin-bottom: 20px;
}

/* =============================================== */
/* ========== COLUMN SELECTOR STYLE END ========== */
/* =============================================== */

/* ========================================= */
/* ========== SLICER SLIDER START ========== */
/* ========================================= */

#plotSliderPrev,
#plotSliderNext {
    padding: 6px;
    width: 30px;
    font-size: 10px;
    margin: 10px 0 10px 0;
    border-radius: 4px;
    box-shadow: 0 0 0;
    background: #c3c3c3;
    color: #fafafa;
}

#plotSliderPrev:hover,
#plotSliderNext:hover {
    background: #676773;
}

#plotSliderPrev:active,
#plotSliderNext:active {
    background: #676773;
    color: #aaddff;
}

/* wrapper */
#plotNav {
    gap: 8px;
}

/* buttons */
.plotNavBtn {
    background: #e8eef7;
    border: 1px solid #ccd4e0;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}
.plotNavBtn:hover { background: #d5e2f5; }
.plotNavBtn:active { transform: translateY(1px); }
.plotNavBtn:disabled { opacity: 0.5; cursor: default; }

/* slider (cross-browser) */
.plotNavSlider {
    height: 6px;
    flex: 1 1 auto;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}
/* track */
.plotNavSlider::-webkit-slider-runnable-track {
    height: 6px;
    background: #dfe6ef;
    border-radius: 999px;
}
.plotNavSlider::-moz-range-track {
    height: 6px;
    background: #dfe6ef;
    border-radius: 999px;
}
/* thumb */
.plotNavSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 20px;
    background: #c3c3c3;
    border-radius: 4px;
    margin-top: -4px; /* centers on 6px track */
    cursor: pointer;
}
.plotNavSlider::-moz-range-thumb {
    width: 10px;
    height: 20px;
    background: #c3c3c3;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ======================================= */
/* ========== SLICER SLIDER END ========== */
/* ======================================= */
