/* @font-face {
    font-family: 'Baskervville';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/baskervville/v16/YA9Ur0yU4l_XOrogbkun3kQQvpmptvY.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Baskervville';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/baskervville/v16/YA9Ur0yU4l_XOrogbkun3kQQsJmp.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} */

* {
    padding: 0;
    margin: 0;
}

:root {
    --theme: #df0000;
    --theme-yellow: #FED067;
    --white: #fff;
}

body {
    /* font-family: Untitled Sans, sans-serif !important; */
    font-family: 'Baskervville', serif !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg_theme {
    background-color: var(--theme) !important;
}

.text_theme {
    color: var(--theme) !important;
}

.text_secondary_theme {
    color: var(--theme-yellow) !important;
}

.bg_secondary_theme {
    background-color: var(--theme-yellow) !important;
}

.border_theme {
    border: 1px solid var(--theme) !important;
}

/* header  */

#navbarSupportedContent .nav-item .active {
    color: var(--theme-color);
    border-bottom: 2px solid var(--theme);
}

header {
    box-shadow: 1px 7px 7px -4px #000;
    -webkit-box-shadow: 1px 3px 6px -5px #000;
    -moz-box-shadow: 1px 7px 7px -4px #000;
}

/* .nav-link {
    color: var(--theme);
  } */

.nav-link:hover {
    color: var(--theme);
}

.navbar-toggler {
    border: 1px solid var(--theme);
}

.navbar-brand:hover {
    color: var(--theme);

}

.nav-search-box .nav-search-button {
    background: none;
    border: 1px solid var(--theme);
    padding: 5px;
    padding-right: 170px;
    border-radius: 5px;
    color: var(--theme);
    font-size: 17px;
}

.nav-search-box .nav-search-button:hover {
    border: 2px solid var(--theme);
    box-shadow: 0px 2px 10px rgb(227 105 15 / 40%);
    color: var(--theme);
}

.nav-search-box .nav-search-icon {
    padding: 2px 5px;
    font-size: 17px;
}

#navSearchIconMobile .nav-search-button {
    background: none;
    color: var(--theme);
    font-size: 20px;
    border: none;
}

#mobileSearchBtn {
    animation: toggleMotion 2s 1.5s ease-in-out infinite;
}

/* Sidebar for mobile  */

#sidebarToggleBtn {
    border: 1px solid var(--theme) !important;
}

.offcanvas {
    width: 270px !important;
}

#sidebar .offcanvas-body {
    padding: 0px;
}

#sidebarMenu .nav-item {
    border-bottom: 1px solid #0000000f;
}

#sidebarMenu .nav-link {
    margin: 5px 10px;
}

#sidebarMenu .nav-link:hover {
    color: var(--theme);
}

#sidebarMenu .nav-link i {
    font-size: 18px;
    margin-top: 3px;
}

#sidebarMenu .nav-link .nav-text {
    margin-left: 5px;
}

/* All tools CSs  */

.category_tool_section .category_tool_heading {
    padding: 6px 2px;
}


.category_tool_section .tool_box .tool_link {
    text-decoration: none;
    font-size: 14px;
}

.category_tool_section .tool_box .tool_link:hover {
    /* border: 1px solid var(--theme); */
    background-color: #f0f0f0;
}

/*
  .category_tool_section .tool_box .tool_link span {
    border-radius: 50%;
    padding: 5px 8px;
  } */

.category_tool_section .tool_box .tool_link:hover {
    transition: all 0.5s;
}

.cardImg {
    width: 50px;
    height: 50px;
}

/* Search Modal */

#navSearchModal .modal-header {
    border: none;
}

#navSearchModal .modal-search-input {
    width: 100%;
    border: 2px solid var(--theme);
    padding: 10px 2px 10px 37px;
    border-radius: 5px;
    font-size: 19px;
}

#navSearchModal .modal-search-input:focus {
    outline: none;
}

#navSearchModal .modal-search-icon {
    position: absolute;
    left: 28px;
    font-size: 19px;
    color: var(--theme-color);
}

#navSearchModal .modal-body {
    height: 350px;
    overflow: auto;
}

#navSearchModal .modal-body .searchedToolLink {
    display: block;
    color: black;
    text-decoration: none;
    padding: 10px;
}

#navSearchModal .modal-body .searchedToolLink:hover {
    color: var(--theme);
    background-color: var(--theme-color);
}

#navSearchModal .modal-body .list-group-item {
    padding: 0;
}

/* Tool Section */
#toolSection .toolCalculateBtn {
    background: var(--theme-yellow);
    border: none;
    margin: 10px;
    padding: 10px 30px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
}

#toolSection .toolCalculateBtn:hover {
    transform: scale(0.9);
    background-position: right center;
    /* change the direction of the change here */
    color: white;
    text-decoration: none;
}

