/* set color variable */
:root {
    --light-theme-bg: #007bff;
    --light-theme-button: #007bff;
    --deep-blue: #002aff;
    --dark-bg: #191919;
    --dark-nav-footer: #1e1e1e;
    --dark-expended-nav: #2c2b2b;
    --logo: #fefefe;
    --dark-logo: #06f8f8;
}

body {
    width: 100%;
    height: -webkit-fill-available;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F2F3F4;
}

* {
    transition: all 0.1s ease;
    scroll-behavior: smooth;
}

nav {
    background-color: var(--light-theme-bg);
    color: #fff;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


#nav-toggle {
    cursor: pointer;
    font-size: 20px;
}

#expended-nav {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--light-theme-bg);
    width: 100%;
    padding: 10px 30px;
    transition: top 0.8s ease;
    z-index: 2;
    padding-bottom: 30px;

}

#expended-nav.active {
    top: 60px;
}

#expended-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#expended-nav ul li {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff68;

}

#expended-nav a {
    font-size: 16px;
}

#expended-nav ul li a:hover {
    color: #ffffff;
}

#expended-nav ul li a {
    text-decoration: none;
    color: #ffffffd3;
}

body::-webkit-scrollbar {
    display: none;
}


#logo {
    color: var(--logo);
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    list-style-type: none;
    color: #fff;
}

nav ul a:hover {
    color: #00ff26;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
}

nav a:hover {
    color: #00ff26;
}

.marquee {
    position: fixed;
    width: 100%;
    top: 60px;
    font-size: 15px;
    overflow: hidden;
    user-select: none;
    --gap: 20px;
    background-color: rgba(130, 130, 130, 0.189);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    left: 0px;
    color: #f7f8fd;
    display: flex;
    gap: var(--gap);
    z-index: 1;
}

.marquee ul {
    list-style: none;
    flex-shrink: 0;
    min-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap);
    color: black;
    animation: marquee-an 10s linear infinite;
}

.marquee.dark-theme ul li {
    color: #fff;
}


@keyframes marquee-an {
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}

.main-container {
    max-width: 800px;
    margin: 100px auto 0;
    padding: 10px 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.cat-select {
    width: 100%;
    color: #004084;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

.option-container {
    margin-bottom: 40px;
}

.option {
    margin-bottom: 20px;
}

.option h3 {
    margin-bottom: 10px;
}

.feature-table {
    border-collapse: collapse;
    width: 100%;
}

.feature-table th,
.feature-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.button {
    background-color: var(--light-theme-button);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
}

.button:hover {
    background-color: #0056b3;
}

/* CSS styles for select dropdown */
select#category-select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #f8f8f8;
    color: #333;
    font-weight: bold;
}

/* CSS styles for buttons */
.button {
    background-color: #007bff;
    /* Blue button background */
    color: #fff;
}

.button:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.dark-theme .loading-spinner {
    border: 4px solid rgba(120, 120, 120, 0.728);
    border-left-color: var(--light-theme-button);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* CSS styles for article content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.article-content h2 {
    color: #333;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.article-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-content a {
    color: #007bff;
}

.article-content a:hover {
    color: #0056b3;
}

.wrapper {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

h1 {
    margin-bottom: 20px;
}

.faq-heading {
    text-align: center;
    /* color: #333; */
    opacity: .7;
}

.container {
    color: black;
    border-bottom: 1px solid #dedede;
    margin: 20px 0;
}

.question {
    font-size: 1rem;
    font-weight: 600;
    padding: 20px 80px 20px 20px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #555555;
}

.question::after {
    content: "\002B";
    font-size: 1.5rem;
    color: #555555;
    position: absolute;
    right: 20px;
    transition: 0.2s;
}

.question.active::after {
    transform: rotate(45deg);
}

.answercont {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
}

.answer {
    padding: 0 20px 20px;
    line-height: 1.5rem;
}

.happy-client {
    text-align: center;
    color: #7e7d7d;
    font-size: 1rem;
    font-weight: 600;
    max-width: 800px;
    margin: 20px auto;
    border-bottom: 1px solid #c1bcbc;
}

.happy-client span {
    color: #ffffff;
    font-size: 1.2rem;
    background-color: #0056b3;
    padding: 2px 5px;
    border-radius: 5px;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

footer p {
    margin: 0;
    font-size: 0.8rem;
}

footer p:nth-child(2) {
    margin-top: 10px;
    color: #adadad;
}

.red-text {
    color: #ff0000;
}

.green-text {
    color: #007f06;
}

select#category-select {
    background-color: #f8f8f8;
    /* Light gray for select dropdown */
    color: #333;
}

.article-content a:hover {
    color: #0056b3;
    /* Darker blue on hover */
}

.footer {
    background-color: #333;
    /* Dark background for footer */
    color: #fff;
}

mark {
    color: #fff;
    background-color: #0056b3;
}

body.dark-theme {
    background-color: #181818;
    color: #f5f5f5;
}

nav.dark-theme {
    background-color: var(--dark-nav-footer);
    color: #f5f5f5;
}


nav.dark-theme a {
    color: #f5f5f5;
}

nav.dark-theme a:hover {
    color: #00ff26;
}

.main-container.dark-theme {
    background-color: var(--dark-bg);
}

select.dark-theme {
    background-color: #333;
    color: #f5f5f5;
}

.feature-table.dark-theme th,
.feature-table.dark-theme td {
    border-bottom: 1px solid #555;
}

.button.dark-theme {
    color: #f5f5f5;
}

.button.dark-theme:hover {
    background-color: var(--deep-blue);
}

.article-content.dark-theme {
    background-color: #282828;
    color: #f5f5f5;
}

.article-content.dark-theme a {
    color: #1e90ff;
}

.article-content.dark-theme a:hover {
    color: #1c7ed6;
}

.container.dark-theme {
    color: #f5f5f5;
    border-bottom: 1px solid #555;
}

.question.dark-theme {
    color: #f5f5f567;
}

.answer.dark-theme {
    color: #f5f5f567;
}

.happy-client.dark-theme {
    color: #ccc;
    border-bottom: 1px solid #555;
}

.happy-client.dark-theme span {
    background-color: #000dfd;
}

footer.dark-theme {
    background-color: #1e1e1e;
    color: #f5f5f5;
}

.red-text.dark-theme {
    color: #ff6b6b;
}

.green-text.dark-theme {
    color: #4caf50;
}

select.dark-theme#category-select {
    background-color: #333;
    /* Dark gray for select dropdown */
    color: #f5f5f5;
}

.article-content.dark-theme a:hover {
    color: #1c7ed6;
}

.footer.dark-theme {
    background-color: var(--dark-nav-footer);
    color: #f5f5f5;
}

mark.dark-theme {
    color: #222;
    background-color: #444;
}

.cat-select.dark-theme {
    width: 100%;
    color: #ffffff65;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

#themeToggle {
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    background-color: #191919;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#themeToggle:hover {
    transform: scale(1.1);
    transform: rotate(360deg);
}

#themeToggle.dark-theme {
    background-color: #ffffff;
    color: #181818;
}

#expended-nav.dark-theme {
    background-color: var(--dark-expended-nav);
    color: #f5f5f5;
}

nav.dark-theme #logo.dark-theme {
    color: var(--dark-logo);
}

#scrolltotop {
    position: fixed;
    bottom: -40px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
    font-size: 20px;
    font-weight: bold;
    height: 15px;
    width: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}