@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #798645;
  --trd-bg-color: #F2EED7;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    /* font-family: "SUSE Mono"; */
    font-family: "Montserrat";
    /* font-family: "Orbitron"; */
}
html{
    font-size: 60%;
    overflow-x: hidden;
}



/* HEADER */
body{
    background-color: var(--bg-color);
    color: var(--text-color);
}
/* SECTION */
.chat-section{
    min-height: 100vh;
    padding: 2rem 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1px;
}

/* CHAT CONTAINER */
.chat-container{
    width: 100%;
    max-width: 900px;
}

/* HEADING */
.heading{
    text-align: center;
    font-size: 60px;
    margin-bottom: 2rem;
    color: var(--trd-bg-color);
    letter-spacing: 1px;
}

/* CHAT BOX */
.chat-box{
    height: 500px;
    overflow-y: auto;
    padding: 5rem;
    font-size: 20px;
    background: rgba(16, 16, 16, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 1.5rem 0rem 0 0;
    border: 1px solid var(--main-color);
    box-shadow: 0 0 25px rgba(121, 134, 69, 0.2);
}

/* MESSAGES */
.message{
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    max-width: 75%;
    border-radius: 1.2rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in-out;
}

.message.user{
    background: var(--main-color);
    color: var(--bg-color);
    margin-left: auto;
    text-align: right;
    border-bottom-right-radius: 0;
}

.message.bot{
    background: #1a1a1a;
    color: var(--trd-bg-color);
    border-bottom-left-radius: 0;
}

/* INPUT AREA */
.chat-input-area{
    display: flex;
}

.chat-input-area input{
    flex: 1;
    padding: 18px;
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--second-bg-color);
    border-radius: 0 0 0 1.5rem;
    border: 1px solid var(--main-color);
    outline: none;
}

.chat-input-area input:focus{
    box-shadow: 0 0 10px var(--main-color);
}

/* BUTTON */
.btn{
    padding: 0 2.5rem;
    border-radius: 0 0 1.5rem 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: linear-gradient(
        270deg,
        var(--trd-bg-color) 10%,
        var(--main-color) 100%
    );
    color: var(--bg-color);
    transition: 0.3s ease-in-out;
}

.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--trd-bg-color);
}

/* Scrollbar */
.chat-box::-webkit-scrollbar{
    width: 6px;
}
.chat-box::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
    border-radius: 10px;
}

/* Animation */
@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
@media(max-width:768px){
*{
    scroll-behavior: smooth;
}

.chat-section{
    padding: 1rem;
    align-items: flex-end;
    padding-top: 0px;
    padding-bottom: 45px;
}

.heading{
    font-size: 50px;
    margin-bottom: 1rem;
}

.chat-container{
    width: 100%;
    position: fixed;
    padding: 0 20px 0 20px;
    padding-bottom: 1px;
}

.chat-box{
    height: 70rem;
    padding: 1.2rem;
    font-size: 14px;
    border-radius: 1rem 1rem 0 0;
    scroll-behavior: smooth;
    padding-bottom: 60px;
}

.message{
    font-size: 13px;
    max-width: 90%;
    padding: 0.8rem 1rem;
}

.chat-input-area{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* margin-left: 20px; */
    background: #101010;
}

.chat-input-area input{
    padding: 14px;
    font-size: 14px;
    border-radius: 10px 0 0 0;
}

.btn{
    padding: 0 1.5rem;
    font-size: 13px;
    border-radius: 0 10px 0 0;
}

}