@keyframes shinyBtn {
    0% {
        opacity: 0;
        -webkit-transform: scale(0) rotate(45deg);
    }

    80% {
        opacity: 0.5;
        -webkit-transform: scale(0) rotate(45deg);
    }

    81% {
        opacity: 1;
        -webkit-transform: scale(4) rotate(45deg);
    }

    to {
        opacity: 0;
        -webkit-transform: scale(50) rotate(45deg);
    }
}

footer {
    margin-top: auto;
}

#contentSection .listSection h5 {
    padding: 12px 13px;
}

#articleSection a {
    color: var(--theme);
    text-decoration: none;
}



#tableOfContent .list-group-item.active {
    text-decoration: underline !important;
    text-decoration-color: var(--theme-yellow) !important;
    font-weight: 600;
    transition: all 0.15s linear;
    color: var(--theme) !important;
}


#authorSection .author-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

#authorSection .author-img-box img {
    border-radius: 50%;
    width: 132px;
    height: 130px;
    object-fit: cover;
}

/* FAQs */
#FAQ .faqContent .accordian-box {
    background-color: white;
    color: black;
    border-radius: 12px;
    box-shadow: 0px 0px 10px 0 rgb(0, 0, 0, 0.25);
    margin: 20px 0;
}

#FAQ .faqContent .question {
    /* padding-right: 42px; */
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: capitalize;
    padding: 12px 20px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--theme-color);
    border-radius: 12px;
}

#FAQ .faqContent .question.active {
    color: #000;
    border-radius: 12px 12px 0px 0px;
}

#FAQ .faqContent .question::after {
    top: 2px;
    content: "\002B";
    font-size: 2.2rem;
    position: absolute;
    right: 20px;
    transition: 0.2s;
}

#FAQ .faqContent .question.active::after {
    transform: rotate(45deg);
}

#FAQ .faqContent .answercont {
    overflow: hidden;
    transition: 0.3s;
}

#FAQ .faqContent .answer {
    padding: 0 20px 20px;
    line-height: 1.5rem;
}


/* Generic  */
.paddingY-3 {
    padding-left: 3px;
    padding-bottom: 3px;
}

.maxHeight150 {
    max-height: 150px;
}

.top63 {
    top: 63px;
}

/* kaTex preview */

.bg-kaTex {
    background: #1062570a;
    font-size: 23px;
}

.mopen {
    color: orange !important;
}

.mclose {
    color: orange !important;
}


/* Tools css  */

.keypad-btn {
    background: var(--theme-yellow) !important;
    color: white !important;
}

.keyboard-btn {
    top: 35px;
    right: 24px;
    font-size: 22px;
    cursor: pointer;
}

.hide {
    display: none;
}

.katex_box {
    padding: 2px 10px;
    overflow: auto;
}

.mathInput {
    padding-right: 45px;
}

.btn-green {
    background: var(--theme) !important;
    color: var(--theme-yellow) !important;
}

.form-check-input:checked {
    background-color: #106257 !important;
    border-color: #106257 !important;
}

.baskervville-regular {
    font-family: "Baskervville", serif;
    font-weight: 800;
    font-style: italic;
}

.bg_accordion {
    background-color: #CFE0DD !important;
}

/* KateX */
.mord {
    color: var(--theme);
}

.mop {
    color: var(--theme);
}

.slider {
    /* border-radius: 50%; */
    width: 20rem;
    /* padding: 10px 0 !important; */
    height: 2.7rem;
    transition: all 0.2s linear;
    font-size: 14px;
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    position: relative;
    background: #ededed;
    max-width: 100% !important;
    margin: auto;
    margin-bottom: 26px;
    border-radius: 80px;
}

.slide-layer {
    position: absolute;
    width: 50%;
    height: 100%;
    border-radius: 80px;
    background: #106257;
    transition: all 0.2s linear;
    top: 0;
    left: 0;
    /* z-index: 20;  */
}

.cap-child {
    z-index: 100;
    cursor: pointer;
}

.toolsub {
    max-width: 100%;
    margin: auto;
}

.radio-input {
    display: flex;
    flex-direction: row;
    font-family: Untitled Sans, sans-serif !important;
    font-size: 16px;
    color: white;
    justify-content: center;
    margin-bottom: 25px;
    margin-left: 11px;
}

.radio-input input[type="radio"] {
    display: none;
}

.radio-input label {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #e4e4e4;
    background-color: #E3E3E3;
    border-radius: 5px;
    margin-right: 12px;
    cursor: pointer;
    font-family: Untitled Sans, sans-serif !important;
    position: relative;
    color: black !important;
    transition: all 0.3s ease-in-out;
}

.radio-input:nth-last-child() {
    margin-right: 0px;
}

