* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212; /* Dark background */
    color: #ffffff; /* Default text color */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header + Menu */
header {
    background: #1e1e1e; /* Darker header to match theme */
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid #333;
}

h1{
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Keep heading white */
}

nav {
    margin-top: 1rem;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.menu > li {
    position: relative;
}

.menu a {
    color: #4db8ff; /* Accent blue */
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #80d4ff; /* Lighter blue on hover */
}

.menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2a2a; /* Dropdown background matches theme */
    padding: 0.5rem;
    list-style: none;
    border-radius: 5px;
    border: 1px solid #333;
}

.menu li:hover ul {
    display: block;
}

.menu ul li {
    margin: 0.5rem 0;
}

.menu ul a {
    color: #ffffff; /* White text inside dropdown */
}

.menu ul a:hover {
    color: #4db8ff; /* Blue hover in dropdown */
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

main img {
    max-width: 600px;
    border-radius: 8px;
    margin: 2rem 0;
    border: 2px solid #333; /* Makes image pop */
}

/* Footer */
footer {
    background: #1e1e1e;
    text-align: center;
    padding: 1rem;
    border-top: 2px solid #333;
    color: #aaaaaa; /* Softer gray for footer text */
}

/* Form */
.form-container {
      background: #1e1e1e;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 0 10px #000;
      max-width: 600px;
      width: 100%;
      margin: 2rem auto;
    }

    .form-container h2 {
      color: #4db8ff;
      margin-bottom: 1rem;
      text-align: center;
    }

    label {
      display: block;
      margin-top: 1rem;
      font-weight: bold;
      text-align: left;
    }

    input, textarea, select {
      width: 100%;
      padding: 0.7rem;
      margin-top: 0.5rem;
      border: none;
      border-radius: 5px;
      background: #2a2a2a;
      color: #fff;
    }

    input:focus, textarea:focus, select:focus {
      outline: 2px solid #4db8ff;
    }

    .error {
      color: #ff4d4d;
      font-size: 0.9rem;
    }

    .btn {
      margin-top: 1.5rem;
      padding: 0.7rem 1.2rem;
      border: none;
      border-radius: 5px;
      background: #4db8ff;
      color: #fff;
      font-weight: bold;
      cursor: pointer;
    }

    .btn:hover {
      background: #3399ff;
    }

    /* Confirmation box */
    #confirmation {
      display: none;
      background: #1e1e1e;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 0 10px #000;
      max-width: 600px;
      margin: 2rem auto;
    }

    #confirmation h2 {
      color: #4db8ff;
      margin-bottom: 1rem;
    }

    #confirmation p {
      text-align: left;
      margin: 0.5rem 0;
    }
    
    /* Calculator card */
.p-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-container {
  display: flex;
  gap: 20px; /* space between buttons */
  margin-top: 10px;
}


/* Json Table */
.table-container {
    max-width: 1000px;
    width: 90%;
    margin: 2rem auto;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    overflow: hidden;
    border: 1px solid #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background-color: #004c99; /* deep blue */
}

th, td {
    padding: 14px 16px;
    text-align: left;
    font-size: 15px;
}

th {
    color: #4db8ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #333;
}

td {
    color: #ffffff;
    border-bottom: 1px solid #2a2a2a;
}

tbody tr:nth-child(even) {
    background-color: #181818;
}

tbody tr:hover {
    background-color: #2a2a2a;
    transform: scale(1.01);
    transition: 0.2s ease-in-out;
}

/* cards */
#dealButton {
      background-color: #007bff;
      border: none;
      color: white;
      padding: 10px 20px;
      font-size: 16px;
      border-radius: 6px;
      cursor: pointer;
      margin-bottom: 20px;
    }

    #dealButton:hover {
      background-color: #0056b3;
    }

    #cardArea {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 40px;
    }

    .card {
      width: 80px;
      height: 120px;
      border: 1px solid #fff;
      border-radius: 8px;
      background-color: #fff;
      cursor: grab;
    }

    #discardPile {
      width: 150px;
      height: 200px;
      border: 2px dashed #ff4c4c;
      border-radius: 10px;
      margin: 0 auto;
      padding-top: 70px;
      background-color: #3b3b3b;
      color: #ff4c4c;
      font-weight: bold;
    }

    #log {
      margin-top: 30px;
      font-size: 16px;
      color: #90ee90;
    }
    
/* Advising tool */

     bstable {
      width: 100%;
      border-collapse: collapse;
      background: white;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    th, td {
      padding: 10px 15px;
      text-align: left;
      border-bottom: 1px solid #e1e1e1;
    }
    th {
      background: #004080;
      color: white;
    }
    tr:hover {
      background-color: #f1f7ff;
    }
    .note {
      font-size: 0.85em;
      color: #555;
    }
#eligibleTable {
      border: 2px solid #cdeed1;
    }
    #eligibleTable th {
      background-color: #046b30;
    }
    #eligibleTable td {
      border-bottom: 1px solid #d8f0dc;
    }
    #eligibleTable tr:hover {
      background-color: #f3fff6;
    }
    
    /*game Css*/
   * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
}
html,
body {
  height: 100%;
  background: radial-gradient(circle at 10% 10%, #282828 0%, #181818 50%);
  color: #e6e6e6;
}
#ui {
  text-align: center;
  padding: 14px 8px;
  user-select: none;
}
#ui h1 {
  font-size: 18px;
  margin-bottom: 6px;
  letter-spacing: 0.6px;
}
#info {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
#info span {
  font-size: 13px;
  opacity: 0.9;
}
button {
  background: transparent;
  border: 1px solid rgba(230, 230, 230, 0.12);
  color: #e6e6e6;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
button:hover {
  background: rgba(255, 255, 255, 0.03);
}

#game {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  max-width: calc(100% - 20px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
}

#footer {
  text-align: center;
  font-size: 12px;
  padding: 11px 0 28px 0;
  opacity: 0.7;
}

/* Overlay background */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* The tutorial container */
.tutorial-box {
  background: #111;
  border: 2px solid #555;
  padding: 25px;
  width: 80%;
  max-width: 600px;
  color: white;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}

.tutorial-box h2 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 15px;
}

/* Block description list */
.block-list {
  list-style: none;
  padding: 0;
  line-height: 1.4;
}

.block-list li {
  margin-bottom: 15px;
}

.block-list strong {
  color: #4fc3ff;
}

/* Close button */
.btn-close {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  background: #444;
  color: white;
  border: 1px solid #777;
  border-radius: 6px;
  cursor: pointer;
}

.btn-close:hover {
  background: #666;
}