@font-face {font-family: 'Roboto';  font-style: normal;  font-weight: 400;  src: local('Roboto'), local('Roboto-Regular'), url(roboto400.woff2) format('woff2');}
@font-face {font-family: 'Roboto';  font-style: normal;  font-weight: 300;  src: local('Roboto Light'), local('Roboto-Light'), url(roboto300.woff2) format('woff2');}
/*
html, body, div, span, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, q, pre, a, img, strong, sub, sup, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, canvas, footer, header, section {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	font-size: 100%;
	font-weight: 300;
	vertical-align: baseline;
}

*/

html {
	font: inherit;
	font-size: 10px;
	font-weight: 400;
  scroll-behavior: smooth;
  font-family: "SF Pro SC","SF Pro Display","SF Pro Icons","PingFang SC","Helvetica Neue","Helvetica","Arial",sans-serif;
}

body {
	font-size: 1.6rem;
}

*, *:before, *:after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}

footer, header, section {
	display: block;
}

body {
	line-height: 100%;
}

h1, h2 {
	font-weight: 600;
}

h3 {
  font-weight: 400;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	text-size-adjust: none;
  font-family: "SF Pro SC","SF Pro Display","SF Pro Icons","PingFang SC",STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体","Helvetica Neue","Helvetica","Arial",sans-serif;
}

.image {
  display: inline-block;
  position: relative;
}

#header {
	width: 100vw;
	height: 100vh;
	background-image: url("images/bg_header.jpg");
	background-attachment: fixed;
  background-size: cover; 
  background-position: center center;
	background-repeat: no-repeat;
	color: rgba(255, 255, 255, 0.5);
}

#header-overlay {
  position: absolute;
  width:100vw;
  height:100vh;
  top:0;left:0;
	text-align: center;
	padding: 5vmin 5vmin 5vmin 5vmin;
	background: linear-gradient(rgba(36, 63, 141,0.9) 0%, rgba(36, 63, 141, 0.6) 100%);
}

#header-content {
  position:absolute;
  left:50vw;top:50vh;
  transform: translate(-50%,-50%);
}

#header h3 {
  color:white;
	font-size:3vmin;
  font-weight: 400;
  letter-spacing: 1px;
  padding-top:10px;
  line-height: 1.5;
}

#header h2 {
  color:white;
	font-size:40px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 5px;
  line-height: 1.5;
  text-transform: uppercase;
  word-break: keep-all;
}

#header-arrows {
    width: 41px;
    height: 72px;
    position: absolute;
    left: 50%;
    margin-left: -20px;
    bottom: 20px;
}

#header-arrows path {
    stroke: #03b297;
    fill: transparent;
    stroke-width: 2px;
    animation: arrow 2s infinite;
    animation-delay: -0.5s;
}
#header-arrows path:first-of-type {animation-delay: -1s;}
#header-arrows path:last-of-type {animation-delay: 0s;}


@keyframes arrow {
  0%,100%,80% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}
#footer {
	width: 100%;
}
#footer-overlay {
	text-align: right;
	padding-bottom: 1em;
	padding-right: 2em;
}

ul#footer-ul {
  line-height: 1.5;
  color:rgba(0,0,0,0.54);
}

ul#footer-ul a {
  color:rgba(0,0,0,0.54);
  text-decoration: none;
}

ul#footer-ul a:visited {
  color:rgba(0,0,0,0.54);
  text-decoration: none;
}

ul#footer-ul a:hover {
  color:rgba(0,0,0,0.54);
  text-decoration: underline;
}

ul#footer-ul a:active {
  color:rgba(0,0,0,0.54);
  text-decoration: underline;
}

#main {
	width: 100%;
	color: rgba(0,0,0,0.54);
	line-height: 125%;
}

