body {
    background-color: #fff;
    background-image: url('../img/background.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Bungee Outline', sans-serif;
    font-weight: 900;
    overflow: hidden;
    animation: blur 0.5s ease-out;
}

* {
    outline: none;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#title_container {
    width: 100%;
    height: 225px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #00c6ff, #0072ff, #00ff85);
    border-bottom: 5px solid transparent;
    box-shadow: 0 0 30px -18px #0072ff;
    animation: thunder 3s ease-in-out infinite;
}

#title_inner_container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 200px;
}

#title {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 70px;
    letter-spacing: 3px;
    user-select: none;
    text-shadow: 0 0 5px #fff, 0 0 15px #00c6ff, 0 0 30px #00ff85;
    animation: glow 1.5s ease-in-out infinite alternate;
}

#join_container {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    animation: fadeIn 1s ease-out;
}

#join_inner_container {
    width: 50%;
    height: 100%;
}

#join_input_container {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#join_input {
    width: 60%;
    height: 40px;
    color: #1D3354;
    font-family: 'Varela Round', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 198, 255, 0.3);
    border-bottom: 2px dashed #00c6ff;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
    transition: all 0.3s ease;
}

#join_input:focus {
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.8);
}

#join_button_container {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

#join_button {
    width: 60%;
    height: 40px;
    font-family: 'Varela Round', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background: linear-gradient(45deg, #00c6ff, #00ff85);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

#join_button:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #00ff85, #00c6ff);
}

#chat_container {
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    animation: fadeIn 1s linear;
}

#chat_inner_container {
    width: 40%;
    height: 100%;
}

#chat_content_container {
    width: 100%;
    height: 90%;
    overflow-y: auto;
    font-family: 'Varela Round', sans-serif;
    padding: 15px;
    background: rgba(0, 198, 255, 0.1);
    border-radius: 8px;
}

#chat_input_container {
    width: 100%;
    height: 10%;
    border-bottom: 2px dashed #1D3354;
    background-color: transparent;
    padding: 15px;
    font-family: 'Varela Round', sans-serif;
    margin-top: 10px;
}

#chat_input {
    width: 95%;
    height: 100%;
    background-color: transparent;
    color: #1D3354;
    font-size: 15px;
}

#chat_input_send {
    width: 5%;
    height: 100%;
    font-size: 18px;
    background-color: transparent;
    text-align: right;
    color: #ccc;
}

#chat_input_send.enabled {
    color: #D64045;
    cursor: pointer;
}

#chat_logout_container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#chat_logout {
    color: #D64045;
    cursor: pointer;
    font-size: 14px;
}

#chat_logout:hover {
    text-decoration: underline;
}

.message_container {
    width: 100%;
    margin-bottom: 20px;
}

.message_inner_container {
    width: 100%;
    color: #1D3354;
}

.message_user_container {
    width: 100%;
}

.message_user {
    font-weight: bold;
    font-size: 14px;
}

.message_content_container {
    width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message_content {
    font-weight: normal;
    font-size: 14px;
    margin-top: 5px;
}

.enabled {
    transition: background-color 0.5s;
    color: #fff;
    background-color: #D64045;
    cursor: pointer;
}

#title_container.chat_title_container {
    transition: 0.8s ease-in-out;
    height: 100px;
}

#title.chat_title {
    transition: 0.8s;
    font-size: 47px;
}

.loader_container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    border-top: 6px solid #D64045;
    border-bottom: 6px solid #1D3354;
    border-left: 6px solid #E9FFF9;
    border-right: 6px solid #E9FFF9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px #fff, 0 0 15px #00c6ff, 0 0 30px #00ff85; }
    100% { text-shadow: 0 0 20px #fff, 0 0 40px #00c6ff, 0 0 60px #00ff85; }
}

@keyframes thunder {
    0% { box-shadow: 0 0 10px rgba(0, 198, 255, 0.7); }
    25% { box-shadow: 0 0 20px rgba(0, 198, 255, 1); }
    50% { box-shadow: 0 0 10px rgba(0, 198, 255, 0.7); }
    75% { box-shadow: 0 0 20px rgba(0, 198, 255, 1); }
    100% { box-shadow: 0 0 10px rgba(0, 198, 255, 0.7); }
}

@keyframes blur {
    0% { filter: blur(5px); }
    100% { filter: blur(0); }
}

::selection {
    background-color: #00c6ff;
    color: #fff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #ccc;
}

::-webkit-scrollbar-thumb {
    background: #00c6ff;
    border-radius: 5px;
}

.user_avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #00c6ff;
    background-color: #fff;
  }
  
  .message_timestamp {
    font-size: 0.75rem;
    color: #777;
    white-space: nowrap;
    margin-left: 10px;
    align-self: flex-start;
  }

  #user_sidebar {
    width: 20%;
    height: 450px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Varela Round', sans-serif;
    overflow-y: auto;
    margin-right: 20px;
  }
  
  #user_sidebar h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1D3354;
    text-align: center;
  }
  
  #user_list {
    list-style: none;
    padding: 0;
  }
  
  .user_entry {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }

  #user_sidebar {
    width: 200px;
    padding: 10px;
    background-color: #f4f4f4;
    border-right: 1px solid #ccc;
    height: 100%;
    overflow-y: auto;
  }
  
  #user_list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .user_entry {
    display: flex;
    align-items: center;
    margin: 5px 0;
    gap: 8px;
  }
  
  .status_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: red; /* default offline */
  }
  
  .status_dot.online {
    background-color: green;
  }