/* FOR ALL ELEMENTS */
.mainColor1 {
    background-color: #173f85 !important;
    color: white !important
}

.mainColor2 {
    background-color: #1a6699 !important;
    color: white !important
}

.mainColor3 {
    background-color: #d1edff !important;
    color: rgb(0, 0, 0) !important
}

.mainColor4 {
    background-color: #96d4ff !important;
    color: gray!important
}

.mainColor5 {
    background-color: #ffffff !important;
    color: gray !important
}

/* END OF STYLE FOR ELEMENTS */

#mainContent {
    padding-top: 20px;
    padding-bottom: 10px;
    justify-content: center;
}

#cardContent {
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

#secondaryContent {
    justify-content: center;
    border: none;
    background-color: #ffffff;
    opacity: 0.8;
    font-size: 17px;
}

#spaceForFooter {
    margin-bottom: 80px; /* Set the height of your footer */
}

#styleNavbar {
    background-color: #d8eefd !important;
    opacity: 0.95;
}

#logoSize {
    height: 15%;
    width: 15%;
}

.button1 {
    width: 200px;
    background: linear-gradient(#0000, rgb(0 0 0/30%)) top/100% 800%;
    transition: 0.5s;
}

.pill1 {
    width: 250px;
}

.button2 {
    width: 180px;
    background: linear-gradient(#0000, rgb(0 0 0/30%)) top/100% 800%;
    transition: 0.5s;
}

.button1:hover {
    background-position: bottom;
}

.button2:hover {
    background-position: bottom;
}

.lib-button {
    width: 100px;
}

.library-card {
    height: 27rem !important;
}

.library-card-sm {
    height: 21rem !important;
}

.library-context {
    height: 23rem !important;
}

.library-context-sm {
    height: 17rem !important;
}

.header-button {
    width: 150px;
}

.button3_createReq {
    width: 270px;
}

.button4_showReq

.searchEmBox

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    text-align: center;
}

.center-loginbox{
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh
}

.opacity-content {
    background-color: #ffffff;
    opacity: 0.9;
}

.ribbon {
    background-image: url('backgrounds/ribbon.png');
    background-repeat: no-repeat;
    width: 100%;
}

.login-box-background {
    background-image: url('backgrounds/loginbox.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    
}

.footer-ribbon {
    background-image: url('backgrounds/footerribbon.png');
    background-repeat: no-repeat;
    width: 50%;
}


#styleFooter {
    background-color: #ffffff;
    opacity: 0.85;
    position: fixed;
    
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
}

#backToTop {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 30px;
    z-index: 99;
    font-size: 15px;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 13px;
    border-radius: 4px;
}

#messageDisplay {
    font-family: monospace;
    /* Sử dụng font chữ monospace để duy trì định dạng dòng */
    white-space: pre-line;
    /* Cho phép tự động xuống dòng */
    font-size: 20px;
}

.loading {
    display: none;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

div.scrollChat {
    border: 1px solid black;
    border-radius: 5px;
    height: 70px;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: left;
    font-size: large;
}

div.contextChat {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

/*spinner style*/
.spinner-color {
    color:  #173f85 !important;
}

/* for scroll bar */
/* width */
::-webkit-scrollbar {
    width: 10px;
    border-radius: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #d1edff;
    border-radius: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #1a6699;
    border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #173f85;
    border-radius: 5px;
}

.chatContainer {
    overflow: auto;
    /* Add other styles as needed */
}

.libraryCol {
    width: 15rem;
}

/* for index */
@media (max-width: 768px) {
    .mainCol {
        width: 500px !important;
    }
    .messageCol {
        width: 500px !important;
    }
    .chatCard {
        height: 500px !important;
    }
}

@media (min-width: 768px) {
    .mainCol {
        width: 250px !important;
    }
    .chatCard {
        height: 400px !important;
    }
}

/* for create Request */
@media (max-width: 768px) {
    .subCol {
        width: 500px !important;
    }
    .searchEmBox {
        width: 500px !important;
    }
}

@media (min-width: 768px) {
    .subCol {
        width: 350px !important;
    }
    .button4_showReq {
        width: 500px !important;
    }
    .searchEmBox {
        width: 900px !important;
    }
}

body {
    background-color: aliceblue;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out;
}