section {
  padding-top: 50px;
  padding-bottom: 50px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.colored-section {
  background-color: #f5f1f4;
}
.limited-width {
  max-width: 960px;
}

.section-header {
  text-align: center;
  position: relative;
  margin-bottom: 50px;
}

.section-header h2 {
    text-transform: uppercase;
    font-size: 3.1rem;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 800;
    color: #333;
}

.section-header h2::after {
    content: "";
    height: 1px;
    left: 50%;
    margin-left: -50px;
    margin-top: 50px;
    position: absolute;
    width: 100px;
    background-color: #243f8d;
}


#logo {
  height: 6vmin;
  object-fit: cover;
  position: absolute;
  left:1em;
  top:1em;
}
/* About  */

#avatar {
}

#avatar img {
  width:200px;
  max-width:200px;
  height:200px;
  max-height:200px;
  border-radius: 50%;
}

#intro {
  padding: 30px 10px;
  font-weight: normal;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
}



/* Product */


ul#product-menu {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;  
  padding-bottom: 20px;
}

ul#product-menu>li {
  font-size: 2rem;
  font-weight: 400;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.5s ease 0s;
  display: inline-block;
}

ul#product-menu>li.active {
  color: #243f8d;
}

#product-details-container {
  width: 100%;
  position: relative;
  display:inline-block;
  overflow-x: hidden;
}

ul#product-details {
  width: 400%;
  position: relative;
  left: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  transition: left 0.5s ease 0s;
}

ul#product-details>li {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 15px;
}

#product-detail-dm { background-color: rgba(248, 240, 148, 0.75);}
#product-detail-st { background-color: rgba(189, 227, 240, 0.75);}
#product-detail-dd { background-color: rgba(57,61,90,0.2);}
#product-detail-bk { background-color: rgba(251, 217, 187, 0.75);}

.product-detail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}

.product-image {
  width: 30%;
}

.product-image img {
  width: 100%;
  object-fit: cover;
  filter: drop-shadow(5px 5px 5px #777);
}

.product-description {
  width: 60%;
  padding-left:20px;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  color:#333;
}

.product-description-text {
  line-height: 180%;
}

.product-description-text-item {
  line-height: 180%;
  padding-top: 20px;
  font-weight: 600;
}

.product-description-qrcodes {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  width: 100%;
}

.product-description-qrcodes img {
  height: 160px;
  object-fit: cover;
}

.product-description-buttons {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 8px;
  width: 100%;
}

.product-description-buttons img {
  height: 40px;
  object-fit: cover;
}

.reg {
  vertical-align: super; 
  font-size:70%;
}

/*--------------------------------------------*/





/*
  Small Screen, most likely phone 
  Render as:
    Header
    Main
    Footer
*/

@media screen and (max-width: 960px) { 
	#footer {
	}
	#header {
	}
}

/*
  Big Screen, most likely tablets or computers
  Render header and footer as sidebar

@media screen and (min-width: 961px) { 
	#header {
		width: 30%;
		height: 100%;
		left: 0;
		top: 0;
		position: fixed;
		background-size: auto, auto 100%;
	}
	#footer {
		width: 30%;
		bottom: 0;
		left: 0;
		position: fixed;
	}
	#main {
		margin-left: 30%;
		max-width: 54em;
		width: calc(100% - 30%);
	}
}
*/

@media screen and (max-width: 700px) { 
  #main {
  	padding: 2em 1em 1em 1em;
  }
  
  ul#portfolio-projects>li.project-card {
    flex-basis: 50%;
  }
}


@media screen and (max-width: 760px) { 
  #hobby>ul {
    flex-wrap: wrap;
  }

  #hobby>ul>li {
    width: 100%;
  }

  .product-detail {
    flex-direction: column;
    align-items: center;
  }
  .product-image {
    width: 90%;
    max-width: 400px;
  }
  .product-description {
    width: 90%;
  }
  .product-description-buttons {
    justify-content: center;
  }
}


@media screen and (max-width: 420px) { 
  #main {
  	padding: 2em 1em 1em 1em;
  }
  ul#product-menu>li {
    padding: 6px 6px;
    font-size: 1.4rem;
  }
  ul#portfolio-projects>li.project-card {
    flex-basis: 100%;
  }
}
