* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    min-height: 100dvh;
}

main {
    width: 100%;
    min-height: 100dvh;
    margin: auto;
    display: flex;
}


.center-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

#chat-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}


#sign-up,
#sign-in {
    width: 700px;
    height: 600px;

    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#sign-up h1,
#sign-in h1 {
    font-size: 48px;
    background-color: #D9D9D9;
    padding: 10px 20px;
    border-radius: 15px;
}

#sign-up form,
#sign-in form {
    display: flex;
    flex-direction: column;

    background-color: #D9D9D9;
    padding: 10px 20px;
    border-radius: 15px;
    margin: 20px;
    font-size: 36px;
    width: 100%;
}

#sign-up form input,
#sign-in form input {
    margin-bottom: 10px;
    padding: 10px;
    font-size: 24px;
    border-radius: 10px;
    border: none;
    width: 100%;
}

#sign-up form input[type="submit"],
#sign-in form input[type="submit"] {
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    margin: 10px 0;
}

#sign-up form input[type="submit"]:hover,
#sign-in form input[type="submit"]:hover {
    background-color: #45a049;

}


#chat-room-aside::-webkit-scrollbar {
    display: none;
}

#chat-room-aside {
    float: left;
    flex-wrap: wrap;
    align-content: flex-start;
    border-style: inset;
    border-color: black;
    border-top-style: none;
    border-right-style: solid;
    border-bottom-style: none;
    border-left-style: none;
    height: 100dvh;
    z-index: 9998;
    background-color: #290C37;
    width: 81px;
    overflow-y: auto;
}

.active {
    background-color: #59306C !important;
}


.Chat-room-buttons {
    border-radius: 50%;
    background-color: gray;
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    margin: 4px 2px;
    cursor: pointer;
    scroll-behavior: auto;
    height: 60px;
    width: 60px;

    font-size: 20px;
}

#header-Chat {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 6dvh;
    border-bottom-style: solid;
    border-color: black;
    background-color: #59306C;

}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*  shork menu */

#settings-Members {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.text-Header {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
}


#menu-toggle {
    display: none;
}

#menu-toggle:checked~#navMain {
    display: flex;
    flex-direction: column;
}

#navMain {
    display: none;
    position: absolute;
    top: 6%;
    z-index: 9998;
    background-color: purple;
    right: 0;

}

#navMain>a {
    text-decoration: none;
    margin: 10px;
    font-size: 40px;
    font-weight: 400;
    font-style: normal;
    text-align: center;
}

#navMain a:hover {
    color: white;
    cursor: pointer;
}

/* text area*/
#text-area {
    height: 87dvh;
    overflow: scroll;
    margin:2px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    position: relative;
    scroll-behavior: auto;
}


/*  chat balk css*/

#footer-Chat {
    align-items: center;
    align-content: center;
    text-align: center;
}

#type-balk {
    align-items: center;
    align-content: center;
    text-align: center;
}

#input-field {
    width: 82vw;
    border-radius: 15px;
    height: 5dvh;
    align-items: center;
    align-content: center;
    text-decoration: white;
    background-color: #290C37;
    color: white;
    font-size: 20px;
}

#button{
    display:none;
}

/*     
New chat overlay
*/
#new-chat-overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    transition: all 0.5s;
}

#new-chat-overlay-content {
    width: 600px;
    height: 400px;
    margin: auto;
    background-color: #D9D9D9;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#new-chat-overlay-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

#new-chat-overlay-content form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    justify-content: space-between;
}

#new-chat-overlay-content form input,
#new-chat-overlay-content form button {
    width: 75%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 24px;
    border-radius: 10px;
    border: none;
    text-align: center;
}


.hiden {
    display: none;
}

#new-chat-overlay-content form label.img {
    width: 100px;
    height: 100px;

    border-radius: 100px;
    border: none;
    background-color: #45a049;
    color: white;
    font-size: 16px;
    cursor: pointer;

    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#new-chat-overlay-content form section {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: center;
}

#menu-icon {
    font-size: 27px;
    padding: 10px;

    user-select: none;
    cursor: pointer;

}

#new-chat-overlay-content form input[type="submit"],
#new-chat-overlay-content form button {
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    margin: 10px 0;

    width: 100%;
}

#new-chat-overlay-content button {
    background-color: #f44336 !important;
    font-size: 28px;
}

  
  .LeftStroke {
    display: flex;
    flex-direction: row;
    width:84vw;
  }

  .RightStroke{
    display: flex;
    flex-direction: row-reverse;
  }

  .leftMessage {
    border: 2px solid #dedede;
    background-color: whitesmoke;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    width:auto;
    max-width: 100%;
    word-break: break-all;
  }

  .rightMessage {
    border: 2px solid #dedede;
    background-color: gray;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
  }

  .profilePicture {
    float: left;
    width: 60px;
    height: 60px;
    margin-right: 20px;
    border-radius: 50%;
    
  }

  .time-left {
    float: right;
    color: #000;
    position: relative;
    top: 14px;
    left: 7px;
    font-size: 12px;
}
  
  .container::after {
    content: "";
    clear: both;
    display: table;
  }
  

  .settingsChat {
    opacity:0;
    cursor: pointer; /* Change cursor to pointer on hover */
    height:20px;
    font-size: 18px;
}


.settingsChat:hover {
    opacity:1;
}

.settingsChat > button {
    background-color: transparent;
    border: none;
}


.overlay{
    display:flex;
    flex-direction: row;
    z-index: 999999;
}

.overlay > button{
    height:5vh;
    z-index: 999999;
    width:5vw;
    background-color: transparent;
    border: 1px;
    border-style: solid;
}

.overlay button:nth-child(1) {
    background-color: lightcoral; /* Style for the first button (upper one) */
    border-right: none;
}

.overlay button:nth-child(2) {
    background-color: cyan;
    border-left: none;
}