body {
    font-family: Hanuman, Arial;
    font-size: 18px;
    user-select: none;
}

.highlight {
    background-color: yellow;
}

.resizable-input {
    resize: both;
    overflow: auto;
    font-family: "Hanuman", sans-serif;
    font-size: 18px;
}

div.tooltip {
    position: absolute;
    background-color: #F5F5F5;
    border: 1px solid #CCC;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: unset;
    width: 200px;
}

div.tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

div.tooltip ul li {
    cursor: pointer;
    padding: 5px;
}

div.tooltip ul li:hover {
    background-color: #E0E0E0;
}

#input-text {
    resize: none;
}

textarea.form-control {
    border: none;
}

.show-toast {
    display: block !important;
}

.toast-container {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 9999;
}

.toast.show {
    animation: slideInUp 0.3s ease-out;
}

.toast.hide {
    animation: slideOutDown 0.3s ease-out;
}

@keyframes slideInUp {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}


.form-control:focus {
    border: none;
    border-color: unset;
    box-shadow: unset;
}

/* Added CSS for scrollbar */
#result {
    height: 350px;
    overflow-y: scroll;
    border: unset;
    border-radius: 8px;
    margin: 0 5px;
    padding: 8px;
    font-size: 18px;
    margin-top: 18px;
    resize: none; /* Remove resize property */
    overflow: scroll; /* Set overflow property to hidden */
}

.row.full {
    display: block;
}

.row.full .col.input {
    background-color: unset;
}

.row.full .col {
    background-color: #f5f5f5;
}

.row.full .col #result {
    background-color: #f5f5f5;
    height: fit-content;
}

header.text-center {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #fff;
}

.highlight {
    background-color: yellow;
}

#suggestions-zwsp {
    display: inline;
}

#suggestions-undefined {
    display: none;
    color: #e08072;
}

#suggestions-lts {
    display: inline;
    color: green;
}

#suggestions-lts-remove {
    display: none;
}

#suggestions-zwsp-remove {
    display: none;
}

#suggestions-incorrect {
    color: red;
}

#suggestions-hom {
    color: #9a84d6;
}

.btn.btn-primary.more {
    background-color: unset;
    --bs-btn-border-color: unset;
    margin-right: 12px;
    border-radius: 50%;
}

.btn.btn-primary.more:focus {
    box-shadow: unset;
    border-radius: 50%;
}

.btn.btn-primary.more:hover {
    background-color: #e1e1e1;
    border-radius: 50%;
}

#offcanvasExample {
    width: 310px;
}

/*.btn.btn-primary {
    background-color: unset;
    border-radius: 50%;
    color: black;
    --bs-btn-border-color: unset;
}

.btn.btn-primary:hover {
    background-color: #e1e1e1;
    border-radius: 50%;
}*/

.offcanvas-body {
    padding: unset;
}

.menu {
    cursor: pointer;
    -moz-box-align: center;
    line-height: 33px;
    overflow: hidden;
    padding-left: 48px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.btn.btn-primary:focus {
    box-shadow: none;
}


/* Styles for devices with a maximum width of 768px (e.g., mobile devices) */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    #result {
        height: 350px;
        overflow-y: scroll;
        border: unset;
        border-radius: 8px;
        margin: 0 5px;
        padding: 8px;
        font-size: 18px;
        margin-top: 18px;
        resize: none; /* Remove resize property */
        overflow: scroll; /* Set overflow property to hidden */
    }

    .resizable-input {
        resize: both;
        overflow: auto;
        font-family: "Hanuman", sans-serif;
        font-size: 18px;
    }

    .row.full .col {
        background-color: #f5f5f5;
    }

    /* Add more styles specific to smaller screens here */


}

/* Styles for devices with a minimum width of 769px (e.g., tablets, desktops) */
@media (min-width: 769px) {
    body {
        font-size: 18px;
    }
}

@media (max-width: 1440px) {
    .col.left {
        display: none;
    }
    #result {
        min-height: 90vh !important;
    }

    #suggestions {
        max-height: 70vh !important;
    }

    .col-2.left {
        display: none;
    }
}

#word-spacing-count,
#incorrect-count,
#suggestion-count,
#typing,
#homonyms,
#conjunction,
#undefined-count {
    display: flex;
    height: 1.0em;
    width: 1.9em;
    max-width: 1.9em;
    min-width: 1.9em;
    flex: 1 0 auto;
    padding: 0.05em;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-style: solid;
    border-radius: 1em;
    border-width: 0.1em;
    transition: all 0.15s linear 0s;
    box-sizing: content-box;
    user-select: none;
    -moz-box-align: center;
    align-items: center;
    -moz-box-pack: center;
    justify-content: center;
    pointer-events: initial;
    _margin-left: 5px;
    _margin-right: 47px;
    cursor: pointer;
}

