







 
ul {
  list-style-type: none;
  padding: 0;
}
input#loginUsername {
  padding: 3px;
}
input#loginPassword {
  padding: 3px;
}
input#regUsername {
  padding: 3px;
}
input#regPassword {
  padding: 3px;
}
button {
  padding: 5px 10px;
  background: #282a2c; 
  border: none;
  color: #cfcdcd;
  cursor: pointer;
}
button:hover {
  background: #282a2c;
  color: #fff;
}
.auth-section {
  width: 100%;
}
#registerSection {
  border-bottom: solid 1px #1d2c3fab;
  width: 100%;
  background: #282a2c;
  border-radius: 7px;
  box-shadow: 1px 1px 5px #000;
  padding: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
#loginSection {
  border-bottom: solid 1px #1d2c3fab;
  width: 100%;
  background: #282a2c;
  border-radius: 7px;
  box-shadow: 1px 1px 5px #000;
  padding: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}



.auth-section h3 {
  padding: 0;
  margin: 0;
  margin-bottom: 5px;
}

#commentForm {
  display: none;
}
#logoutBtn {
  display: none;
}
#commentsList {
  min-height: 100vh;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

#adminSection {
  display: none;
  padding: 10px 12px;
  background: #282a2c;
  border-radius: 7px;
  box-shadow: 1px 1px 5px #000;
  margin-bottom: 15px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
#adminSection input {
  margin: 5px 0;
  width: 100%;
}
 
.username {
  cursor: pointer;
  font-weight: bold;
}





#avatarSection {
  display: none; 
}
#noteSection {
  display: none;
  margin-top: 20px;
}
.note {
  width: 100%;
  background: #282a2c;
  border-radius: 7px;
  box-shadow: 1px 1px 5px #000;
  padding: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
 

.comment-item {
  display: block;
}

.comment-content {
  margin: 9px 0;
}



.comment-images {
  display: flex;
  align-items: flex-end; /* Căn hình ảnh xuống lề dưới */
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  padding-bottom: 5px;
  /* Ẩn thanh cuộn mặc định trên Webkit (Chrome, Safari) */
  /* scrollbar-width: thin; Firefox */
  scrollbar-color: #888 #282a2c; /* Firefox */
}

/* Thanh cuộn tùy chỉnh cho Chrome, Edge và Safari */
.comment-images::-webkit-scrollbar {
  height: 12px; /* Độ cao của thanh cuộn ngang */
}

.comment-images::-webkit-scrollbar-track {
  background: #282a2c; /* Màu nền của thanh cuộn */
  border-radius: 4px;
}

.comment-images::-webkit-scrollbar-thumb {
  background: #888; /* Màu thanh kéo */
  border-radius: 4px;
}

.comment-images::-webkit-scrollbar-thumb:hover {
  background: #555; /* Màu khi rê chuột */
}



.comment-images img {
  max-height: 150px;
  width: auto;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 7px;
}

.comment-actions {
  margin-top: 5px;
  text-align: right;
}
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 96%);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.image-modal img {
  max-width: 98%;
  max-height: 98%;
  box-shadow: 1px 1px 5px #000;
}

 
.image-modal .close-btn {
  /* position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: white;
  cursor: pointer; */

  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #9699aa;
  border-radius: 50%;
  margin: 0 6px;
  justify-content: center;
  display: flex;
  align-items: center;
  z-index: 99999;
  box-shadow: 1px 1px 5px #000;


}
.close-btn img {
  width: 60px;
  border-radius: 50%;
  filter: opacity(80%);
  border: solid 1px;
  max-width: none;
  max-height: none;
  cursor: pointer;
}
.close-btn img:hover {
  filter: opacity(90%);
}


.image-modal .next-btn {
  right: 0;
  top: 50%;
  color: white;
  cursor: pointer;
  position: absolute;
  transform: translateX(-50%);
  background: #9699aa;
  border-radius: 50%;
  margin: 0 6px;
  justify-content: center;
  display: flex;
  align-items: center;
  z-index: 99999;
  box-shadow: 1px 1px 5px #000;
}
.image-modal .next-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: white;
  cursor: pointer;
}

.next-btn img {
  width: 60px;
  border-radius: 50%;
  filter: opacity(80%);
  border: solid 1px;
  max-width: none;
  max-height: none;
  cursor: pointer;
}

.next-btn img:hover {
  filter: opacity(90%);
}

input[type="file"] {
  display: none;
}
.custom-file-upload {
  display: inline-block;
  padding: 10px;
  background: #007bff;
  color: white;
  cursor: pointer;
}
.custom-file-upload:hover {
  background: #0056b3;
}















body {
  margin: 0 auto;
  padding: 0 15px;
  background: #070e18;
  color: #cfcdcd;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  max-width: 1800px;
}
a {
  text-decoration: none;
  color: #cfcdcd;
}
a:hover {
  color: #fff;
}

