body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 150vh;
  min-width: 500px;
}

main {
  flex: 1;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

h2 {
  padding-left: 10px;
}

h3 {
  line-height: 1px;
}

h4 {
  line-height: 1px;
  margin: 10px;
}

select {
  color: black;
}

.inputfield-wrapper {
  display: flex;
  flex-flow: column;
  border: solid 2px;
  border-radius: 6px;
  padding: 8px;
  max-width: 500px;
  margin: 6px;
}

.inputfield-item {
  gap: 0px 0px;
}

.buff-form {
  display: flex;
  gap: 2px 1px;
  margin: 3px 0px;
  flex-wrap: wrap;
}

.button {
  color: black;
  cursor: pointer;
}

.turn-form {
  gap: 2px 0px;
}

.card-select-wrapper {
  display: flex;
  flex-flow: column;
  margin: 6px;
}

.servant-name-field {
  width: 180px;
}

.np-and-star-info {
  display: none;
}

.card-select-wrapper {
  border: solid 1px;
  border-radius: 6px;
  padding: 8px;
  background-color: white;
}

.enemy-info {
  padding: 0px 6px;
}

.turn-skill {
  padding: 6px;
}

.button-wrapper {
  display: flex;
  gap: 0 6px;
  padding: 8px 14px;
  max-width: 470px;
}

#colorcheck {
  font-size: 12px;
  margin-left: auto;
}

.notice {
  margin: 6px;
  overflow-wrap: normal;
}

.page-title {
  display: flex;
}

.turn-title {
  display: flex;
}

.turn-delete-button {
  margin-left: auto;
  cursor: pointer;
}

.open-pop-up {
  margin-top: 25px;
  margin-left: 5px;
  display: inline-block;
  border: solid;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}

#pop-up-check {
  display: none;
}

.overlay {
  display: none;
}

#pop-up-check:checked + .overlay {
  display: block;
  position: fixed;
  width: 100%;
  height: 150vh;
  top: 0;
  left: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
}

.window {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  max-width: 500px;
  padding: 15px;
  height: 750px;
  background-color: #fff;
  border-radius: 6px;
  align-items: center;
  transform: translate(-50%, -50%);
}

.pop-up-title {
  display: flex;
}

.close-pop-up {
  margin-left: auto;
  cursor: pointer;
}

.window > p {
  font-size: 12px;
}

#sample-images {
  text-align: center;
}

.note {
  margin: 0 0 0 6px;
}

/* フォームサイズ */

input {
  display: inline-block;
}

.numberfield-2digits {
  width: 40px;
}

.numberfield-3digits {
  width: 50px;
}

.numberfield-4digits {
  width: 55px;
}

.numberfield-5digits {
  width: 60px;
}

.numberfield-9digits {
  width: 100px;
}

/* 表 */

th,
td {
  border: solid 1px;
  padding: 4px;
  text-align: center;
}

table {
  border-collapse: collapse;
  margin: 8px;
}

th {
  width: 100px;
  background-color: whitesmoke;
}

.table-number {
  max-width: 48px;
}

td {
  height: 25px;
}

.cardname {
  background-color: white;
}

/* ヘッダー */

header {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  background-color: cadetblue;
}

#title {
  font-size: 20px;
  padding-left: 10px;
  margin-right: auto;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu-button {
  padding-right: 10px;
  margin-left: auto;
  color: white;
  font-size: 36px;
  cursor: pointer;
}

#menucheck {
  display: none;
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1;
  width: 40vw;
  max-width: 250px;
  height: 150vh;
  display: flex;
  flex-direction: column;
  align-items: top;
  justify-content: start;
  background: darkolivegreen;
}
.menu__item {
  width: 100%;
  height: auto;
  padding: 0.5em 1em;
  text-align: center;
  box-sizing: border-box;
}

.menu__item > a {
  color: #fff;
  text-decoration: none;
}

.menu {
  transform: translateX(40vw);
  transition: all 0.2s linear;
}

.menu.is-active {
  transform: translateX(0);
}

#menu-close-button {
  margin-left: auto;
  cursor: pointer;
}

footer {
  display: flex;
  height: 50px;
  width: 100%;
  border-top: solid gray 1px;
  margin-top: 50px;
}

.footer-item {
  margin: auto;
  color: gray;
  text-decoration: none;
  font-size: 13px;
}

.footer-item:hover {
  color: black;
}

/* ランダムチェッカー */

@media screen and (max-width: 600px) {
  .numberfield-5digits {
    width: 35px;
  }

  .numberfield-2digits {
    width: 25px;
  }

  .goal-damage {
    display: none;
  }

  .result-window-button {
    display: none;
  }

  table {
    font-size: 12px;
  }

  .buff-form {
    font-size: 12px;
  }
}
