@font-face {
    font-family: boxicons;
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url(fonts/boxicons.woff2) format('woff2');
}

.bx {
    font-family: boxicons !important;
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    display: inline-block;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.bx-right-arrow-alt:before {
    content: "\ebe6";
}

.bxs-chevron-down:before {
    content: "\ed35"
}

.bx-x:before {
    content: "\ec8d"
}

.bx-check:before {
    content: "\ea41"
}

.bxs-edit-alt:before {
    content: "\ed9c"
}

.bxs-ghost:before {
    content: "\edd1"
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    list-style: none;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: #00000000 !important;
    font-display: swap;
    scrollbar-width: thin;
    scrollbar-color: #d3d3d3 #a3a3a31a;
}

*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-track {
    border-radius: 10px;
}

img {
    height: 250px;
    width: 250px;
}

body {
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    user-select: none !important;
    touch-action: pan-y;
}

::-webkit-scrollbar {
    width: 2px;
    height: 6px;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: #a3a3a31a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, .2);
}

::-webkit-scrollbar-thumb {
    background: #d3d3d3;
    transition: all 400ms ease-in-out;
    border-radius: 10px;
}

#update-notification,
#install-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    color: #fff;
    text-align: center;
    line-height: 2.5em;
    padding: 20px;
    box-sizing: border-box;
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

#update-notification.show,
#install-notification.show {
    display: flex;
}

#update-notification div button,
#install-notification button {
    background: #00a173;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 300ms ease;
}

#update-notification div button:first-child {
    background-color: transparent;
    border: 1px solid #00a173;
    color: #00a173;
}

#update-notification div {
    display: flex;
    gap: 20px;
}

#update-notification div button:hover,
#install-notification button {
    background: #036242;
}

#update-notification div button:first-child:hover {
    color: white;
    border-color: #036242;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
    visibility: hidden;
}


/* ========= Home Layout ============ */

.wrapper {
    max-width: 450px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.Home {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    z-index: 4;
}

.navbar {
    flex-shrink: 0;
    width: 100%;
    height: 45px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
}

.navbar span:first-child {
    font-size: 20px;
    color: #1c8566;
}

.navbar .selectBtn {
    color: #056449;
    fill: #056449;
    stop-color: #056449;
    background-color: #e6f3ef;
    padding: 2px 10px;
    border-radius: 10px;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.selectBtn i {
    font-size: 30px;
}

.main {
    position: relative;
    flex-grow: 1;
    border-radius: 6px;
    overflow: hidden;
    overflow-y: auto;
}

.blur {
    filter: blur(5px);
    pointer-events: none;
}

.main span.main_msg {
    display: grid;
    place-content: center;
    width: 100%;
    height: 100%;
}

.main span.main_msg.hidden {
    width: 0;
    display: none;
    height: 0;
}

.chapterValue li {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 300ms ease;
}

.chapterValue li:hover {
    fill: #056449;
    stop-color: #056449;
    background-color: #e6f3ef;
}

.chapterValue .checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    width: 18px;
    border-radius: 4px;
    margin-right: 16px;
    border: 1.5px solid #c0c0c0;
    transition: all 300ms ease;
}

.chapterValue li span:last-child {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
}

.checkbox .check_icon {
    font-size: 15px;
    transform: scale(0);
    color: #056449;
    transition: all 300ms ease;
}

.chapterValue li.active .checkbox {
    fill: #056449;
    stop-color: #056449;
    background-color: #e6f3ef;
    border-color: #05644916;
    color: #fff;
}

.chapterValue li.active .check_icon {
    transform: scale(1);
}

.chapterValue li.active span:last-child {
    color: #036242;
    fill: #056449;
    stop-color: #056449;
    background-color: #e6f3ef90;
}

.footer {
    width: 100%;
    margin-top: 10px;
}

.footer .limitBox {
    position: relative;
    width: 100%;
    height: 45px;
    margin-bottom: 10px;
}

.limitBox input[type="text"] {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    padding: 0 50px 0 20px;
    font-size: 16px;
    color: #056449;
    fill: #056449;
    stop-color: #056449;
    caret-color: #056449;
    border-radius: 6px;
    border: 2px solid transparent;
    background-color: #e6f3ef;
    -moz-appearance: textfield;
    transition: all 300ms ease;
}

.limitBox input[type="text"]:read-only {
    border: 2px solid transparent;
}

.limitBox input::placeholder {
    color: #bbbbbb;
}

.limitBox input:focus {
    border: 2px solid #00a173;
}

.limitBox input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    display: none;
    margin: 0;
    opacity: 0;
}

.limitBox .pen-tick {
    position: absolute;
    height: 36px;
    width: 36px;
    top: 10%;
    right: 9px;
    color: #056449;
    background-color: #00a17329;
    border-radius: 6px;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.pen-tick .icon {
    font-size: 22px;
}

.LoadQues {
    display: grid;
    place-content: center;
    height: 45px;
    width: 100%;
    color: #056449;
    fill: #056449;
    stop-color: #056449;
    background-color: #e6f3ef;
    cursor: pointer;
    font-size: 18px;
    border-radius: 6px;
    pointer-events: none;
    transition: all 300ms;
}

.LoadQues.enable {
    pointer-events: auto;
    background-color: #00a173;
    color: #fff;
}

.LoadQues.enable:hover {
    background-color: #00845f;
}

.LoadQues .loader {
    pointer-events: none;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #fff;
    border-bottom-color: #fff;
    animation: an1 1s ease infinite;
}

@keyframes an1 {
    0% {
        transform: rotate(0turn);
    }

    100% {
        transform: rotate(1turn);
    }
}


/* Selecting Subject UI */

.menu {
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    color: white;
    background-color: #04001c;
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    /* z-index: -5; */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 300ms ease;
}

.menu.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 5;
}

.menu .topitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45px;
    width: 100%;
}

.topitem span:first-child {
    font-size: 20px;
}

.topitem .closeMenu {
    display: grid;
    place-content: center;
    font-size: 30px;
    height: 30px;
    width: 30px;
    background-color: #00845f;
}

.Suubjectlists li {
    font-size: 16px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    background-color: #050021;
    margin-top: 10px;
}

.Suubjectlists li:hover {
    background-color: #070030;
}