/* @import fonts */
@import url('https://fonts.googleapis.com/css2?family=Oleo+Script&display=swap');
/* font-family: 'Oleo Script', cursive; */
*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
:root{
    --bgColor:rgb(224, 222, 222);
}
html{
    scroll-behavior: smooth;
    font-family: 'Oleo Script', cursive; 
}
body{
    /* background:url('./background.jpg') no-repeat center/cover; */
    background: rgb(224, 222, 222);
}
/* customising scrollbar */
::-webkit-scrollbar{
    width:10px;
}
::-webkit-scrollbar-track{
    background:black;
}
::-webkit-scrollbar-thumb{
    background:linear-gradient(30deg,rgb(224, 100, 100),blue);
    border:2px solid black;
}

.header{
    height:3rem;
    width:100%;
    text-align: center;
    font-size:2rem;
    margin:1rem auto;
}

.chat-btn{
    height:3rem;
    width:20rem;
    font-size: 2rem;
    color:var(--bgColor);
    border: none;
    background:linear-gradient(30deg,rgb(224, 100, 100),blue);
    box-shadow: 2px -2px 4px white inset;
    border-radius: 20px;
    font-weight: 700;
    font-family: 'Oleo Script', cursive; 
    cursor: pointer;
}

/* the main container */
.container{
    height:32rem;
    width:40rem;
    padding:1rem;
    margin:0 auto;
    box-shadow: 2px -2px 10px black inset;
    border-radius: 20px;
}

/* one of the container */
.chat-box{
    height:30rem;
    text-align: center;
    width:100%;
    margin:0 auto;
    border-radius:60px;
    /* background: black; error check */
}

/* message and chat area */
.chat-messages{
    display: flex;
    flex-direction: column;
    background: var(--bgColor);
    height:28rem;
    user-select: none;
    
}
.bot-text{
    font-size:1.4rem;
    color:yellow;
    padding:0 10px;
    text-align: left;
    padding-bottom: 5px;
}
.timestamp{
    background:linear-gradient(30deg,rgb(224, 100, 100),blue);
    text-align: center;
    bottom:0;
    height:40rem;
    overflow-y: auto;
    font-size:1.4rem;
    border-radius: 20px;
    width:100%;
    place-items: center;
}
#chat-time{
    font-size: 1rem;
    color:white;
}
.input-chat{
    font-size:1.4rem;
    /* color:rgb(214, 77, 27); */
    color:white;
    padding:0 10px;
    text-align: right;
}
img{
    height:2.5rem;
    width:2.5rem;
    margin:0 5px;
    border-radius: 50%;
    box-shadow: -1px 1px 5px black  ;
}


/* input area */
.input-block{
    height:4rem;
    width:100%;
    background: black;
    display:flex;
    border-radius: 20px;
    margin:8px auto;
    font-size:1.3rem;
    justify-content: space-evenly;
    box-shadow: 0 -2px 3px grey inset;
}
.input-block input[type="text"]{
    height:3rem;
    width:30rem;
    font-size:1.2rem;
    margin:8px 3px;
    padding:6px;
    vertical-align: auto;
    background:var(--bgColor);
    border-radius: 15px;
}
.input-block input[type="text"]:focus{
    border:none;
    outline:none;
    color:black;
    font-weight: 300;
    border: 2px solid aqua;
}
.input-block input::placeholder{
    font-family: 'Oleo Script', cursive; 
}

.chat-icons{
    display: block;
    background: transparent;
    width: 5rem;
    margin: 10px auto;
    font-size:1.5rem;
    cursor: pointer;
}

.chat-icons i{
    margin:10px 5px;
}

#reset-btn{
    margin:12px auto;
    height:2.5rem;
    width:3rem;
    font-size:1.5rem;
    background: transparent;
    border: none;
    color:yellow;
    cursor: pointer;
}
#reset-btn:active{
    transform: rotate(360deg);
    transition: transform 300ms;
}
.icon-animation{
    animation:like 500ms ease 100ms;
}
#joke{
    font-size: 1.2rem;
}

@keyframes like{
    from{
        opacity: 0.7;
        transform: scale(1.09) translateX(-3px) translateX(3px);
    }
    to{
        transform:scale(1);
    }
}
  
/* The footer */
footer{
    position: fixed;
    bottom:0;
    margin:1px auto;
    width: 100%;
    text-align: center;
}
#footer-p{
    margin:0 auto;
    font-size:1.2rem;
}

@media screen and (max-width:400px){
    .chat-btn{
        font-size:1.5rem;
        width:15rem;
    }
    body{
        overflow-x: hidden;
    }
    .container{
        width:100vw;
    }
    .input-chat,.bot-text{
        font-size:1.2rem;
    }
    .input-block input[type="text"]{
        height:2.8rem;
        width:14rem;
        font-size:1.1rem;
        margin:8px 3px;
        padding:6px;
        vertical-align: auto;
        background:var(--bgColor);
        border-radius: 15px;
    }
    .chat-icons{
        font-size:1.2rem;
        margin-top:1rem;
    }
    #reset-btn{
        font-size:1.2rem;
        margin-top:1rem;
        margin-right:10px;
        padding:0;
    }
    #footer-p{
        font-size: 1rem;
    }
}
@media screen and (max-width:368px){
    .chat-icons{
        font-size:1rem;
    }
    #reset-btn{
        font-size:1rem;
    }
}
