* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif, system-ui;
}

:root {
    --li-color: rgba(0, 0, 0, 0.85);
    --li-background: #F1F0F0;
    --li-chat-bubbles: #efefef;
    --buttons: white;
    --button-color: black;
    --button-border: #E0E1E4;
    --button-hover: #F2F2F2;
}

body {
    background-color: #F0F2F5;
}

.darkmode {
    background-color: #18191A;
}

.darkchat {
    border: 1px solid #101011;
    background-color: white;
}

#roomname,
#join-room-name {
    outline: none;
    border: 0.5px solid #E0E1E4;
    box-shadow: 0px 0px 20px -20px;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    width: 100%;
    height: fit-content;
    max-height: 40px;
    margin-bottom: 10px;
}

#roomname:focus,
#join-room-name:focus {
    transform: scale(1.025);
}


.hidden {
    display: none;
}

#joinroom,
#createroom {
    padding: 10px;
    outline: none;
    border: 0.5px solid #E0E1E4;
    box-shadow: 0px 0px 20px -20px;
    border-radius: 10px;
    width: 100%;
    height: fit-content;
    max-height: 50px;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    margin-bottom: 50px;
}

#joinroom:hover,
#createroom:hover {
    background-color: #F2F2F2;
    cursor: pointer;
}

::selection {
    color: black;
    background-color: #C1DAF3;
}

.roomSelection {
    padding: 10px;
    border: 0.5px solid #E0E1E4;
    margin: 10px;
    border-radius: 10px;
    background-color: white;
}

#chat-title {
    text-align: center;
    font-size: 38px;
    background: -webkit-linear-gradient(#0778C2, #01E496);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#total-chats {
    font-size: 12px;
    text-align: center;
    background: -webkit-linear-gradient(#0778C2, #01E496);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chat {
    padding: 10px;
    border: 0.5px solid #E0E1E4;
    margin: 10px;
    border-radius: 10px;
    background-color: white;
    height: 97vh;
    min-height: 550px;
}

ul {
    list-style: none;
    height: 80vh;
    overflow-y: scroll;
    padding-top: 10px;
    padding-bottom: 10px;
}

li {
    background-color: var(--li-background);
    max-width: 375px;
    min-width: 150px;
    width: fit-content;
    height: auto;
    border-radius: 10px;
    padding: 10px;
    margin: 10px;
    margin-bottom: 25px;
    color: var(--li-color);
    font-size: 16px;
    overflow-wrap: break-word;
    position: relative;
    transition: all 0.4s ease-in-out;
}

li:hover {
    box-shadow: 0px 0px 12.5px -10px;
}

li::after {
    border-right: 20px solid transparent;
    border-top: 20px solid var(--li-chat-bubbles);
    bottom: -20px;
    content: "";
    position: absolute;
    left: 10px;
}

#message {
    outline: none;
    border: 1px solid #E0E1E4;
    box-shadow: 0px 0px 20px -20px;
    padding: 10px;
    transition: all 0.3s ease-in-out;
    width: 50%;
    height: 50px;
    margin: 5px;
    font-size: 16px;
    border-radius: 20px;
    display: inline-block;

}

#message:focus {
    transform: scale(1.025);
}


#btn-send {
    padding: 10px;
    outline: none;
    border: 1px solid #E0E1E4;
    box-shadow: 0px 0px 20px -20px;
    border-radius: 10px;
    width: 45%;
    height: 50px;
    background-color: var(--buttons);
    transition: all 0.3s ease-in-out;
    font-size: 16px;
    user-select: none;
}

#btn-send:hover {
    background-color: var(--button-hover);
    cursor: pointer;
}

.btn-share {
    padding: 5px;
    color: var(--button-color);
    outline: none;
    border: 1px solid var(--button-border);
    box-shadow: 0px 0px 20px -20px;
    border-radius: 10px;
    height: 30px;
    background-color: var(--buttons);
    transition: all 0.3s ease-in-out;
    margin-bottom: 10px;
    margin-left: 5px;
    margin-right: 5px;
    user-select: none;
}

