
body { font-family: 'Poppins', sans-serif; background-color: #f8f9fa; color: #333; line-height: 1.6; margin: 0; padding: 0; display: flex; min-height: 100vh; flex-direction: column; overflow-x: hidden; }
.hero-search-select:hover { border:none; }
.custom-select-wrapper { position: relative; display: inline-block; }
.custom-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background: url('arrow-icon.svg') no-repeat right 10px center; background-position: right 13px center; padding: 10px; padding-right: 30px; font-family: 'Poppins', sans-serif; cursor: pointer; }
.custom-arrow { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); transition: transform 0.3s ease; pointer-events: none; color: #ffffff; }
.custom-select.open + .custom-arrow { transform: translateY(-50%) rotate(180deg); }
.slog{ position: relative; left: -9px; top: 2px; }
.footer-links { margin-left: auto; font-weight: normal;font-size:13px;font-family:Arial, Helvetica, sans-serif}
.footer-links a:hover { text-decoration: none; color:#838282; }
.footer-links a { color: #414141; text-decoration: none; margin: 0 10px; }
.footer-left { display: flex; align-items: center; color: #6d3b00; position: relative; top: -1px;}
.footer-left span {margin-left: 10px; position: relative; top: 2px;}
.footer { position: relative; width: 100%; background: #000; color: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; height: 34px; }
.hero-results-container { margin: 0; padding: 0; }
.hero-active .footer { position: fixed; bottom: 0; left: 0; right: 0; }
.hero-search { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh;       background-image: url('./back.webp');  background-repeat: no-repeat;    background-size: cover;         background-position: top left;  position: relative; padding: 20px; }
.hero-header { position: absolute; top: 0px; padding: 10px; left: 20px; background-color: #000000b0; display: flex; flex-direction: column; align-items: center; border-radius: 0px 0px 100px 100px; height: 90%; width: 150px; }
.hero-logo { max-width: 150px; /* adjust size as needed */ }
.hero-welcome { margin: 10px 0 0 0; font-size: 3.7rem; color: rgb(255, 255, 255) !important; text-shadow: rgb(0, 0, 0) 0px 0px 2px; font-weight: 800; margin-bottom: 0.5rem !important; line-height: 1.2; margin: 0px; box-sizing: border-box; font-family: Quicksand, sans-serif; z-index: 9; }
.hero-moto { margin: 10px 0 0 0; font-size: 2rem; color: rgb(255, 255, 255) !important; text-shadow: rgb(0, 0, 0) 0px 0px 2px; font-weight: 800; margin-bottom: 4.5rem !important; line-height: 1.2; margin: 0px; box-sizing: border-box; font-family: Quicksand, sans-serif; z-index: 9; }
.hero-search-form { display: flex; flex-direction: row; /* elements in one horizontal row */ gap: 10px; width: 100%; background: rgb(79 123 163 / 69%); padding: 20px; border-radius: 100px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); align-items: center; z-index: 9; max-width: 800px; }
.hero-search-input { flex: 2; padding: 10px 15px; border-radius: 50px; border: none; font-size: 1.4rem; z-index: 9; font-weight: 700; color: #181818; max-width: 500px; height: 70px; background-color: #ffffffa1; padding-left: 30px; font-family: 'Poppins'; }
.hero-search-select { flex: 1; padding: 10px 15px; border-radius: 50px; border: none; font-size: 1.1rem; z-index: 9; min-width: 160px; color: #252525; background-color: #8ba1c575; height: 70px; font-weight: 900; }
.hero-search-button { flex: 0 0 auto; padding: 10px 20px; font-weight: bold; background-color: #5a2da8; color: #fff; border-radius: 50px; cursor: pointer; border: none; transition: background 0.3s ease; font-size: 1.1rem; z-index: 9; height: 70px; width: 70px; }
.hero-svg{ max-width: 100%; height: auto; display: block; margin: 20px auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); top: -5px; position: relative; }
.hero-options { font-size: 16px; color: #333; font-family: 'Arial', sans-serif; }
.top-options { font-size: 16px; color: #333; font-family: 'Arial', sans-serif; }
.hero-search-button:hover { background-color: #4c2393; }
ul {list-style: none;padding: 20px;margin-bottom: 30px;background-color: #e7edeb;box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);}
ul {list-style: none;padding: 0;}
ul li:hover::before {transform: none;}
ul li:hover {color:rgb(19, 20, 20);}
ul li::before {content: "➤";position: absolute;left: 0;color: #007bff;font-weight: bold;transition: transform 0.2s ease-in-out;}
ul li {position: relative;padding: 2px 0px 2px 30px;font-size: 16px;color: #333;margin: 0px 7px 0px 7px;transition: color 0.3s;}
th, td {border: 1px solid #ccc;padding: 10px;text-align: center;background-color: #d8e0ed;}
th {background: #1976d2;color: white;}
table {width: 100%;border-collapse: collapse;margin-top: 20px;margin-bottom: 40px;box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);}
table {font-size: 0.9em;}
section {padding: 20px;margin-bottom: 20px;border-radius: 8px;}
section pre:has(code:empty), section code:has(:empty) {display: none;}
pre code {font-family: "Fira Code", monospace;font-size: 14px;padding: 15px;display: block;background: none;}
nav {background: #e3f2fd;padding: 15px;border-radius: 8px;margin-bottom: 20px;box-shadow: 0 4px 10px rgba(0,0,0,0.1);}
img {max-width: 100%;height: auto;display: block;margin: 20px auto;border-radius: 8px;box-shadow: 0 4px 10px rgba(0,0,0,0.1);}
svg {max-width: 100%;height: auto;display: block;margin: 20px auto;border-radius: 8px;box-shadow: 0 4px 10px rgba(0,0,0,0.1);}
.button-search-svg {max-width: 100%;height: auto;display: block;margin: 20px auto;border-radius: 8px;box-shadow: 0 4px 10px rgba(0,0,0,0.1);position: relative;top: -11px;}
h3 {font-size: 1.4em;font-weight: bold;color: #01579b;margin-top: 20px;margin-bottom: 0px;}
h2 {font-size: 2em;font-weight: bold;color: #0d47a1;border-bottom: 2px solid #fb8282;background-color: #f5f0e9;padding-left: 20px; margin-top: 40px; margin-bottom: 20px;}
h1 {text-align: center;font-size: 2.5em;font-weight: bold;color: #1e3a8a;margin-bottom: 20px;border-bottom: 3px solid #dbeafe;padding-bottom: 10px;}
caption {font-weight: bold;font-size: 1.2em;margin-bottom: 10px;}
a:hover {text-decoration: none;}
a {text-decoration: none;color: #007bff;}
.theme-switcher {border-radius: 0;position: relative;background: rgb(51 51 51);display: flex;flex-direction: row;align-items: center;padding: 5px;z-index: 9999;flex-wrap: nowrap;justify-content: space-around;}
.theme-switcher h3 {color: white;margin-bottom: 8px;font-size: 14px;}
.theme-switcher button:hover {opacity: 0.8;}
.theme-switcher button {height: 26px;width: 46px;border: none;cursor: pointer;font-size: 14px;font-weight: bold;border-radius: 50px;padding: 1px;transition: 0.3s;text-align: center;}
.sidebar {background: white;padding: 20px;border-radius: 5px;box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);height: fit-content;}
.sidebar ul {padding: 0;}
.sidebar li:last-child {border-bottom: none;}
.sidebar li {padding: 10px;border-bottom: 1px solid #ddd;}
.sepia-mode { background: #F4E1C1; color: #5B4636; }
.sections-list {overflow-y: auto;flex-grow: 1;max-height: 65vh; padding-top: 10px;}
.sec-num{padding: 0px 10px 0px 20px;}
.right-sections-list {position: fixed;top: 80px;right: 20px;width: 250px;max-height: 80vh;overflow-y: auto;background: #ffffff;padding: 15px;border-radius: 8px;box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);border: 1px solid #ddd;z-index: 1000;}
.right-sections-list a:hover {color: #1565c0;}
.right-sections-list a {display: block;color: #0d47a1;text-decoration: none;font-weight: bold;padding: 5px 0;transition: color 0.3s ease-in-out;}
.right-sections-list a {display: block;color: #0d47a1;text-decoration: none;font-weight: bold;padding: 5px 0;transition: color 0.3s ease-in-out;}
.right-placeholder {width: 260px;flex-shrink: 0;height: 100vh;position: relative;}
.nav_nav:hover {background: #bbdefb;border-radius: 5px;}
.nav_nav {text-decoration: none;font-weight: bold;color: #0d47a1;font-size: 1.1em;padding: 8px;display: block;transition: 0.3s;}
.menu-toggle:hover {background-color: #0d47a1;}
.menu-toggle {position: fixed;top: 10px;right: 10px; /* Move to the right instead of left */background: #1565c0;color: white;padding: 10px 20px;font-size: 16px;font-weight: bold;border: none;border-radius: 5px;cursor: pointer;outline: none;z-index: 1001;transition: background 0.3s ease-in-out;}
.math-formula {
    color: #530606;
    background: #e5e5e5;
    padding: 1px 0px 1px 0px;
    font-size: 1.2em;
    font-family: cursive;
    text-align: center;
    border-left: 10px solid #c0ca33;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.main-content {flex-grow: 1;margin-left: 40px;padding:40px; width:70%;box-shadow: 0 0 10px 4px rgba(0, 0, 0, 0.2);}
.light-mode { background: #ffffff; color: #000; }
.language-python {font-size: 18px;font-weight: 600;color: #169500;}
.language-language{font-size: 18px;font-weight: 600;color: #123f0a;}
.image-container {text-align: center;margin: 20px 0;padding: 15px;border-radius: 8px;}
.image-container img, .image-container svg {background-color:#d1d1d1;max-width: 100%;height: auto;border-radius: 8px;box-shadow: 0px 4px 10px rgba(0,0,0,0.1);}
.flex_index {display: flex;flex-direction: column;gap: 5px;margin-bottom: 15px;}
.fixed-navigation::-webkit-scrollbar-track {background: #333333;border-radius: 10px;}
.fixed-navigation::-webkit-scrollbar-thumb:hover {background: #1565c0;}
.fixed-navigation::-webkit-scrollbar-thumb {background: #0d47a1;border-radius: 10px;transition: background 0.3s ease-in-out;}
.fixed-navigation::-webkit-scrollbar {width: 8px;}
.fixed-navigation.active {max-height: 80vh;overflow-y: auto;padding: 10px;border: 1px solid #ddd;opacity: 1;visibility: visible;}
.fixed-navigation-mode {position: fixed;top: 30px;right: 20px;width: 260px;max-height: 80vh;overflow-y: auto;background: #ffffff;border-radius: 8px;box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);z-index: 1000;}
.fixed-navigation-mode ul {list-style: none;padding: 0;margin: 0;background-color: #333333;}
.fixed-navigation-mode li {padding: 0px;}
.fixed-navigation-mode h2 {font-size: 1.2em;color: #0d47a1;text-align: center;margin-bottom: 10px;}
.fixed-navigation-mode a:hover {background: #bbdefb;color: #1565c0;}
.fixed-navigation-mode a {display: block;color: #d1d1d1;text-decoration: none;font-weight: bold;padding: 8px;border-radius: 5px;transition: background 0.3s ease-in-out, color 0.3s ease-in-out;}
.fixed-navigation {z-index: 9999 !important;border-radius: 10px;position: fixed; top: 90px;right: 0px;width: 250px; max-height: 80vh;overflow-y: auto;background: #333333; z-index: 1000;padding: 5px;display:flex;flex-direction: column;}
.fixed-navigation {scrollbar-width: thin;scrollbar-color:rgb(141, 141, 141) #333333;}
.fixed-navigation ul {list-style: none;padding: 0;margin: 0;background-color: #333333;}
.fixed-navigation ul li.active-section::before {content: none;color: rgb(199, 241, 12);margin-top: 1px;}
.fixed-navigation ul li:hover::before {content: none; color: #ffcc00;}
.fixed-navigation ul li::before {content: none;position: absolute;left: 0;top: 2px;color: rgb(106, 236, 117);font-weight: bold;font-size: 14px;line-height: 1;transition: content 0.2s ease, color 0.3s ease;
    display: inline-block;
    text-align: center;
}
.fixed-navigation ul li.active-section {background: #1565c0 !important;color: white !important;font-weight: bold;}

.fixed-navigation ul li {
    position: relative;
    padding-left: 0;
    line-height: 1.5;
}

.nav-main-heading {
    background-color: #1c1f15;
    color: #b0e6be;
    padding: 6px 10px;
    font-size: 14px;

}

.nav-main-icon {
    margin-right: 5px;
}
.fixed-navigation a {
    font-family: 'Poppins';
    display: block;
    color: #d1d1d1;
    font-size: 13px;
    text-decoration: none;
    font-weight: unset;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    margin: 10px 0px 10px 0px;}

.fixed-navigation li {padding: 0px;font-family: arial;font-size: 14px;}
.fixed-navigation h2 {font-size: 1.2em;color: #0d47a1;text-align: center;margin-bottom: 10px;}
.fixed-navigation a:hover {background: #bbdefb;color: #1565c0;text-decoration: none;}
.fixed-navigation a.active-section {background: #1565c0;color: white;font-weight: bold;}
.dark-mode { background: #7d0606; color: #fff; }
.copy-btn:hover {border: 1px solid #e4ff00;}
.copy-btn {position: absolute;top: 6px;right: 5px;font-size: 14px;color: #e4ff00;background-color: transparent;text-decoration: none;cursor: pointer;transition: background-color 0.2s, transform 0.1s;border: none;display: flex;align-items: center;gap: 5px;border: 1px solid transparent;}
.copy-btn i {font-size: 16px;}
.code-container {position: relative;background-color:#373737;box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);overflow-x: auto;padding: 17px 5px 5px 5px;}
.blue-mode { background: #97cef7; color: #1A237E; }
.back-to-top:hover {background: #1565c0;}
.back-to-top {display: block;text-align: center;background: #0d47a1;color: white;padding: 10px;text-decoration: none;border-radius: 5px;font-weight: bold;transition: 0.3s;margin-top: 20px;}
.ad-placeholder {height: 150px;background-color: #514f65;border: 1px dashed #ccc;text-align: center;line-height: 150px;font-size: 14px;color: #999;margin: 20px 0;}
#cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: #1a202c; color: white; padding: 20px; z-index: 9999; }
.page-wrapper { flex: 1; /* This makes it take up remaining space */ display: flex; flex-direction: column; align-items: flex-end; }
.cookie-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-buttons button { padding: 10px 15px; border: none; cursor: pointer; border-radius: 4px; font-weight: bold; }
#decline-cookies { background-color: #e53e3e; color: white; }
#accept-cookies { background-color: #48bb78; color: white; }
.cf-container{ max-width: 1000px; margin: 80px auto 0 auto; background: #fff; padding: 60px; margin-bottom: 60px; margin-top: 120px; border-radius: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); text-align: left; }
.search-container { margin-top: 0; }
.search-select { padding: 10px; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; flex: 1; min-width: 120px; }
.search-input { padding: 10px; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; flex: 1; min-width: 300px; max-width: 400px; } 
.search-form { display: flex; flex-wrap: wrap; gap: 10px; }
.search-button:hover { background-color: #4c2393; }
.result-item:hover { transform: translateY(-3px); box-shadow: 0px 8px 12px var(--card-shadow); }
.result-item p { color: var(--text-color); font-size: 0.95rem; line-height: 1.4; }
.result-item p { display: -webkit-box; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.invisible-anchor { display: block; height: 70px; margin-top: -70px; visibility: hidden; }
.related-item img { max-width: 100%; height: auto; border-radius: 4px; margin-bottom: 10px; }
.related-item { background: #f9f9f9; padding: 15px; border-radius: 8px; box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); width: 300px;  text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.results-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 90px auto 0 auto;padding: 0 20px;}
.image-wrapper { width: auto; height: 200px; overflow: hidden; position: relative; margin: 0 auto 10px auto; }
.image-wrapper img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: auto !important; height: auto !important; max-width: none !important; max-height: none !important; display: block; }
.result-item { width: 300px; background: var(--card-bg); padding: 15px; border-radius: var(--card-radius); box-shadow: 0px 4px 6px var(--card-shadow); text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; border: 1px solid #ccc; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 1em; color: #333; }
.result-item img { position: absolute; top: 50; left: 50; width: auto !important; height: auto !important; max-width: none !important; max-height: none !important; }
.result-item-link { display: block; text-decoration: none; color: inherit; }
.result-item { cursor: pointer; background-color: #fff; }
.result-item img { height: 200px; width: auto; }
.related-item img { height: 200px; width: auto; }
.result-title { font-size: 1rem; font-weight: bold; color: #004c7b; margin-bottom: 5px; text-align: center; line-height: 1.3em; height: auto; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; line-clamp: 2; }
.result-description { font-size: 0.75rem; line-height: 1.5em; text-align: center; overflow: hidden; color: #653e01; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; line-clamp: 3;  height: 4.5em; }
.result-description.four-lines { line-clamp: 4; height: 6em; }
.pagination { text-align: center; margin: 20px 0; margin-bottom: 100px; }
.pagination span { display: inline-block; margin: 0 3px; padding: 6px 12px; text-decoration: none; color: var(--text-color); background: #eaeaea; border-radius: 4px; }
.pagination a:hover { background-color: var(--secondary-color); color: #fff; }
.pagination a { display: inline-block; margin: 0 3px; padding: 6px 12px; text-decoration: none; color: var(--text-color); background: #eaeaea; border-radius: 4px; }
.pagination .active { font-weight: bold; background-color: var(--primary-color); color: #fff !important; }
.header-logo { height: 40px; width: auto; }
.header-left { display: flex; align-items: center; gap: 10px;  }
.header-left h1 { margin: 0; font-size: 1.5rem; }
.header { display: flex; justify-content: space-between;align-items: center;background: #000; color: #fff; padding: 0 20px; height: 60px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);}
.header h1 { font-size: 1.5rem; }
* { box-sizing: border-box; margin: 0; padding: 0; }
.search-input, .search-select { padding: 8px; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; }
.search-input { min-width: 180px; }
.search-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-container { margin: 0; }
.search-button:hover { background-color: #4c2393; }
.search-button { background-color: #5a2da8; color: #fff; border: none; padding: 0 20px; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; height: 40px;  }
.related-item:hover { transform: translateY(-3px); box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.15); }
.related-item a:hover { color: #0056b3; }
.related-item a { display: block; font-size: 1.1rem; color: #007bff; text-decoration: none; margin-bottom: 10px; font-weight: bold; transition: color 0.3s ease; }
.related-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.related-container { margin-top: 40px; text-align: center; }
.related-container h2 { margin-bottom: 20px; font-size: 1.4em; color: #333; }
.header-left { display: flex; align-items: center; gap: 10px; }
.header-left img.header-logo { height: 40px; width: auto; }
.header { position: fixed; top: 0; left: 0; right: 0; background: #000; color: #fff; padding: 10px 20px; display: flex; justify-content: space-between;  align-items: center; height: 60px; z-index: 1000; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);}
.container { max-width: 1000px; margin: 80px auto 0 auto; background: #fff; padding: 60px; margin-bottom: 60px; margin-top: 110px; border-radius: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); text-align: left; }
.circuit-images { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.circuit-images img { max-width: 100%; height: auto; border-radius: 5px; }
.back-link:hover { color: #0056b3; }
.back-link { display: block; margin-top: 20px; text-decoration: none; font-weight: bold; color: #007bff; }
.container { max-width: 1000px; margin: 80px auto 0 auto; background: #fff; padding: 60px; margin-bottom: 60px; margin-top: 110px; border-radius: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); text-align: left; }
@media (max-width: 940px) {body {padding: 10px;}h1 {font-size: 2em;}.nav_nav {font-size: 1em;} .fixed-navigation { position: fixed; top: 60px; right: 0px; /* ? Align to right */ width: 260px; max-height: 0; overflow: hidden; border-radius: 0; transition: max-height 0.3s ease-in-out; background: #333333; opacity: 0; /* ? Hide when not active */ padding: 0; visibility: hidden; } .right-placeholder { display: none; /* ? Completely hide right placeholder */ }}
@media (max-width: 600px) {.ad-placeholder {height: 100px;line-height: 100px;}}
@media (max-width: 600px) { .hero-search-form {flex-direction: column;max-width: 800px;} .hero-search-input {width:100%;} .hero-search-select {width:100%;} .custom-arrow {top: -26px;left: 130px;position: relative;} }
@media (max-width: 940px) { .search-input { min-width: 200px; max-width: 600px; } .search-select { min-width: 100px; } }
@media (max-width: 820px) { .header { flex-direction: column; align-items: stretch; height: auto; padding: 10px 20px; }.header-left { justify-content: center; margin-bottom: 10px; }.search-container { width: 100%; }.search-form { width: 100%; justify-content: space-between; }.search-input { flex: 1; min-width: 0; margin-right: 5px; }.search-select { flex: 0 0 auto; margin-right: 5px; }.search-button { flex: 0 0 auto; }}
@media (max-width: 768px) { .result-item { width: 100%; max-width: 400px; } }
@media (max-width: 600px) { .related-item { width: 100%; } }
@media (min-width: 940px) {.menu-toggle {display: none;}}
