@charset "utf-8";

/* CSS Document */
* {
  padding: 0px;
  margin: 0px auto;
}

body {
  font-family: 微軟正黑體, Arial, Helvetica, sans-serif;
  font-size: 1em;
  padding: 0px;
  margin: 0px;
}

ul,
li,
ol {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

a {
  text-decoration: none;
}

/*================== 數位教材專區(最外框) ==================*/
.digital_textbook {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/*========== 次級列表 ==========*/
/* 數為教材清單 */
.digital_textbook .textbooks {
  margin: 0 2%;
}

.textbooks ul.digitalname {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;

}

.textbooks ul.digitalname li {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  font-size: 1.08rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: space-between;
  align-items: center;
}

.textbooks ul.digitalname li:nth-child(odd) {
  background: #9d4e3e0d;
}


.textbooks ul.digitalname li span {
  color: #000;
  text-align: center;
  display: inline-block;
  float: left;
}

.textbooks ul.digitalname li span:nth-child(1) {
  width: 12%;
  text-align: center;
}

.textbooks ul.digitalname li span.photo img {
  display: block;
  width: 100px;
  height: 60px;

}


.textbooks ul.digitalname li span:nth-child(2) {
  width: 32%;
  text-align: left;
  margin-left: 2%
}

.textbooks ul.digitalname li span:nth-child(3) {
  width: 18%
}

.textbooks ul.digitalname li span:nth-child(4) {
  width: 18%
}

.textbooks ul.digitalname li span:nth-child(5) {
  width: 18%
}



/*標題列*/
.textbooks ul.digitalname li.oneli {
  background: #B3513D;
  padding: 0.8rem 0;
}

.textbooks ul.digitalname li.oneli span {
  color: #fff;
  font-weight: 600;
  border-left: 1px solid #fff;
  text-align: center;
}

.textbooks ul.digitalname li.oneli span:nth-child(1) {
  border: none;
}


.textbooks ul.digitalname li.oneli span:nth-child(2) {
  margin-left: 0;
}


/*線上觀看*/
.textbooks ul.digitalname li span.watch {}

.textbooks ul.digitalname li span.watch a {
  display: inline-block;
  padding: 0.2rem 1rem;
  background: #9F6B37;
  border-radius: 2px;
  color: #fff;
}

.textbooks ul.digitalname li span.watch a:hover {
  background: #147B60;
}
.textbooks ul.digitalname li span.watch a:focus {
  outline: 2px solid #000000!important;
	background: #ffa600!important;
	color: #000!important;
	-moz-outline-style:2px solid #000000!important;
}
/*========== 彈跳視窗 ==========*/
.bouncebox {
  width: 500px;
  position: fixed;
  border: #ebebeb solid 1px;
  height: 350px;
  top: 15%;
  left: 50%;
  display: none;
  background: #ffffff;
  box-shadow: 0px 0px 20px #ddd;
  z-index: 9999;
  margin-left: -250px;
  margin-top: -140px;
  color: #545454;
}

/*名稱*/
.titlename {
  width: 90%;
  margin: 1.5rem 5% 0.5rem 5%;
  text-align: center;
  line-height: 40px;
  font-size: 1.24rem;
  position: relative;
  font-weight: 600;
  color: #a93a27;
  letter-spacing: 1px;
  border-bottom: 2px #8c707054 dashed;
  padding: 0 0 5px 0;
}

.titlename span {
  position: absolute;
  font-size: 12px;
  right: -40px;
  top: -35px;
  background: #ffffff;
  border: #a9a9a973 solid 1px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
}

.titlename span a {
  display: block;
  font-weight: bold;
  color: #454545;
}


/*輸入框*/
.bounce-content {
  padding: .5rem 2.8rem .5rem 2.5rem;
}


/*小標*/
.ube {
  display: block;
  line-height: 140%;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: #517D8A;
}

.bounce-input {
  overflow: hidden;
  margin: 0;
  display: block;
  width: 100%;
}

.bounce-input .kind {
  overflow: hidden;
  width: 100%;
  margin: 0 0 1rem 0;
}

.bounce-input label.namete {
  font-weight: 600;
}

/*驗證碼*/
.bounce-input .kind.alli .code {
  display: inline-block;
  width: auto;
  font-weight: 600;
  margin-right: 5px;

}

.bounce-input .kind.alli {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  display: flex;
}

.bounce-input .kind.alli div {
  margin: 0;
  padding: 0;
}

.bounce-input .kind.alli div:nth-child(2) {}

.bounce-input input.list-input {
  border: #c2c2c2 1px solid;
  padding: 0.8rem 1rem;
  border-radius: 3px;
  width: 100%;
  min-width: 200px;
  margin: 0 0 0 5%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/*送出按鈕*/
.bounce-button {
  width: 100%;
  margin: 0;
  text-align: center;
}

.bounce-button a {
  margin: 0 auto;
  display: inline-block;
  background: #9F6B37;
  color: #fff;
  padding: 0.6rem 2.5rem;
  border-radius: 5px;
}


.bounce-button a:hover {
  background: #147B60;
}



/*背景色*/
.bounce-bg {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0px;
  left: 0px;
  background: #ebebeb;
  filter: alpha(opacity=30);
  -moz-opacity: 0.3;
  -khtml-opacity: 0.3;
  opacity: 0.3;
  display: none;
}

/*========== 線上觀看影片頁面 ==========*/

/* 名稱 */
.videoname {
  text-align: center;
  margin: 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #885632;

}

.videobox {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.videobox iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.videobox embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*返回*/
.digital_textbook .back {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.digital_textbook .back a {
  display: inline-block;
  background: #47717B;
  color: #fff;
  border-radius: 3px;
  padding: 0.4rem 1.5rem;
  margin: 2rem 0;
}

.digital_textbook .back a:hover {
  background: #3B5F68;
}


@media only screen and (max-width:820px) {

  .textbooks ul.digitalname li span:nth-child(1) {
    width: 16%;
  }

  .textbooks ul.digitalname li span:nth-child(2) {
    width: 40%;

  }

  .textbooks ul.digitalname li span:nth-child(3) {
    width: 20%;
  }

  .textbooks ul.digitalname li span:nth-child(4) {
    width: 18%;
  }

}



@media only screen and (max-width:568px) {

  /*========== 表格 ==========*/
  .textbooks ul.digitalname {
    margin-top: 1rem;
  }

  .textbooks ul.digitalname li {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    background: #9d4e3e1a !important;
    padding: 1rem 0;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
    border-radius: 3px;
  }

  .textbooks ul.digitalname li.oneli {
    display: none;
  }

  .textbooks ul.digitalname li span {
    position: relative;
    width: 90% !important;
    padding: .5rem 0 !important;
    margin: 0 5% !important;

  }

  .textbooks ul.digitalname li span.photo img {
    width: 100%;
    height: auto;
  }

  .textbooks ul.digitalname li span.watch a {

    display: block;
  }

  .textbooks ul.digitalname li span:nth-child(4) {
    text-align: left;
    padding-left: 5.5rem !important;
  }

  .textbooks ul.digitalname li span:nth-child(4)::after {
    position: absolute;
    left: 0;
    top: 7px;
    font-weight: 600;
    content: "觀看人數 : ";


  }

  /*========== 彈跳視窗 ==========*/
  .bouncebox {
    top: 5%;
    width: 90%;
    left: 0;
    height: 410px;
    margin: 0 5%;
  }

  .titlename span {
    right: -30px;
  }

  .bounce-content {
    padding: .5rem 1rem .5rem 1rem;
  }

  .bounce-input .kind.alli div {
    margin: 0.5rem 0;
  }


  .bounce-input input.list-input {
    min-width: 190px;
  }

  .bounce-input .kind {
    margin: 0 0 0.5rem 0;
  }

  .bounce-input.gin .kind.alli {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: flex-start;
  }

  .bounce-input .kind.alli .code {
    width: 70px;
    margin-right: 0;
  }

  .bounce-input.verification input.list-input {
    min-width: 95px;
    width: 95px;
  }

}