body {
  background: #96c0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  font-family: sans-serif;
}

h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.badge {
  background: #4caf50;
  color: white;
  border-radius: 50%;
  font-size: 0.9rem;
  padding: 2px 8px;
  vertical-align: middle;
}

#info {
  margin-bottom: 10px;
  font-size: 1rem;
}

table {
  border-collapse: collapse;
  background: #f0f0f0;
  border: 2px solid #ccc;
}

td {
  width: 38px;
  height: 38px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 24px;
  cursor: pointer;
  background: #f8f8f8;
}

td:hover {
  background: #e0e0e0;
}

.footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 460px;
  background: rgb(234, 254, 107);
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 16px;
}

button {
  background: #319e95;
  color: rgb(248, 193, 193);
  border: none;
  padding: 10px 36px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #59d7b8;
}

#rule{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#rule.show {
  display: flex;
}

.rulebox {
  background: white;
  border-radius: 8px;
  padding: 28px 32px;
  max-width: 360px;
  width: 90%;
}

.rulebox h2 {
  margin-bottom: 14px;
}

.rulebox ul {
  padding-left: 18px;
  line-height: 2;
}

.rulebox button {
  margin-top: 20px;
  width: 100%;
}