/* style.css */
body {
  background-color: #f0f0f0;
  font-family: 'Gungsuh', serif;
  margin: 0;
  padding: 0;
  color: #333;
  text-align: center;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 0;
  background-color: #e2e2e2;
  border-bottom: 1px solid #ccc;
}

header h1 {
  font-weight: bold;
  font-size: 24px;
  margin: 0;
  color: #222;
}

#logo {
  width: 80px;
  height: auto;
}

#leftImg, #rightImg {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 110px;
  height: auto;
  z-index: 10;
}

#leftImg {
  left: 10px;
}

#rightImg {
  right: 10px;
}

#container {
  max-width: 700px;
  margin: 30px auto 50px;
  padding: 0 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
  width: 70%;
  max-width: 400px;
  padding: 10px 12px;
  margin: 10px auto;
  font-size: 16px;
  border: 1px solid #bbb;
  border-radius: 5px;
  outline: none;
  font-family: 'Gungsuh', serif;
  box-sizing: border-box;
  display: block;
}

input:focus, textarea:focus {
  border-color: #888;
}

button {
  background-color: #555;
  color: #eee;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 5px 10px;
  font-size: 16px;
  font-family: 'Gungsuh', serif;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

#chatBox {
  width: 100%;
  max-width: 600px;
  height: 350px;
  margin: 15px auto;
  overflow-y: auto;
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 12px;
  text-align: left;
  border-radius: 5px;
  font-size: 15px;
  font-family: 'Gungsuh', serif;
  box-sizing: border-box;
}

.chatLine {
  margin: 5px 0;
  word-break: break-word;
}

.deleteBtn {
  margin-left: 12px;
  color: #cc3333;
  cursor: pointer;
  user-select: none;
  font-family: 'Gungsuh', serif;
}

#inputArea {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

#inputArea input#msg {
  flex-grow: 1;
  margin: 0;
}

#inputArea button#btnSend {
  margin: 0;
  flex-shrink: 0;
}

#controls {
    margin-top: 15px;
}

.roomButtonContainer {
  position: relative;
  display: inline-block;
  margin: 7px;
}

.roomButtonContainer button.roomBtn {
  padding: 10px 35px 10px 15px;
  font-size: 17px;
  cursor: pointer;
  border-radius: 6px;
  border: 1.5px solid #888;
  background-color: #ddd;
  font-family: 'Gungsuh', serif;
}

.roomButtonContainer button.roomBtn:hover {
  background-color: #bbb;
  border-color: #555;
}

.roomButtonContainer .delRoomBtn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #d9534f;
  color: white;
  font-weight: bold;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  line-height: 22px;
  font-size: 16px;
  padding: 0;
  transition: background-color 0.3s;
  border: 1px solid white;
}

.roomButtonContainer .delRoomBtn:hover {
  background-color: #c9302c;
}

#scoring {
  margin: 20px auto;
  padding: 20px;
  background: #fefefe;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  max-width: 600px;
}

#scoring .scoreInput {
    width: 80px;
    display: inline-block;
    margin-left: 10px;
}
#scoring .commentInput {
    width: 90%;
    height: 80px;
}

#chatStatus {
    display: none;
    margin: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

/* NEW: Style for the final result message in the chatbox */
.result-message {
  text-align: center;
  font-weight: bold;
  color: red;
  margin: 20px 0;
  padding: 15px 10px;
  border-top: 3px double red;
  border-bottom: 3px double red;
  background-color: #fff0f0;
  font-family: 'Gungsuh', serif;
}

@media (max-width: 768px) {
  #container {
    padding: 0 15px;
    margin: 20px auto;
  }

  #leftImg, #rightImg {
    display: none;
  }

  input[type="text"], input[type="password"], textarea, button {
    width: 90%;
    max-width: initial;
  }

  #inputArea {
      flex-direction: column;
  }
  #inputArea input#msg {
      width: 100%;
  }
  #inputArea button#btnSend {
      width: 100%;
      margin-top: 5px;
  }
}