body {
  line-height: 1.4;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #000;
  margin: 0;
  padding: 0;
}

html, body {
  background: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}



div#header {
  width: 100%;
  text-align: center;
  padding: 8px 0 2px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

img#logo-img {
  width: 90%;
  max-width: 520px;
  max-height: 88px;
  margin: 0 auto;
  border: 3px solid #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

img#logo-img:hover {
  transform: scale(1.05);
}


div#navbar {
  width: 100%;
  text-align: center;
  margin: 4px 0px;
  font-size: 1em;
}

div.nav-link {
  width: 95%;
  max-width: 900px;
  margin: 8px auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

div.nav-link:hover {
  background: linear-gradient(135deg, #00ffff 0%, #0066ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

h1.nav-text {
  padding: 10px 4px;
  line-height: 20px;
  color: white;
  font-weight: 600;
  font-size: 1.1em;
  margin: 0;
}

div#section {
  width: 100%;
  text-align: center;
  margin: 4px 0px 12px 0px;
}

div#container {
  width: 98%;
  max-width: 960px;
  margin: auto;
  display: inline-block;
}

div.content {
  width: 96%;
  max-width: 424px;
  margin: 8px 2%;
  display: inline-block;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  vertical-align: top;
}

div.content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}


table#login-form {
  width: 100%;
  max-width: 320px;
  margin: auto;
  border-collapse: collapse;
}


table.game-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
tr.game-date, tr#login-head {
  width: 100%;
  height: 40px;
  border: none;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

tr.game-date td.date, td#login-head {
  vertical-align: middle;
  font-size: 1em;
  color: white;
  font-weight: 700;
  padding: 8px;
  border: none;
}

/* Table Rows */
tr.game-result {
  width: 100%;
  height: 60px;
  background: white;
  border: none;
  border-bottom: 3px solid #f0f0f0;
  transition: all 0.3s ease;
}

tr.game-result:nth-child(even) {
  background: linear-gradient(90deg, #f8f9ff 0%, #ffffff 100%);
}

tr.game-result:nth-child(odd) {
  background: white;
}

tr.game-result:hover {
  background: linear-gradient(90deg, #e8f4ff 0%, #f0f9ff 100%);
  border-bottom: 3px solid #00d4ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 212, 255, 0.2);
}

tr.holder {
  width: 100%;
  height: 60px;
  background: khaki;
  border: none;
  border-bottom: 3px solid #f0f0f0;
  transition: all 0.3s ease;
}

tr.holder:hover {
  background: linear-gradient(90deg, #e8f4ff 0%, #f0f9ff 100%);
  border-bottom: 3px solid #00d4ff;
}

td.game-time {
  vertical-align: middle;
  text-align: left;
  padding: 8px;
  font-size: 0.9em;
  color: #666;
}

h2.game {
  font-size: 1em;
  margin: 4px 8px;
  color: #667eea;
  font-weight: 600;
  padding: 0;
}

h2.time {
  font-size: 0.8em;
  margin: 4px 8px;
  float: left;
  color: #999;
  padding: 0;
}

td.game-number {
  vertical-align: middle;
  text-align: right;
  padding-right: 8px;
  font-weight: 700;
}

h3.number {
  font-size: 2em;
  margin: 4px 8px;
  color: #000;
  font-weight: 700;
  padding: 0;
}

tr.space {
  width: 100%;
  height: 0;
  border: none;
}


h2.logRow {
  margin: 8px;
  text-align: left;
  line-height: 24px;
  color: #333;
  font-weight: 500;
  padding: 0;
}

h1.logRow {
  margin: 8px;
  text-align: left;
  color: #667eea;
  font-weight: 700;
  padding: 0;
}


input.filledBox, input.blankBox {
  width: 60px;
  margin: 8px;
  padding: 0;
  height: 40px;
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

input.filledBox {
  background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

input.filledBox:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.4);
}

input.blankBox {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff0000 100%);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

input.blankBox:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

input.text, input.log {
  width: 84%;
  margin: 8px auto;
  font-size: 1em;
  font-weight: bold;
  padding: 8px 4px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
  box-sizing: border-box;
}

input.text:focus, input.log:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input.post, input.value {
  width: 30%;
  min-width: 120px;
  max-width: 320px;
  margin: 8px 1%;
  font-size: 1em;
  font-weight: bold;
  padding: 8px 4px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

input.post:hover, input.value:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

input#direct-chart {
  width: 30%;
  min-width: 180px;
  max-width: 320px;
  margin: 8px 1%;
  height: 40px;
  font-size: 1em;
  font-weight: bold;
  padding: 8px;
  border: 2px solid #667eea;
  border-radius: 8px;
  background: white;
  color: #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input#direct-chart:hover {
  background: #667eea;
  color: white;
}



select#month, select#year {
  width: 30%;
  min-width: 180px;
  max-width: 320px;
  margin: 8px 1%;
  height: 40px;
  font-size: 1em;
  font-weight: bold;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

select#month:focus, select#year:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}



div#footer {
  width: 100%;
  text-align: center;
  margin: 4px auto 8px auto;
  padding: 0;
  display: inline-block;
}



div#chart-form {
  width: 96%;
  max-width: 960px;
  margin: auto;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  display: inline-block;
  padding: 8px 4px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  box-sizing: border-box;
}

h2#chart-text {
  padding: 2px;
  color: #333;
  line-height: 20px;
  font-weight: 600;
  margin: 0;
}



