/* styles.css */
@import url(https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css);

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse at left top, #001cff, #000000), radial-gradient(ellipse at left bottom, #239f0c, #00000000);
    background-repeat: no-repeat;
    height: 2000px;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: auto;
}

header {
    text-align: center;
    background: #007bff;
    color: white;
    padding: 20px;
    border-radius: 8px;
}
footer {
    position: relative;
    top: 100%;
    height: 100px;
    background: #000116;
    width: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chatbox {
    /* background: white; */
    /* border: 1px solid #ccc; */
    border-radius: 8px;
    /* padding: 10px; */
    display: flex;
    flex-direction: column;
    /* margin-top: 10px; */
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 80%;
    top: 250px;
    align-items: stretch;
}

.messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    scrollbar-width: none;
    max-height: 1500px;
    /* border: 1px solid #ccc; */
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 10px);
    top: 415px;
    width: 80%;
}

input[type="text"] {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    /* margin-right: 10px; */
    flex-grow: 1;
    margin-bottom: 10px;
    font-size: large;
    font-family: system-ui;
    font-weight: 500;
}

button {
    position: relative;
    padding: 10px 15px;
    border: none;
    border-radius: 15px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    width: 90%;
    left: 50%;
    transform: translate(-50%, 0px);
}

button:hover {
    background-color: #0056b3;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.user_msg {
    color: #081b24;
    background: radial-gradient(ellipse at right, #ffffff, #fff49ffa);
    padding: 10px;
    margin: 10px;
    border-radius: 10px 0px 10px 10px;
    text-wrap-style: pretty;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-wrap: anywhere;
    /* font-size: large; */
    font-family: system-ui;
    font-weight: 500;
    min-height: 11px;
    width: 90%;
    right: 0px;
    float: right;
    max-width: 90%;
    width: fit-content;
}

.bot_msg {
    color: #081b24;
    background: radial-gradient(ellipse at left, #ffffff, #a6ceff);
    padding: 10px;
    margin: 10px;
    border-radius: 0px 10px 10px 10px;
    text-wrap-style: pretty;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-wrap: anywhere;
    font-family: system-ui;
    font-weight: 500;
    max-width: 90%;
    width: fit-content;
    white-space: pre;
}
.user_box {
    width: 100%;
    display: flex;
    flex-direction: column;
    float: right;
    align-items: flex-end;
}

.bot_box {
    width: 100%;
    display: flex;
    flex-direction: column;
    float: left;
    align-items: flex-start;
}
.user_icon {
    height: 30px;
    width: 30px;
    padding: 10px 10px 0px 10px;
    fill: antiquewhite;
}
.bot_icon {
    height: 30px;
    width: 30px;
    padding: 10px 10px 0px 10px;
    fill: #9591ff;
}
#filler {
    height: 2000px;
}
#bot_pre {
    width: 100%;
    text-wrap: auto;
}
/*.broadfield-top{
    position: fixed;
    width: 100%;
    z-index: 999999999;
    top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}*/
.broadfield-bar {
    width: 80%;
    overflow: scroll;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 32px;
    position: absolute;
    /*background: linear-gradient(360deg, transparent, 40%, #ffffff75, 60%, transparent);*/
    /* background: radial-gradient(ellipse, #ffffff, transparent); */
    color: #ffffff;
    padding: 10px;
    height: 30px;
    border-radius: 20px;
    top: 30px;
    flex-wrap: wrap;
    flex-direction: column;
    /* box-shadow: 0 0 15px 2px #ffffff, inset 0 0 6px 0px #1a1a1a; */
    transition: transform 0.5s ease-in-out;
    overflow: auto;
    scrollbar-width: none;
}
.broadfield-bar.scroll-left {
    transform: translateX(5px);
}
.broadfield-bar.scroll-right {
    transform: translateX(-5px);

}
.broadfield-top {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    /* transform: translate(50%, 0px); */
    /* left: -50%; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.broadfield-top.scroll-up {
    transform:translateX(-100%) skewX(50deg);
    opacity: 50%;
}
.top-btn {
    height: 50px;
    background: #1f77ff;
    width: 38%;
    border-radius: 15px;
    margin: 0px 10px 0px 10px;
    transition: transform 0.1s ease-in-out;
    box-shadow: 0 0 5px 0px #ffffff, inset 0 0 6px 0px #1a1a1a;
    font-size: large;
    font-family: system-ui;
    font-weight: 700;
    align-content: center;
    text-align: center;
    cursor: pointer;
}
.top-btn.mouse-over {
    transform: scale(1.1);

}
.broadfield-menu {
    top: 8px;
    height: 150px;
    position: absolute;
    /* background: #0064ff9c; */
    width: 270px;
    opacity: 0;
    /* transform: scaleY(0%); */
    visibility: hidden;
    transition: visibility 0s, opacity 0.2s ease-out;
    border-radius: 20px;
    padding: 20px;
    /*border-style: solid;*/
    border-width: thick;
    border-color: #00000070;
    z-index: -9999;
    color: white;
    font-size: 27px;
    font-family: system-ui;
    align-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}
.broadfield-menu.open {
    opacity: 1;
    visibility: visible;
    /*transform: scaleY(100%) translate(0, 110px);*/
}
.name_head {
    font-size: 40px;
    font-weight: 700;
}
.sub_head {
    font-size: 20px;
    text-wrap-style: pretty;
    text-align: center;
}

.broadfield-mid-bar {
    width: 80%;
    overflow: scroll;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 32px;
    position: absolute;
    background: linear-gradient(360deg, transparent, 40%, #ffffff75, 60%, transparent);
    /* background: radial-gradient(ellipse, #ffffff, transparent); */
    color: #ffffff;
    padding: 10px;
    height: 30px;
    border-radius: 20px;
    top: 30px;
    flex-wrap: wrap;
    flex-direction: column;
    /* box-shadow: 0 0 15px 2px #ffffff, inset 0 0 6px 0px #1a1a1a; */
    transition: transform 0.5s ease-in-out;
    overflow: auto;
    scrollbar-width: none;
}
.broadfield-mid {
    position: absolute;
    top: 205px;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    /* transform: translate(50%, 0px); */
    /* left: -50%; */
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mid-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}