#undefined-count {
    background-color: rgb(224, 128, 114);
    border-color: rgb(224, 128, 114);
    box-shadow: rgb(224, 128, 114) 0px 0px 0px;
}

#conjunction {
    background-color: rgb(155, 133, 216);
    border-color: rgb(155, 133, 216);
    box-shadow: rgb(155, 133, 216) 0px 0px 0px;
}

#typing {
    background-color: rgb(61, 190, 10);
    border-color: rgb(61, 190, 10);
    box-shadow: rgb(61, 190, 10) 0px 0px 0px;
}

#suggestion-count {
    background-color: rgb(123, 145, 216);
    border-color: rgb(123, 145, 216);
    box-shadow: rgb(123, 145, 216) 0px 0px 0px;
}

#suggestion-count {
    background-color: rgb(123, 145, 216);
    border-color: rgb(123, 145, 216);
    box-shadow: rgb(123, 145, 216) 0px 0px 0px;
}

#homonyms {
    background-color: rgb(155, 133, 216);
    border-color: rgb(155, 133, 216);
    box-shadow: rgb(155, 133, 216) 0px 0px 0px;
}

#incorrect-count {
    background-color: rgb(169, 45, 45);
    border-color: rgb(169, 45, 45);
    box-shadow: rgb(169, 45, 45) 0px 0px 0px;
}

#word-spacing-count {
    background-color: rgb(32, 171, 194);
    border-color: rgb(32, 171, 194);
    box-shadow: rgb(32, 171, 194) 0px 0px 0px;
}

.number-count {
    color: #fff !important; /* Set the font color to white */
}

.highlight {
    background-color: yellow;
    font-weight: bold;
    font-family: "Khmer OS"; /* Add this line */
}

body {
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
    padding: 18px;
}

/* Apply general styling to the footer */
.footer {
    background-color: #f8f9fa;
    padding: 40px 0 0;
}

/* Style for each column within the footer */
.footer .col-md-3, .footer .col-md-2 {
    margin-bottom: 20px;
}

/* Apply styling to column headings */
.footer h4 {
    margin-bottom: 15px;
    font-weight: bold;
}

/* Style for the links within each column */
.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #007bff;
}

/* Apply styling to the copyright text */
.footer p {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #777;
}


/* Add any additional styles for the word count, correct word count, and incorrect word count spans if needed */

input[type="checkbox"],
label {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.auto-suggestion-button {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 32px;
    color: rgb(65, 74, 85);
    cursor: pointer;
    display: inline-block;
    font-size: 18px;
    height: 35px;
    line-height: 35px;
    margin: 0 4px 6px 0;
    padding: 0 8px;
}

/* Remove text underline and unset color for all links */
.sidenav a {
    text-decoration: none;
    color: unset;
    display: block; /* Add this to make the links take full width */
    padding: 8px; /* Add padding to create spacing around the links */
}

/* Set background color when mouse hovers over a link */
.sidenav a:hover {
    background-color: #f0f0f0; /* Change to your desired hover background color */
}

/* Prevent text selection for all links and their parent <div> elements */
.sidenav a,
.sidenav div {
    user-select: none;
}

/* Align links on the left */
.sidenav div {
    text-align: left;
}

.offcanvas-header {
    margin-bottom: 23px;
    border-bottom: 1px rgba(0, 0, 0, .12) solid;
}

input[type="text"] {
    width: fit-content;
}

#suggestions-suggestion {
    color: #4669d9;
}

/* CSS for the media query */
@media only screen and (max-width: 1440px) {

    .group-of-switch-buttons > div {
        margin: unset;
    }

    .form-check-input {
        margin-top: 3px !important
    }
}

/* Flexbox styles for centering the items */
.group-of-switch-buttons {
    display: inherit;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.group-of-switch-buttons > div {
    _margin: 10px; /* Add some spacing between the items */
    display: flex;
    width: 100%;
}

.form-check-input {
    margin-top: 3px !important
}

.tooltip {
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 4px;
    z-index: 9999;
}

.tooltip ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tooltip li {
    cursor: pointer;
    padding: 5px;
}

.tooltip li:hover {
    background-color: #f1f1f1;
}

.edit-button,
.remove-button {
    background-color: #4caf50;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    margin-top: 10px;
}

.remove-button {
    background-color: #f44336;
}

span#lts.highlight.lts {
    background-color: #93f56d36;
}
#lts:hover {
    background-color: #93f56d36;
}

