@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Frank+Ruhl+Libre");
* {
  font-family: '微軟正黑體';
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #315449;
  background-image: url("https://www.transparenttextures.com/patterns/pinstripe-light.png");
}

.wrapper {
  width: 100%;
  height: 100%;
  margin: 5vh auto;
}

.mobile_box {
  width: 536px;
  height: auto;
  margin: 5vh auto;
  position: relative;
  background: #F6E9E0;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1), 0px 25px 60px -10px rgba(0, 0, 0, 0.2);
  padding-bottom: 1em;
}

.title {
  font-size: 2em;
  color: #861807;
  padding-top: 1.5em;
}

input.form-control {
  display: inline-block;
  max-width: calc(100% - 10em);
}

.forget_password {
  display: inline-block;
  color: #A48B7A;
  margin-top: 0.5em;
}
.forget_password:hover {
  text-decoration: none;
  border-bottom: 1px solid #A48B7A;
}

.form-group {
  counter-increment: inst;
}

.title-label::before {
  content: counter(inst) ".";
  vertical-align: top;
}

input[type="text"], input[type="number"] {
  font-size: 1.2em;
  height: 2em;
}

form, .history {
  padding: 1em 1.6em;
}

.title-label {
  display: inline-block;
  min-width: 6.2em;
}

.button_box {
  margin-top: 2em;
}

button.btn {
  width: 100%;
  line-height: 3em;
  font-size: 1.2em;
  background: #D3B19C;
  color: #fff;
  border-radius: 0;
  cursor: pointer;
  font-weight: bold;
  -moz-box-shadow: 4px 4px 3px rgba(93, 38, 6, 0.5);
  -webkit-box-shadow: 4px 4px 3px rgba(93, 38, 6, 0.5);
  box-shadow: 4px 4px 3px rgba(93, 38, 6, 0.5);
}
button.btn:hover {
  filter: brightness(90%);
  -webkit-filter: brightness(90%);
  text-decoration: underline;
  color: #861807;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.radio-group label {
  margin: 3px;
}

.radio-button + label {
  display: inline-block;
  line-height: 2;
  vertical-align: middle;
  border: 1px dotted #315449;
  color: #111;
  text-align: left;
  box-sizing: border-box;
  padding: 0 .5em;
  margin-right: 1em;
  margin-bottom: 0;
  cursor: pointer;
}

.radio-button:checked + label {
  background-color: #AA8873;
  border: 2px solid #AA8873;
  color: white;
  transform: scale(1.1, 1.1);
}

.en .title-label {
  width: 100%;
  font-weight: bold;
}

.img_code {
  padding: 5px;
  height: 25px;
}

#tab-group {
  width: 100%;
}
#tab-group .nav-item {
  display: block;
  width: 50%;
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
}
#tab-group .nav-link {
  color: #AA8873;
  border: 1px solid #AA8873;
  background: #D3B19C;
  cursor: pointer;
}
#tab-group .nav-link.active {
  background: #F6E9E0;
  border-bottom: 0px;
  color: #861807;
  padding-top: 14px;
  margin-top: -6px;
}

.table {
  text-align: center;
}
.table td[colspan='3'] {
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  background: rgba(211, 177, 156, 0.3);
}
.table td.lh {
  font-size: 18px;
  line-height: 40px;
}
.table td.time {
  font-size: 14px;
}

.table td {
  border: 1px solid #D3B19C;
}

.navbar-dark {
  background: #325449;
  border-bottom: 1px solid #657973;
}

.red {
  color: #861807;
  font-size: bold;
  background: rgba(255, 56, 56, 0.1);
}

.btn-en {
  background: #D3B19C;
  margin-top: 0.5em;
  padding: 0.5em 1em;
  margin-right: -5px;
  float: right;
  color: #fff !important;
  box-shadow: 2px 2px 3px rgba(50, 25, 0, 0.2);
  cursor: pointer;
}
.btn-en:hover, .btn-en:active, .btn-en:focus {
  background: #AA8873;
}

@media screen and (max-width: 540px) {
  .wrapper {
    display: block;
  }

  .mobile_box {
    width: auto;
  }

  form, .history {
    padding: 0.5em;
  }

  .title-label {
    width: 100%;
    font-weight: bold;
  }

  .radio-button + label {
    margin-right: 0.5em;
  }

  input.form-control {
    max-width: calc(100% - 4em);
  }

  .btn-en {
    margin-right: 0;
  }
}