/* Font Families and Styles for Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    letter-spacing: -1px;

}

/* Font Sizes */
h1 {
    font-size: clamp(2rem, 1rem + 5vw, 3rem);
    line-height: 1.2em;
}

h2 {
    font-size: clamp(1.5rem, 0.5rem + 5vw, 2.5rem);
    line-height: normal;
}

h3 {
    font-size: clamp(1rem, 0.2rem + 5vw, 2rem);
    line-height: 2.25rem;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.5rem;
}

h5 {
    font-size: 1.125rem;
    line-height: 1.5rem;
}

h6 {
    font-size: 1rem;
    line-height: 1.5rem;
}

/* Font Family and Styles for Paragraphs */
p {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0rem; /* Normal letter-spacing for paragraphs */
}

body {
    font-family: "DM Sans", sans-serif;
    padding:0;
    color:rgb(58, 58, 58);
    height: 100%;
}

body *::-webkit-scrollbar {
    display: none;
}

body * {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

#ChatBody, #AideBody, #IEPBody {
    background-color: white;
}

/* OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px); /* Adjust the blur radius as needed */
    z-index: 999;
    display: none;
}
.popup {
    position: absolute;
    right: 150%;
    background: #fff;
    box-shadow: 10px 10px 5px rgba(230, 230, 230, 0.782);
    display: block;
    z-index: 1000;
    height: 100%;
    width: 100%;
    transition: 0.5s;
}
.popup.active{
    right:0;
}
.popup2 {
    position: fixed;
    padding:0;
    margin:0;
    top: 0;
    right:0;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    height: 100%;
    width: 70%;
}
.popup3 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FAE7E1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1011;
    height: 100%;
    width: 100%;
}
.disclosure-container {
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    position: fixed;
    bottom: 0;
    left:0;
    right:0;
    display:flex;
    flex-direction: column;
}
.popupAI {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display:none;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    margin: 0 1rem 1rem 1rem;
}
.popupCookie {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display:none;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    margin: 0 1rem 1rem 1rem;
}
.popup-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}
.popup-content2 {
    padding:0;
    margin:0;
    background-color: rgba(255, 255, 255, 0.801);
    display: flex;
    flex-direction: row;
    align-items: end;
    color: rgb(58, 58, 58);
}
.source-container {
    background-color: #f1f1f1;
    width:100%;
    height:100%;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}
.source-container::after {
    content: "";
    position: absolute;
    right:0;
    height:100%;
    width: 50px; /* Adjust the gradient width as needed */
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(224, 224, 224));
  }


  /*------------------------Loading Animation----------------------------------*/
.loading-animation-container {
    display: flex;
    flex-direction: row;
    width: fit-content;
    height: auto;
    margin:auto;
}
.loading-dot {
    width: 6px;
    height: 6px;
    opacity: 1;
    border-radius: 20px;
    background-color: #4C90C5;
    opacity: 1;
    visibility: visible;
    animation: loading 0.75s alternate infinite;
}
@keyframes loading {
    from { opacity: 1; }
    to { opacity: 0; }
}
.loading-dot.active {
    opacity: 1;
    visibility: visible;
}
#loading-dot-1 {
    transform: translate(-5px,0);
}
#loading-dot-2 {
    animation-delay: 0.25s;
}
#loading-dot-3 {
    transform: translate(5px,0);
    animation-delay: 0.5s;
}



/* Containers */

body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #ffffff;
    position: relative;
    top:6.5px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.chat-container {
    flex-grow: 1;
    margin: 1.5rem 1.5rem 0 1.5rem;
    overflow-y: scroll;
}

#AideBody .chat-container {
    background-color: #FFE5E9;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 4rem;
}

#IEPBody .chat-container {
    background-color: #FFEEDB;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 4rem;
}

.messages-list {
    margin-bottom: 4rem;
}

.chat-row {
    display: flex;
    justify-content: left;
    margin: 20px 0px 20px 0px;
    padding: 0 0 0 10px;
}
.promotion-chat-container {
    flex-grow: 1;
    margin: 2% 5%;
    border-radius: 30px;
    overflow-y: scroll;
}
.promotion-chat-row {
    display: flex;
    justify-content: center;
    margin: 20px 0px 20px 0px;
    padding: 0 0 0 10px;
}
.bottom-row::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    margin-bottom: 47.6px;
    width: 100%;
    height: 100px; /* Adjust the height of the gradient as needed */
    background: linear-gradient(to top, #FAE7E1, rgba(255,255,255,0)); /* Define your gradient here */
    pointer-events: none; /* This ensures that the gradient doesn't interfere with mouse events */
}
.bottom-row{
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    text-align: center;
}