span#hom.highlight.hom {
    background-color: rgba(177, 151, 249, 0.16);
}
#hom:hover {
    background-color: rgba(177, 151, 249, 0.16);
}


/* Style for the highlighted 'spacing' span */
span#incorrect.highlight.incorrect {
    background-color: #f964642e;
}

/* Style for the highlighted 'spacing' span */
span#undefined.highlight.undefined {
    background-color: rgba(251, 156, 48, 0.18);
}
#btmenu-dictionary,
#btmenu-statistics,
#btmenu-whatsnew,
#btmenu-help,
#btmenu-settings {
    width: 300px;
    user-select: none;
    padding: 10px;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 5px;
    margin: 0.5em 0px;
    display: block;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    font-weight: 400;
    line-height: 1em;
    color: rgb(29, 29, 29);
    transition: background 0.15s ease 0s;
    float: right;
    position: fixed;
    background-color: #fff;
    bottom: 55px;
    right: 25px;
}

.col-1.right {
    background: #FFFFFF;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, .05), 0px 1px 8px rgba(0, 0, 0, .15);
    color: #0E101A;
    width: calc(12px * var(--rem));
    padding-top: 10px;
}

.btn_doc {
    border: 1px solid rgba(198, 203, 222, .7);
    margin-bottom: 0;
    margin-top: 0;
    order-radius: calc(0.25px * var(--rem));
    box-sizing: border-box;
    padding: calc(0.75px * var(--rem));
    align-items: center;
    display: flex;
    height: auto !important;
    background-color: transparent;
    cursor: default;
    outline: none;
    overflow: hidden;
    position: relative;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    color: rgb(14, 16, 26);
    font-size: calc(0.875px * var(--rem));
    font-weight: 400;
    letter-spacing: calc(0px * var(--rem));
    line-height: calc(1.5px * var(--rem));
}

/* Style for the buttons with hover effect */
.btn.btn-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 8px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    border: 1px solid rgba(198, 203, 222, .7);
    font-weight: bold;
    height: 54px;
}

.btn.btn-doc i {
    margin-left: 10px; /* Add some spacing between text and icon */
}

.btn.btn-doc:hover {
    background-color: #EDF5FF;
    color: #3659B5;
}

/* Additional style for spacing between buttons */
.right {
    display: flex;
    flex-direction: column;
    _justify-content: flex-end;
    align-items: flex-end;
    _height: 100%;
}

/* Add custom styles to the scrollbar */
/* For Webkit (Chrome, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.form-check-label {
    padding: 0 15px;
}

#suggestions-lts,
#suggestions-suggestion,
#suggestions-incorrect {
    display: inline;
    background: var(--base-surface-primary-default);
    padding: 5px;
    margin: 5px 0;
    border: solid 1px #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}
#suggestions-incorrect:hover,
#suggestions-lts:hover,
#suggestions-lts:hover {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06), 0 0 5px rgba(0, 0, 0, 0.05);
}

.doc_score {
    align-items: baseline;
    border-bottom: 1px solid #e4e6f2;
    display: flex;
    justify-content: space-between;
    margin-right: calc(1px * var(--rem));
    padding-bottom: calc(0.5px * var(--rem));
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 22px;
    margin-top: 25px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;

}

/*the container must be positioned relative:*/
.autocomplete {
    position: relative;
    display: inline-block;
}

