* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Poppins'; */
}

/* .chatbothellovideo {
    width:60px;
    height: 80px;
    margin-left: 20%;
    margin-top: -1%;
} */

body {
    width: 100%;
    height: 100vh;
    background-color: #efecec;
}

.chatfixedtop {
    display: flex;
    gap: 20px;
    padding: 25px;
    color: rgb(237, 234, 234);
    font-size: 15px;
    font-weight: 300;
    border: solid;
    border-radius: 10%;
    border-top: 10px solid #7e0acc;
    border-left: 10px solid rgba(7, 119, 231, 0.635);
    border-right: 10px solid rgb(212, 156, 15);
    border-bottom: 10px solid #e39292;
    background-color: #97b11fa4;
    text-align: center;
    font-family: cursive;
    font-size: large;
    opacity: 1.5;
    box-shadow: 5px 10px 20px 10px #d8ef5ada;
}

.chatresponsefixed {
    display: flex;
    gap: 20px;
    padding: 25px;
    color: black;
    font-size: 15px;
    font-weight: 300;
    width: 80vh;
    margin-left: 20%;
    margin-top: -2%;
    border-radius: 5px;
}

.chatmessage {
    border-radius: 50px;
    color: rgb(128, 128, 128);
    font-weight: 300;
    margin-left: 65%;
    margin-top: 2%;
    font-size: 20px;
    /* width: 40%; */
}

hr {
    margin-top: -2%;
    border: solid;
    border-color: rgba(190, 162, 4, 0.37);
    opacity: .8;
    box-shadow: 5px 10px 20px 10px rgba(119, 205, 231, 0.589);
    margin-left: 1%;
}

.chatimguser {
    /* width: 40px; */
    height: 45px;
    margin-top: -20%;
    margin-left: 75%;
}

.inputboxmic {
    height: 45px;
    margin-top: -10%;
    margin-left: -45%;
    cursor: pointer;
    transition: transform 0.50s ease, opacity 0.50s ease, box-shadow 0.60s ease;
}

.inputboxmic:hover {
    opacity: 1.5;
    box-shadow: 5px 10px 20px 20px rgba(255, 255, 255, 0.589);
}

.uploadfile {
    cursor: pointer;
}

.chatimgbot {
    width: 50px;
    height: 90px;
    margin-left: 4%;
}

.chatimgfixedtop {
    width: 240px;
    height: 140px;
    margin-left: 8%;
    margin-top: 10%;
}

.fixedpencil {
    width: 23px;
    height: 45px;
    margin-top: 20%;
    margin-left: -14%;
}

.inputboxpencil {
    width: 35px;
    height: 35px;
    margin-top: -2%;
}

.chatresponseforcopy {
    background-color: #e3e2e2b6;
    margin-left: 8%;
    padding: 25px;
    color: rgb(12, 12, 12);
    font-size: 18px;
    font-weight: 100;
    width: 30vw;
    border-radius: 8px;
}

.copy-buttonbot {
    cursor: pointer;
    margin-left: 90%;
}

