@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --transition: 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: #212121;
    background-image: url(img/bg-logo-gpt.png);
    background-repeat: no-repeat;
    background-size: 70px;
    background-position: 50% 280px;
    transition: var(--transition);
}
/* Header Navigation */
.header-navigation {
    color: #b4b4b4;
    background-color: #212121;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    position: fixed;
    top: 0;
}
.header-navigation > div{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}
.nav-icon:hover {
    background-color: #363636;
}
.side-nav-icon {
    padding:10px;
}
.new-chat-icon {
    padding: 8px;
}
.share-icon {
    padding: 9px;
}
.version-icon {
    text-align: center;
    width: 150px;
    padding: 10px;
    transition: var(--transition);
}   
.version-icon h3{
    display: inline-block;
    font-size: 17px;
} 
img.profile-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
}


/* Chat-Box-section */
.chat-section {
    background-color: #212121;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 0px 10px 10px 10px;
    position: fixed;
    bottom: 0;
    transition: var(--transition);
}
.chat-box {
    padding: .5em .8em .5em 1.3em;
    background-color: #2f2f2f;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 51%;
    border-radius: 26px;
}
.attach-icon {
    cursor: pointer;
}
input#text-input {
    font-size: 16px;
    flex: 1;
    background-color: #2f2f2f;
    border: none;
    padding: 10px;
    color: white;
}
input#text-input:focus {
    outline: none;
}
button.send-button{
    background-color: white;
    border: none;
    padding: 9px;
    border-radius: 50px;
    display: flex;
    align-items: center;

    /* ddddddddddddddddddddddddddddd */
    cursor: pointer;
}
button.send-button:active{
    background-color: rgb(160, 160, 160);
}
.chat-section p {
    color: #b4b4b4;
    font-size: 12px;
    margin-top: 10px;
}

/* Side-Navigation */
.side-navigation {
    font-size: 14px;
    color: #dcdcdc;
    display: flex;
    background-color: #171717;
    flex-direction: column;
    justify-content:start;
    align-items: center;
    /* width: 260px; */
    width: 0px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-x: hidden;
    transition: var(--transition);
    z-index: 1000;
}
.side-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}
.side-navigation .nav-icon:hover {
    background-color: #242424;
}
.side-mid-nav {
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.side-mid-nav .nav-icon{
    display: flex;
    width: 230px;
    padding: 10px;
}
.side-mid-nav .nav-icon img{
    margin-right: 10px;
}
.side-mid-nav .nav-icon.chat-room{
    justify-content: space-between;
}
.side-mid-nav .nav-icon.chat-room img{
    margin-right: 0;
}
.side-mid-nav .nav-icon.chat-room img:hover{
   
}
.chat-room-active {
    background-color: #242424;
}
.date-title {
    margin-top: 20px;
    color: #b4b4b4;
    font-size: 14px;
    padding: 10px;
}

/* Message-Section */
.msg-section {
    color: rgba(255, 255, 255, 0.918);
    background-color: #212121;
    width: 48%;
    height: auto;
    /* margin: 0 auto;   */
    margin-left: 26%;  
    padding: 80px 0;
    overflow: auto;
    transition: var(--transition);
}
.ask-msg {
    background-color: #2f2f2f;
    max-width: 75%;
    padding: 14px 20px;
    margin: 0 0 2em 0em;
    border-radius: 26px;
    float: right;
    clear: both;
}
.res-msg {
    display: flex;
    float: left;
    clear: both;
}
.res-text {
    margin: 0 0 2em 1.5em;
}

/* Profile - Drop Down */
.profile-dropdown {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.918);
    background-color: #2f2f2f;
    display: none;
    flex-direction: column;
    padding: 8px;
    border: 1px solid #3d3d3d;
    border-radius: 17px;
    position: absolute;
    bottom: -98px;
    right: -13px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.profile-dropdown .nav-icon{
    display: flex;
    width: 255px;
    padding: 10px;
}
.profile-dropdown .nav-icon:hover{
    background-color: #454545;
}
.profile-dropdown .nav-icon img{
    margin-right: 10px;
}

/* Version - Drop Down */
.version-dropdown {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.918);
    background-color: #2f2f2f;
    display: none;
    flex-direction: column;
    padding: 8px;
    border: 1px solid #3d3d3d;
    border-radius: 17px;
    position: absolute;
    bottom: -145px;
    right: -156px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.version-dropdown .nav-icon{
    display: flex;
    width: 290px;
    padding: 10px;
}
.version-dropdown .nav-icon:hover{
    background-color: #454545;
}
.version-dropdown .nav-icon img{
    margin-right: 10px;
}
.version-toggle {
    background-color: #363636;
}

/* Pop-up */
.pop-up {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.727);
    z-index: 1000;
}
.pop-up-content {
    color: white;
    background-color: #2f2f2f;
    border: 1px solid #3d3d3d;
    margin: auto;
    border-radius: 10px;
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.pop-up-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    border-bottom: .1px solid rgba(255, 255, 255, 0.145);
}
.pop-up-title h2 {
    padding: 0;
    margin: 0;
    font-size: 20px;
}
.close-pop-up {
    padding: 7px 12px 9px 12px;
    border-radius: 50px;
    cursor: pointer;
}
.close-pop-up:hover {
    background-color: #606060;
}
.pop-up-body {
    overflow:auto;
    padding: 20px;
    /* text-align: center; */
}
.pop-up-body h3{
    padding: 0 1em 0 1em;
}
.pop-up-body ul {
    margin-left: 3em;
    margin-bottom: 10px;
}
.pop-up-body ul li {
    padding: 2px;
}
.pop-up-body a{
    color: white;
}
.pop-up-body input[type="range"] {
    margin-left: 20px;
}

/* Display */
.not-display {
    display: none;
}

/* Side Nav Scroll bar */
.scroll-container::-webkit-scrollbar {
    background-color: #2f2f2f;
}
.scroll-container::-webkit-scrollbar-thumb {    
    background-color: #555;
}
.scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #666666;
}
.scroll-container::-webkit-scrollbar-thumb:active {
    background-color: #7b7b7b;
}



@media screen and (max-width: 800px) {
    .msg-section {
        width: 90%;
        margin: 0 auto;  
    }
    .pop-up-content {
        width: 90%;
    }
    .chat-box {
        width: 100%;
    }
}
