html {
    /* background-image: url("purple-background-with-pattern-lines-dots.webp");
    background-size: cover; */
    background-color: #251226;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23443345' fill-opacity='1.0' fill-rule='evenodd'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    color: #f5e6f5;
    font-family: "Inter";
}

body {
    margin: 0;
}

a {
    color: #e3cde3;
}

h1 {
    margin-bottom: 10px;
    margin: auto;
    font-size: 40px;
}

h2 {
    font-size: 30px;
    margin-top: 0px;
    margin-bottom: 10px;
}

li {
    padding-bottom: 10px;
}

.preview {
    /* border-radius: 8px; */
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 50px auto;
}

.para {
    background-color: #3d2b46ff;
    text-align: left;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.parabox {
    background-color: #883696ff;
    text-align: left;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.paras {
    margin: auto;
    border-radius: 8px;
    gap: 20px;
    background-color: #311e3bcc;
}

@media (min-width: 768px) {
    .paras {
        width: 50%;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .paras {
        width: 100%;
    }
}

.top {
    padding-top: 40px;
    padding-bottom: 20px;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    background-color: #fd9eff;
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
}

.bdownload {
    margin-top: 8px;
    margin-bottom: 12px;
}

.inter-regular {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

.faq {
    width: 90%; /* Adjust to make it wider than the paras section */
    max-width: 1200px; /* Limit the maximum width to prevent it from becoming too wide */
    margin: 50px auto; /* Center the FAQ section with some margin for spacing */
    background-color: rgba(
        61,
        43,
        70,
        0.8
    ); /* Similar background color to match paras */
    padding: 20px;
    border-radius: 8px;
}

.faqitem {
    background-color: #3d2b46;
    margin-bottom: 20px; /* Space between FAQ items */
    padding: 20px;
    padding-left: 0px;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .faqitem {
        margin: 0 auto 20px auto; /* Center the item and maintain bottom margin */
        padding-left: 20px; /* Reset padding-left for desktop */
    }

    .faq {
        width: 60%;
        margin: 50px auto; /* Center the container and maintain top/bottom margin */
    }
}

.faq h1 {
    margin-bottom: 20px;
}

.faqitem h2 {
    font-size: 24px; /* Adjust the size for a better header appearance */
    margin-bottom: 10px;
    padding-left: 20px;
}

.faqitem ul {
    list-style-type: none;
    padding-left: 20px;
}

.faqitem li {
    padding-bottom: 10px; /* Space between list items */
    line-height: 1.5; /* Make text more readable */
}

@media (min-width: 767px) {
    .bar {
        background-color: #3a2436cc;
        display: flex;
        align-items: stretch;
    }

    .bar-content {
        padding: 35px;
    }

    .bar img:not(.icon) {
        height: 400px;
        display: inline-block;
        mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        margin: 0px;
        align-self: flex-end;
        margin-left: auto;
    }

    .bar2 {
        background-color: #221920cc;
        display: flex;
        padding-left: 20px;
    }

    .bar2 img {
        height: 400px;
        display: inline-block;
        mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        margin: 0px;
    }

    .bar3 {
        background-color: #221920cc;
        display: flex;
    }

    .bar3-img1 {
        width: 35%;
        display: inline-block;
        mask-image: linear-gradient(
            to left,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        -webkit-mask-image: linear-gradient(
            to left,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        margin: 0px;
    }

    .bar3-img2 {
        width: 30%;
        display: inline-block;
        mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        margin: 0px;
    }

    .bar4 {
        background-color: #3a2436cc;
        display: flex;
    }

    .bar4 img {
        width: 33%;
        border-radius: 8px;
    }
}

@media (max-width: 767px) {
    .bar {
        background-color: #3a2436cc;
    }

    .bar-content {
        padding: 35px;
    }

    .bar img {
        width: 100%;
        mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        margin: 0px;
    }

    .bar2 {
        background-color: #221920cc;
    }

    .bar2 img {
        width: 100%;
        mask-image: linear-gradient(
            to top,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        -webkit-mask-image: linear-gradient(
            to top,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        margin: 0px;
    }

    .bar3 {
        background-color: #221920cc;
    }

    .bar3-img1 {
        width: 100%;
        mask-image: linear-gradient(
            to top,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        -webkit-mask-image: linear-gradient(
            to top,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        margin: 0px;
    }

    .bar3-img2 {
        width: 100%;
        mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 100%
        );
        margin: 0px;
    }

    .bar4 {
        background-color: #3a2436cc;
        display: flex;
    }

    .bar4 img {
        width: 33%;
        border-radius: 8px;
    }
}

/* --- Copy Box for Code Commands --- */
.copy-box {
    position: relative;
    background: rgba(253, 158, 255, 0.18); /* translucent light purple */
    border-radius: 12px;
    padding: 1em 3em 1em 1em;
    margin: 1em 0;
    overflow: auto;
    border: 2px solid #fd9eff; /* brighter border */
    box-shadow:
        0 4px 24px 0 rgba(253, 158, 255, 0.18),
        0 1.5px 8px 0 rgba(0, 0, 0, 0.1);
    /* Optional: subtle gradient for depth */
    background-image: linear-gradient(
        135deg,
        rgba(253, 158, 255, 0.22) 0%,
        rgba(136, 54, 150, 0.18) 100%
    );
}
.copy-box pre {
    margin: 0;
    background: none;
    color: #fff;
    font-size: 1em;
    font-family: "Fira Mono", "Consolas", monospace;
    white-space: pre; /* Prevents wrapping */
    overflow-x: auto; /* Enables horizontal scroll if needed */
    scrollbar-color: #fd9eff #883696; /* Optional: custom scrollbar for theme */
    scrollbar-width: thin;
}
.copy-box pre::-webkit-scrollbar {
    height: 8px;
    background: #883696;
}
.copy-box pre::-webkit-scrollbar-thumb {
    background: #fd9eff;
    border-radius: 4px;
}
.copy-btn {
    position: absolute;
    top: 1em;
    right: 1em;
    background: #fd9eff;
    border: none;
    color: #3d2b46;
    border-radius: 5px;
    padding: 0.3em 0.7em;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px 0 rgba(253, 158, 255, 0.18);
}
.copy-btn:hover {
    background: #fff;
    color: #b169b3;
}
.copy-btn.copied {
    /* Keep original purple theme instead of green */
    background: #fd9eff !important;
    color: #3d2b46 !important;
    /* Add smooth animation for the tick icon */
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Animation for the tick icon */
.copy-btn.copied svg {
    animation: tickAppear 0.3s ease-out;
}

@keyframes tickAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
