:root {
    --main: #1D1D1F;
    --messageBlue: #1E75FE;
    --messageGray: #E7EBF1;
    --containerGray: #262728;
    --lightGray: #E5E5E5;
    --inputBackground: #2D2E2F;
    --inputBorderColor:#717171;
    --activeInputBackground: #494949;
    --sideBarText: #757578;
    --textColor: var(--lightGray);
    --sidebarBorder: #E5E7EE;
    
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    outline: none;
    box-sizing: border-box;
}

h1 {
    font-style: normal;
    font-weight: bold;
    font-size: 36px;
    line-height: 45px;
    margin: 54px 226px 44px 207px;
    width: 304px;
    height: 44px;
    text-align: center;
    color: var(--textColor);
}

.desc {
    margin: 0 64px 35px 58px;
    color: var(--textColor);
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 30px;
}
.name-input {
    font-size: 15px;
    width: 428px;
    height: 56px;
    background: var(--inputBackground);
    border: 1px solid var(--inputBorderColor);
    box-sizing: border-box;
    border-radius: 4px;
    margin: 0 auto 27px auto;
    padding: 0 10px;
    color: var(--textColor);
}

input::placeholder {
    color: var(--textColor);
    transition: .5s;
}

input:focus {
    background: var(--activeInputBackground)
}

input:focus::placeholder{
    font-size: 17px;
    
}

button {
    height: 56px;
    border-radius: 4px;
    margin: 0 auto 0 auto;
    color: #E5E5E5;
    border: none;
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 21px;
    text-align: center;
    cursor: pointer;
}

button.sign-in {
    background: #1E75FE;
    margin-bottom: 26px;
    width: 420px;
}


.enter-wrap {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main);
}
.center-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 624px;
    height: 415px;
    background: var(--containerGray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.title {
    margin-bottom: 10px;
}

.chat-wrap {
    background: var(--main);
    padding: 0 0 20px 0;
}



.sidebar {
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--inputBackground);
    margin-right: 20px;
    overflow-y: auto;
}

.sidebar span {

    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: var(--sideBarText);
    display: inline-block;
    border-bottom: 1px solid var(--sidebarBorder);
    margin: 0 20px 0 21px;
    padding: 8px;
    width: calc(100% - 44px);
    /* text-transform: capitalize; */
}

.sidebar h2 {
    margin: 0 20px 50px 21px;
    height: 21px;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 25px;
    padding: 8px;

    color: var(--textColor);
}

.navbar {
    position: relative;
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background:var(--navbar);
    color: var(--textColor);
    padding: 11px 35px 18px 0;
}

.navbar span {
    cursor: pointer;
}

.main-view{
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.message-container {
    width: 100%;
    height: calc(100vh - 70px);
}

.message-display {
    height: calc(90% - 20px);
    margin: 0 0 20px 0;
    background: var(--inputBackground);
    padding: 30px 0 30px 0;
    overflow-y: auto;
    position: relative;
}

.message-display button {
    position: absolute;
    left: 50%;
    transform: translatex(-50%);
    background:var(--main);
}

.input-and-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10%;
    padding: 0 20px;
    background: var(--inputBackground);
}



.message-input {
    font-size: 15px;
    width: calc(100% - 72px);
    height: 56px;
    background: var(--inputBackground);
    border: 1px solid var(--inputBorderColor);
    box-sizing: border-box;
    border-radius: 4px;
    padding: 0 10px;
    color: var(--textColor);
}

.send-button {
    width: 52px;
    height: 52px;
    background: #01D294;
    border-radius: 200px;
    margin: 0 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button img {
    transform: translateX(0px) translateY(1px);
}

.single-message-wrap {
    margin: 0px 35px 25px 30px;
    display: flex; 
    flex-direction: column;
}

.single-message {
   padding: 15px;
   border-radius: 9px;
   width: fit-content;
   word-break: break-word;
}

.single-message.mine {
    background: var(--messageGray);
    color: #262728;
    align-self: flex-end; 
}


.single-message.others {
    background: var(--messageBlue);
    color: #E7EBF1;
    align-self: flex-start; 
}



.username {
    margin-bottom: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 25px;
    
}

.single-message-text {
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 25px;
}

.single-message-time {
    font-style: normal;
    font-weight: normal;
    font-size: 15px;
    line-height: 25px;
    margin-top: 10px;
    text-align: right;
}

.single-message.mine .time {
    color:#68696A;
}
.single-message.mine.others .time {
    color:#E7EBF1
}
.logout-btn {
    width: auto;
    height: auto;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translate(0, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--textColor);
    background: transparent;
}