    #practiceArea {
        position: absolute;
        left: 50%;
        top: 105px;
        transform: translate(-50%);
        border-radius: 1rem;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        z-index: 1;
        padding: 5px;
        overflow-y: auto;
        background-color: #ecebeb;
        max-height: 80vh;
        width: 700px;
        display: none;
    }

    #practice-title {
        text-align: center;
        font-size: 25px;
        font-family: artifika;
        height: 50px;
        padding-top: 10px;
        margin-bottom: 10px;
    }

    #lang-direction-section {
        /* background-color: pink; */
        height: 35px;
        width: 95%;
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-self: center;
        margin: 0 auto;
    }

    #practiceArea input[type="radio"] {
        transform: scale(1.5);
        margin-right: 5px;
    }

    #practice-location {
        color: purple;
        text-align: center;
    }

    #practice-section {
        display: flex;
        flex-direction: column;
        height: 33vh;
    }

    #practice-partOfSpeech {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 95%;
        height: 30px;
        font-size: 13px;
        font-family: Arial, Helvetica, sans-serif;
        color: dodgerblue;
        font-weight: bold;
    }

    #practice-dictation {
        display: none;
        text-align: center;
    }

    #practice-foreign-section,
    #practice-english-section,
    #practice-comments-section {
        /* background-color: lemonchiffon; */
        /* height: 40%; */
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        padding: 5px 10px 5px 10px;
    }

    #practice-foreign-section {
        height: 200px;
        font-size: 40px;
        color: darkgreen;
        cursor: pointer;
    }

    #practice-english-section {
        height: 200px;
        font-size: 30px;
        color: darkblue;
    }

    #practice-comments-section {
        height: 100px;
        font-size: 12px;
        color: brown;
    }

    #practice-navigation-section {
        /* background-color: lightgreen; */
        height: 100px;
        width: 95%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        margin: 0 auto;
    }

    #btnPrevious,
    #btnNext,
    #btnReveal {
        transform: scale(1.3);
    }


    /* Start of options section */

    #practice-option-section {
        /* background-color: lightslategrey; */
        height: 10%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 95%;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .buttons {
        width: 40px;
        height: 40px;
    }

    #practice-option-section .buttons {
        /* width: 100%;
        height: 100%; */
        border-color: gray;
        background-image: -webkit-linear-gradient(top, WhiteSmoke, #b4b3b3);
        background-image: -moz-linear-gradient(top, WhiteSmoke, #b4b3b3);
        background-image: -ms-linear-gradient(top, WhiteSmoke, #b4b3b3);
        background-image: -o-linear-gradient(top, WhiteSmoke, #b4b3b3);
        background-image: linear-gradient(to bottom, WhiteSmoke, #b4b3b3);
        background-color: dodgerblue;
        border-radius: 10px;
        color: white;
    }

    #practice-manage-saved-modal-body {
        height: 600px;
        width: 100%;
        overflow-y: auto;
        overflow-x: auto;
    }

    #ractice-manage-saved-modal-title {
        padding: 10px;
    }

    #practice-option-section .buttons:hover {
        /* background: brown; */
        text-decoration: none;
        color: dodgerblue;
    }

    .fa-long-arrow-alt-left,
    .fa-save,
    .fa-align-justify,
    .fa-minus,
    .fa-plus,
    .fa-random,
    .fa-cog {
        font-size: 18px;
    }

    #exit-auto-mode {
        display: flex;
        justify-content: center;
        display: none;
    }

    #langDirection1,
    #langDirection2,
    #langDirection3 {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 17px;
    }

    .practice-modals {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1500;
        background: rgba(0, 0, 0, 0.65);
        overflow-y: auto;
        padding: 20px 10px;
        align-items: flex-start;
    }

    #practice-modal-1-content,
    #practice-modal-content-2,
    #practice-alert-content {
        display: flex;
        flex-direction: column;
        width: 360px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 600px;
        overflow-x: auto;
        border-radius: 10px;
    }

    #practice-modal-1-header,
    #practice-modal-2-header,
    #practice-alert-header,
    #practice-filter-modal-title,
    practice-manage-saved-modal-header {
        text-align: center;
        font-size: 20px;
        font-family: 'Open Sans', sans-serif;
        padding: 10px;
    }

    #practice-alert-body {
        font-size: 18px;
        font-family: 'Open Sans', sans-serif;
        padding: 10px;
        text-align: center;
    }

    .modal-word-list {
        padding: 0px 8px;
        display: flex;
    }

    .modal-foreign-view-list {
        width: 140px;
        padding-right: 5px;
    }

    .modal-english-view-list {
        width: 200px;
    }

    #practice-modal-1-footer,
    #practice-modal-2-footer,
    #practice-alert-footer,
    #practice-filter-modal-footer {
        text-align: center;
        padding: 8px;
    }

    /* Start of modal for setup options */
    #setupOptions,
    #autoSetupOptions,
    #practice-filter-modal-content {
        position: absolute;
        top: 65px;
        left: 50%;
        transform: translate(-50%);
        background-color: rgba(46, 46, 56, 1);
        border-radius: 30px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        z-index: 1;
        width: 360px;
        display: flex;
        flex-direction: column;
        padding-bottom: 20px;
    }

    #setupTitle {
        font-size: 30px;
        color: white;
        font-weight: bold;
        text-align: center;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    #setupSelections {
        display: flex;
        flex-direction: column;
        padding-left: 30px;
        color: white;
        margin-bottom: 10px;
    }

    #setupNavigation {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .setup-button-style {
        /* width: 200px;
        margin: 10px 0 0 13px; */
    }

    #setupSave {
        flex: 1;
        text-align: center;
    }

    #setupAutoOptions {
        flex: 1;
        text-align: left;
        padding-left: 20px;
        transform: scale(.7, .7);
    }

    #setupCancel {
        flex: 1;
        text-align: center;
        /* padding-right: 20px; */
        /*transform: scale(.7, .7);*/
    }

    #btnFilters {
        display: none;
    }

    #filter-section {
        display: flex;
        flex-direction: column;
        font-size: 20px;
        padding-left: 30px;
    }

    .filters {
        line-height: 20px;
        padding-bottom: 20px;
    }

    .filter-box {
        transform: scale(1.5, 1.5);
    }

    .saved-row {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .modal-foreign-list {
        width: 140px;
        margin-left: 10px;
        padding-bottom: 4px;
    }

    .modal-english-list {
        width: 145px;
        color: darkblue;
        font-size: 15px;
    }

    #my-modal-content {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 600px;
        border-radius: 10px;
        background-color: white;
        width: fit-content;
        /* Adapt to content width */
        min-width: 380px;
        /* Match title/footer width */
    }


    .clsInflectionWord {
        font-size: 20px;
        font-family: Arial, Helvetica, sans-serif;
        color: darkgreen;
    }

    .form-check-input {
        transform: scale(1.5, 1.5);
        margin-right: 10px;
    }

    .form-check-inline {
        padding: 5px 0px;
        margin-bottom: 10px;
    }

    .form-check-label,
    #cmbFontStyle {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
    }

    #auto-mode-title {
        margin-top: 15px;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 20px;
        color: white;
        font-family: Arial, Helvetica, sans-serif;
    }

    #cls-auto-mode-selection-label {
        background-color: dodgerblue;
        color: white;
        font-size: 18px;
        font-family: Arial, Helvetica, sans-serif;
        border-radius: 7px 0px 0px 7px;
        padding: 5px;
        border: 1px solid white;
    }

    #selAutoOptions {
        font-size: 18px;
        font-family: Arial, Helvetica, sans-serif;
        height: 33px;
    }

    #auto-mode-option-selection {
        text-align: center;
    }

    #auto-mode-option-title {
        font-size: 25px;
        font-family: Arial, Helvetica, sans-serif;
        text-align: center;
        color: coral;
        margin: 10px 0px;
    }

    #auto-mode-navbar {
        display: flex;
        justify-content: center;
        margin: 10px 0px;
    }

    #auto-mode-option-descr {
        color: white;
        font-size: 15px;
        font-family: Arial, Helvetica, sans-serif;
    }

    #exit-auto-mode {
        text-align: center;
    }

    #practice-filter-modal-content {
        width: 250px;
        border-radius: 20px;
        padding-bottom: 0px;
    }

    #practice-filter-modal-header {
        border-radius: 15px 15px 0px 0px;
    }

    #practice-filter-modal-footer {
        border-radius: 0px 0px 15px 15px;
    }

    #practice-filter-section {
        margin-left: 55px;
    }

    .filter-row {
        margin-bottom: 10px;
    }

    #practice-inflection-content {
        margin: 0 auto;
        width: 100%;
        max-width: 720px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        position: relative;
        top: 55px;
    }

    #inflection-title,
    #inflection-word,
    #inflection-english,
    .tense-label {
        text-align: center;
        padding: 10px 16px;
        width: 100%;
        box-sizing: border-box;
        font-family: Arial, sans-serif;
    }

    #inflection-title {
        font-size: 1.35rem;
        border-radius: 12px 12px 0 0;
    }

    #inflection-word {
        font-size: 2rem;
        font-weight: bold;
        background: white;
    }

    #inflection-english {
        font-size: 1.15rem;
        background: #f9f9ff;
    }

    .tense-label {
        font-style: italic;
        font-size: 1rem;
        padding-bottom: 12px;
    }

    #practice-inflection-body {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px 16px;
        margin: 0 -10px;
        background: white;
    }

    .inflection-table {
        width: 100%;
        min-width: 580px;
        border-collapse: collapse;
    }

    tr.inflection-row {
        border-bottom: 1px solid #e8e8e8;
    }


    td.inflection-cell {
        padding: 3px 12px;
        vertical-align: middle;
    }


    td.inflection-cell.header,
    td.inflection-cell.title {
        font-weight: bold;
        background: #f0f2ff;
        text-align: left;
        white-space: nowrap;
    }

    #practice-inflection-footer {
        padding: 16px;
        text-align: center;
        background: #f8f9fa;
        border-radius: 0 0 12px 12px;
    }

    #practice-inflection-body::-webkit-scrollbar {
        height: 8px;
    }

    #practice-inflection-body::-webkit-scrollbar-thumb {
        background: #aaa;
        border-radius: 4px;
    }



    #practice-modal-1-body {
        height: 400px;
        overflow-y: auto;
    }

    .flex-inflection-cell-title {
        padding-left: 10px;
    }

    @media only screen and (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {

        #practiceArea {
            width: 90vw;

        }
    }

    @media only screen and (min-width: 320px) and (max-width: 480px) and (orientation: portrait) {

        #practiceArea {
            width: 96vw;

        }

    }




