/*CSS for AI Checker Landing Page*/
/* Define a new class for the maximum width of 1080px */
.max-width-1020 {
    max-width: 1020px;
    margin: 0 auto; /* Center the element horizontally */
    /* Add any other styles as needed */
}
.aicheck-color {
    background-image: linear-gradient(104.49deg, #1a64e2, #991e8e 52.6%, #d52b1e);
    -webkit-background-clip: text; /* For webkit-based browsers */
    color: transparent; /* Hide the original text */
    font-weight: 600;
}
.ai-line-divider {
    width: 150px; /* Example width */
    height: 1px; /* Example height */
    background: linear-gradient(to right, #FFD700, #FF69B4); /* Gradient mix of light orange and light pink */
    margin: 0 auto; /* Center the divider horizontally */
    margin-top: 10px; /* Adjust top margin as needed */
    margin-bottom: 20px; /* Adjust bottom margin as needed */
}
.aipage-container {
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
.aipage-content-block {
    position: relative;
    display: flex;
    margin-bottom: 32px;
    gap: 20px;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 2px 2px rgb(191 191 191 / 26%);
}
.aipage-content-text {
    flex: 1;
    max-width: 450px;
    text-align: left;
}
.aipage-heading {
    font-size: 2rem;
    line-height: 4rem;
    text-align: center;
    padding: 4px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}
/* CSS for Plagiarism Checker Landing Page */
.button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.clear-text-button {
    position: absolute;
    top: 12px;
    right: 2px;
    background-color: #f0f0f0b8;
    color: #811489;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 1; /* Ensure button is above the textarea */
}

.clear-text-button i {
    margin-right: 5px;
}

.clear-text-button:hover {
    color: #811489;
}

.paste-text-button, .upload-file-btn {
    background: #f0f0f09c;
    color: #1f4dd1f0;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 130px; /* Ensure text fits within button */
    text-align: center; /* Center text */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ellipsis for overflow text */
}

.paste-text-button i, .upload-file-btn i, .clear-text-button i {
    margin-right: 5px; /* Adding margin between icon and text */
}

.paste-text-button:hover, .upload-file-btn:hover {
    color: #632ccde3;
}

.upload-file-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 130px;  /* Ensure container matches button width */
}

.upload-file-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #a09db3eb;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-file-btn:hover {
    transform: scale(1.05);
    color: #263556;
}

.upload-file-info {
    font-size: 12px;
    color: #666;
}

.hidden {
    display: none;
}

.aieditor-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 6px 15px 10px;
    border: 1px solid #c0b5c32b;
    background: linear-gradient(to bottom, #f9f7f7d1, #f9f7f7eb);
    transition: background-color 0.3s;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 0 1px 1px rgba(218, 227, 235, 0.57), 0 0 4px 5px rgba(223, 222, 222, 0.25);
    position: relative; /* Add position relative to contain absolutely positioned elements */
}

.aieditor-textarea {
    border: 2px solid #e5dce7;
    box-shadow: inset 0px 1px 6px 2px rgb(128 113 131 / 10%);
    background-color: #ffffff;
    color: #2d3748;
    padding: 1.5rem;
    width: 100%;
    height: 300px;
    resize: none;
    border-radius: 0.5rem;
    transition: border-color 0.3s;
    position: relative;
}

.aieditor-textarea::placeholder {
    color: #666666; /* Dark grey */
}

.aieditor-textarea:focus {
    border-color: #d8dee9;
    outline: none;
}

.editor-textarea-wrapper {
    position: relative;
    margin-bottom: 1rem; /* Adjust as needed */
    padding-top: 10px; /* Ensure top padding for consistency */
}

.text-count-container {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.8); /* Slight background to make it readable */
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

#charCountMeter {
    font-size: 14px;
    color: #676083;
    margin-right: 10px;
}

.upgrade-button {
    background-color: #f0f0f0;
    color: #1f4dd1;
    border-radius: 5px;
    padding: 2px 6px;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.upgrade-button i {
    margin-right: 5px; /* Adding margin between icon and text */
}

.upgrade-button:hover {
    color: #632ccde3;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .clear-text-button {
        font-size: 14px; /* Decrease font size on smaller screens */
        padding: 6px 10px; /* Adjust padding for smaller screens */

    }
    .button-container {
        flex-direction: column;
        gap: 5px;
    }

    .paste-text-button, .upload-file-btn {
        width: 100%;
    }

    .aieditor-textarea {
        height: 200px;
        font-size: 14px;
    }

    .aieditor-container {
        padding: 5px;
    }
}

.aieditor-textarea::placeholder {
    color: #666666; /* Dark grey */
}

.aieditor-textarea:focus {
    border-color: #d8dee9;
    outline: none;
}

.editor-textarea-wrapper {
    position: relative;
    margin-bottom: 1rem; /* Adjust as needed */
}

.upload-file-info {
    font-size: 12px;
    color: #666;
}
.footer-title, .footer-link {
    font-size: 0.9rem;
}

