/* for base.html */
* {
  box-sizing: border-box;
}

/* media query */
@media screen and (min-width: 375px) {
  .container {
    max-width: 345px;
  }
  #pattern2_output td {
    max-width: 245px;
  }
}
@media screen and (min-width: 400px) {
  .container {
    max-width: 370px;
  }
  #pattern2_output td {
    max-width: 270px;
  }
}
@media screen and (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  #pattern2_output td {
    max-width: 440px;
  }
}
@media screen and (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  #pattern2_output td {
    max-width: 620px;
  }
}
@media screen and (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  #pattern2_output td {
    max-width: 860px;
  }
}
@media screen and (min-width:1280px) {
  .container {
    max-width: 1200px;
  }
  #pattern2_output td {
    max-width: 1100px;
  }
}

/* background color */
.background, body::before {
  background-color: #111;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* link */
a:link {
  color: dodgerblue;
}
a:visited {
  color: mediumvioletred;
}
a:hover {
  color: orangered;
}
a:active {
  color: indigo;
}

/* sub styles */
.inline_block: {
  display: inline-block;
}
.center {
  text-align: center;
}
.margin {
  margin-left: 20px;
  margin-bottom: 3px;
}
.whitespace_s {
  margin-bottom: 100px;
}
.whitespace {
  margin-bottom: 200px;
}
.separator {
  margin: 0px 15px 0px 15px;
}

/* important */
body {
  font-family: 'メイリオ', 'Meiryo', 'Noto Sans JP', sans-serif;
  color: #ddd;
  margin: 0;
  padding: 0;
}
header {
  background: #2c2c2c;
  margin: 0;
  padding: 0.5em 0 0.5em 1em;
}
header h1 {
  padding: 0;
  margin: 0;
}
header nav {
  display: block;
  margin: 0px;
  padding: 0;
}
footer {
  padding-left: 10px;
}
footer .author {
  text-align: center;
}
.container {
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0 10px 0;
}
.ui, .foot_description {
  width: 100%;
  text-align: left;
}

/* interface */
input[type=number], select {
  font-size: 120%;
  border: 1px solid #aaa;
  border-radius: 0.25em;
  margin: 0 2px 0 2px;
}
input[type=number] {
  min-width: 2em;
  max-width: 6em;
}
input[type=button], button {
  font-size: 120%;
  border: 1px solid #aaa;
  border-radius: 0.25em;
  background: #eee;
  margin: 0 1px 0 1px;
}
input[type=button]:hover, button:hover {
  background-color: #d8d8d8;
}
input[type=button]:active, button:active {
  background-color: #aaa;
}
textarea {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 5.5em;
  font-size: 1.25em;
  color: #111;
  border: 2px groove white;
  background-color: #eee;
  resize: vertical;
  letter-spacing: 0.5em;
}
fieldset {
  margin-top: 20px;
  border: 3px groove #ddd;
  border-radius: 0.3em;
}
fieldset legend {
  text-align: center;
}

/* miscellious */
.flexbox {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 9em;
  border: 1px solid #333;
  border-radius: 0.5em;
  overflow: hidden;
  padding: 0;
  margin: 1px 0 1px 0;
}
.flexhead {
  flex: 1 1 auto;
  max-width: 1.5em;
  writing-mode: vertical-rl;
  text-align: center;
  vertical-align: middle;
  background-color: #333;
}
.flexbody {
  flex: 1 0 auto;
}
.mode2_array2 {
  width: 100%;
  display: none;
}
#pattern2_output {
  border-collapse: collapse;
}
#pattern2_output td {
  min-width: 25%;
  word-wrap: break-word;
}
#pattern2_output th, #pattern2_output td {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

/* sign color */
#error {
  color: orange;
}
#warn {
  color: gold;
}
#mode_sign, #mode2_sign, #auto_sign, #ignore_sign {
  font-weight: bold;
}
.mode_simple {
  color: dodgerblue;
}
.mode_multiple {
  color: tomato;
}
.enabled {
  color: violet;
}
.disabled {
  color: darkblue;
}