﻿/* Text Area */

body > section:nth-child(2) {
    height: 79%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-container {
    width: 80%;
    height: 95%;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 10px;
    margin: auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 10px;
}

.message {
    display: flex;
    align-items: center;
    max-width: 70%;
    gap: 10px;
    word-wrap: break-word;
}

@media (max-width: 800px) {
    .message {
        max-width: 95%;
    }
}

.message.user {
    align-self: flex-start;
}

.message.bot {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message > img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

@media (max-width: 600px) {
    .message > img {
        width: 40px;
        height: 40px;
    }
}

.message > span {
    color: black;
    font-size: 16px;
    text-align: justify;
    font-weight: bold;
}

@media (max-width: 800px) {
    .message > span {
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    .message > span {
        font-size: 10px;
    }
}


/* Control Panel */

body > section:nth-child(4) {
    flex: 1;
    display: flex;
}

    body > section:nth-child(4) > div:nth-child(1) {
        width: 10vw;
        display: flex;
        flex-direction: column;
        padding: 0 10px 0 10px;
    }

@media (max-width: 800px) {
    body > section:nth-child(4) > div:nth-child(1) {
        padding: 0;
    }
}

body > section:nth-child(4) > div:nth-child(1) > a {
    height: 50%;
    width: 50px;
}

@media (max-width: 800px) {
    body > section:nth-child(4) > div:nth-child(1) > a {
        width: 40px;
        height: 45%;
    }
}

body > section:nth-child(4) > div:nth-child(1) > a:nth-child(1) {
    align-self: flex-start;
}

body > section:nth-child(4) > div:nth-child(1) > a:nth-child(2) {
    align-self: flex-end;
}

body > section:nth-child(4) > form{
    width:90vw;
    display:flex;
}

body > section:nth-child(4) > form > div:nth-child(1) {
    width: 80vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

    body > section:nth-child(4) > form > div:nth-child(1) > textarea {
        resize: none;
        width: 95%;
        height: 90%;
        background: rgba(255,255,255,0.5);
        font-size: 15px;
        color: black;
        border-radius: 15px;
        padding: 0 10px 0 10px;
        font-weight: bold;
        text-align: justify;
    }

        body > section:nth-child(4) > form > div:nth-child(1) > textarea::placeholder {
            color: black;
            font-weight: bold;
        }

@media (max-width: 500px) {
    body > section:nth-child(4) > form > div:nth-child(1) > textarea {
        font-size: 12px;
    }
}

body > section:nth-child(4) > form > div:nth-child(2) {
    width: 10vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

body > section:nth-child(4) > form > div:nth-child(2) > a {
    width: 40px;
    height: 45%;
}

@media (max-width: 500px) {
    body > section:nth-child(4) > form > div:nth-child(2) > a {
        width: 25px;
        height: 28%;
    }
}

/* Default Questions */

body > section:nth-child(3) {
    display: none;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 5px 0 5px 0;
}

    body > section:nth-child(3) > form{
        width:100vw;
        height:100%;
        overflow-x:auto;
        display:flex;
        gap:5px;
    }
    body > section:nth-child(3) > form > a {
        color: black;
        background-color: rgba(255,255,255,0.4);
        padding: 0 5px 0 5px;
        font-weight: bold;
        text-decoration: none;
        border-radius: 15px;
        font-size: 16px;
        white-space:nowrap;
    }

@media (max-width: 800px) {
    body > section:nth-child(3) > form > a {
        font-size: 14px;
    }
}

/*Post_Status*/

.post_status {
  height: 100vh;
  width: 100vw;
  background-color: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
}

.post_status > span {
  height: 100px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75vw;
  border-radius: 50px;
  font-size: 20px;
}