html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  font-family: "Microsoft JhengHei", sans-serif;
}

img {
  image-rendering: pixelated;
}

* {
  box-sizing: border-box;
}

.container {
  position: relative;
}

/* background video */
.background {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  object-fit: cover;
}

/* dropdown menu */
.menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1em;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: inline-block;
}

li {
  float: left;
  font-weight: bold;
}

li a, .dropbtn {
  display: inline-block;
  padding: 14px 26px;
  text-align: center;
  text-decoration: none;
  color: white;
}

.dropcontent {
  display: none;
  position: absolute;
  min-width: 100px;
  z-index: 1;
}

.dropdown:hover .dropcontent {
  display: block;
}

li.dropdown {
  display: inline-block;
}

.dropcontent a {
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  display: block;
  text-align: center;
}

li a:hover {
  border-bottom: 1px solid white;
}

.dropcontent a:hover {
  border-bottom: 1px solid white;
}

/* menuicon */
.menuicon {
  margin: 12px;
  cursor: pointer;
  display: none;
  position: absolute;
  top: 0;
  right: 0;
}

.menuicon div {
  width: 32px;
  height: 3px;
  background-color: white;
  margin: 6px 0;
}

@media screen and (max-width: 700px) {
  .menu li {display: none;}
  .menuicon {
    display: block;
  }
}

/* overlay */
.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.85);
  overflow-x: hidden;
  overflow-y: auto;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 20%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

#imgicon {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 70px;
  height: 45px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 2em;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

#overlaysub, #overlaysub_2, #overlaysub_3 {
  display: none;
}

#overlaysub a, #overlaysub_2 a, #overlaysub_3 a {
  font-size: 1.25em;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

/* header */
.header {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; 
  color: white;
}

.header img {
  display: block;
  width: 234px;
  height: 158.6px;
  margin-left: auto;
  margin-right: auto;
}

.header p {
  font-size: 1.3em;
}

/* social media share icon*/
.share img {
  width: 30px;
  height: auto;
  margin: 8px;
  display: inline-block;
}

footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  color: white;
  font-size: 0.8em;
  width: 100%;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* background video display */
/* desktop: hide mobile video */
@media (min-width: 769px) {
    #mobile-video {
        display: none;
    }
}

/* mobile: hide desktop video */
@media (max-width: 768px) {
    #desktop-video {
        display: none;
    }
    #mobile-video {
        display: block;
    }
}