/* Main container - sets fixed dimensions for the modal */
#practice-manage-saved-content {
  display: flex;
  flex-direction: column;
  height: 80vh; /* Adjust based on your needs */
  max-height: 600px; /* Optional max height */
  width: 100%;
  max-width: 500px; /* Typical mobile width */
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Title bar - fixed at top */
#manage-saved-title {
  flex-shrink: 0; /* Prevents title from shrinking */
    text-align: center;
    font-size: 25px;
    font-family: sans-serif;  
}

/* Scrollable table wrapper */
.table-scroll-wrapper {
  flex: 1 1 auto; /* Takes up available space */
  overflow: auto; /* Enables both horizontal and vertical scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  background-color: #fff;
  padding: 0; /* Remove padding to maximize table space */
}

/* Table styling */
.manage-saved-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 300px; /* Ensures table doesn't get too narrow */
  font-size: 14px; /* Comfortable reading size on mobile */
}

/* Table cells */
.manage-saved-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  word-break: break-word; /* Prevents long words from breaking layout */
}

/* ZEBRA STRIPES - Even rows (white) */
.manage-saved-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

/* ZEBRA STRIPES - Odd rows (light gray) */
.manage-saved-table tbody tr:nth-child(odd) {
  background-color: #e7e8e9; /* Very light gray - subtle and professional */
}

