body {
  font-family: "Inter", "ui-sans-serif", "system-ui", "-apple-system",
    "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "Noto Sans", "sans-serif",
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.4;
  font-size: 13px;
  background: #bcbeb0;
  margin: 0;
  padding: 30px 10px;
  color: #112211;
}

pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace !important;
}

a {
  color: #336699;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong,
h2,
h3,
h4 {
  font-weight: 600;
}

#wrap {
  max-width: 940px;
  background: #fff;
  margin: 0 auto;
  padding: 10px;
  box-shadow: 1px 0 5px #989898, -1px 0 5px #989898;
}

#header {
  background: #000;
  background: linear-gradient(0deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(68, 68, 68, 1) 100%);
  padding: 40px 20px 20px;
}

#header h1 {
  margin: 0;
  font-weight: 400;
  color: #fff;
  font-size: 40px;
  line-height: 40px;
}

#header h1 a {
  text-decoration: none;
  color: inherit;
}

#header h1 a:hover {
  text-decoration: none;
  color: #eee;
}

#header h2 {
  font-size: 16px;
  margin: 0;
  color: #eee;
  font-weight: 400;
}

#header h2 a {
  font-size: 24px;
  margin: 0;
  color: #ff0;
}

#header h3 {
  font-size: 12px;
  margin: 0;
  color: #eee;
  font-weight: 400;
}

#menu {
  background: #000;
  background: linear-gradient(0deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(68, 68, 68, 1) 100%);

  padding: 0 10px;
  height: 40px;
  line-height: 40px;
  font-weight: 300;
}

#menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#menu>ul {
  display: flex;
  flex-direction: row;
}

#menu ul li a {
  display: block;
  padding: 0 10px 0 10px;
  text-decoration: none;
  color: #fff;
}

#menu ul li.service {
  position: relative;
}

#menu ul li.service ul {
  display: none;
  position: absolute;
  width: max-content;
  background: #555;
  z-index: 100;
}

#menu ul li.service.active {
  color: #fff;
  background: #282828;
}

#menu ul li.service.active ul {
  display: block;
}

#menu ul li.service.active ul:has(> :nth-child(10)) {
  display: grid;
  grid-template-columns: auto auto;
}

@media (pointer: fine) {
  #menu ul li a:hover {
    color: #fff;
    background: #282828;
  }

  #menu ul li.service:hover ul {
    display: block;
  }

  #menu ul li.service:hover ul:has(> :nth-child(10)) {
    display: grid;
    grid-template-columns: auto auto;
  }
}

@media (max-width: 659px) {
  #menu {
    height: fit-content;
    text-align: center;
    padding: 0;
    line-height: 35px;
  }

  #menu>ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    height: fit-content;
  }

  #menu ul li.service ul {
    left: 50%;
    transform: translateX(-50%);
  }
}

#contentwrap {
  margin: 0 auto;
  padding: 20px 0 20px 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
}

#contentwrap:not(:has(#sidebar)) {
  padding-right: 10px;
}

#content {
  width: 100%;
  max-width: 660px;
}

#content h2 {
  margin: 0;
  color: #454545;
  line-height: 30px;
  font-weight: 600;
  font-size: 27px;
}

#content p {
  padding: 0 0 10px 0;
  color: #232323;
}

#content.service-list img {
  display: block;
  margin: 0 auto 10px;
  max-height: 400px;
  max-width: 100%;
}

#content.service-list ul {
  margin-block: 0;
  padding-block: 1em;
  padding-inline: 2rem 1rem;
}

#content.service-list li>ul {
  padding-block-start: 0.25em;
}

#sidebar {
  margin-left: auto;
  width: 250px;
}

#sidebar h3 {
  background: rgb(34, 34, 34);
  background: linear-gradient(0deg,
      rgba(34, 34, 34, 1) 0%,
      rgba(102, 102, 102, 1) 100%);
  height: 30px;
  line-height: 30px;
  font-weight: 400;
  margin: 0;
  padding: 0 0 0 10px;
  color: #fff;
}

#sidebar h4 {
  margin-block: 5px;
  padding: 0 5px;
}

#sidebar p {
  padding: 0 10px 10px;
  color: #232323;
}

#sidebar ul {
  padding-inline: 15px 0;
  margin-block: 15px 20px;
  color: #666666;
}

#sidebar img+ul {
  margin-block-start: 5px;
}

#sidebar ul li {
  background: no-repeat top left;
  margin: 5px;
}

#sidebar li ul {
  margin-block: 0 0.5em;
}

#sidebar ul li a:has(img) {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}

#footer {
  color: #fff;
  background-color: #555;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 40px;
}

#footer p {
  padding: 5px;
  margin: 0;
}

#footer a {
  color: #fff;
}

/* Junsu */
.notice_title {
  font-size: 15px;
  font-weight: 700;
  color: gray;
  padding: 5px 0px 5px 0px;
}

.notice_box {
  border: 4px gray solid;
  margin: 5px 0px 5px 0px;
  padding: 10px 20px 10px 20px;
}

.errmsg_title {
  font-size: 15px;
  font-weight: 700;
  color: red;
  padding: 5px 0px 5px 0px;
}

.errmsg_box {
  font-size: 13px;
  border: 4px red solid;
  margin: 5px 0px 5px 0px;
  padding: 10px 20px 10px 20px;
}

/* Submit Form */
.para_title {
  text-align: center;
  font-weight: 700;
  background: #ccc;
  font-size: 20px;
  color: #333;
  padding: 10px;
  border-top: 0px solid #24130f;
  border-left: 0px solid #24130f;
  border-right: 1px solid #24130f;
  border-bottom: 1px solid #24130f;
}

