body {
  font-family: arial,"Microsoft JhengHei","微軟正黑體",sans-serif !important;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
}

.wrapper {
  margin: 0 auto;
  background-repeat-x: no-repeat;
  overflow-x: hidden;
  background-size: 100%;
}

.activity-header img, .activity-footer img {
  width: 100%;
}

.activity-content .activity-background {
  width: 100%;
  height: 100%;
}

.activity-scratchcard-block {
  position: absolute;
}

.scratchcard-header-wording {
  height: 40px;
  text-align: center;
  font-size: 20px;
  color: white;
}

.scratchcard-content {
  display: none;
  text-align: center;
}

.scratchcard-content img {
  width: 90%;
}

#scratchcardScratched {
  position: absolute;
  top: 50px;
  left: 5%;
  z-index: 1;
}

#scratchcardUnscratched {
  position: absolute;
  top: 50px;
  left: 5%;
  z-index: 2;
}

.scratchcard-content .btn-start img {
  width: 40%;
  cursor: pointer;
}

.scratchcard-content .btn-start {
  position: absolute;
  left: 0;
  z-index: 99;
}

.btn-history img {
  width: 40%;
  cursor: pointer;
}

.btn-history {
  position: absolute;
  left: 0;
  text-align: center;
  width: 100%;
}

.activity-footer {
  display: none;
  bottom: 0;
  right: 0;
}

/* 彈跳視窗 */
.modal-dialog {
  margin: 0 auto;
}

.modal-content {
  border-radius: 20px;
}

.modal-body {
  text-align: center;
  padding: 30px;
}

.modal-body .modal-title, .modal-body .modal-prize {
  font-size: 24px;
  height: 10%;
}

.modal-body .modal-description {
  font-size: 12px;
  height: 10%;
  line-height: 20px;
}

.modal-body .modal-status-description {
  font-size: 16x;
  height: 10%;
  line-height: 20px;
}

.modal-body .modal-prize,
.modal-body .modal-description,
.modal-body .modal-status-description  {
  margin-top: 10px;
}

.modal-icon-image img {
  max-width: 200px;
  max-height: 200px;
}

.modal-btn-image img {
  width: 65%;
  cursor: pointer;
}

.modal-btn-image {
  margin-top: 20px;
}

.modal-icon-image img {
  margin: 20px 0 20px 0;
}

.modal-dialog-centered {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  min-height: calc(100% - (11rem * 2));
}

.modal-content {
  width: 100%;
}

.modal-history-body {
  text-align: center;
  padding-right: 10px;
  padding-left: 10px;
  padding-top: 0;
  padding-bottom: 5px;
}

.modal-history-content,
.modal-history-none {
  height: 400px;
  overflow-y: auto;
}

.modal-history-title {
  font-size: 26px;
  margin-top: 10px;
  text-align: center;
}

.modal-history-subtitle {
  font-size: 16px;
  margin-top: 4px;
  text-align: center;
}

.modal-history-none img {
  margin-top: 15px;
  width: 45%;
}

.modal-history-none h5 {
  margin-top: 10px;
  color: #222222;
}

.modal-history-footer {
  text-align: center;
}

.modal-body button.close {
  top: 15px;
  right: 15px;
  position: absolute;
}

.prize-list .list-item {
  position: relative;
  width: 99%;
  max-width: 600px;
  background: #fff;
  border: none;
  border-radius: 5px;
  color: #b7b7b7;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 5px;
  min-height: 70px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}

.prize-list .icon {
  position: absolute;
  left: 5px;
  top: 5px;
  margin: auto;
  text-align: center;
}

.prize-list .icon img {
  width: 60px;
  height: 60px;
}

.prize-list .item-content {
  width: calc(100% - 65px);
  text-align: left;
  vertical-align: top;
  border-left: 1px solid #e1e1e1;
  padding-left: 5px;
  padding-top: 10px;
  margin-left: 65px;
  min-height: 60px;
}

.prize-list .item-content .item-value {
  font-size: 14px;
  font-weight: bold;
  color: #000000;
}

.prize-list .item-content .item-title {
  font-size: 16px;
  font-weight: 400;
  color: #6b6b6b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top:1px;
}

.prize-list .item-content .item-period {
  font-size: 12px;
  font-weight: normal;
  color: #b7b7b7;
  margin-top:2px;
}

/* 錯誤提示 */
.wrapper-error img {
  margin-bottom: 5px;
  width: 150px;
  height: 175px;
}

.wrapper-error .message-error {
  font-size: 20px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 5px;
}

.wrapper-error .message-retry {
  font-size: 18px;
  font-weight: normal;
  color: #828282;
}

.award-column.in {
    display: flex !important;
}
.award-column .modal-content {
    display: flex;
    height: 80%;
    min-height: 366px;
    flex-direction: column;
}
.award-column .modal-body-center {
    flex: 1;
    min-height: 0;
}
.award-column .modal-history-content, .modal-history-none {
    height: 100% !important;
}
.award-column .modal-dialog {
    top: 0 !important;
    width: 100% !important;
}

@media (min-width: 480px) {
  .wrapper{
	width: 480px;
  }
  
  .modal-body .description {
    font-size: 14px;
  }

  .modal-dialog-centered {
    min-height: calc(100% - (38.5rem * 2));
  }
}    	