*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  /* overflow: hidden; */
  overflow-x: hidden;
  position: relative;
  left: 0px;
  top: 0px;
  font-family: sans-serif, serif, "Noto Sans CJK TC", "Microsoft JhengHei", PingFang, STHeiti;
  letter-spacing: .05rem;
  font-size: 14px;
}

#container {
  display: flex;
  flex-direction: column;
  height: 100%;
  
}

header {
  flex: 0 0 auto;
  box-shadow: #aaaaaa 1px 0px 3px;
}

.main {
  flex: 1 0 auto;
  background-color: rgba(196, 196, 196, .2);
}

footer {
  flex: 0 0 auto;
  width: 100%;
  background-color: #00356F;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: small;
}

footer p {
  margin-bottom: 0%;
}

/* 初始設定 end */

.content {
  margin: 0 auto;
  margin-top: 2rem;
  margin-bottom: 10rem;
  width: 90%;
  max-width: 1920px;
}
.bb-dashed {
  border-bottom: 1px dashed #c9c0c0;
}

.bb-solid{
  border-bottom: 1px solid #c9c0c0;
}

li {
  list-style: none;
}

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

a:hover {
  color: #ff5171;
}

a:active {
  color: #c33c54;
}
nav{
  box-shadow: 0px 2px 3px #e4e4e4;
}
.navbar li {
  color: #5a5a5a;
}

.nav-link:hover {
  color: #da2f4f!important;
}

.navbar a:hover {
  color: #ff5171;
}


.navbar-brand{
  color: #725e54 !important;
  font-weight: bold;
  letter-spacing: .2rem;
}

.dropdown-item:hover {
  background-color: #fcf7f8;
}

.dropdown-item:active {
  background-color: #c9c0c0;
}

/* button */

.btn-w100 {
  width: 100%;
  border: solid 1.5px #6d6875;
  border-radius: .25rem;
  padding: .75rem 0;
  font-size: .8rem;
  letter-spacing: .05rem;
}
.btn-w50 {
  width: 50%;
  border: solid 1.5px #6d6875;
  border-radius: .25rem;
  padding: .75rem 0;
  font-size: .8rem;
  letter-spacing: .05rem;
  margin: .25rem;
}

.btn-lg {
  font-size: 1rem;
}

.btn-normal {
  border: 1.5px;
  border-radius: .25rem;
  padding: .75rem;
  font-size: .8rem;
  letter-spacing: .05rem;
  margin: .25rem;
}

.btn-sm {
  border: 1.5px;
  border-radius: .25rem;
  padding: .5rem;
  font-size: .8rem;
  letter-spacing: .05rem;
  margin: .25rem;
}

.btn-cancel {
  background-color: #fff;
  border: 1px solid #725e54;
  color: #725e54;
}

.btn-cancel:hover {
  background-color: #c9c0c0;
  border: 1px solid #c9c0c0;
  color: #fff;
}

.btn-blue {
  background-color: #00356F;
  border: 1px solid #00356F;
  color: #fff;
}

.btn-blue:hover {
  background-color: #145396;
  border: 1px solid #145396;
  color: #fff;
}

.btn-blue:active {
  background-color: #002b58;
  border: 1px solid #002b58;
  color: rgb(202, 202, 202);
}

.btn-red {
  background-color: #da2f4f;
  border: 1px solid #da2f4f;
  color: #fff;
}

.btn-red:hover {
  background-color: #f74767;
  border: 1px solid #f74767;
  color: #fff;
}

.btn-red:active {
  background-color: #c33c54;
  border: 1px solid #c33c54;
  color: #fff;
}

/* dataTable */

.dataTables_wrapper .dataTables_paginate {
  float: none;
  text-align: center;
  margin-top: 5rem;
}

table.dataTable td {
  background-color: rgba(0, 0, 0, 0);
  border-bottom: 1px solid #c9c0c0;
}

table.dataTable tbody tr:hover {
  background-color: #FFC;
}

table.dataTable thead th, table.dataTable thead td, table.dataTable.no-footer {
  border-bottom: none;
}

table.dataTable thead th, table.dataTable tbody td {
  padding: .5rem .5rem;
  line-height: 1.25rem;
}
table a{
  color: #002b58;
}
table a:hover{
  color: #145396;
}
table a:active{
  color: #002b58;
}
.th-label {
  display: none;
}