.radio-input label:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ccc;
    transition: all 0.3s ease-in-out;
}

.radio-input input[type="radio"]:checked+label:before {
    background-color: var(--theme-yellow);
    top: 0;
}

.radio-input input[type="radio"]:checked+label {
    background-color: var(--theme);
    color: #fff !important;
    /* border-color: var(--theme-yellow); */
    animation: radio-translate 0.5s ease-in-out;
}

@keyframes radio-translate {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

.footer-section {
    margin-top: 30px;
    background-color: #f6f9f7;
    padding-bottom: 0;
    border-top: 2px solid var(--theme);
}

.footer-container {
    padding: 3rem;
    padding-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    margin-bottom: 20px;
    padding: 0 20px;
}

.logo-column {
    flex-basis: 25%;
}

.footer-description {
    margin-top: 1rem;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

.footer-heading {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
}

.footer-list {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 22px;
    font-size: 14px;
    color: #6b7280;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.footer-column1 {
    flex-basis: 13%;
}

.footer-column2 {
    flex-basis: 13%;
}

.newsletter-input {
    padding: 10px;
    flex-grow: 1;
    border: 1px solid #e5e7eb;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.subscribe-button {
    background-color: #f9c453;
    padding: 10px 20px;
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.social-icon img {
    width: 32px;
    height: 32px;
}

.footer-bottom {
    background: var(--theme);
    color: white !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    padding: 0 3rem;
    align-content: center;
    width: 100%;
}

.footer-bottom p {
    font-size: 14px;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 36px;
    padding: 0;
    margin-bottom: 0;
}


.footer-links a {
    font-size: 14px;
    color: white;
    text-decoration: none;
    margin-bottom: 0;
}

.related {
    min-height: auto;
    background: #fafafa;
    width: 100%;
    border-radius: 15px;
    padding: 1.5rem 0;
    padding-bottom: 0;
}

.related h3 {
    font-size: 19px;
    padding: 0 1.2rem;
    font-family: 'Baskervville';
    font-weight: 800;
    margin-bottom: 1.7rem;
}

.related-list p {
    margin: 0;
    font-size: 15px;
}

.related-list {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
    padding: 0 1.2rem;
    height: 70px;
}

.tableofcontent {
    margin-left: 2.2rem;
    border-radius: 15px !important;
    width: 100%;
    background: #fafafa;
    min-height: 250px;
    padding: 1.5rem 0rem;
    padding-bottom: 0;
}

.listSection h5 {
    font-weight: 800;
    font-style: 19px;
    margin-bottom: 1.5rem;
    font-family: 'Baskervville' !important;
    padding: 0rem 1rem;
}

.list-group-item {
    border: none !important;
    transition: all 0.15s linear !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center;
    justify-content: start;
    padding: 0 1rem !important;
    background: transparent !important;
    min-height: 65px;
    margin: 0 !important;
}

.tool-box {
    display: flex;
    flex-direction: row;
    font-family: Untitled Sans, sans-serif !important;
    font-size: 15px;
    width: 100%;
    justify-content: center;
    margin-bottom: 25px;
    text-align: center !important;
}

.tool-box-container {
    flex: 1 1 23%;
    /* Each box takes 23% of the width, with some margin */
    display: flex;
    justify-content: center;
    text-align: center !important;
    align-items: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0px 7px !important;
}

.tool-box p {
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0px 8px;
    text-align: center !important;
    border: 1px solid #e4e4e4;
    background-color: #E3E3E3;
    border-radius: 5px;
    cursor: pointer;
    font-family: Untitled Sans, sans-serif !important;
    position: relative;
    color: black !important;
    transition: all 0.3s ease-in-out;
}

.tool-box p:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ccc;
    transition: all 0.3s ease-in-out;
}

.tool-box:hover p:before {
    background-color: var(--theme-yellow);
    top: 0;
}

.tool-box:hover p {
    background-color: var(--theme);
    color: #fff !important;
    /* border-color: var(--theme-yellow); */
    animation: radio-translate 0.5s ease-in-out;
}

@keyframes radio-translate {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateX(0);
    }
}


.author-container {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
}

.author-details,
.about-author {
    padding: 20px;
}

.author-details {
    flex: 1;
    text-align: center;
    border-right: 1px solid #e1e1e1;
}

.author-details img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e1e1e1;
    margin-bottom: 10px;
}

.author-details h3 {
    font-family: 'Baskervville';
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 10px;
}

.author-details p {
    font-size: 14px;
    color: gray;
}

.social-icons {
    max-width: 100%;
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.social-icons a {
    margin: 0 5px;
    text-decoration: none;
    font-size: 20px;
    color: #8b8b8b;
}

.about-author {
    flex: 2;
}

.about-author h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Baskervville';
}

.about-author p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}