* {
   padding: 0;
   margin: 0;
   box-sizing: border-box;
   font-family: "Nunito", sans-serif, system-ui;
   font-display: swap;
}

body {
   font-family: lato, sans-serif;
   color: var(--text-color) !important;
   background-color: var(--button);
   transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0ms;
}

::selection {
   color: black;
   background-color: var(--selection);
}

/*     Mobile Support     */

/* width */
::-webkit-scrollbar {
   width: 5px;
   border-radius: 2.5px;
   box-shadow: 0px 0px 20px -15px;
}

/* Track */
::-webkit-scrollbar-track {
   background: var(--scrollbar-track);
   border-radius: 2.5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
   background: var(--scrollbar-thumb);
   border-radius: 2.5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
   background: var(--scrollbar-thumb-hover);
   border-radius: 2.55px;
}

#btn-send {
   padding: 5px 10px;
   outline: none;
   border: var(--border);
   box-shadow: 0px 0px 20px -20px;
   border-radius: 10px;
   width: 15%;
   height: 40px;
   background-color: var(--button);
   transition: all 0.3s ease-in-out;
   font-size: 15px;
   user-select: none;
   color: var(--button-txt);
   border: 1px solid var(--border);
}

#btn-send:hover {
   background-color: var(--button-hover);
   cursor: pointer;
}

#btn-send:active {
   transform: scale(0.95);
}

#message {
   outline: none;
   border: 1px solid var(--border);
   box-shadow: 0px 0px 20px -20px;
   padding: 10px;
   transition: all 0.3s ease-in-out;
   width: 80%;
   height: 40px;
   margin: 5px;
   font-size: 16px;
   border-radius: 20px;
   margin-top: 5px;
   margin-bottom: 5px;
   display: inline-block;
   color: var(--text-color);
   background-color: var(--sidebar);
}

#message:focus {
   transform: scale(1.005);
}

.chat {
   width: 40%;
   margin: auto;
   margin-top: 55px;
   padding: 20px;
   border: 2px solid var(--border);
   box-shadow: 0px 0px 20px -20px;
   border-radius: 18px;
   background-color: var(--navbar);
   transition: all 0.3s ease-in-out;
}

#ulist {
   list-style: none;
   height: 70vh;
   max-height: 70vh;
   overflow-y: scroll;
   padding-top: 10px;
   padding-bottom: 10px;
}

li {
   background-color: var(--button);
   max-width: 35vw;
   min-width: 225px;
   width: fit-content;
   height: auto;
   border-radius: 20px;
   padding: 10px;
   margin-bottom: 25px;
   color: var(--text-color);
   font-size: 16px;
   overflow-wrap: break-word;
   position: relative;
   transition: all 0.4s ease-in-out;
   border: 1px solid var(--border);
   /* white-space: pre-wrap; */
}

li:hover,
li:active {
   box-shadow: 0px 0px 12.5px -10px;
}

#list1 {
   cursor: pointer;
}

#list1 li:hover {
   background-color: var(--button-hover);
}

.loading-screen {
   display: flex;
   justify-content: center;
   align-items: center;
   margin-top: 10%;
   height: 100%;
   z-index: 2;
   position: fixed;
   left: 50%;
   z-index: 99999999;
}

.loading-circle {
   position: relative;
   width: 30px;
   height: 30px;
   border-radius: 50%;
   border: 3px solid var(--border);
   border-top-color: var(--button);
   animation: loading-animation 1s infinite linear;
}

@keyframes loading-animation {
   to {
      transform: rotate(360deg);
   }
}

.hidden {
   display: none;
}

footer {
   text-align: center;
   background-color: var(--navbar);
   border-radius: 12px;
   padding: 10px;
   font-size: 14px;
}

table {
   font-family: arial, sans-serif;
   border-collapse: collapse;
   width: 100%;
   background-color: var(--navbar);
   margin-top: 5px;
   margin-bottom: 5px;
}

td,
th {
   border: 1px solid var(--border);
   text-align: left;
   padding: 8px;
}

li:nth-child(even) {
   background-color: var(--button);
   color: var(--text-color);
}

.old {
   width: 50px;
}

.icon {
   font-size: 12px;
   display: flex;
   text-align: right;
   justify-content: right;
   cursor: pointer;
}

/* Link styles */
a {
   color: rgb(46, 46, 149);
   transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
   text-decoration: none;
}

a:hover {
   color: #a14545;
}

.no-password-email {
   white-space: wrap;
}

select {
   padding: 10px;
   border-radius: 10px;
   border: 1px solid var(--border);
   background-color: var(--button);
   color: var(--text-color);
   font-size: 16px;
   margin-top: 5px;
   margin-bottom: 5px;
   transition: all 0.3s ease-in-out;
   cursor: pointer;
}

select:focus {
   transform: scale(1.005);
}

option {
   background-color: var(--button);
   color: var(--text-color);
   font-size: 16px;
   border-radius: 10px;
   padding: 10px;
   margin-top: 5px;
   margin-bottom: 5px;
   transition: all 0.3s ease-in-out;
}

.imageChat {
   background-image: url("https://i.gifer.com/origin/34/34338d26023e5515f6cc8969aa027bca.gif");
   background-size: cover;
   background-position: center;
   width: 256px; /* Adjust the width as needed */
   height: auto; /* Adjust the height as needed */
}