.row-reverse {
    justify-content: right;
    margin: 20px 0px 20px 0px;
    padding: 0 20px 0 0;
}

.chat-bubble {
    padding: 1rem;
    max-width: 80%;
    border-radius: 10px;
    height:fit-content;
}

.chat-bubble > p {
    margin: 0;
}

.promotion-chat-bubble {
    background-color: #fdf0ed;
    padding: 10px 15px 10px 15px;
    margin: 2px 0px;
    max-width: 100%;
    border-radius: 10px;
    height:fit-content;
    font-size: 14px;
    color:#333333;
}

.ai-bubble {
    background-color: #E6F3FD;
}

.user-bubble {
    background-color: #327DB8;
    color: white;
}

footer {
    width: 100%;
}
.input-row {
    display: flex;
    flex-direction: row;
    margin: 1.5rem;
    max-height: 50px;
}
.button-row {
    display: flex;
    flex-direction: row;
    margin: 0 5% 2% 5%;
}
.menu-nav {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
}
.conversation-starters-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
#decimal-intro-blurb {
    display: none;
}

/* Buttons */
button {
    border-style: solid;
    border-width: 1px;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

button:hover {
    opacity: 0.8;
}

button p {
    margin: 0;
    font-weight: 600;
}

.hamburger-x {
    position: fixed;
    width: 3rem;
    height: 3rem;
    margin: 2rem;
    z-index: 1010;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.hamburger-top {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: rgb(58, 58, 58);
    border-radius: 10px;
    transition: 0.5s;
    transform: translate(0,-10px);
}
.hamburger-top.active {
    width: 30px;
    transform: rotate(-45deg);
}
.hamburger-mid {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: rgb(58, 58, 58);
    border-radius: 10px;
    transition: 0.5s;
}
.hamburger-mid.active {
    opacity: 0;
}
.hamburger-bottom {
    position:absolute;
    width: 30px;
    height: 3px;
    background-color: rgb(58, 58, 58);
    border-radius: 10px;
    transition: 0.5s;
    transform: translate(0,10px);
}
.hamburger-bottom.active {
    width: 30px;
    transform: rotate(45deg);
}
.conversation-starter {
    text-align: center;
    color: white;
    background-color: #327DB8;
    border-color: #327DB8;
    padding: 1rem 1.5rem;
    margin: 0.5rem;
    display: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: DM Sans, sans-serif;
}
.source-button {
    background-color: rgb(224, 224, 224);
    padding-left: 3%;
    padding-bottom: 2px;
    margin-bottom: 2%;
    color: rgb(80, 156, 255);
    overflow-x: hidden;
    white-space: nowrap;
    overflow-y: hidden;
}

.closePopup {
    position: fixed;
    left: 0;
    top:0;
    margin-top: 2%;
    margin-left: 2%;
}
.closePopup2 {
    position: realtive;
    left: 0;
    top:0;
    margin-top: 1%;
    margin-left: 1%;
}
.scnd {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    background-color: #E6F3FD;
    margin-right: 1rem;
    height: auto;
    max-width: fit-content;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}
.clr-btn {
    background-color: #FFCA38;
}

.send-button {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    background-color: #E6F3FD;
    margin-left: 1rem;
    height: auto;
    max-width: fit-content;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

#AideBody .send-button {
    background-color: #911F49;
    color: white;
    margin-left: auto;
}

#IEPBody .send-button {
    background-color: #7C2D12;
    color: white;
    margin-left: auto;
}

.menu {
    position: fixed;
    left: 0;
    top:0;
    margin-top: 15px;
    margin-left: 10px;
}
.menu-notif {
    width:12px;
    height:12px;
    background-color: #ffb4a4;
    position: fixed;
    top:0;
    left:0;
    border-radius: 20px;
    margin-top: 9px;
    margin-left: 49px;
    display: none;
}

.sources {
    position: fixed;
    right: 0;
    top:0;
    margin-top: 10px;
    margin-right: 15px;
    display: none;
}
.src-notif {
    width:12px;
    height:12px;
    background-color: rgba(255, 60, 60, 0.836);
    position: fixed;
    top:0;
    right:0;
    border-radius: 20px;
    margin-top: 10px;
    margin-right: 42px;
    display: none;
}
.disclosure-button {
    background-color: #327DB8;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    width: fit-content;
    margin: auto;
}

#sped-achieve-menu {
    margin: 0 10% 10% 10%;
    position: absolute;
    bottom:0;
    left: 0;
    right:0;
}
.decimal-mode-button {
    color:rgb(58, 58, 58);
    padding: 1rem 1.5rem;
    width:80%;
    font-size: 1.1rem;
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}
.decimal-mode-button:hover {
    color:rgb(58, 58, 58);
}



