body, html, #root, #App {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.global-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 400px;
}

.form-container {
    width: 30%;
    height: 50%;
    min-width: 300px;
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 70px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(200,200,200,0.5);
    border-radius: 20px; */
}

.form {
    background: rgb(0, 75, 75);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 10px 0 rgba(0,0,0,0.4), 0 5px 20px 0 rgba(0,0,0,0.3);
}

.input-group {
    width: 100%;
    height: 100%;
    color: white;
    margin: 20px 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.input-group.vertical {
    display: flex;
    flex-direction: column;    
}

.input-group input {
    background: none;
    border: none;
    border-bottom: 1px solid rgb(100, 170, 170);
    color: rgb(197, 255, 255);
    padding: 5px;
    margin: 5px 0;
    transition: 200ms;
}

.input-group input:focus {
    border-bottom: 1px solid white;
    outline: none;
    transition: 200ms;
}

.input-group.horizontal {
    display: flex;
    justify-content: space-evenly;
}

.input-group button {
    border: none;
    background: rgb(0, 39, 39);
    color: white;
    height: 30px;
    min-height: 26px;
    width: 150px;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
    transition: 200ms;
}

.input-group button:hover {
    color: rgb(0, 39, 39);
    background: white;
    transition: 200ms;
}

.error {
    text-align: center;
    font-size: 18px;
    color: red;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/********************************************CHAT PAGE******************************************************/

.page-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo-container {
    width: 100%;
    background: rgb(0, 75, 75);
    display: flex;
    justify-content: center;
    flex: 0 1 100px;
}

.chat-container {
    flex: 1 1 auto;
    display: flex;
    height: 80%;
}

.info {
    position: static;
    display: block;
    height: 100%;
    min-height: 300px;
    width: 20%;
    background: rgba(0, 75, 75, 0.8);
    color: white;
    padding: 0 20px;
    border-right: 1px solid white;
}

.info.hidden {
    display: block;
}

.info .room {
    height: 20%;
    width: 100%;
    border-bottom: 1px solid white;
}

.info .room h2,.info .users h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info .room p {
    font-family: 'Courier New', Courier, monospace;
    padding-left: 30px;
    overflow: auto;
}

.info .users {
    height: 50%;
    width: 100%;
}

.info .users ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    max-height: 60%;
    overflow: auto;
}

.info .users ul li {
    margin: 5px 0;
}

.chat {
    width: 80%;
    height: 100%;
}

.composer {
    height: 20%;
    /* background: rgba(0, 75, 75, 0.8); */
}

.composer form {
    width: 100%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.composer form input {
    width: 88%;
    background: none;
    border: 1px solid rgba(163, 185, 185, 0.8);
    height: 80%;
    border-radius: 50px;
    font-size: 20px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    padding-left: 2%;
}

.composer form input:focus {
    outline: none;
}

.composer form button {
    background: teal;
    border: none;
    height: 50%;
    width: 8%;
    min-width: 84px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: 200ms;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.composer form button:hover {
    background: rgb(1, 180, 180);
    transition: 200ms;
}

.composer form button:focus {
    outline: none;
}

.composer form .emojionearea.emojionearea-inline {
    background: transparent;
    border-radius: 30px;
    color: white;
    font-family: monospace;
}

.composer form .emojionearea-editor {
    color: white;
}

.show, .hide {
    position: absolute;
    top: 100px;
    background: rgb(0, 75, 75);
    color: white;
    width: 40px;
    height: 40px;
    border: none;
    border-bottom-right-radius: 5px;
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
    display: none;
    cursor: pointer;
    transition: 200ms;
    z-index: 100;
}

.show {
    left: 0;
}

.hide {
    left: 181.4px;
}

#show:hover {
    background: rgb(0, 39, 39);
    transition: 200ms;
}

.convo {
    height: 80%;
    width: 100%;
    overflow: auto;
    scrollbar-color: rgb(0, 75, 75);
    scrollbar-track-color: rgba(0, 92, 92, 0.3);
    scrollbar-width: 5px;
}

.convo::-webkit-scrollbar {
    width: 7px;
    transition: 200ms;
}

.convo::-webkit-scrollbar-track {
    background-color: transparent;
}

.convo::-webkit-scrollbar-track:hover {
    background-color: rgba(0, 92, 92, 0.3);
}

.convo::-webkit-scrollbar-thumb {    
    background: rgb(0, 75, 75);
    border-radius: 10px;
}

.convo::-webkit-scrollbar-button {
    display: none;
}

.convo .message-container {
    width: calc(100% - 30px);
    margin: 20px 0;
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.convo .message-container.me {
    flex-direction: row-reverse;
    padding-left: 0;
    padding-right: 30px;
}

.convo .message-container .message {
    padding: 10px;
    width: 50%;
    background: rgba(0, 75, 75, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
}

.convo .message-container.me .message {
    background: rgba(30, 32, 34, 0.7);
}

.convo .message-container .message .credent {
    height: 30%;
    width: 100%;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    border-bottom: 1px solid rgba(76, 76, 76, 0.5);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.convo .message-container .message .text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    margin-top: 10px;
    word-wrap: break-word;
}

.convo .message-container .message .text a, .convo .message-container .message .text a:focus, .convo .message-container .message .text a:visited {
    color: white;
}

.convo .message-container .message .text a:hover {
    text-decoration: none;
}

.convo .message-container .message .credent .user {
    color: rgb(255, 106, 51);
    font-size: 18px;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.convo .message-container .message .credent .user .whisper {
    color: pink;
    font-size: 11px;
    margin-left: 10px;
}

.convo .message-container .message .credent .time {
    color: rgb(186, 181, 171);
    font-size: 12px;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.convo .message-container .message .text {
    height: 70%;
    width: 100%;
}

#typing {
    height: 15%;
    margin-left: 40px;
    font-size: 12px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    align-items: center;
    position: relative;
    top: -10px;
}

#typing div {
    height: 16px;
}

.leave {
    height: 20%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#leave {
    width: 60%;
    min-width: 84px;
    height: 40px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background: rgb(0, 39, 39);
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
    border: none;
    color: white;
    cursor: pointer;
    transition: 200ms;
}

#leave:hover {
    transform: translateY(-2px);
    transition: 200ms;
}






/*****************************************MEDIA QUERIES***************************************************/

@media only screen and (max-width: 540px) {
    .info,.info.hidden {
        width: 181.4px;
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0, 75, 75);
        height: 100%;
    }
    .info.hidden {
        display: none;
    }
    .chat {
        width: 100%;
    }
    .show, .hide {
        display: block;
    }
}

@media only screen and (max-width: 700px) {
    .composer form button {
        width: 18%;
        font-size: 15px;
        min-width: 0;
    }
    .composer form input {
        width: 78%;
    }
}

@media only screen and (max-height: 608px) {
    .logo-container {
        display: none;
    }
    .show, .hide {
        top: 0;
    }
}

@media only screen and (max-width: 333px) {
    .logo {
        font-size: 60px;
    }
}