table.submit {
  width: 100%;
}

td.submit_page_title {
  text-align: center;
  background: #ccc;
  font-size: 20px;
  color: #333;
  padding: 10px 0px 10px 0px;
  border-top: 0px solid #24130f;
  border-left: 0px solid #24130f;
  border-right: 1px solid #24130f;
  border-bottom: 1px solid #24130f;
}

td.submit_header {
  text-align: center;
  background: #777;
  font-size: 16px;
  color: #ffffff;
  padding: 4px 0px 4px 0px;
  border-top: 0px solid #24130f;
  border-left: 0px solid #24130f;
  border-right: 1px solid #24130f;
  border-bottom: 1px solid #24130f;
}

td.submit_title {
  width: 20%;
  min-width: 100px;
  max-width: 150px;
  height: 40px;
  text-align: left;
}

td.submit_input {
  text-align: left;
}

.submit-multi-inputs {
  display: flex;
  row-gap: 3px;
  flex-wrap: wrap;
  white-space: nowrap;
}

.submit-multi-inputs:not(:last-child) {
  margin-bottom: 3px;
}

.submit-multi-inputs>* {
  flex: 1 1 0;
  box-sizing: border-box;
  padding-right: 10px;
}

.submit_input :has(> input[type="checkbox"]) {
  display: flex;
  align-items: center;
  column-gap: 3px;
}

td input[type="text"],
td input[type="email"],
td input[type="file"],
td textarea {
  box-sizing: border-box;
  width: 100%;
}

td input[type="text"]:not(:only-of-type),
td input[type="email"]:not(:only-of-type),
td .submit-multi-inputs input {
  max-width: 100%;
  width: 100px;
}

table.submit,
td.submit_title,
td.submit_input {
  border-top: 0px solid #24130f;
  border-left: 0px solid #24130f;
  border-right: 0px solid #24130f;
  border-bottom: 0px solid #24130f;
}

/* View Form */
div:has(> table.view) {
  width: 100%;
  overflow: scroll;
}

table.view {
  width: 100%;
}

table.view th {
  color: #ffffff;
  background: #777;
  padding: 5px 0px 5px 0px;
}

table.view td {
  text-align: center;
  border-top: 0px solid #24130f;
  border-left: 0px solid #24130f;
  border-right: 1px solid #24130f;
  border-bottom: 1px solid #24130f;
}

table.view td.desc {
  text-align: center;
}

.help_title {
  text-align: center;
  font-weight: 600;
  background: #ccd;
  font-size: 16px;
  color: #333;
  padding: 10px 10px 10px 10px;
  border-top: 0px solid #24130f;
  border-left: 0px solid #24130f;
  border-right: 0px solid #24130f;
  border-bottom: 2px solid #24130f;
  max-width: 300px;
}

/* Progress Bar */
#report_status {
  margin: 0px 0px 10px 0px;
  padding-bottom: 20px;
}

#report_status ul {
  display: flex;
  flex-direction: row;
  text-align: center;
  margin: 0;
  margin-block: 0;
  padding: 8px 0px 0px 0px;
  list-style: none;
  line-height: normal;
}

#report_status ul li {
  display: block;
  background: no-repeat left 10px;
  text-align: center;
  width: 70px;
  height: 40px;
  border: 1px solid #e0e0e0;
  padding: 10px 8px 10px 8px;
  margin: 5px 3px 5px 3px;
}

img.help {
  display: block;
  border: 3px solid #444;
  margin: 10px 0px 10px 0px;
  padding: 2px 2px 2px 2px;
  max-width: 550px;
}

img.center {
  display: block;
  margin: 0px auto;
}

.center {
  text-align: center;
}

.larger {
  font-size: 1.1em;
}

.larger ul {
  font-size: 1.2em;
}

#content.article {
  width: 100%;
  max-width: 720px;
  font-family: "Times New Roman", Times, serif !important;
}

#content.article .authors {
  text-align: center;
  margin-block: 1em;
}

#content.article .authors p {
  line-height: normal;
  margin: 0;
  padding: 0;
}

#content.article .authors> :not([hidden])~ :not([hidden]) {
  margin-top: 0.5rem;
}

#content.article article {
  font-size: 1.2em;
  hyphens: auto;
  text-wrap: pretty;
  margin-inline: 20px;
}

#content.article article h3 {
  margin-block-end: 0;
}

#content.article article pre {
  font-size: 0.75em;
  overflow-x: scroll;
}

#content.article article div {
  margin-block: 1em;
}

#content.article article,
#content.article article>div {
  margin-inline: 20px;
}

@media (max-width: 959px) {
  #contentwrap {
    flex-direction: column;
    padding-left: 10px;
    padding-right: 10px;
  }

  #content {
    max-width: none;
    margin: 0 auto;
  }

  #content.service-list ul {
    padding-block: 0.5rem;
    padding-inline: 1rem 0.5rem;
  }

  #content.service-list li>ul {
    padding-block-start: 0;
  }

  /* queue paginator */
  #content h4.center {
    margin-left: 10px;
    margin-right: 10px;
  }

  #content.article article,
  #content.article article>div {
    margin-inline: 5px;
  }

  #sidebar {
    width: 100%;
  }

  #contentwrap>#sidebar {
    margin-top: 20px;
  }

  .help_title {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
  }

  img.help {
    border: 2px solid #444;
    margin: 5px auto;
    width: 100%;
    box-sizing: border-box;
  }

  ul,
  ol {
    margin-block: 5px;
    padding-inline-start: 20px;
  }

  .submit-multi-inputs {
    flex-direction: column;
  }

  .submit-multi-inputs>* {
    padding-right: 0;
  }
}