/*Text Styling*/
a.link-header {
    text-decoration: none;
    color: rgb(58, 58, 58);
    font-size: 1.1rem;
}

a.link-header:hover {
    text-decoration: underline;
    color: rgb(58, 58, 58);
}

.options-txt {
    font-size: 175%;
    margin-bottom: 25px;
}



/* Textbox Styling */
textarea {
    resize: none;
}
.bold {
    font-weight: bold;
}
/* Image Styling */

.avatar {
    height: 70px;
    width: auto;
}

@media all and (max-width: 500px) {
    .avatar {
        display: none;
    }

    .chat-bubble {
        max-width: 85%;
    }

    .ai-bubble {
        font-size: 14px;
    }
    
    .user-bubble {
        font-size: 14px;
    }
    #decimal-intro-blurb {
        justify-content: center;
        margin: 0 0 20px 0;
        padding: 0;
    }
    .conversation-starter {
        font-size: 14px;
    }

}

@media all and (max-width: 341px) {
    .identity-tag {
        display: none;
    }
    .ai-bubble {
        font-size: 12px;
    }
    
    .user-bubble {
        font-size: 12px;
    }
    .bottom-row::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        margin-bottom: 71.6px;
        width: 100%;
        height: 100px; /* Adjust the height of the gradient as needed */
        background: linear-gradient(to top, #FAE7E1, rgba(255,255,255,0)); /* Define your gradient here */
        pointer-events: none; /* This ensures that the gradient doesn't interfere with mouse events */
    }
    .conversation-starter {
        font-size: 12px;
    }
}


.result-element {
    display: flex;
    flex-direction: column;
    max-width: 90px;
    text-align: center;
    overflow-wrap: break-word;
    margin: 0 0 15px 0;
}
.sidebar {
    display: flex;
    flex-direction: column;
}

#additional-info-container {
    position: relative;
}

.text-log-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
}

.text-log-panel {
    background-color: rgb(58, 58, 58);
    width: 100%;
    height: 50px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
    text-align: center;
}

.text-log-panel.active {
    border-radius: 0;
}

.text-log-chatbox {
    background-color: #ffffff;
    width: 100%;
    height: 0px;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    justify-items:start;
    align-items: center;
    overflow-y: scroll;
}

.text-log-chatbox.active {
    height: calc(100vh - 108px);
    padding-top:  20px;
}

.assignment-container-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.aide-response-container {
    width: fit-content;
    height: fit-content;
    margin: 1.5rem;
    border-radius: 30px;
    color: rgb(58, 58, 58);
    font-weight: 500;
}

/* Buttons */
.assignment-container-button {
    background-color: #911F49;
    width: 270px;
    padding: 0.375rem 0.75rem;
    color: white;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
}
.info-button {
    background-color: #FFE5E9;
    border-radius: 30px;
    width: 24px;
    height: 24px;
    margin-top: 10px;
    margin-left: 0.5rem;
    color: #911F49;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hidden-desc {
    width: fit-content;
    height: fit-content;
    background-color: #FFE5E9;
    position: absolute;
    margin-top: 12px;
    padding: 0;
    right:40px;
    top: 0;
    z-index: -1;
    transition: all 0.5s;
    border-radius: 0.25rem;
    opacity: 0;
}
.hidden-desc.active {
    z-index: 999;
    opacity: 1;
    padding:8px 12px 8px 8px;
}
.panel-text {
    position: absolute;
    right:0;
    left:0;
    top:15px;
    color:white;
    font-weight: 500;
}
.carrot-button {
    position: absolute;
    top: 22px;
    right: 10px;
    transition: 0.5s;
}
.carrot-button.active {
    transform: rotate(180deg) translate(12px, 0px);
}
.left-carrot {
    background-color: white;
    width: 1rem;
    height: 2px;
    transform: rotate(45deg);
}
.right-carrot {
    background-color: white;
    width: 1rem;
    height: 2px;
    transform: rotate(-45deg) translate(-6px,-9px);
}

.pdf-button {
    border-radius: 0px;
    border-width: 1px;
    border-color:rgb(133, 128, 136);
    background:rgb(232, 225, 235);
    width: 90px;
    height: 150px;
}

.form-label {
    font-weight: 800;
}

.form-select, .form-control {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: "DM Sans", sans-serif;
    border-radius: 0.5rem;
    border: none;
}