@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: Poppins;
    box-sizing: border-box;
}

body {
    margin: 0;
}

button {
    outline: none;
    border: none;
}

.chat-sect {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: 100dvh;
    margin: 0 16px;
}

.drag-parent-div img {
    height: 200px;
}

.heading {
    font-size: 20px;
    font-weight: 500;
}

.choose-image {
    background: #FFF7F5;
    border: 1px dashed #D99696;
    width: 100%;
    border-radius: 20px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-sizing: border-box;
}

.drag-parent-div {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.color-25 {
    color: #252525;
}

.color-b0 {
    color: #B0B0B0;
}

#dragOverlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 128, 255, 0.3); /* Semi-transparent overlay */
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    pointer-events: none;
}

#dropArea.active #dragOverlay {
    display: flex; /* Show the overlay when the drag is active */
}

.drag-span {
    font-size: 16px;
    line-height: 28px;
    color: #565656;
}

.choose-span {
    font-size: 16px;
    font-weight: 500;
    color: #8C0303;
    margin-left: 2px;
    cursor: pointer;
}

.helper-span {
    font-size: 16px;
}

.loading {
    display: none;
}

.drag-parent-div {
    height: inherit;
    max-width: 920px;
    margin: 32px auto;
}

h1 {
    margin-top: 20px;
}

#output {
    margin-top: 20px;
    border-radius: 8px;
    height: auto;
    padding-bottom: 80px;
    margin-bottom: 80px;
    /* max-width: 1080px; */
}

.preview {
    width: 150px;
    height: 200px;
    /* object-fit: contain; */
    border-radius: 10px;
    /* border: 1px solid #ccc; */
    margin-bottom: 20px;
}

.message {
    margin: 10px 0;
    width: 200px;
    height: auto;
}

.ai-container {
    text-align: left;
    color: #202020;
    width: 80%;
    padding: 12px;
}

.ai-container p {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #000;
}

.user {
    float: right;
    width: 100%;
    display: flex;
    justify-content: end;
    background-color: #fafafa;
    padding: 12px;
}

.loading {
    display: none;
    color: #000;
    background: #252525;
    position: absolute;
    filter: opacity(0.5);
    width: 240px;
    height: 240px;
    border-radius: 8px;
    top: 0;
    right: 0;
    z-index: 9;
}

.loader-parent {
    background: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 7px;
}

.loader-parent div {

    border: 4px solid #7e7e7e;
    border-radius: 50%;
    border-top: 4px solid #5a5a5a;
    width: 24px;
    height: 24px;
    /* opacity: 15%; */
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.text-field {
    align-items: center;
    gap: 12px;
    max-width: 600px;
    width: 100%;
    border: 1px solid #B0B0B0;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 10px 20px;
    resize: none;
    height: fit-content;
    min-height: 48px;
    max-height: 250px;
    font-size: 16px;
    line-height: 24px;
    overflow-y: auto;
    box-sizing: border-box;
}

.text-field::placeholder {
    font-size: 16px;
    line-height: 24px;
}

.askquery {
    display: none;
    align-items: flex-end;
    gap: 8px;
    justify-content: center;
    position: fixed;
    left: 50%;
    transform: translate(-50%);
    bottom: 32px;
    width: 90%;
}

.parent-div {
    display: flex;
    flex-direction: column;
    width: 100%
}

strong {
    margin-bottom: 12px;
}

#userPrompt {
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
}

.sendPrompt {
    background: #222222;
    padding: 8px;
    border-radius: 12px;
    padding: 8px 12px;
    height: 48px;
    width: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sendPrompt img {
    margin-top: 2px;
}

.showprompt-parent {
    display: flex;
    justify-content: end;
}

.userTextarea:valid~.sendPrompt {
    display: block;
}

.userTextarea {
    width: 100%;
    background-color: transparent;
    font-size: 16px;
    height: 45px;
    padding: 12px;
    max-height: 250px;
    overflow-y: scroll;
    resize: none;
}

.userTextarea::-webkit-scrollbar {
    width: 5px;
}

.userTextarea::-webkit-scrollbar-track {
    background: transparent;
}

.userTextarea::-webkit-scrollbar-thumb {
    background: #dcdcdc;
}

#sendBtn {
    padding: 8px 12px;
}

.show-prompt {
    border-radius: 12px;
    padding: 8px 12px;
    background: #FFF7F5;
    font-weight: 400;
    font-size: 14px;
    max-width: 80%;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid #FFF;
    border-bottom-color: transparent !important;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.toast-notification {
    position: fixed;
    bottom: 32px;
    transform: translate(-50%, -50%);
    width: fit-content;
    left: 50%;
    z-index: 999;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 12px;
    border-radius: 8px;
    line-height: 24px;
    text-align: center;
}

.error-toast {
    color: hsl(1, 76%, 29%);
    background-color: hsl(1, 100%, 96%);
}

.warning-toast {
    color: hsl(55, 76%, 49%);
    background-color: hsl(55, 100%, 96%);
}

.success-toast {
    color: hsl(130, 76%, 29%);
    background-color: hsl(130, 100%, 96%);
}

.image-gallery {
    position: relative;
    width: 100%;
    margin: 40px auto;
    perspective: 1000px;
    height: 240px;
}

.image-container {
    position: absolute;
    height: 240px;
    width: 240px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
    right: 0
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-container:nth-child(1) {
    transform: translateY(0) scale(1);
    z-index: 6;
}

.image-container:nth-child(2) {
    transform: translateY(0) scale(1);
    z-index: 5;
}

.image-container:nth-child(3) {
    transform: translateX(-20px) scale(0.98) rotate(-10deg);
    z-index: 4;
}

.image-container:nth-child(4) {
    transform: translateX(20px) scale(0.96) rotate(10deg);
    z-index: 3;
}

.image-container:nth-child(5) {
    transform: translateY(-30px) scale(0.94) rotate(-10deg);
    z-index: 2;
    opacity: 0.7;
}

.image-container:nth-child(n+6) {
    transform: translateY(30px) scale(0.94) rotate(10deg);
    z-index: 2;
    opacity: 0.7;
}

.image-container:hover {
    transform: translateY(-5px) scale(1.02) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.copy-footer {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #808080;
    text-align: center;
    white-space: nowrap;
}

a {
    color: #8c0303;
    text-decoration: none;
}

@media screen and (max-width: 640px) {
    .drag-parent-div img {
        height: 150px;
    }

    .copy-footer {
        font-size: 10px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        color: #808080;
        text-align: center;
        white-space: nowrap;
    }

    .heading, .drag-span, .choose-span, .helper-span {
        font-size: 14px;
    }

    .choose-image {
        height: 300px;
    }
}