table {
  font-size: 14px;
  width: 100%;
}

table.dataTable thead {
  background-color: #92817a;
  color: #fff;
}
/* table-index */
table.mb-table-index tr {
  margin-bottom: .5rem;
  display: block;
  border-radius: .5rem;
  padding: .25rem;
  
}
table.mb-table-index thead tr {
  padding: 0;
  margin-bottom: 0;
  
}
table.mb-table-index tbody tr {
  background-color: #fff;
  
}
table.mb-table-index td {
  display: block;
  font-size: 14px;
  border-bottom: 1px dotted #c9c0c0;
 
}
table.dataTable tbody td:first-child{
  display: none;
}
table.mb-table-index td:last-child {
  border-bottom: 0;
  text-align: start;
}
.th-label {
  font-size: .75rem;
  color: #da2f4f;
  display: block;
  margin-bottom: .5rem ;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  table.mb-table {
    border: 0;
  }
  table.mb-table thead {
    display: none;
  }
  table.th-show thead {
    display: block;
  }
  table.mb-table tr {
    margin-bottom: 16px;
    display: block;
    border-radius: .5rem;
    padding: .5rem;
  }
  table.mb-table thead tr {
    padding: 0;
    margin-bottom: 0;
  }
  table.mb-table tbody tr {
    background-color: #fcf7f8;
  }
  table.mb-table td {
    display: block;
    font-size: 16px;
    border-bottom: 1px dotted #c9c0c0;
  }
  table.dataTable tbody td:first-child{
    display: none;
  }
  table.mb-table td:last-child {
    border-bottom: 0;
    text-align: center;
  }
  
}

/* login */
.login-box {
  height: 80vh;
  max-width: 480px;
  background-color: rgb(255, 255, 255, 0.5);
  border-radius: 1rem;
  box-shadow: .1rem .1rem .3rem rgb(185, 185, 185);
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding: 3rem;
}

.logo-box {
  height: 15vh;
  width: 80%;
  border-bottom: 1px dashed #c4c4c4;
}

.login-box img {
  max-height: 70px;
  max-width: 100%;
  margin-bottom: 1rem;
}

.login-info {
  width: 80%;
}

/* video-play */
.video-play-info {
  padding-bottom: 1rem;
}

.play-area {
  padding: 1rem 1rem 1rem 0;
  
  margin: 0 auto;
}
.video-play-title{
  color: #00356F;
  font-size: 1.5rem;
  font-weight: bold;
}
.info-title{
  color: #00356F; 
  font-size:1.25rem;
  font-weight: 500;
  padding-bottom: .5rem;
}
.info-con{
  padding-bottom: 1rem;
}
.info-con span{
  display: block;
  padding: .25rem;
  font-size: 1rem;
}
.info-tip{
  padding: 1rem .25rem;
  line-height: 2rem;
}
.info-other{
  padding: 1rem .25rem;
}

.video-box {
  background-color: #adb5bd;
  width: 100%;
  padding-top: 56.25%;
  /* 1:1 Aspect Ratio */
  position: relative;
}

/* index */
.index-box-title {
  color: #00356F;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  margin: 1rem;
  
}

.course-box-fram {
  padding: 0 .5rem .5rem .5rem;
}

.course-box {
  border: 3px solid #fff;
  border-radius: .75rem;
}

.course-box:hover {
  background-color: #FFC;
}

.course-img-box {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid #fff;
  border-top-left-radius: .75rem;
  border-bottom-left-radius: .75rem;

}

.course-img-box img {
  width: 80%;
}

.course-info-box {
  padding: 1rem;
}

.course-info-title {
  color: #00356F;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.course-info-title a {
  color: #00356F;
}

.course-info-title a:hover {
  color: #da2f4f;
}

.course-info-con {
  padding-bottom: .5rem;
  margin-bottom: .75rem;
}

.course-info-con span {
  margin-bottom: .25rem;
  font-size: .75rem;
  display: block;
}

.course-info-tips {
  font-size: .75rem;
  padding-bottom: .5rem;
  margin-bottom: .75rem;
}

.course-info-other {
  font-size: .75rem;
}
/* video-list */
.course-box-fram-list {
  padding: 0 .75rem .75rem .75rem;
}
