.diffchecker_container {
    text-align: center;
    display: flex;
    flex-direction: column;
    background-color: #f4f4f9;
    align-items: center;
    height: auto;
    padding: 0 20px;  /* Add padding for smaller screens */
}

.outputDiv {
    width: 100%;  /* Set to 100% width for responsiveness */
    max-width: 608px;  /* Maintain max width for larger screens */
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
    background-color: white;
    resize: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.diffchecker_container > h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.diffchecker_input-container {
    display: flex;
    flex-direction: column;  /* Stack elements on small screens */
    justify-content: space-around;
    gap: 20px;  /* Reduce gap for smaller screens */
    width: 100%;
}

@media (min-width: 768px) {
    .diffchecker_input-container {
        flex-direction: row;  /* Row layout for larger screens */
        gap: 50px;  /* Original gap restored for larger screens */
    }
}

.diffchecker-input-box, .diffchecker-output-box {
    border: none;
    width: 100%;  /* Make inputs responsive */
    max-width: 600px;  /* Maintain max width for larger screens */
    height: 300px;
    padding: 4px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
    background-color: white;
    resize: none;
}

.diffchecker-input-box:focus, .diffchecker-output-box:focus {
    border-color: #6200ea;
    box-shadow: 0 0 10px rgba(98, 0, 234, 0.3);
}

.diffchecker-highlight {
    color: red;
    font-weight: bold;
}

.parent-clear-btn {
    display: flex;
    justify-content: end;
    padding: 0 20px;  /* Add padding for smaller screens */
}

.copy-fn {
    display: flex;
    justify-content: space-between;
    margin: 0 8px;
    align-items: center;
    flex-direction: column;  /* Stack buttons on smaller screens */
}

.copyOne {
    width: 100%;
    max-width: 150px;  /* Limit max width for button */
    height: 30px;
    background-color: #6200ea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 8px;
} 

.copyOne.copied::after {
    content: " ✔";      /* Adds a check mark after the button text */
}

@media (min-width: 768px) {
    .copy-fn {
        flex-direction: row;  /* Restore original layout for larger screens */
        justify-content: space-around;
    }
}

.differences-cl-btn {
    margin: 0 520px 0 auto;
    display: flex;
    align-items: center;
    font-size: 24px;
    color: #333;
}

.clear-button {
    width: auto;
    height: auto;
    padding: 9px;
    background-color: #6200ea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 20px 78px 0 0;
}

.find-difference_button {
    width: 200px;
    padding: 15px;
    background-color: #6200ea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.find-difference_button:hover {
    background-color: #5b00d6;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.find_difference_button {
    display: flex;
    justify-content: center;
}

.outPutDivs {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.original_and_difference_text {
    display: flex;
    justify-content: center;
}

.hr-line {
    border-width: 0.1px;
}

#highlightedOutput, #outputWithLineNumbers {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    height: auto;  /* Allow height to grow dynamically */
    overflow: visible;  /* No need to scroll, let it grow */
}

.diffchecker-output-box {
    border: none;
    padding: 4px;
    font-size: 16px;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background-color: white;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
    vertical-align: top;
    resize: none;  /* Disable manual resizing */
}

/* Media query for mobile devices */
@media (max-width: 600px) {
    .outputDiv {
        width: 100%;  /* Ensure full width on mobile */
        font-size: 14px;  /* Reduce font size */
        gap:20px; /*gap 20px for mobile devices */
        
    }
    .copy-fn{
        flex-direction: row;
    }

    .diffchecker_h1 {
        font-size: 20px;  /* Reduce heading size */
    }

    .find-difference_button {
        width: 100%;  /* Full width for button on small screens */
        max-width: 200px;
        font-size: 14px;  /* Reduce button font size */
    }

    .parent-clear-btn {
        justify-content: center;  /* Center clear button on mobile */
        padding: 0 10px;
    }

    .differences-cl-btn {
        margin: 0 auto;  /* Center text on mobile */
        font-size: 18px;  /* Adjust font size */
    }
    .copyOne{
        width: auto;
        height: auto;
    }
    .copyTwo{
        width: auto;
        height: auto;
    }
    .diffchecker-output-box{
        padding: 4px 8px;
    }
    .clear-button {
        margin: 20px 0 0 0;
    }
}
