/* General Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}#donateBTN {
  background: #e63946 !important; /* a nice bold, urgent red */
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#donateBTN:hover {
  background: #a62832 !important; /* darker red for hover, screams "click me" */
}



/* Authentication Container */
#auth-container, #verify {
    width: 350px; /* Increased width */
    margin: 15px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

#auth-container h2 {
    margin-bottom: 15px; /* Increased margin */
    font-size: 22px; /* Larger text */
}
#verify button {
    margin-top: 150px;
    padding: 15px;
}

#auth-container input, #verify input {
    width: calc(100% - 20px);
    padding: 12px; /* Increased padding */
    margin: 10px 0; /* More space between inputs */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Larger text */
}

#auth-container button, #verify button {
    width: 100%;
    padding: 12px; /* Increased padding */
    margin-top: 15px; /* More space between button and inputs */
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px; /* Larger text */
}

#auth-container button:hover, #verify button:hover {
    background: #0056b3;
}

/* Chat Container */
#chat-container {
    width: 90%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Username Display */
#username {
    font-size: 24px; /* Larger username display */
    margin-bottom: 15px;
    font-weight: bold;
}

/* Chat Windows */
#chat-windows {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px; /* Increased max width */
    gap: 30px; /* More space between chat boxes */
}

/* Individual Chat Boxes */
#group-chat, #private-chat {
    flex: 1 1 45%; /* Grows and shrinks nicely */
    min-width: 300px; /* NEVER skinnier than this */
    max-width: 485px; /* NEVER fatter than this */
    max-height: 650px;
    height: auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}


#group-chat h3, #private-chat h3 {
    margin-bottom: 15px; /* More space for headings */
    font-size: 20px; /* Larger font size */
}

/* Chat Message Boxes */
#group-chat-box, #private-chat-box {
    width: 100%;
    height: 600px; /* Shortened height */
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px; /* More padding */
    background: white;
    overflow-y: auto;
    text-align: left;
    font-size: 16px; /* Larger text */
}

/* Input Fields */
input[type="text"], select {
    width: calc(100% - 20px);
    padding: 12px; /* Increased padding */
    margin-top: 15px; /* More space */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Larger text */
}

/* Send Buttons */
button {
    width: 100%;
    padding: 12px; /* Larger buttons */
    margin-top: 15px;
    background: #28a745; /* Green button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px; /* Larger font */
}

button:hover {
    background: #218838; /* Darker green on hover */
}

/* Chat Room Dropdown */
#group-room-switch {
    width: 100%;
    padding: 12px; /* Larger padding */
    margin-bottom: 15px; /* More space */
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 16px; /* Larger font */
}

#group-room-switch:focus {
    outline: none;
    border-color: #007bff;
}

#private-chat-partner {
    margin-bottom: 15px; /* More space between inputs */
}

/* Ban/Unban Bar Styles */
#ban-bar {
    position: absolute;
    top: 40px;
    right: 10px;
    padding: 15px; /* Increased padding */
    background-color: #ff6666;
    color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* More space between elements */
    z-index: 100;
    font-size: 16px; /* Larger font size */
    width: 250px; /* Skinnier width */
    box-sizing: border-box;
}

#ban-bar input, #ban-bar button {
    font-size: 16px; /* Larger font size for consistency */
}

#ban-bar button {
    padding: 12px 20px; /* Larger buttons */
    width: 100%;
    background: #28a745; /* Green button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px; /* Larger text */
}

#ban-bar button:hover {
    background: #218838; /* Darker green on hover */
}

#ban-bar input {
    width: 100%;
    padding: 12px; /* Larger input fields */
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Larger font size */
}

/* Label Adjustments for User-Friendly */
#ban-bar span {
    font-size: 16px;
    font-weight: bold;
}

/* Ban/Unban Username Input */
#ban-username, #unban-username, #remove-admin-username, #add-admin-username, #role {
    width: 100%; /* Match the width of the inputs */
    max-width: 180px; /* Make the username input slightly less wide */
    padding: 12px; /* Consistent padding */
    font-size: 16px; /* Larger font */
    border: 1px solid #ccc;
    border-radius: 4px;
}
#banned-list-box {
    position: absolute;
    top: 320px;
    right: 10px;
    padding: 15px;
    background-color: #ffc107;
    color: #000;
    border-radius: 5px;
    width: 250px; /* Same width as ban-bar */
    height: 337px; /* Fixed height */
    box-sizing: border-box;
    font-size: 16px;
    overflow-y: auto; /* Scroll if it overflows */
}
#all-messages, #banned-list  {
    height: 40px;
    font-size:12px
}#store-btn {
    position: absolute; /* Ensure the button is positioned absolutely */
    top: 5px;
    right: 10px;
    width: 250px;
    padding: 10px;
    border-radius: 5px;
}#item-one, #item-two {
    width: 250px;
    height: 134px;
    position: absolute;
    background-color: white;
    border: 3px solid black;
}#item-one {
    left: 10px;
    top: 5px;
}#item-two {
    left: 270px;
    top: 5px;
}#buy-item-one, #buy-item-two {
    position: absolute;
    bottom: 0%;
    left: 0%;
}#cursorselect {
    position: absolute;
    right: 10px;
    top: 220px;
    width: 250px;
    padding: 10px;
    borderRadius: 5px;
    background-color: #e808fc;
    fontSize: 16px;
}#screenName {
    width: 240px;
    padding: 5px;
    background-color: orange;
    position: absolute;
    top: 290px;
    right: 10px;
}#newScreenName {
    height: 30px;
}#setScreenName {
    height: 40px;
}.nocopy {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

@media (max-width: 700px) {
/* Base tweaks */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  text-align: center;
  overflow-x: hidden;
}

/* Make containers fluid but max-width capped */
#auth-container, #verify, #chat-container {
  width: 90%;
  max-width: 400px;
  margin: 15px auto;
  padding: 15px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Headings */
#auth-container h2, #group-chat h3, #private-chat h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* Inputs and buttons full width */
#auth-container input, #verify input,
#auth-container button, #verify button,
input[type="text"], select, button {
  width: 100%;
  padding: 12px;
  margin: 10px 0 0 0;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 15px;
}

button:hover {
  background-color: #218838;
}

/* Chat container flex column on small screens */
#chat-windows {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  max-width: 400px;
  padding-bottom: 30px;
}

/* Chat boxes fill width */
#group-chat, #private-chat {
  width: 100%;
  max-width: 100%;
  min-height: 450px;
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* Chat message boxes */
#group-chat-box, #private-chat-box {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  overflow-y: auto;
  font-size: 15px;
  text-align: left;
  margin-bottom: 10px;
}

/* Ban bar and banned list - make them fixed width and stack nicely */
#ban-bar, #banned-list-box, #store-btn, #cursorselect, #screenName {
  position: static;
  width: 90%;
  max-width: 400px;
  margin: 15px auto;
  box-sizing: border-box;
}

/* Misc smaller text adjustments */
#username {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}}

/* Remove absolute positioning on small screens */
@media (max-width: 500px) {
  #item-one, #item-two,
  #buy-item-one, #buy-item-two {
    position: static !important;
    width: 90% !important;
    max-width: 400px !important;
    margin: 10px auto !important;
    height: auto !important;
    border-width: 2px !important;
  }
}

/* Tiny screens */
@media (max-width: 350px) {
  #auth-container input, #verify input,
  #auth-container button, #verify button,
  input[type="text"], select, button {
    font-size: 14px;
    padding: 10px;
  }

  #group-chat-box, #private-chat-box {
    min-height: 300px;
  }
}
