html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  font-family: "Microsoft JhengHei", sans-serif;
}

img {
  image-rendering: pixelated;
}

* {
  body-sizing: border-box;
}

/* background image */
#container {
  position: relative;
}

#bgimage {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* 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;
}

/* website icon */
#icon {
  position: absolute;
  top: 0;
  left: 0;
}

#imgicon {
  width: 70px;
  height: 45px;
  z-index: 1;
}

#icon a {
  text-decoration: none;
}

/* 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 ul {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;
}

.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 {
  margin: 0;
  color: white;
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translate(-50%);
}

header span {
  padding: 10px 16px;
  border: 2px solid white;
  border-radius: 10px;
  margin: auto;
  font-size: 2em;
}

/* main content */
.column {
  width: 25%;
  float: left;
}

.imgcontent {
  border: 1px solid #ccc;
  margin: 30px;
}

.imgcontent img {
  width: 100%;
}

.word {
  padding: 15px;
  text-align: center;
}

.imgcontent:hover {
  opacity: 0.7;
  cursor: pointer;
}


@media screen and (max-width: 900px) {
  .column {
   width: 50%;
  }
}

@media screen and (max-width: 700px) {
  .column {
   width: 100%;
  }
}

/* modal image */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgb(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  width: 50%;
  margin-bottom: 100px;
}

.modal-content::after {
  content: "";
  clear: both;
  display: table;
}

.phara {
  color: white;
  margin-left: 16px;
}

.phara h3, h4 {
  text-align: center;
}

#modalImg {
  overflow: auto;
  max-width: 100%;
  height: auto;
  width: 50%;
  clear: both;
}

#modalDes {
  width: 50%;
  float: right;
}

#modalImg, #modalDes {
  animation-name: zoom;
  animation-duration: 0.5s;
}

@keyframes zoom{
  from {transform:scale(0)}
  to {transform:scale(1)}
}

#people {
  display: none;
}

@media screen and (max-width: 700px) {
  #modalImg {
   margin-left: auto;
   margin-right: auto;
   display: block;
}
  #modalDes {
   width: 100%;
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}