/* Alternative zebra stripe colors - choose one of these options if you prefer */

/* Option 2: Slightly more visible stripes */
/*
.manage-saved-table tbody tr:nth-child(odd) {
  background-color: #f2f2f2;
}
*/

/* Option 3: Blue-tinted stripes */
/*
.manage-saved-table tbody tr:nth-child(odd) {
  background-color: #f5f9ff;
}
*/

/* Option 4: Warmer stripes */
/*
.manage-saved-table tbody tr:nth-child(odd) {
  background-color: #faf7f2;
}
*/

/* Checkbox column - fixed width */
.manage-saved-table td:first-child {
  width: 40px;
  text-align: center;
  padding-left: 12px;
}

/* Foreign language column */
.manage-saved-table td:nth-child(2) {
  font-weight: 500;
  min-width: 120px; /* Minimum width for language column */
}

/* English translation column */
.manage-saved-table td:nth-child(3) {
  color: #555;
  min-width: 120px; /* Minimum width for English column */
}

/* Checkbox styling */
.practice-saved-chkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0;
}

/* Row hover effect for better UX */
.saved-row:hover {
  background-color: #c6c7c8 !important; /* Slightly darker than the stripes */
}

/* Footer - fixed at bottom - MODIFIED TO KEEP BUTTONS ON ONE LINE */
#practice-manage-saved-modal-footer {
  flex-shrink: 0; /* Prevents footer from shrinking */
  padding: 12px 16px; /* Slightly reduced vertical padding */
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: flex;
  gap: 8px;
  justify-content: space-around;
  flex-wrap: nowrap; /* CHANGE: Prevents wrapping */
  overflow-x: auto; /* ADDED: Allows horizontal scrolling if needed on very small screens */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Button styling - MODIFIED FOR ONE-LINE LAYOUT */
