/* Fix user-agent */

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #ffffff28;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background-image: linear-gradient(139deg, #b300ff6a, #00adb973);
    border: 3px solid white;
    border-radius: 50px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(139deg, #b400ff, #00adb9);
}

html {
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

html, input {
  /*font-family:*/
  /*  "HelveticaNeue-Light",*/
  /*  "Helvetica Neue Light",*/
  /*  "Helvetica Neue",*/
  /*  Helvetica,*/
  /*  Arial,*/
  /*  "Lucida Grande",*/
  /*  sans-serif;*/
  
  font-family: 'Libre Franklin', sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
  word-wrap: break-word;
}

/* Pages */

.pages {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

.page {
  height: 100%;
  position: absolute;
  width: 100%;
}

/* Login Page */

.login.page {
  background-color: #000;
  font-weight: 700;
}

.login.page .form {
  height: 100%;
  /*margin-top: -100px;*/
  /*position: absolute;*/
  /*text-align: center;*/
  /*top: 50%;*/
  width: 100%;
  display: flex;
    flex-direction: column;
    padding: 25px;
    justify-content: center;
    align-items: center;
}

.login.page .form .usernameInput {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #fff;
  outline: none;
  text-align: center;
  width: 100%;
}

.login.page .title {
  font-size: 200%;
}

.login.page .usernameInput {
  font-size: 200%;
  letter-spacing: 3px;
}

.login.page .title, .login.page .usernameInput {
  color: #fff;
  font-weight: 100;
}

/* Chat page */

.chat.page {
  display: none;
}

/* Font */

.messages {
  font-size: 150%;
}

.inputMessage {
  font-size: 100%;
}

.log {
  color: black;
  font-size: 70%;
  margin: 5px;
  text-align: center;
  font-weight: 800;
}

/* Messages */

.chatArea {
  height: 95vh;
  padding-bottom: 60px;
  background-image: url("https://public2.coprepedu.com/uploads/2023/Jul/22/16/11/01/chat.jpg");
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  position: relative;
}

.messages {
  height: 85vh !important;
  margin: 0;
  overflow-y: scroll;
  padding: 10px 20px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
    background-color: #ffffff;
    padding: 8px 12px;
    border-radius: 0px 12px 12px 12px;
    width: fit-content;
    box-shadow: 1px 1px 2px 1px #00000029;
    display: flex !important;
    flex-direction: column;
    gap: 7px;
}

.me-user {
    align-self: end;
    align-items: end;
    border-radius: 12px 0px 12px 12px;
}

#block_bg {
    height: 100vh;
}

#blockedList {
    overflow: auto;
    height: 82vh;
}

.messageBody {
    font-size: 10pt;
    line-height: 1em;
}

.message.typing .messageBody {
  color: gray;
}

.username {
    font-weight: 700;
    overflow: hidden;
    /*padding-right: 15px;*/
    /*text-align: right;*/
    /*display: table;*/
    line-height: 1em;
    font-size: 10pt;
}

/* Input */

.message-input {
    padding: 10px;
    position: absolute;
    bottom: 0px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.inputMessage {
    border: 0px;
    outline: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 100px;
    box-shadow: 1px 1px 2px 0px #00000030;
}

#send-msg {
    border: 0px;
    border-radius: 100px;
    background-color: blue;
    color: white;
    width: 45px;
    height: 45px;
    font-size: 15pt;
    cursor: pointer;
    background: rgb(143,15,216);
    background: linear-gradient(155deg, rgba(143,15,216,1) 12%, rgba(73,176,175,1) 81%, rgba(14,150,130,1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 1px 1px 2px 0px #00000030;
}

.chat-details {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: end;
    align-items: center;
}

.chat-users {
    background-color: white;
    border: 1px solid #cfcfcf;
    padding: 5px 8px;
    font-size: 9pt;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    color: red;
    width: fit-content;
    font-weight: 800;
}

.blockbutton {
  display: block;
  background-color: #FF0000;
  border: none;
  color: white;
  padding: 5px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer; /* Hide button */
}


.unblockbutton {
  display: block;
  background-color: #0000FF;
  border: none;
  color: white;
  padding: 5px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 10px;
  border-radius: 8px;
  cursor: pointer; /* Hide button */
}

#loginBtn {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

#loginBtn:hover {
  background: linear-gradient(135deg, #f9f9f9, #e6e6e6);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.15);
}

#loginBtn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}