.btn-share:hover {
    background-color: var(--button-hover);
    cursor: pointer;
    color: #08967f;
}

.btn-info {
    color: var(--button-color);
    padding: 5px;
    outline: none;
    border: 1px solid var(--button-border);
    box-shadow: 0px 0px 20px -20px;
    border-radius: 10px;
    height: 30px;
    background-color: var(--buttons);
    transition: all 0.3s ease-in-out;
    margin-bottom: 10px;
    user-select: none;
    float: right;
}

.btn-info:hover {
    background-color: #F2F2F2;
    cursor: pointer;
    color: #08967f;
}

.btn-settings {
    color: var(--button-color);
    padding: 5px;
    outline: none;
    border: 1px solid var(--button-border);
    box-shadow: 0px 0px 20px -20px;
    border-radius: 10px;
    height: 30px;
    background-color: var(--buttons);
    transition: all 0.3s ease-in-out;
    margin-left: 10px;
    margin-bottom: 10px;
    user-select: none;
    float: right;
}

.btn-settings:hover {
    background-color: #F2F2F2;
    cursor: pointer;
    color: #08967f;
}


.btn-emoji {
    color: var(--button-color);
    padding: 5px;
    outline: none;
    border: 1px solid var(--button-border);
    box-shadow: 0px 0px 20px -20px;
    border-radius: 10px;
    height: 30px;
    background-color: var(--buttons);
    transition: all 0.3s ease-in-out;
    margin-left: 5px;
    margin-bottom: 10px;
    user-select: none;
}

.btn-emoji:hover {
    background-color: #F2F2F2;
    cursor: pointer;
    color: #08967f;
}


::selection {
    color: black;
    background-color: #C1DAF3;
}

/*     Mobile Support     */

/* width */
::-webkit-scrollbar {
    width: 5px;
    border-radius: 2.5px;
    box-shadow: 0px 0px 20px -15px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #eeeff1;
    border-radius: 2.5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #E0E1E4;
    border-radius: 2.5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #b6b7b9;
    border-radius: 2.55px;
}


#chatname {
    transition: all 0.3s ease-in-out;
    display: none;
}

#chatname:hover {
    color: teal;
    cursor: pointer;
}



.notify {
    transition: all 0.2s ease-in-out 0ms;
    border: 0.5px solid #eeeff1;
}

.notify:hover {
    border: 0.5px solid #DD4132;
    cursor: pointer;
}



.share-menu {
    width: 50vh;
    height: 60vh;
    margin: auto;
    border-radius: 10px;
    border: 0.5px solid #E0E1E4;
    box-shadow: 0px 0px 20px -20px;
    z-index: 25;
    background-color: white;
    padding: 10px;
    margin-top: 25px;
}

.dark {
    background-color: rgba(0, 0, 0, 0.25);
}

.share-p {
    float: left;
    font-size: 22px;
    user-select: none;
}

.x-button {
    float: right;
    font-size: 22px;
    padding-right: 10px;
    transition: all 0.3s ease-in-out 0ms;
    border-radius: 5px;
    color: black;
}

.x-button:hover {
    color: red;
    cursor: pointer;
    user-select: none;
}

.share {
    width: 75%;
    background-color: #1771E6;
    transition: all 0.4s ease-in-out;
    height: 75px;
    cursor: pointer;
    border-radius: 5px;
    color: whitesmoke;
    font-weight: 500;
    font-size: 18px;
    border: none;
    outline: none;
    margin: 5px;
    margin-left: 10%;
    margin-bottom: 10px;
}

.share:hover {
    background-color: rgba(23, 113, 230, 0.85);
    transform: scale(1.05);
}

.link {
    width: 25%;
    border: none;
    outline: none;
    border-radius: 10px;
    height: 100px;
    font-size: 18px;
    text-align: center;
}