/* Simple Reset  */
html {
  color: #000;
  font-size: 10px;
  font-size: 62.5%;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
button,
textarea,
select,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
fieldset,
img {
  border: 0;
}
address,
button,
caption,
cite,
code,
dfn,
em,
input,
optgroup,
option,
select,
strong,
textarea,
th,
var {
  font: inherit;
}
del,
ins {
  text-decoration: none;
}
li {
  list-style: none;
}
caption,
th {
  text-align: left;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}
q:before,
q:after {
  content: "";
}
abbr,
acronym {
  border: 0;
  font-variant: normal;
}
sup {
  vertical-align: baseline;
}
sub {
  vertical-align: baseline;
}
legend {
  color: #000;
}
body {
  font-family: Helvetica, Arial, "微軟正黑體", sans-serif;
  line-height: 1.25;
  font-size: 1.3rem;
  text-align: left;
  position: relative;
}
/* ad style */
#ad_container {
  width: 100%;
  margin: 0 auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; /*background-color: #ffffff;*/
  max-width: 400px;
}
#ad_container div.yap-loaded {
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
#ad_container div.yap-loaded:last-child {
  margin-bottom: 0;
}
#ad_container div.yap-loaded a {
  display: block;
  color: #000;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
#ad_container div.yap-loaded .img {
  height: 0;
  line-height: 0;
  padding-bottom: 150px;
  position: relative;
  margin-bottom: 0;
}
#ad_container div.yap-loaded .img img {
  width: 100% !important;
  height: 150px !important;
  background-size: contain !important;
  vertical-align: middle;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ffffff !important;
}

#ad_container div.yap-loaded .text {
  padding: 8px 16px;
}
#ad_container div.yap-loaded h3 {
  font-size: 2rem;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 50px;
  font-weight: 500;
  text-align:center;
}
#ad_container .yap-loaded p.desc {
  color: #000;
  font-size: 1.6rem;
  display: none;
}

#ad_container div.yap-loaded a:after {
  display: block;
  content: "開啟";
  width: 52%;
  margin: 23px auto 18px;
  border-radius: 40px;
  background-color: #0066cc;
  padding: 8px 16px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 5px;
}

#ad_container .yap-loaded div:last-child {
  bottom: 78px !important;
  right: 4px !important;
}
#ad_container .yap-loaded div:last-child span,
#ad_container .yap-loaded div:last-child b {
  font-size: 0.9rem !important;
  color: #cccccc !important;
  font-weight: normal;
  line-height: 1;
  -webkit-text-size-adjust: none;
  /* opacity: 0; */
}
