.btn-nav {
  border-width: 3px !important; /* Forces a crisp, extra-thick outline */
  font-weight: 500 !important;   /* Ensures a heavy, prominent font weight */
  border-color: #ffffff;
  color: #000000;
}

.btn-nav:hover {
  border-width: 3px !important; /* Forces a crisp, extra-thick outline */
  font-weight: 500 !important;   /* Ensures a heavy, prominent font weight */
  border-color: #ffffff;
  color: #ffffff;
  background-color: #2D2C2D;

}

.btn-olblk {
    background-color: #ebebeb00;
    border-color: #2d2c2d !important;
    color: #000000;
    font-weight: 500;
    border-width: 2px;
    border-radius: 0px;
}

.btn-olblk:hover {
    background-color: #2d2c2dbf;
    border-color: #2D2C2D;
    color: #ffffff;
    font-weight: 500;
}

.btn-tblk {
    background-color: #2D2C2D;
    border-color: #2D2C2D;
    color: #ffffff;
    font-weight: 500;
    border-radius: 0px;

}

.btn-tblk:hover {
    background-color: #2D2C2D;
    border-color: #2D2C2D;
    color: #ffffff;
    font-weight: 500;
}

.btn-blk {
    background-color: #515151;
    border-color: #2D2C2D;
    color: #ffffff;
    border-radius: 15px !important;
    font-weight: 500;
}

.btn-blk:hover {
    background-color: #878787;
    border-color: #2D2C2D;
    color: #ffffff;
}

.btn-leafgreen {
    background-color: #357549;
    border-color: #357549;
    color: #ffffff;
    font-weight: 500;
}

/* Optional: Make it slightly lighter when hovered */
.btn-leafgreen:hover {
    background-color: #357549;
    border-color: #357549;
    color: #ffffff;
}

.btn-treebark {
    background-color: #716558;
    border-color: #716558;
    color: #ffffff;
}

/* Optional: Make it slightly lighter when hovered */
.btn-treebark:hover {
    background-color: #716558;
    border-color: #716558;
    color: #ffffff;
}

.nav-pills {
    --bs-nav-link-color: #ffffff;               /* inactive tab text */
    --bs-nav-link-hover-color: #ffffff;         /* inactive tab on hover */
    --bs-nav-pills-link-active-color: #ffffff;   /* active tab text */
    --bs-nav-pills-link-active-bg: #2D2C2D;      /* active tab background */
    --bs-nav-pills-link-active-border-color: #2D2C2D;
}

.nav-pills .nav-link {
    background-color: #727272;
}

.nav-tabs {
    --bs-nav-link-color: #000000;               /* inactive tab text */
    --bs-nav-link-hover-color: #000000;         /* inactive tab on hover */
    --bs-nav-tabs-link-active-color: #000000;   /* active tab text */
    --bs-nav-tabs-link-active-bg: #f9d78e74;      /* active tab background */
}

.nav-tabs .nav-link {
    /* background-color: rgba(57, 56, 52, 0.057); */
    border-width: 0px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 0.5px;  
    text-decoration-color: #0000002b;

}

.nav-tabs .nav-link.active {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: #00000025;
  
}

/* .tab-content {
    background-color: #ffdf7f39;
} */

.tab-content {
    background-color: #f9d78e74;
    border-width: 0px !important; /* Forces your exact custom thickness */
    padding: 1rem 1.5rem; /* top/bottom, left/right */
    text-align: justify;
    font-weight: 500;
    font-size: larger;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif ;
}

.ns-faint-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 0.5px;
    text-decoration-color: #0000002b;   /* same faint colour as the tab labels */
}

/* .tab-content {
    background-color: #f1f1ef39;
} */


.voice-label {
    display: inline-block;
    width: 5rem;
} 

/* Overrides the background and border lines when a Bootstrap radio is chosen */
.form-check-input:checked {
  background-color: #357549; /* Your new highlight color (e.g., Red) */
  border-color: #357549;     /* Keeps the outer circle color matching */
}