.smallerButton {
  padding: 8px 12px; /* Slightly reduced horizontal padding */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px; /* Slightly smaller font */
  font-weight: 500;
  transition: background-color 0.2s;
  white-space: nowrap; /* Prevents button text from wrapping */
  flex: 0 0 auto; /* Prevents buttons from shrinking */
}

/* Make Delete All button slightly more compact */
#btnModalSavedWordsDeleteAll {
  padding: 8px 10px; /* Even more compact for the first button */
}

/* Button colors */
.button-green {
  background-color: #28a745;
  color: white;
}

.button-green:hover {
  background-color: #218838;
}

.button-green:active {
  background-color: #1e7e34;
}

/* Hide scrollbar for cleaner look on Chrome/Safari (optional) */
#practice-manage-saved-modal-footer::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for Firefox (optional) */
#practice-manage-saved-modal-footer {
  scrollbar-width: none;
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
  #practice-manage-saved-content {
    height: 60vh; /* More height on smaller screens */
    max-width: 100%;
    border-radius: 0; /* Full screen on very small devices */
  }
  
  .smallerButton {
    padding: 8px 10px; /* Even smaller padding on mobile */
    font-size: 12px; /* Smaller font on mobile */
  }
  
  #btnModalSavedWordsDeleteAll {
    padding: 8px 8px; /* Minimal padding for the first button */
  }
}

.opt-time-text{
    width:25px;
}

#option-setup-buttons{
    width:55%;
    margin:0 auto;
    display:flex;
    flex-direction: column;
    justify-content: space-around;
    height:150px;
    /* background-color: yellow; */
    margin-bottom: 15px;;
}