.styleBox,
.trailing.clear {
    cursor: pointer;
}
.form-outline .form-control {
    min-height: 48px;
}
.form-range,
.themeColor {
    color: #5b6bf5;
}
#toast-container > .copyToast {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important;
    background-color: #5b6bf5;
}
.navbar-dark {
    background-color: #5b6bf5;
}
#mainID intro {
    background-color: red !important;
}
.styleBox:hover {
    border: 1px solid #5b6bf5 !important;
    color: #5b6bf5;
}
.styleBox:hover .copyIcon {
    color: #5b6bf5 !important;
}
.bodyMain,
.lightBackground {
    background-color: #f4f6ff;
}
.range .thumb:after,
.themeBackground {
    background: #5b6bf5;
}
.styleBox {
    margin-top: 4px;
    background-color: #fff !important;
    border-style: hidden;
    text-align: left;
    height: auto;
    padding: 12px;
    resize: none;
    font-size: 30px;
    color: #3a3a3a;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-all;
}
.styleName {
    margin-bottom: 0;
    font-size: 13px;
}
.preview {
    margin: 30px 0 10px;
    text-align: center;
    color: #3a3a3a;
    font-size: 24px;
}
.range {
    z-index: 9999;
    color: #5b6bf5;
    width: 100%;
    max-width: 330px;
    margin: 8px auto;
    display: block;
}
.form-range {
    padding: 0;
    margin: 10px 0;
}
.form-range::-webkit-slider-thumb {
    background-color: #5b6bf5;
    cursor: pointer;
}
.form-range::-moz-range-thumb {
    background-color: #5b6bf5;
    cursor: pointer;
}
.categoryName,
.darkColor {
    color: #3a3a3a;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Ubuntu, sans-serif;
}
body,
p {
    font-family: "Open Sans", sans-serif;
}

a:hover {
    cursor: pointer;
}

#btn-back-to-top {
    position: fixed;
    bottom: 176px;
    right: 8px;
    display: none;
    z-index: 9999;
}
#btn-back-to-top:hover {
    background-color: #6876f7;
}

.floating-av {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 300px;
    min-height: 0;
    max-height: 168px;
    overflow: visible;
    z-index: 9998;
}
@media (max-width: 970px) {
    .main-container {
        padding: 0 8px;
    }
    .customText {
        font-size: smaller;
    }
    .styleBox {
        margin-top: 2px;
        padding: 10px;
        font-size: 28px;
    }
    .styleName {
        font-size: 11px;
    }
    .navbar-nav {
        margin-right: 0 !important;
    }
}
.dropdown-menu {
    z-index: 99999;
}
.themeButton {
    background: #5b6bf5 !important;
    color: #fff;
}
.themeButton:hover {
    background: #6876f7;
    color: #fff;
}
h4 {
    font-size: 1.2rem;
}
.navContainer {
    margin-left: 0;
}
.fancy-letters {
    font-size: 20px;
}
.letter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid transparent;
    border-radius: 10%;
    transition: background-color 0.3s, border-color 0.3s;
    text-decoration: none;
}
.letter:hover {
    background-color: #f4f6ff;
}
.symbol {
    background-color: #fff;
    width: 56px;
    height: 52px;
    text-align: center;
    padding: 3px;
    font-size: 28px;
    border-radius: 6px;
    margin-right: 5px;
    margin-left: 8px;
    margin-top: 10px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    border-style: hidden;
}
.symbol:hover {
    border: 1px solid #5b6bf5 !important;
}
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

/* Add this new class */
.main-container,
header > .container-fluid,
article > .container,
footer .container {
    max-width: 970px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}
header {
    /* margin-top: 61px; */
}

@media (min-width: 970px) {
    header {
        /* margin-top: 101px; */
    }
}

/* Remove duplicate definition */
.main-container {
    padding: 24px 15px;
}

/* Add padding for the colored nav background to extend full width */
.navbar {
    padding-left: max(15px, calc((100% - 970px) / 2));
    padding-right: max(15px, calc((100% - 970px) / 2));
    display: flex;
    align-items: center;
}