/* Optional: Changes the glowing outline ring when the radio dial is focused */
.form-check-input:focus {
  border-color: #357549;
  box-shadow: 0 0 0 0.25rem rgba(98, 135, 86, 0.173); /* Subtle fading glow match */
}

/* Overrides the background and border lines when a Bootstrap radio is chosen */
.form-check-input:checked {
  background-color: #000000; /* Your new highlight color (e.g., Red) */
  border-color: #000000;     /* Keeps the outer circle color matching */
}

/* Optional: Changes the glowing outline ring when the radio dial is focused */
.form-check-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 0.25rem rgba(98, 135, 86, 0.173); /* Subtle fading glow match */
}

.mt-45, .mt-4\.5 {
  margin-top: 2.6rem; /* adjust value to your preference */
}

/* Removes the default Bootstrap blue glow on focus */
.form-control:focus {
    background-color: #ffffff; /* Keeps it strictly white */
    border-color: #212529 !important; /* Keeps your crisp dark border */
    outline: 0;
    box-shadow: none !important; /* Eliminates the blue shadow ring entirely */
}

.form-select option {
    padding: 0.75rem 1rem;
}

@media (max-width: 575.98px) {
    .col-form-label {
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav .btn-nav { padding-top: .75rem; padding-bottom: .75rem; }
}


/* ---- Phones (narrower than 576px) ---- */
@media (max-width: 575.98px) {
    /* Logo fills the space left beside the Sign Up / Log in buttons (full size once the screen is wide enough) */
    .navbar .navbar-brand { margin-right: 0; }
    .navbar .navbar-brand img { width: min(263px, calc(100vw - 196px)); height: auto; }   /* logged in: leaves room for the bell and menu button */
    .navbar > .container:has(> .ns-guest-nav) .navbar-brand img { width: min(263px, calc(100vw - 172px)); }   /* logged out: leaves room for Sign Up / Log in */

    /* Logged-out navbar (/front): keep the logo and the two buttons on ONE row */
    .navbar > .container:has(> .ns-guest-nav) { flex-wrap: nowrap; }
    .ns-guest-nav { margin-top: 0 !important; }
    .ns-guest-nav .btn-nav { font-size: .95rem; padding: .5rem .5rem; white-space: nowrap; }

    /* The three tabs on /front: smaller text so they stay on one line */
    .front-tabs { flex-wrap: nowrap; gap: .15rem !important; }
    .front-tabs .nav-link { font-size: clamp(.68rem, 3.3vw, .9rem); padding: .4rem .4rem; white-space: nowrap; }

    /* Annotation panes (/front "Show Pronunciation", /script "With Annotations"): a touch smaller text
       (still bigger than the plain script) and less side padding, so more words fit on each line */
    .tab-content .ns-word { font-size: 1.25rem; }
    #show-pronunciation, #annotations-pane, #a-annot { margin-left: -.75rem; margin-right: -.75rem; padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---- Scores tab: column headings, pattern labels and word buttons ---- */
.ns-col-head {
    font-size: .85rem;
    font-weight: 600;
}

.ns-pattern-label {
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
    padding: .15rem .6rem;
    border-radius: 3px;
}

.ns-word-chip {
    background-color: #ffffff00;
    color: #000000;
    border: 1;
    border-radius: 999px;
    font-weight: 520;
    font-size: 1rem;
    padding: .2rem .75rem;
}

.ns-word-chip:hover {
    background-color: #51515129;
}

/* room under the EN | 日本語 toggle, only where the logged-out nav buttons stack (below Bootstrap's lg) */
@media (max-width: 991.98px) {
    .ns-guest-nav .ns-lang-toggle { display: inline-block; margin-bottom: .6rem; }
}

/* logged-in menu: give the EN | 日本語 toggle the same side padding as the buttons under it */
#nav-links .ns-lang-toggle { display: inline-block; padding: .375rem .75rem; }

/* wide screens: more room between the EN | 日本語 toggle and the Sign Up / Log in buttons */
@media (min-width: 992px) {
    .ns-guest-nav .ns-lang-toggle { margin-right: 1.5rem; }
}