body {
  background-color: #111;
  color: #eee;
  font-family: "Microsoft JhengHei", sans-serif;
  margin: 0;
  padding: 1rem;
}

h1 {
  text-align: center;
  color: #42aaff;
  margin-bottom: 1rem;
}

.container {
  max-width: 1000px;
  margin: auto;
}

.section-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  flex: 1;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #42aaff;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.form-group {
  flex: 1;
  min-width: 120px;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: #aaa;
}

input,
select {
  width: 100%;
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 0.3rem;
  border-radius: 4px;
}

select {
  scrollbar-color: #666 #222;
  scrollbar-width: thin;
}

select::-webkit-scrollbar {
  width: 8px;
}

select::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

.result-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.result-info {
  flex: 1;
}

.result-value {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  width: 50%;
}

.result-value.low {
  color: #ff4c4c;
}

.result-value.mid {
  color: #ffa500;
}

.result-value.high {
  color: #00cc66;
}

.monster-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.monster-image {
  height: 64px;
  width: 100%;
  object-fit: contain;
}

.monster-info {
  flex: 1;
}

.attack-options {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.attack-options label {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

input[type="radio"] {
  appearance: none;
  border: 2px solid #888;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  transition: 0.2s all ease-in-out;
  background: #222;
  position: relative;
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #42aaff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 768px) {
  .section-row {
    flex-direction: column;
  }

  .monster-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .monster-image {
    width: auto;
    max-width: 120px;
    height: auto;
  }

  .monster-info {
    text-align: center;
  }

  .attack-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .result-box {
    flex-direction: column;
    align-items: center;
  }

  .result-info {
    width: 100%;
  }

  .result-value {
    font-size: 1.4rem;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
  }

  input,
  select {
    font-size: 1.1rem;
    padding: 0.5rem;
  }

  .section {
    padding: 1rem;
  }

  label {
    font-size: 1rem;
  }

  #search {
    font-size: 1.1rem;
    padding: 0.5rem;
  }

  #mobs {
    min-height: 8rem;
  }
}