* {
  text-decoration: none;
  box-sizing: border-box;
}
header {
  background: #070e18;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}
header .logo_menu {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  /* border-bottom: solid 1px #1d2c3f; */
}
.logo {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 10px 15px 15px 0;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
nav {
  gap: 20px;
}
nav a {
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
  font-weight: 500;
  cursor: pointer;
}
.strong {
  padding: 6px 15px;
  background: #212c3b;
  border-radius: 5px;
}

div#avatarSection {
  padding: 10px 12px;
  background: #282a2c;
  border-radius: 7px;
  box-shadow: 1px 1px 5px #000;
  margin-bottom: 15px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
div#avatarSection h3 {
  margin: 0;
  padding-bottom: 10px;
}
form#commentForm {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.avatar_box {
  display: block;
  width: 50%;
  text-align: center;
  background: #070e1894;
  border-radius: 7px;
  padding: 6px;
}
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  vertical-align: top;
}
.hoso {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.hoso_nut:hover {
  background: #1a1b1c;
  color: #fff;
}
div#hoso_nut {
  display: inline-grid;
  width: 50%;
}
.hoso_nut {
  display: inline-block;
  padding: 5px 15px;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  margin: 0px 5px;
  min-width: 160px;
}



/* Ẩn input file để chỉ dùng label làm nút */
input[type="file"] {
  display: none;
}

textarea {
  width: 100%;
  max-width: 720px;
  height: 150px;
  background: #151a20;
  padding: 10px;
  font-size: 1rem;
  color: #fff !important;
  border-radius: 7px;
  box-shadow: 1px 1px 5px #000;
  border: solid 12px #282a2c;
}
/* Đặt màu cho placeholder */
textarea::placeholder {
  border-radius: 7px;
  color: #ccc; /* Chỉnh màu sáng hơn nếu muốn */
  opacity: 1;  /* Một số trình duyệt có opacity mặc định thấp */
}
.comment_1 {
  display: block;
}
#imageCount {
  margin: 3px;
  color: #666;
}

.them_anh_vao_bai_viet {
  display: flex;
  padding: 4px 12px;
  background: #282a2c;
  cursor: pointer;
  border-radius: 7px;
  margin: 0px;
  justify-content: center;
  align-items: anchor-center;
  width: 50%;
  min-width: 100px;
  margin-right: 3px;
}
.them_anh_vao_bai_viet:hover {
  background: #1a1b1c;
}
.gui_bai_viet {
  background: #0056b3;
  padding: 5px 26px;
  height: 29px;
  cursor: pointer;
  border-radius: 7px;
  color: #fff;
  border: none;
  font-size: 0.95rem;
  width: 50%;
}
.gui_bai_viet:hover {
  background: #034388;
}
.comment_2 {
  width: 100%;
  display: flex;
}
#commentsTitle {
  display: block;
  border-top: solid 1px #1d2c3fab;
  padding-top: 15px;
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
li {
  padding: 10px 12px 0 12px;
  border-bottom: solid 1px #1d2c3fab;
  width: 100%;
  background: #282a2c;
  margin: 20px 0;
  border-radius: 7px;
  box-shadow: 1px 1px 5px #000;
}

.username {
  cursor: pointer;
}
.username:hover { 
  color: #fff;
}
.comment-header {
  margin-left: 7px;
}
.comment-item_1 {
  width: calc(100% - 70px);
  display: flex;
}
.xoa_bai_viet {
  padding: 6px 12px; 
  background: #282a2c;
  color: #919090;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  width: 100%;
  margin-bottom: 3px;
  font-size: 0.95rem;
  margin-top: 5px;
}
.xoa_bai_viet:hover {
  background: #1a1c1d;
}
span#profileUsername {
  font-weight: bold;
  font-size: 1.2rem;
}


iframe {
  width: 100%;
  height: 392px;
  border-radius: 7px;
  box-shadow: 1px 1px 5px #111;
  margin-top: 15px;
}



/* modal ================================*/
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Nội dung modal */
.modal-content {
  background: #282a2c;
  padding: 20px;
  border-radius: 7px;
  box-shadow: 1px 1px 5px #000;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

/* Nút đóng modal */
.modal-content .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #cfcdcd;
  cursor: pointer;
}

.modal-content .close-btn:hover {
  color: #fff;
}

/* Định dạng input và button trong modal */
.modal-content input {
  width: 100%;
  margin: 10px 0;
  padding: 5px;
  background: #151a20;
  color: #fff;
  border: none;
  border-radius: 5px;
}

.modal-content button {
  margin-top: 10px;
  background: #0056b3;
}

.modal-content button:hover {
  background: #034388;
}
/* modal ================================*/


@media screen and (max-width: 492px){
  .hoso {
    display: block;
}
.avatar_box {
  width: 100%;
  margin-bottom: 6px;
}
div#hoso_nut { 
  width: 100%;
}

}