.copyiconresponsebot {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.copyiconresponseuser {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.editiconresponseuser {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.edit-button,
.copy-button {
    background-color: #4f73c1;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 4%;
    margin-left: 15%;
    transition: transform 0.50s ease, opacity 0.50s ease, box-shadow 0.60s ease;
}

.edit-button:hover,
.copy-button:hover {
    background-color: #2ecb72;
    opacity: 1.5;
    box-shadow: 5px 10px 20px 20px rgba(145, 231, 119, 0.589);
}

.messagebar {
    position: fixed;
    bottom: 0;
    height: 5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messagebar .bar-wrapper {
    background-color: #4f73c1;
    border-radius: 50px;
    width: 50vw;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 1.5;
    box-shadow: 5px 10px 20px 10px #6a6c6a;
}

.bar-wrapper input {
    width: 100%;
    padding: 5px;
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    color: #ffffff;
    font-size: medium;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bolder;
}

.bar-wrapper input::placeholder {
    color: #e0e0e0;
    font-size: large;
}

.messagebar button {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(244, 198, 198);
}

.messagebar button .material-symbols-outlined {
    margin-top: 10%;
    margin-left: -10%;
    font-size: xx-large;
    transition: transform 0.50s ease, opacity 0.50s ease, box-shadow 0.60s ease;
}

.messagebar button .material-symbols-outlined:hover {
    font-size: x-large;
    color: #8cff00;
    opacity: 1.5;
    box-shadow: 5px 10px 20px 20px rgba(255, 255, 255, 0.589);
}

.message-box {
    height: calc(100vh - 5rem);
    overflow-y: auto;
    margin-left: 20%;
    border: solid;
    border-radius: 15%;
    border-top: 15px solid;
    width: 60%;
    margin-top: -3.2%;
    border-top-color: #c66363;
    border-bottom-color: #c508ff;
    border-left-color: #0bcd62;
    border-right-color: #0b38cd;
    opacity: 1.5;
    box-shadow: 5px 10px 20px 20px rgba(234, 151, 151, 0.589);
}

.message-box::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.message-options {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}


/* this part is for dark mode */

label {
    width: 76px;
    height: 35px;
    position: relative;
    display: block;
    background: #ebebeb;
    border-radius: 300px;
    box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.4), inset 0px -5px 15px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 3s;
    margin-left: 85%;
}

label:after {
    content: "";
    width: 31px;
    height: 27px;
    position: absolute;
    top: 4px;
    left: 3.5px;
    background: linear-gradient(180deg, #ffcc89, #d8860b);
    border-radius: 180px;
    box-shadow: 0px 5px 10px rgba(174, 85, 85, 0.2);
    transition: 1s;
}

.inputt {
    width: 0;
    height: 0;
    visibility: hidden;
}

input:checked+label {
    background: rgb(72, 72, 72);
}

input:checked+label:after {
    left: 70px;
    transform: translateX(-90%);
    background: linear-gradient(180deg, gold, #646262);
}

label:active:after {
    width: 180px;
    border: solid;
    border-radius: 10px;
}

.backgroundcolour {
    width: 100vw;
    height: 110vh;
    z-index: -1;
    position: absolute;
    transition: 1s;
    margin-top: -10%;
}

input:checked+label+.backgroundcolour {
    background: #242424;
}

label svg {
    position: absolute;
    width: 20px;
    top: 20%;
    z-index: 100;
}

label svg.sun {
    left: 8px;
    fill: white;
    transition: 5s;
}

label svg.moon {
    left: 50px;
    fill: grey;
    transition: 8s;
}

input:checked+label svg.sun {
    fill: whitesmoke;
    transition: 15s;
}

input:checked+label svg.moon {
    fill: whitesmoke;
    transition: 5s;
}

/* (dark mode part end) */






/* 
  @media screen and (max-width: 920px){
   
  } */






@media screen and (max-width: 650px) {
    body {
        width: 100%;
        height: 100vh;
        background-color: #efecec;
        padding: 10px;
    }

    .chatfixedtop {
        display: flex;
        gap: 20px;
        color: rgb(237, 234, 234);
        font-size: 15px;
        font-weight: 300;
        border: solid;
        border-radius: 10%;
        border-top: 10px solid #e39292;
        border-left: 10px solid rgba(7, 119, 231, 0.635);
        border-right: 10px solid rgb(212, 156, 15);
        border-bottom: 10px solid #7e0acc;
        background-color: #579e00a4;
        text-align: center;
        font-family: auto;
        flex-direction: column;
        padding: 15px;
    }

    .fixedpencil {
        width: 20px;
        height: 30px;
        margin-top: -20%;
        margin-left: 65%;
    }

    .chatresponsefixed {
        width: 80vw;
        margin-left: 2%;
        margin-top: 1%;
        border-radius: 10%;
    }

    .chatmessage {
        margin-left: 30%;
        font-size: 12px;
    }

    .message-box {
        width: 95vw;
        margin-left: 0%;
        border-radius: 10%;
        position: fixed;
        margin-top: 5%;
        height: 85vh;
    }

    label {
        margin-left: 40%;
        margin-top: -5%;
        position: fixed;
    }

    .messagebar .bar-wrapper {
        width: 90vw;
        margin-left: -5%;
        /* margin-top: 3%; */
        padding: 5px;
        position: fixed;
    }


    .chatimgbot {
        width: 45px;
        height: 65px;
    }

    .chatimguser {
        margin-top: 3%;
        margin-left: 75%;
        width: 35px;
        height: 45px;
    }

    .chatimgfixedtop {
        width: 70px;
        height: 110px;

    }

    .inputboxpencil,
    .inputboxmic {
        width: 35px;
        height: 35px;
    }

    .edit-button,
    .copy-button {
        padding: 2px 6px;
        /* font-size: 8px; */
    }

    /* .message-options {
      flex-direction: column;
      gap: 3px;
    } */
    .edit-button {
        margin-left: 10%;
    }

    .chatmessage {
        border-radius: 50px;
        color: rgb(128, 128, 128);
        font-size: 15px;
        font-weight: 300;
        margin-left: 47%;
        margin-top: 2%;
        font-size: 17px;
        width: 25vh;
    }

    .chatresponseforcopy {
        background-color: #e3e2e2b6;
        margin-left: 8%;
        padding: 30px;
        color: rgb(12, 12, 12);
        font-size: 15px;
        font-weight: 300;
        width: 30vh;
        border-radius: 8px;
    }

    .bar-wrapper input::placeholder {
        color: #e0e0e0;
        font-size: medium;
    }

    .backgroundcolour {
        width: 100vw;
        height: 100vh;
        z-index: -1;
        position: absolute;
        transition: 2s;
        margin-top: -10%;
        margin-left: -3vw;
    }

    input:checked+label+.backgroundcolour {
        background: #242424;
    }
}