
:root {

  --btn3: hsl(160, 86%, 63%);
}



/* ── Rainbow jelly buttons: jela (purple) → jelh (dark red) ── */

/* 1 — Purple  (mode 10 / default) */
.jela {
    position: relative;
    padding: .5rem 1.5rem;
    border-radius: 3.75rem;
    line-height: 2.0rem;
    font-size: calc(12px + 2vw);
    font-weight: 600;
    min-width: 40%;

    border: 1px solid #C47AFF;
    background-image: linear-gradient(-180deg, #C47AFF 0%, #7700CC 100%);
    box-shadow:
        0 1rem 1.25rem 0 rgba(80, 0, 150, 0.50),
        0 -0.25rem 1.5rem rgba(110, 0, 190, 1) inset,
        0 0.25rem 0.5rem 0 rgba(200, 130, 255, 1) inset;
}

.jela span {
    color: #1E003F;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.6),
        -1px -1px 0 rgba(255, 255, 255, 0.4);
}

.jela::before {
    display: none;
}


/* 2 — Indigo  (mode 70) */
.jelb {
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 3.75rem;
    line-height: 2.0rem;
    font-size: calc(12px + 2vw);
    font-weight: 600;
    min-width: 40%;

    border: 1px solid #8877FF;
    background-image: linear-gradient(-180deg, #8877FF 0%, #3311BB 100%);
    box-shadow:
        0 1rem 1.25rem 0 rgba(30, 10, 140, 0.5),
        0 -0.25rem 1.5rem rgba(50, 20, 170, 1) inset,
        0 0.25rem 0.5rem 0 rgba(150, 130, 255, 1) inset;
}

.jelb span {
    color: #0A0035;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.6),
        -1px -1px 0 rgba(255, 255, 255, 0.4);
}

.jelb::before {
    display: none;
}


/* 3 — Blue  (mode 80) */
.jelc {
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 3.75rem;
    line-height: 2.0rem;
    font-size: calc(12px + 2vw);
    font-weight: 600;
    min-width: 40%;

    border: 1px solid #66AAFF;
    background-image: linear-gradient(-180deg, #66AAFF 0%, #0044CC 100%);
    box-shadow:
        0 1rem 1.25rem 0 rgba(0, 40, 150, 0.5),
        0 -0.25rem 1.5rem rgba(0, 60, 185, 1) inset,
        0 0.25rem 0.5rem 0 rgba(110, 170, 255, 1) inset;
}

.jelc span {
    color: #00123A;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.6),
        -1px -1px 0 rgba(255, 255, 255, 0.4);
}

.jelc::before {
    display: none;
}


/* 4 — Cyan  (mode 90) */
.jeld {
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 3.75rem;
    line-height: 2.0rem;
    font-size: calc(12px + 2vw);
    font-weight: 600;
    min-width: 40%;

    border: 1px solid #55DDFF;
    background-image: linear-gradient(-180deg, #55DDFF 0%, #008899 100%);
    box-shadow:
        0 1rem 1.25rem 0 rgba(0, 100, 130, 0.5),
        0 -0.25rem 1.5rem rgba(0, 130, 160, 1) inset,
        0 0.25rem 0.5rem 0 rgba(100, 230, 255, 1) inset;
}

.jeld span {
    color: #001C26;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.6),
        -1px -1px 0 rgba(255, 255, 255, 0.4);
}

.jeld::before {
    display: none;
}


/* 5 — Green  (mode 50) */
.jele {
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 3.75rem;
    line-height: 2.0rem;
    font-size: calc(12px + 2vw);
    font-weight: 600;
    min-width: 40%;

    border: 1px solid #44EE88;
    background-image: linear-gradient(-180deg, #44EE88 0%, #007733 100%);
    box-shadow:
        0 1rem 1.25rem 0 rgba(0, 80, 30, 0.6),
        0 -0.25rem 1.5rem rgba(0, 110, 45, 1) inset,
        0 0.25rem 0.5rem 0 rgba(80, 240, 140, 1) inset;
}

.jele span {
    color: #001A08;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.6),
        -1px -1px 0 rgba(255, 255, 255, 0.4);
}

.jele::before {
    display: none;
}


/* 6 — Yellow  (mode 60) */
.jelf {
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 3.75rem;
    line-height: 2.0rem;
    font-size: calc(12px + 2vw);
    font-weight: 600;
    min-width: 40%;

    border: 1px solid #FFEE55;
    background-image: linear-gradient(-180deg, #FFEE55 0%, #AA8800 100%);
    box-shadow:
        0 1rem 1.25rem 0 rgba(130, 100, 0, 0.6),
        0 -0.25rem 1.5rem rgba(160, 120, 0, 1) inset,
        0 0.25rem 0.5rem 0 rgba(255, 240, 100, 1) inset;
}

.jelf span {
    color: #2A1F00;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.5),
        -1px -1px 0 rgba(255, 255, 255, 0.35);
}

.jelf::before {
    display: none;
}


/* 7 — Orange  (mode 40) */
.jelg {
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 3.75rem;
    line-height: 2.0rem;
    font-size: calc(12px + 2vw);
    font-weight: 600;
    min-width: 40%;

    border: 1px solid #FFB344;
    background-image: linear-gradient(-180deg, #FFB344 0%, #BB5500 100%);
    box-shadow:
        0 1rem 1.25rem 0 rgba(150, 60, 0, 0.5),
        0 -0.25rem 1.5rem rgba(180, 80, 0, 1) inset,
        0 0.25rem 0.5rem 0 rgba(255, 185, 90, 1) inset;
}

.jelg span {
    color: #2A0D00;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.6),
        -1px -1px 0 rgba(255, 255, 255, 0.4);
}

.jelg::before {
    display: none;
}


/* 8 — Dark Red  (mode 30) */
.jelh {
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 3.75rem;
    line-height: 2.0rem;
    font-size: calc(12px + 2vw);
    font-weight: 600;
    min-width: 40%;

    border: 1px solid #FF6666;
    background-image: linear-gradient(-180deg, #FF6666 0%, #990000 100%);
    box-shadow:
        0 1rem 1.25rem 0 rgba(130, 0, 0, 0.5),
        0 -0.25rem 1.5rem rgba(165, 0, 0, 1) inset,
        0 0.25rem 0.5rem 0 rgba(255, 110, 110, 1) inset;
}

.jelh span {
    color: #1F0000;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.6),
        -1px -1px 0 rgba(255, 255, 255, 0.4);
}

.jelh::before {
    display: none;
}

.score-text {
        align-items: center;
        gap: 5px;

    }

.jelscore {
    cursor: pointer;
    position: relative;
    padding: 0.5rem 1.0rem;
    border-radius: 3.75rem;
    line-height: 2.0rem;
    font-size: calc(12px + 2vw);
    font-weight: 600;
    min-width: 6rem;


    border: 1px solid #5E008F; /* Darker violet border */
    background-image: linear-gradient(-180deg, #A64DFF 0%, #5E008F 100%); /* Gradient in Dark Violet tones */
    box-shadow:
        0 1rem 1.25rem 0 rgba(94, 0, 143, 0.5), /* Soft violet shadow */
        0 -0.25rem 1.5rem rgba(148, 0, 211, 1) inset, /* DarkViolet inset */
        0 0.75rem 0.5rem rgba(255, 255, 255, 0.4) inset, /* White glossy highlight */
        0 0.25rem 0.5rem 0 rgba(166, 77, 255, 1) inset; /* Soft violet inset */
}

.jelscore span {
    color: #E5DAF2; /* Soft lavender text */
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.6), /* Dark shadow for depth */
        -1px -1px 0 rgba(255, 255, 255, 0.4); /* Light highlight */
}

.jelscore::before {
    content: "";
    display: block;
    height: 0.25rem;
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 6vw);
    background: #fff;
    border-radius: 100%;
    opacity: 0.7;
    background-image: linear-gradient(
        -270deg,
        rgba(255, 255, 255, 0) 0%,
        #FFFFFF 20%,
        #FFFFFF 80%,
        rgba(255, 255, 255, 0) 100%
    );
}

@keyframes blurr3 {
  0%,
  100% {
    box-shadow: 0 0 10px var(--btn3);
  }

  50% {
    box-shadow: 0 0 36px var(--btn3);
  }
}


.halscore {
  font-size: calc(12px + 1vw);
  line-height: calc(12px + 2vw);
/*   text-shadow: 0 0 5px #f562ff, 0 0 15px #f562ff, 0 0 25px #f562ff,
    0 0 20px #f562ff, 0 0 30px #890092, 0 0 80px #890092, 0 0 80px #890092;
  color: #fccaff; */
  text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
    color: #fff6a9;

  text-align: center;
  animation: blink 12s infinite;
  -webkit-animation: blink 12s infinite;
}

@-webkit-keyframes blink {
  20%,
  24%,
  55% {
    color: #111;
    text-shadow: none;
  }

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
/*     color: #fccaff;
    text-shadow: 0 0 5px #f562ff, 0 0 15px #f562ff, 0 0 25px #f562ff,
      0 0 20px #f562ff, 0 0 30px #890092, 0 0 80px #890092, 0 0 80px #890092; */
  text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
    color: #fff6a9;
  }
}

@keyframes blink {
  20%,
  24%,
  55% {
    color: #111;
    text-shadow: none;
  }

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
/*     color: #fccaff;
    text-shadow: 0 0 5px #f562ff, 0 0 15px #f562ff, 0 0 25px #f562ff,
      0 0 20px #f562ff, 0 0 30px #890092, 0 0 80px #890092, 0 0 80px #890092; */
  text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
    color: #fff6a9;
  }
}

/* The Modal Background */
.voice-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* The Modal Content Box */
.voice-modal-content {
    background-color: #FFDEAD;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #8b7355;

    box-sizing: border-box; /* Ensures padding doesn't mess up the width */
}

/* 3D Styled Select Box */
.select-3d {
    width: 100%;
    padding: 10px;
    margin: 20px 0px;
    background: linear-gradient(to bottom, #B0C4DE 0%, #8ea7c7 100%);
    border-top: 2px solid #d1dbe9;
    border-left: 2px solid #d1dbe9;
    border-right: 3px solid #465a75;
    border-bottom: 3px solid #465a75;
    border-radius: 6px;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.8), 2px 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    outline: none;

    /* Centering the text inside the box */
    text-align: left;
    text-align-last: left;
}


/* Base Button Style */
.btn-3d {
    padding: 10px 25px;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 2px 3px 0px rgba(0, 0, 0, 0.3);
}

/* Save Button Specifics */
.btn-save {
    background: linear-gradient(to bottom, #28a745 0%, #1e7e34 100%);
    border-top: 2px solid #34ce57;
    border-left: 2px solid #34ce57;
    border-right: 2px solid #145523;
    border-bottom: 2px solid #145523;
}

/* Cancel Button Specifics */
.btn-cancel {
    background: linear-gradient(to bottom, #dc3545 0%, #a71d2a 100%);
    border-top: 2px solid #f14c5d;
    border-left: 2px solid #f14c5d;
    border-right: 2px solid #721c24;
    border-bottom: 2px solid #721c24;
}

/* The "Pressed" Effect */
.btn-3d:active {
    transform: translateY(2px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}
