html {
  overflow-y: scroll;
}
#title img {
  max-width: 500px;

  width: 90%;

  height: auto;
}
body {
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  font-family: sans-serif;
  margin-top: 100px;

  font-family: "Trebuchet MS", "Yu Gothic", sans-serif;
}
#backgroundLayer {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background-image: url("Miner image/background/Miner-background.png");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;

  z-index: -1;
}
h2,
h3 {
  font-family: Georgia, serif;
}

#homeButton,
#selectionButtonArea,
#playerNameArea,
#settingSummary,
#roundDisplay,
#scoreDisplay,
#selectionArea,
#roleDisplay,
#meetingDisplay,
#accompliceDisplay,
#result,
#settingsDisplay,
#ruleBookDisplay,
#historyDisplay {
  background-color: rgba(235, 230, 215, 0.75);

  border-radius: 10px;

  padding: 10px;

  margin: 10px auto;

  max-width: 400px;
}
#playerSetupArea {
  display: inline-flex;

  justify-content: center;

  gap: 20px;

  align-items: flex-start;
}
#panel {
  background-color: rgba(235, 230, 215, 0.85);

  border-radius: 10px;

  padding: 10px;

  margin: 10px auto;

  max-width: 800px;
}

/* ホーム画面での不要な表示消す用 */
#selectionButtonArea:empty,
#meetingDisplay:empty,
#roleDisplay:empty,
#result:empty,
#settingsDisplay:empty,
#ruleBookDisplay:empty,
#historyDisplay:empty,
#accompliceDisplay:empty {
  display: none;
}
/* ホーム画面での不要な表示消す用 */

#playerSelect {
  text-align: left;

  display: inline-block;
}
#historyDisplay {
  overflow-x: auto;

  margin-top: 20px;
}
button {
  background-color: rgba(50, 84, 176, 0.93);

  color: white;

  border: 2px solid rgb(130, 220, 255);

  border-radius: 8px;

  font-size: 20px;

  padding: 6px 10px;

  margin: 5px;
}
button:hover {
  background-color: rgba(34, 69, 134, 0.95);
}
button:disabled {
  background-color: rgba(120, 120, 120, 0.7);

  color: #ddd;

  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}
#ruleBookDisplay button {
  width: 200px;
}
#roleDisplay {
  font-size: 24px;

  font-weight: bold;
}
input[type="checkbox"] {
  width: 19px;

  height: 19px;
}
.ruleCard {
  text-align: left;

  border: 2px solid #444;

  border-radius: 8px;

  padding: 15px;

  margin: 15px auto;

  max-width: 600px;

  background-color: #f8f8f8;
}
.ruleCard h3 {
  text-align: center;
}
input[type="radio"] {
  width: 24px;
  height: 24px;
}
/* 採掘履歴表 */
#historyDisplay td {
  font-weight: bold;
}
#historyDisplay td,
#historyDisplay th {
  background-color: rgba(233, 229, 219, 0.95);
}

/* スマホ専用設定 */
@media screen and (max-width: 768px) {
  #title img {
    width: min(90%, 500px);

    height: auto;
  }

  body {
    font-size: 24px;
    background-attachment: scroll;
    margin-top: 20px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 28px;
  }

  button {
    font-size: 24px;

    padding: 15px 25px;

    margin: 8px;

    border-radius: 8px;
  }

  input[type="checkbox"] {
    width: 32px;

    height: 32px;
  }

  input[type="text"],
  input[type="number"] {
    width: 180px;

    font-size: 24px;

    padding: 10px;

    border: 3px solid #444;

    border-radius: 8px;
  }

  table {
    font-size: 20px;
  }

  td,
  th {
    padding: 8px;
  }
  #playerSetupArea {
    display: flex;

    flex-direction: column;

    align-items: center;
  }
}