textarea {
  resize: vertical;
  width: 84%;
  height: 60px;
  margin: 8px auto;
  padding: 8px 4px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}



div.message {
  padding: 4px 2px;
  display: inline-block;
  margin: 12px auto;
  width: 96%;
  max-width: 480px;
  min-height: 32px;
  border-radius: 8px;
  border: 2px solid;
}

h4.message {
  text-align: left;
  line-height: 24px;
  padding: 0.5em;
  font-size: 1em;
  float: left;
  margin: 0;
}

div#failed {
  border: 2px solid #ff6b6b;
  background: linear-gradient(135deg, #ffe0e0 0%, #ffcccc 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

div#success {
  border: 2px solid #51cf66;
  background: linear-gradient(135deg, #d3f9d8 0%, #c3fac3 100%);
  box-shadow: 0 4px 12px rgba(81, 207, 102, 0.2);
}

div#error {
  border: 2px solid #ffd43b;
  background: linear-gradient(135deg, #fff3bf 0%, #fffacd 100%);
  box-shadow: 0 4px 12px rgba(255, 212, 59, 0.2);
}

div#info {
  border: 2px solid #74c0fc;
  background: linear-gradient(135deg, #d0ebff 0%, #e7f5ff 100%);
  box-shadow: 0 4px 12px rgba(116, 192, 252, 0.2);
}



ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}

table.chart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
}

