@font-face {
  font-family: "tesla";
  src: url("./font/tesla-webfont.eot");
  src: url("./font/tesla-webfont.eot?#iefix") format("embedded-opentype"),
    url("./font/tesla-webfont.woff") format("woff"),
    url("./font/tesla-webfont.ttf") format("truetype"),
    url("./font/tesla-webfont.svg#webfont") format("svg");
  font-display: swap;
}

html,
body,
main,
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
  font-family: "Lato", Arial, sans-serif, "微軟正黑體", "Microsoft JhengHei";
}

html,
body {
  width: 100%;
  height: 100%;
  font-size: 16px;
}

a,
a:visited {
  color: #333;
  text-decoration: underline;
}

.aligncenter {
  text-align: center;
}
.alignright {
  text-align: right;
}
.floatleft {
  float: left;
}
.floatright {
  float: right;
}
.clear {
  clear: both;
}

#loading {
  clear: both;
  text-align: center;
  font-size: 1.1rem;
}

#loading i {
  display: block;
}

.tesla {
  font-family: tesla;
}

body {
  -webkit-overflow-scrolling: touch;
}

header {
  /*
background-color:#e9e9e9;
text-align:center;
padding: 0.5rem;
font-size: 1.6rem;
font-weight:bold;
border-bottom:1px solid #ccc;
*/
}

main {
  width: 100%;
  height: 100%;
  position: relative;
}

#cover {
  width: 100%;
  height: 100%;
  background: rgb(24, 75, 78);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

#cover .wrapper {
  position: absolute;
  top: 38%;
  margin-top: -0.5rem;
  left: 0;
  right: 0;
  color: #fff;
}

#popworks {
  font-family: tesla;
  font-size: 9rem;
  line-height: 1;
  text-align: center;
}

#cover h2 {
  font-size: 2rem;
  text-align: center;
}

#popworks span {
  font-family: tesla;
  -webkit-animation: spin 4s linear infinite;
  -moz-animation: spin 4s linear infinite;
  -o-animation: spin 4s linear infinite;
  animation: spin 4s linear infinite;
  display: inline-block;
}

.dummy100 {
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.dummy70 {
  width: 100%;
  height: 70%;
  visibility: hidden;
}

#services {
  width: 100%;
  height: 100%;
  background: rgb(208, 154, 71);
  z-index: 2;
  position: relative;
  padding: 2rem 4rem;
  color: #fff;
}

#services a {
  color: #fff;
}

h2 {
  font-size: 5rem;
  margin: 0.2rem 0;
  font-weight: bold;
}

#services ul.category {
  padding: 3rem 1rem 1rem;
}

#services li {
  text-align: left;
  font-size: 0.8rem;
  list-style: none;
}

#services li ul {
  padding: 1rem 0;
}

#services ul.category > li {
  font-size: 2rem;
  line-height: 1.5;
  width: 50%;
  float: left;
  display: block;
  text-align: center;
  padding: 1rem;
}

#contact {
  width: 100%;
  color: #fff;
  z-index: 2;
  position: absolute;
  bottom: 2rem;
  left: 0;
  padding: 1rem;
  text-align: center;
}

#contact h3 {
  font-size: 1.6rem;
}

#contact a {
  color: #fff;
}

footer {
  text-align: center;
  padding: 0.5rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  z-index: 88;
}

/* animation */
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-o-keyframes spin {
  100% {
    -o-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  #popworks span {
    -webkit-animation: none;
    -moz-animation: none;
    -o-animation: none;
    animation: none;
  }
}

/* media queries */
@media screen and (min-width: 481px) and (max-width: 728px) {
  #popworks {
    font-size: 5rem;
  }
}

@media screen and (max-width: 480px) {
  #popworks {
    font-size: 3rem;
  }
  #cover h2 {
    font-size: 1.2rem;
  }
}