.autocomplete-items {
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/* Add this to your existing CSS file or in a separate file */
.dark-mode {
    background-color: rgb(51, 53, 66) !important; /* Dark background color */
    color: #ffffff !important; /* Light text color */
    /* Add other styles for dark mode */
}

/* Add this to your existing CSS file or in a separate file */
/* Styles for the switch button */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.icon-dark-mode {
    background-color: #fff;
}

.menu-dark-mode {
    background-color: #1e2124 !important;
    color: #fff !important;
}

.introjs-tooltiptext {
    font-size: 18px;
    font-family: Hanuman;
}

.accordion {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin: 5px;
    background-color: #f9f9f9;
}

.accordion-header {
    padding: 10px;
    cursor: pointer;
}

.accordion-content {
    display: none;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
}

.col-2.left {
    _width: 100%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out, width 0.5s ease-in-out;
}

.col-2.left.hidden {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

.col-1.left button {
    font-size: 24px; /* Adjust the size as needed */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.col-1.left button:hover {
    color: #007bff; /* Change the color on hover */
}

.col-1.left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align items to the bottom */
    width: 60px;
    height: 100%; /* Make sure the container fills the available height */
    border-right: 1px solid #ccc; /* Set the right border */
    padding-right: 5px; /* Add some padding to the right side */
}

.col-1.left button {
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.col-1.left button:hover {
    color: #007bff; /* Change the color on hover */
}

.btn-doc.active {
    background-color: #EDF5FF;
    border: 1px solid #4A6EE0;
    color: #3659B5;
}

/* Adjust the active state for the button with class "btn-doc" */
.btn-doc.active:focus,
.btn-doc.active:hover {
    background-color: #EDF5FF;
    color: #3659B5;
    box-shadow: none; /* Remove the default focus box shadow */
}



/* Custom CSS for Button-Style Navigation Tabs */
.nav-tabs {
    background-color: transparent;
    border: none;
}

.nav-link {
    background-color: #007bff; /* Button background color */
    color: #fff; /* Button text color */
    border: none;
    border-radius: 4px; /* Rounded corners for buttons */
    margin-right: 10px; /* Adjust spacing between buttons */
    padding: 10px 20px; /* Adjust padding as needed */
    transition: background-color 0.3s ease-in-out; /* Smooth hover effect */
}

.nav-link:hover {
    background-color: #0056b3; /* Button background color on hover */
}

.nav-link.active {
    background-color: #0056b3; /* Active button background color */
}

.tab-content {
    min-height: 200px;
}

.tab-pane {
    display: none;
}

.tab-pane.show {
    display: block;
}

.nav-link.active.btn.btn-primary {
    background-color: #1570EF;
    color: #fff;
    max-height: 48px;
    left: 4px;
    top: 4px;
    bottom: 4px;
    min-width: 124px;
    border-radius: 100px;
    border-radius: 100px;
    transition: width .4s,transform .4s;
    border-color: unset;
    border: unset;
}

.nav-link.btn.btn-primary:hover {
    background-color: #F2F4F7;
    max-height: 48px;
    left: 4px;
    top: 4px;
    bottom: 4px;
    min-width: 124px;
    border-radius: 100px;
    border-radius: 100px;
    transition: width .4s,transform .4s;
    border-color: unset;
    border: unset;
}

.nav-link.active.btn.btn-primary:hover {
    background-color: #1570EF;
    color: #fff;
    max-height: 48px;
    left: 4px;
    top: 4px;
    bottom: 4px;
    min-width: 124px;
    border-radius: 100px;
    border-radius: 100px;
    transition: width .4s,transform .4s;
    border-color: unset;
    border: unset;
}
.nav-link.btn.btn-primary {
    max-height: 48px;
    left: 4px;
    top: 4px;
    bottom: 4px;
    min-width: 124px;
    border-radius: 100px;
    border-radius: 100px;
    transition: width .4s,transform .4s;
    border-color: unset;
    border: unset;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
}

.nav-link:hover,
.nav-link,
#forEducationDropdown,
#forWorkDropdown {
    background-color: unset;
    color: unset;
}

.nav-link:hover {
    color: #5c6166;
}

/* Add this style to create a transition effect */
.tab-content .tab-pane {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Style for the active tab */
.tab-content .tab-pane.show.active {
    opacity: 1;
}

.scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

#scrollToTopBtn {
    background-color: #e1e1e1;
    border-radius: 50%;
}

#scrollToTopBtn:hover {
    background-color: #bdbbbb;
    border-radius: 50%;
}

.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text {
    margin-left: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #464646;
}


a {
    color: #0088cc;
    text-decoration: none;
    transition: 1s;
}

a:hover {
    transition: 1s;
    filter: hue-rotate(100deg) saturate(1.5);
}

h1 {
    text-align: center;
}

.middle-center {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #444;
    background-color: #fff;
    width: 100%;
    text-align: center;
    border-radius: 40px;
    padding: 0 0 20px;
}

.profile-picture {
    margin-top: 10px;
    border-radius: 50%;
    border: 6px solid #0088cc;
    width: 256px;
    height: 256px;
}

.user-data {
    background-color: #eaeaea;
    width: 50%;
    margin: 10px auto;
    padding: 20px 0;
    border-radius: 50px;
}

.logout {
    color: #fff;
    background-color: #f00;
    width: fit-content;
    margin: 20px auto 0;
    padding: 20px 50px;
    border-radius: 50px;
    display: inline-block;
}