.navbar .row {
    margin: 0;
    width: 100%;
    align-items: center;
}

.navbar .logo-column {
    padding: 0;
    display: flex;
    align-items: center;
    min-width: 120px;
    margin-right: 48px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.navbar .menu-grid {
    padding: 0;
}

.navbar .menu-grid .row {
    height: 50%;
}

.navbar .col-4 {
    padding: 0;
}

.navbar .col-2 {
    width: 12.5%;
    flex: 0 0 12.5%;
}

.navbar .nav-link {
    padding: 8px 4px;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar .nav-link:hover {
    transform: translateY(-2px);
}

.navbar .nav-link.active {
    font-weight: 600;
}

.navbar .nav-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar .nav-link:hover:after {
    opacity: 1;
}

.navbar .menu-icon {
    width: 16px;
    height: 16px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.navbar .nav-link:hover .menu-icon {
    transform: scale(1.1);
}

.navbar .menu-text {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    display: block;
}

.navbar .new-badge {
    top: -4px;
    right: -4px;
    padding: 1px 4px;
    font-size: 9px;
}

@media (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }

    .logo-section .navbar-brand span {
        display: inline !important;
    }

    .navbar-brand img {
        height: 24px !important;
    }

    .navbar .logo-column {
        min-width: 40px;
    }

    .navbar .col-2 {
        width: 25%;
        flex: 0 0 25%;
    }

    .navbar .menu-grid .row {
        flex-wrap: wrap;
    }

    .navbar .menu-grid .row > div:nth-child(n + 5) {
        margin-top: 8px;
    }
}

/* Ensure the colored footer background extends full width */
.text-center.p-3.bg-white {
    padding-left: max(15px, calc((100% - 970px) / 2)) !important;
    padding-right: max(15px, calc((100% - 970px) / 2)) !important;
}

@media (max-width: 970px) {
    .navbar,
    .text-center.p-3.bg-white {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.customText {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 16px auto 0;
    max-width: 600px;
}

.previewSize {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
    white-space: nowrap;
    margin-right: 10px;
}
.slider {
    align-items: center;
    margin-bottom: 1rem;
}

.themeColor {
    color: #5b6bf5;
    text-decoration: none;
}

.themeColor:hover {
    text-decoration: underline;
    color: #6876f7;
}

.header {
    background: white;
    padding: 24px 0;
    /* margin-bottom: 24px; */
}

.header h1 {
    font-size: 36px;
    margin: 0;
    color: #3a3a3a;
}

@media (max-width: 970px) {
    .header h1 {
        font-size: 28px;
    }

    .customText {
        font-size: 14px;
        padding: 0;
    }
}

/* 404 Page Styles */
.error-card {
    text-align: center;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.error-card img {
    max-width: 100%;
    height: 250px;
    width: auto;
    margin: 0 auto 30px;
    display: block;
}

.error-card .themeButton {
    background: #5b6bf5;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 25px;
    transition: background 0.2s;
}

.error-card .themeButton:hover {
    background: #6876f7;
    color: white;
}

footer {
    background: white;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    padding: 0 10px;
}

.footer-links a:hover {
    color: #5b6bf5;
}

.copyright {
    color: #666;
    font-size: 14px;
}

.copyright a {
    color: #5b6bf5;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

@media (max-width: 970px) {
    .error-card {
        margin: 0 15px;
        padding: 30px 20px;
    }

    .error-card img {
        height: 200px;
    }
}

.ads {
    text-align: center;
}
.side_ad_left {
    top: 101px;
    left: 0;
    position: fixed;
    z-index: 1000;
}
.side_ad_right {
    top: 101px;
    right: 0;
    position: fixed;
    z-index: 1000;
}

.repeatable {
    height: 280px !important;
    position: relative;
    margin-bottom: 10px;
    max-width: 970px;
}

@media (min-width: 970px) {
    .repeatable {
        height: 250px !important;
    }
}

.text-right {
    text-align: right;
}

.z-0 {
    z-index: 0;
}

.z-10000 {
    z-index: 10000;
}

.relative {
    position: relative;
}

.ml-2 {
    margin-left: 8px;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    border-radius: 0.5rem;
}

.unlock-button-container {
    position: sticky;
    top: 120px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.9) 60%,
        rgba(255, 255, 255, 0)
    );
    z-index: 1001;
    border-radius: 0.5rem 0.5rem 0 0;
}

.unlock-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.unlock-button:hover {
    transform: translateY(-2px);
}

.category {
    position: relative;
}

.toast-bottom-center-100 {
    bottom: 100px;
    right: 0;
    width: 100%;
}
.toast-bottom-center-100 .toast {
    margin: 0 auto !important;
}

.spark-container {
    position: relative;
    overflow: visible;
    border-radius: 4px;
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: border-color 0.3s ease;
    background-color: #f8f9fa;
    z-index: 10000;
}

.spark-container:hover {
    border-color: rgba(74, 144, 226, 0.4);
    background-color: #c4d6e8;
}

.new-badge {
    font-size: 8px;
    background-color: #ff4757;
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Modern Horizontal Menu Styles */
.horizontal-menu-wrapper,
.horizontal-menu,
.menu-item {
    display: none;
}

/* Compare button styles */
.compare-btn {
    display: flex;
    align-items: center;
    color: #777;
    transition: color 0.2s ease;
}

.compare-btn:hover {
    color: #5b6bf5;
}

.active-compare {
    color: #5b6bf5;
}

.compare-btn-text {
    font-size: 12px;
}

#compare-counter {
    background-color: #5b6bf5;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 12px; */
    font-weight: bold;
    margin-right: 5px;
    transition: transform 0.2s ease;
}

#compare-counter:not(.d-none) {
    animation: pulse 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

#fontSelectionMessage {
    font-size: 12px;
    color: #6c757d;
}

.video-container {
    max-width: 970px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.max-w-600 {
    max-width: 600px;
}

.bg-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid rgba(91, 107, 245, 0.1);
}

.footer-container a {
    color: #495057 !important;
    transition: all 0.2s ease;
}

.footer-container a:hover {
    color: #5b6bf5 !important;
    text-decoration: underline !important;
}

.footer-container h5 {
    color: #212529 !important;
    font-weight: 600;
}

.footer-container .text-muted {
    color: #6c757d !important;
}

.footer-container .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-container .logo-link img {
    background: linear-gradient(135deg, #5b6bf5 0%, #4a6cf7 100%);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(91, 107, 245, 0.2);
}

.footer-container .logo-link h2 {
    color: #212529;
    margin: 0;
    font-weight: 600;
}

/* Add hover styles for first row menu items */
.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #fff;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.navbar-nav .nav-item:hover::after {
    width: 90%;
}

.navbar-nav .nav-item:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-item.active::after {
    width: 70%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    height: 4px;
}

@media (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }

    .logo-section .navbar-brand span {
        display: inline !important;
    }

    .navbar-brand img {
        height: 24px !important;
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        gap: 12px;
        margin-left: 8px;
    }

    .navbar-nav .nav-item {
        margin: 0;
    }

    .navbar-nav .nav-link {
        padding: 0;
        font-size: 14px;
    }

    .navbar-nav .nav-item::after {
        bottom: -2px;
    }
}

.capitalize {
    text-transform: capitalize;
}

.mr-0 {
    margin-right: 0 !important;
}

.mr-20 {
    margin-right: 20px;
}

.spacing {
    height: 16px;
}

.logo-section {
    background-color: #5b6bf5 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-section .navbar-brand {
    width: 100%;
    justify-content: center;
    margin: 0;
}

.logo-section .navbar-brand img {
    height: 20px;
}

@media (max-width: 768px) {
    .logo-section .navbar-brand img {
        height: 16px;
    }
}
