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

html {
   scroll-behavior: smooth;
}

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;
}

.chat {
   padding: 12px;
   border: 2px solid var(--border);
   margin: 10px;
   border-radius: 10px;
   background-color: var(--sidebar);
   height: 97vh;
   min-height: 97vh;
}

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

li {
   background-color: var(--button);
   max-width: 73vw;
   min-width: 40vw;
   width: fit-content;
   height: auto;
   border-radius: 18px;
   padding: 10px;
   margin: 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);
}

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

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

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

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

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

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

.controls {
   height: 30px;
}

.btn-share {
   padding: 5px;
   outline: none;
   border: 1px solid var(--border);
   box-shadow: 0px 0px 20px -20px;
   border-radius: 10px;
   height: 30px;
   background-color: var(--button);
   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;
}

.btn-share:active {
   transform: scale(0.95);
}

/* 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;
}

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

.loading-circle {
   position: relative;
   width: 100px;
   height: 100px;
   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;
   user-select: none;
   pointer-events: none;
}

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

table {
   font-family: arial, sans-serif;
   border-collapse: collapse;
   width: 100%;
   background-color: var(--sidebar);
   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);
}

.icon {
   font-size: 12px;
   display: flex;
   justify-content: right;
   justify-self: right;
   align-self: right;
   cursor: pointer;
   width: 25px;
   margin-left: 90%;
}

select {
   padding: 3px;
   outline: none;
   border: 1px solid var(--border);
   box-shadow: 0px 0px 20px -20px;
   border-radius: 10px;
   width: 30%;
   height: 30px;
   background-color: var(--button);
   transition: all 0.3s ease-in-out;
   font-size: 14px;
   user-select: none;
   margin: 5px;
   color: var(--text-color);
}

select:hover {
   background-color: var(--button-hover);
   cursor: pointer;
}