/* Hide the input file element */
.hidden {
    display: none;
}
.ai-left-block {
    display: flex;
    flex-wrap: wrap;
    background-color: #ffffff82;
    border-radius: 20px;
    padding: 30px 30px;
    margin: 0px 0px 0px 0px;
    box-shadow: 0 0 5px 10px hsl(0deg 0% 100% / 28%)
}
.ai-left-block:hover {
    border: 1px solid #b8abed;
    box-shadow: 0 0 5px 10px hsl(0deg 0% 100% / 28%);
}
.flex-col.ai-left-block {
    transform: translate3d(0, 0, 0); /* Create a new stacking context */
}
.cta-section {
    background-color: #f3f4f6;
    padding: 40px 16px 0; /* Adjust top padding and remove bottom padding */
    margin-top: 50px; /* Add space before the cta-section */
    margin-bottom: 0; /* Remove bottom margin */
    padding-bottom: 0; /* Remove bottom padding */
    position: relative; /* Add position relative */
    z-index: 1; /* Ensure the CTA section is above the footer */
}

.cta-container {
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Add position relative */
}

.max-w-4xl {
    max-width: 56rem; /* Adjust the maximum width */
}

.cta-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Adjust thickness of border */
    background: linear-gradient(to right, #ead6efa3, #ccc4e78c); /* Add gradient color */
    animation: colorAnimation 3s ease infinite; /* Add animation for color changing */
}

/* Custom styles for the footer */
footer.custom-footer {
    background-color: #f3f4f6; /* Set the desired background color */
    margin-top: -20px; /* Adjust margin to close the gap */
    padding-top: 20px; /* Add padding to ensure content is not too close to the top */
}
/* Gradient styles for the footer background */
.custom-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, #e8e1eb, #f3f4f6); /* Apply a gradient background */
    z-index: -1; /* Ensure the gradient is behind the footer content */
}
.button-detect {
    background-image: linear-gradient(to right, #4726cd, #9b1dc3e6)!important; /* Dark grey background color */
    color: #fff; /* White text color */
    border: none; /*Dark grey border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 20px; /* Padding */
    margin: 10px; /* Margin */
    cursor: pointer; /* Cursor on hover */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition for background color and transform */
    font-size: 16px; /* Font size */
    line-height: 1.5; /* Line height */
}

/* Hover state */
.button-detect:hover {
    background: linear-gradient(to right, #4627bd, #b72096); /* Darker grey background color on hover */
    border-color: #555; /* Darker grey border color on hover */
}

/* Pressed state */
.button-detect:active {
    transform: translateY(2px); /* Move the button down slightly when pressed */
}

/*Feature section*/
.aifeature-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap */
    padding: 50px 20px; /* Added more padding */
}

.aifeature-content {
    flex: 1;
    max-width: 45%;
    background: #fff;
    margin-left: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.aifeature-text {
    text-align: center;
    padding: 38px;
}

.aifeature-blocks {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
}

.aifeature-block {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.aifeature-block:last-child {
    margin-bottom: 0;
}

.aifeature-block:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.aifeature-title {
    font-size: 20px;
    font-weight: bold;
    color: #011569;
    margin-top: 10px; /* Add padding above the title */
    margin-bottom: 10px;
}

.aifeature-description {
    color: #323140;
    line-height: 1.6;
    margin-bottom: 20px; /* Add padding below the button */
    margin-right: 5px;
}

.aifeature-button {
    background-color: #ffffff;
    border: 1px solid #333333;
    color: #333333;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 30px; /* Add padding above the button */
    margin-bottom: 20px; /* Add padding below the button */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.aifeature-button:hover {
    background-color: #333333;
    color: #ffffff;
}

.fa-check-circle {
    color: #279139;
}

.fa-search {
    color: #eb585f;
}

.fa-star {
    color: #3a83c1;
}
.text-left {
    text-align: left; /* Align the text to the left within the container */
}
.text-right {
    text-align: right; /* Align the text to the left within the container */
}
/* Different background colors for each block */
.content-authenticity {
    background-color: rgb(181 238 195);
}

.plagiarism-check {
    background-color: rgb(255 205 206);
}

.quality-assurance {
    background-color: rgb(186 224 255);
}

/*end of feature section*/
/* Container for FAQs */
.faq-container {
    max-width: 1020px; /* Maximum width of the FAQ container */
    width: 100%; /* Full width up to the max-width */
    margin: 0 auto; /* Center the container horizontally */
    padding: 0 20px; /* Optional: add padding if needed */
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Align items vertically */
    align-items: center; /* Center items horizontally */
}

.faq-column {
    width: 100%;
    max-width: 800px; /* Adjust as needed */
}

.faq-block {
    width: 100%; /* Set the width to 100% to occupy the full width of the container */
    background-color: #fdfdfd;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: -2px -3px 2px 2px rgb(165 86 191 / 20%);
}

.faq-question {
    background-color: #f3f3f3;
    padding: 10px 20px; /* Adjust as needed */
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative; /* Make the question container relative */
}

.question-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    padding-right: 50px; /* Adjust as needed */
}

.expand-icon {
    position: absolute;
    top: 16px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 16px 20px; /* Adjust as needed */
    display: none;
    overflow: hidden; /* Hide overflow content */
    transition: height 0.3s ease; /* Apply transition effect to height changes */
    height: 0; /* Initially collapse the answer */
}

.faq-block.open .faq-answer {
    display: block;
    height: auto; /* Allow the answer to expand to its natural height */
}

.rotate {
    transform: rotate(180deg); /* Rotate the SVG icon */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #detector {
        height: 200px;
        font-size: 14px;
    }

    .aieditor-container {
        padding: 5px;
    }
}
