
* {
  font-family: 'Courier New', monospace;
}

body {
  background-color: #121212;
  color: #00ff99;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 0px 10px 0px;
}
.body{
  width: 100%;
  padding: 0;
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
}

a{
  color:#00bfff !important;
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
}

.controls {
  margin-bottom: 20px;
  text-align: center;
}

.btn {
  font-weight: bold;
  font-size: 20px;
  background-color: #00ff99;
  color: #121212;
  padding: 8px 8px;
  margin: 5px;
  border: none;
  cursor: pointer;
  display: inline-block;
  max-height: 40px;
  vertical-align: middle;
  min-width: 160px;
}

.btn:hover {
  background-color: #00dd88;
}

.mode-btn.active {
  background-color: #ffff66;
  color: #121212;
}

.highlight {
  background-color: #ffff66;
  color: #121212;
}

.move-option {
  background-color: #006644 !important;
}

.rules {
  text-align: left;
  color: #ccc;
  font-size: 18px;
  line-height: 1.8;
  margin-top: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer-buttons {
  margin-top: 20px;
  text-align: center;
}

h1,h2,h3,h4,h5,h6{
  margin:5px 0px;
  padding:5px 0px;
}
.header-menu{
  width: 100%;
  background-color: #121212;
  margin-bottom: 0px;
  z-index: 9999999;
}
.header-menu a:first-child{
  float: left;
}
.header-menu a{
  font-size: 25px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  color:#00ff99;
  font-weight: bold;
  vertical-align: middle;
}

/******* LOADING ******/
body {
  margin: 0;
  padding: 0;
}

#loading {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top: 8px solid #00bfff; /* สีฟ้า */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/************ COMMENT DIALOG *******/

.comment-dialog {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.comment-dialog .avatar,
.avatar[user2] {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  margin-right: 10px;
  text-shadow: 0px 0px 5px #000, 0px 0px 2px #000, 0px 0px 3px #000;
}

.comment{
  max-width: 700px;
  width: 95%;
  border-top: 1px solid #ccc;
  margin-top: 15px;
  padding-top: 15px;
}

.comment-dialog .bubble {
  background: #f1f1f1;
  border-radius: 14px;
  padding: 8px 12px;
  position: relative;
  max-width: 100%;
  display: inline-block;
}

.comment-dialog .user {
  font-size: 12px;
  color: #aaa;
}

.comment-dialog .time {
  font-size: 11px;
  color: #666;
  position: absolute;
  bottom: 0;
  left: 100%;
  width: 100px;
  padding-left: 10px;
}

.comment-dialog.me .time {
  left: -120px;
  text-align: right;
}

.comment-dialog .msg {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.comment-dialog.me {
  flex-direction: row-reverse;
}

.comment-dialog.me .bubble {
  background: #dcf8c6; /* เหมือน LINE */
}

.comment-dialog.me .avatar {
  margin-right: 0;
  margin-left: 10px;
}