tr.chart-head {
  width: 100%;
  height: 40px;
  border: none;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

td.month {
  vertical-align: middle;
  font-size: 1em;
  color: white;
  font-weight: 600;
  padding: 8px;
  border: none;
}

tr.date-name {
  width: 100%;
  height: 36px;
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

tr.date-name td.date, tr.date-name th.name {
  border-right: 1px solid rgba(255, 215, 0, 0.5);
  vertical-align: middle;
  padding: 6px 8px;
  font-weight: 600;
}

tr.day-number {
  width: 100%;
  height: 32px;
  border: none;
  border-bottom: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

tr.day-number:nth-child(even) {
  background: linear-gradient(90deg, #f9f9f9 0%, #ffffff 100%);
}

tr.day-number:nth-child(odd) {
  background: khaki;
}

tr.day-number:hover {
  background: linear-gradient(90deg, #e8f4ff 0%, #f0f9ff 100%);
  border-bottom: 2px solid #00d4ff;
  box-shadow: inset 0 0 8px rgba(102, 126, 234, 0.1);
}

tr.day-number td.day, tr.day-number td.number {
  border-right: 1px solid #f0f0f0;
  vertical-align: middle;
  padding: 6px 8px;
}

tr.date-name td.date, tr.day-number td.day {
  color: #ff6b6b;
  font-weight: 700;
}

td.day div {
  min-width: 60px;
  max-width: 180px;
}

td.e-link {
  vertical-align: middle;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 600;
}

td.e-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

h1.aero {
  color: white;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

td.d-link {
  vertical-align: middle;
  color: white;
  background: linear-gradient(135deg, #868686 0%, #5a5a5a 100%);
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 600;
}

td.d-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 90, 90, 0.3);
}

tr.option {
  font-size: 1em;
  color: white;
  border: none;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}



a:link, a:hover, a:active, a:visited {
  color: #2962FF;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00d4ff;
  text-decoration: underline;
}



div.main-content {
  width: 98%;
  margin: 8px 1%;
  display: inline-block;
}

table.quick-result-board {
  width: 100%;
  margin-bottom: 6px;
  border-collapse: collapse;
  padding: 0;
}

tr.board-title {
  width: 100%;
  height: 60px;
  border: none;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

tr.board-title > th {
  vertical-align: middle;
  font-size: 1.2em;
  color: white;
  margin: 0;
  padding: 0 8px;
  font-weight: 700;
}

tr.board-head {
  width: 100%;
  height: 40px;
  border: none;
  background: linear-gradient(90deg, #424242 0%, #212121 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

tr.board-head > th {
  vertical-align: middle;
  font-size: 1.1em;
  color: white;
  line-height: 24px;
  margin: 4px 2px;
  padding: 0 8px;
  font-weight: 600;
}

tr.board-head a {
  color: #00d4ff;
}

.games-name {
  width: 64%;
  color:#000;
  text-align: left;
  padding: 4px 8px 4px 8px;
}

.today-date, .yesterday-date {
  width: 18%;
  text-align: center;
  text-align: right;
  padding: 4px 12px;
}

.game-details {
  vertical-align: middle;
  text-align: left;
  padding: 4px;
}

.game-details > .game-name {
  font-size: 1.1em;
  font-weight: 500;
  margin: 4px 8px;
  color: #000;
  padding: 0;
}

.game-details > .game-time {
  font-size: 0.8em;
  padding: 2px 8px;
  float: left;
  color: #999;
}

.game-details > .game-link {
  font-size: 0.8em;
  padding: 2px 8px;
}

.today-number, .yesterday-number {
  vertical-align: middle;
  text-align: center;
  color:#000;
  border:2px #000 solid;
  background:khaki;
  padding-right: 8px;
}

.today-number > h3, .yesterday-number > h3 {
  font-size: 1.6em;
  font-weight: 500;
  margin: 4px 8px;
  color: #000;
  padding: 0;
}

tr.highlight {
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  box-shadow: inset 0 0 4px rgba(255, 215, 0, 0.3);
}



label {
  text-align: left;
  display: block;
  font-weight: bold;
  width: 84%;
  margin: 8px auto auto auto;
  color: #333;
  padding: 0;
}

.profile-data {
  text-align: left;
  width: 84%;
  margin: 4px auto;
  padding: 0;
}



input #DT {
  width: 40%;
}

input #DT, input #HR, input #MN {
  margin: 8px auto;
  font-size: 1em;
  font-weight: bold;
  padding: 8px 4px;
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

div.content, tr.game-result {
  animation: fadeIn 0.5s ease-out;
}



@media (max-width: 768px) {
  body {
    font-size: 0.95em;
  }

  div#header {
    padding: 8px 0 2px 0;
  }

  img#logo-img {
    max-width: 400px;
    max-height: 80px;
  }

  div.nav-link {
    margin: 4px auto;
  }

  h1.nav-text {
    padding: 10px 4px;
    font-size: 1em;
  }

  div#container {
    width: 99%;
    padding: 0;
  }

  div.content {
    width: 100%;
    max-width: 100%;
    margin: 4px 0;
    padding: 8px;
  }

  input.text, input.log, textarea {
    width: 95%;
    margin: 6px auto;
  }

  select#month, select#year, input#direct-chart {
    width: 90%;
    max-width: 100%;
    margin: 6px auto;
  }

  input.post, input.value {
    width: 48%;
    min-width: auto;
    margin: 4px 1%;
  }

  input.filledBox, input.blankBox {
    width: 55px;
    height: 38px;
    font-size: 1.3em;
    margin: 6px;
  }

  /* Mobile Table Layout */
  table.game-table {
    font-size: 0.95em;
  }

  tr.game-date, tr#login-head {
    height: 38px;
  }

  tr.game-date td.date, td#login-head {
    padding: 8px 6px;
    font-size: 0.95em;
  }

  tr.game-result, tr.holder {
    height: 55px;
  }

  h2.game {
    font-size: 0.95em;
    margin: 4px 6px;
  }

  h3.number {
    font-size: 1.8em;
    margin: 2px 6px;
  }

  td.game-time {
    padding: 6px;
    font-size: 0.85em;
  }

  h2.time {
    font-size: 0.75em;
    margin: 2px 6px;
  }

  /* Chart Table Mobile */
  table.chart-table {
    font-size: 0.95em;
  }

  tr.chart-head {
    height: 38px;
  }

  tr.date-name {
    height: 34px;
  }

  tr.day-number {
    height: 30px;
  }

  td.month, tr.date-name td.date, tr.day-number td.day, tr.day-number td.number {
    padding: 6px;
    font-size: 0.9em;
  }

  /* Board Table Mobile */
  table.quick-result-board {
    font-size: 0.95em;
  }

  tr.board-title {
    height: 55px;
  }

  tr.board-title > th {
    padding: 0 6px;
    font-size: 1.1em;
  }

  tr.board-head {
    height: 38px;
  }

  tr.board-head > th {
    padding: 0 6px;
    font-size: 1em;
    margin: 2px;
  }

  .game-details > .game-name {
    font-size: 1em;
    margin: 4px 6px;
  }

  .today-number > h3, .yesterday-number > h3 {
    font-size: 1.4em;
    color: #000;
    margin: 2px 6px;
  }

  div#chart-form {
    padding: 8px 4px;
    margin: auto;
  }

  h2#chart-text {
    padding: 2px;
    font-size: 1em;
  }

  label {
    width: 90%;
    margin: 8px auto auto auto;
  }

  div.message {
    margin: 8px auto;
    padding: 6px;
    width: 95%;
  }

  h4.message {
    font-size: 0.95em;
    padding: 4px;
    line-height: 22px;
  }

  div#footer {
    margin: 4px auto 8px auto;
    padding: 0;
  }
  .live-name{
      font-size: 2.0em;
    color: #fff;
    font-weight: 800;
    margin: 2px 6px;
  }
  .live-number{
      font-size: 1.4em;
    color: #000;
    font-weight: 800;
    margin: 2px 6px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.9em;
  }

  div#header {
    padding: 6px 0 2px 0;
  }

  img#logo-img {
    max-width: 280px;
    max-height: 70px;
  }

  h1.nav-text {
    padding: 8px 4px;
    font-size: 0.95em;
  }

  input.text, input.log, textarea {
    width: 98%;
    font-size: 0.95em;
    margin: 4px auto;
  }

  input.post, input.value {
    width: 47%;
    margin: 4px 1.5%;
    font-size: 0.9em;
    padding: 6px 4px;
  }

  input.filledBox, input.blankBox {
    width: 50px;
    height: 36px;
    font-size: 1.2em;
    margin: 4px;
  }

  table.game-table {
    font-size: 0.9em;
  }

  table.chart-table {
    font-size: 0.9em;
  }

  table.quick-result-board {
    font-size: 0.9em;
  }

  h2.game {
    font-size: 0.9em;
    margin: 4px 4px;
  }

  h3.number {
    font-size: 1.6em;
  }

  div#chart-form {
    padding: 6px 4px;
  }

  label {
    width: 95%;
  }

  .games-name {
    padding: 4px 4px;
  }

  .today-date, .yesterday-date {
    padding: 4px 6px;
    color:#000;
  }
  
}